// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]maxpre/src/./BCE.cpp
// Function: maxPreprocessor::Preprocessor::tryBCE(int)
int Preprocessor::tryBCE(int lit) {
	vector<int> toRemove;
	for (int c1i : pi.litClauses[lit]) {
		const vector<int>& c1 = pi.clauses[c1i].lit;
		bool f = false;
		for (int c2i : pi.litClauses[litNegation(lit)]) {
			const vector<int>& c2 = pi.clauses[c2i].lit;
			bool ff = false;
			for (int c1l : c1) {
				for (int c2l : c2) {
					if (litNegation(c1l) == c2l && c1l != lit) {
						ff = true;
						break;
					}
				}
				if (ff) break;
			}
			if (!ff) {
				f = true;
				break;
			}
		}
		if (!f) {
			toRemove.push_back(c1i);
		}
	}
	for (int c : toRemove) {
		trace.BCE(lit, pi.clauses[c].lit);
		pi.removeClause(c);
	}
	rLog.removeClause((int)toRemove.size());
	return toRemove.size();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movslq %esi, %rax
movq 0x18(%rdi), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdx
movq 0x8(%rcx,%rax,8), %rax
movq %rax, 0x38(%rsp)
cmpq %rax, %rdx
movq %rdi, 0x20(%rsp)
je 0x119fc
movq %rdi, %rbx
movq %rdx, %rcx
movl %ebp, %eax
xorl $0x1, %eax
cltq
leaq (%rax,%rax,2), %rax
movq %rax, 0x30(%rsp)
movl $0x1, %r15d
movq %rcx, 0x40(%rsp)
movl (%rcx), %edi
movl %edi, 0x2c(%rsp)
movq 0x18(%rbx), %rax
movq 0x30(%rsp), %rdx
movq (%rax,%rdx,8), %rcx
movq 0x8(%rax,%rdx,8), %rax
movq %rax, 0x50(%rsp)
cmpq %rax, %rcx
je 0x119c2
movl %edi, 0x28(%rsp)
movslq %edi, %rax
movq (%rbx), %rdx
leaq (%rax,%rax,4), %rax
movq (%rdx,%rax,8), %rbx
movq %rdx, 0x48(%rsp)
movq 0x8(%rdx,%rax,8), %r9
xorl %r8d, %r8d
cmpq %r9, %rbx
je 0x11993
movslq (%rcx), %rax
leaq (%rax,%rax,4), %rax
movq 0x48(%rsp), %rdx
movq (%rdx,%rax,8), %r11
movq 0x8(%rdx,%rax,8), %r13
leaq 0x4(%r11), %r12
xorl %r10d, %r10d
movq %rbx, %rdi
cmpq %r13, %r11
je 0x11982
movl (%rdi), %eax
movq %r12, %r14
cmpl %ebp, %eax
setne %dl
movl -0x4(%r14), %esi
xorl %eax, %esi
cmpl $0x1, %esi
sete %sil
movzbl %r10b, %r10d
testb %sil, %dl
cmovnel %r15d, %r10d
jne 0x11982
leaq 0x4(%r14), %rdx
cmpq %r13, %r14
movq %rdx, %r14
jne 0x11957
testb $0x1, %r10b
jne 0x11996
addq $0x4, %rdi
cmpq %r9, %rdi
jne 0x1194d
jmp 0x11996
xorl %r10d, %r10d
movzbl %r8b, %r8d
testb $0x1, %r10b
cmovel %r15d, %r8d
je 0x119b3
addq $0x4, %rcx
cmpq 0x50(%rsp), %rcx
jne 0x11929
testb $0x1, %r8b
movq 0x20(%rsp), %rbx
movl 0x28(%rsp), %edi
jne 0x119e8
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x119db
movl %edi, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x119e8
movq %rsp, %rdi
leaq 0x2c(%rsp), %rdx
callq 0x98e8
movq 0x40(%rsp), %rcx
addq $0x4, %rcx
cmpq 0x38(%rsp), %rcx
jne 0x118df
movq (%rsp), %rbx
movq 0x8(%rsp), %r12
cmpq %r12, %rbx
je 0x11a48
movq 0x20(%rsp), %rax
leaq 0x2f0(%rax), %r14
movq 0x20(%rsp), %r13
movslq (%rbx), %r15
leaq (%r15,%r15,4), %rdx
shlq $0x3, %rdx
addq (%r13), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x27752
movq %r13, %rdi
movl %r15d, %esi
callq 0x28c34
addq $0x4, %rbx
cmpq %r12, %rbx
jne 0x11a1b
movq 0x20(%rsp), %rdi
addq $0x218, %rdi            # imm = 0x218
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
shrq $0x2, %rsi
callq 0x29970
movq (%rsp), %r14
movq 0x8(%rsp), %rbx
testq %r14, %r14
je 0x11a84
movq 0x10(%rsp), %rsi
subq %r14, %rsi
movq %r14, %rdi
callq 0x32b0
subq %r14, %rbx
shrq $0x2, %rbx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11aa0
jmp 0x11aa0
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11ab9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop