// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./LS.cpp
// Function: maxPreprocessor::Preprocessor::tryLSBCE(int, std::unordered_set<int, std::hash<int>, std::equal_to<int>, std::allocator<int>>&, std::unordered_set<int, std::hash<int>, std::equal_to<int>, std::allocator<int>>&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>>&)
void Preprocessor::tryLSBCE(int lit, unordered_set<int>& deletedClauses, unordered_set<int>& touchedList, vector<pair<int, int> >& blockedClauses) {
	for (int c1i : pi.litClauses[lit]) {
		if (deletedClauses.count(c1i)) continue;
		const vector<int>& c1 = pi.clauses[c1i].lit;
		bool f = false;
		for (int c2i : pi.litClauses[litNegation(lit)]) {
			if (deletedClauses.count(c2i)) continue;
			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) {
			deletedClauses.insert(c1i);
			blockedClauses.push_back({c1i, lit});
			for (int l : c1) {
				touchedList.insert(litVariable(l));
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, 0x28(%rsp)
movq %rcx, %r14
movq %rdx, 0x10(%rsp)
movslq %esi, %rax
movq %rdi, 0x20(%rsp)
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
je 0x19324
movl %esi, %ebp
movl %esi, %eax
xorl $0x1, %eax
cltq
leaq (%rax,%rax,2), %rax
movq %rax, 0x30(%rsp)
movq %rdx, 0x40(%rsp)
movl (%rdx), %eax
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x23762
testq %rax, %rax
leaq 0x8(%rsp), %r13
je 0x19203
movq 0x40(%rsp), %rdx
addq $0x4, %rdx
cmpq 0x38(%rsp), %rdx
jne 0x191ca
jmp 0x19324
movslq 0x4(%rsp), %rax
leaq (%rax,%rax,4), %r12
shlq $0x3, %r12
movq 0x20(%rsp), %rax
addq (%rax), %r12
movq 0x18(%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
movq 0x8(%rax,%rcx,8), %r15
cmpq %r15, %rbx
je 0x192b4
movl (%rbx), %eax
movl %eax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x23762
testq %rax, %rax
je 0x1925b
addq $0x4, %rbx
cmpq %r15, %rbx
leaq 0x8(%rsp), %r13
jne 0x19233
jmp 0x192b4
movq (%r12), %rax
movq 0x8(%r12), %rcx
cmpq %rcx, %rax
je 0x191ee
movq 0x20(%rsp), %rdx
movq (%rdx), %rsi
movslq 0x8(%rsp), %rdx
leaq (%rdx,%rdx,4), %rdi
movq (%rsi,%rdi,8), %rdx
movq 0x8(%rsi,%rdi,8), %rsi
cmpq %rsi, %rdx
je 0x192a6
movl (%rax), %edi
movq %rdx, %r8
cmpl %ebp, %edi
je 0x1929d
movl (%r8), %r9d
xorl %edi, %r9d
cmpl $0x1, %r9d
je 0x1924b
addq $0x4, %r8
cmpq %rsi, %r8
jne 0x1928d
addq $0x4, %rax
cmpq %rcx, %rax
jne 0x19283
jmp 0x191ee
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x4(%rsp), %rsi
movq %r13, %rdx
callq 0x237be
movl 0x4(%rsp), %eax
movl %eax, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
movq 0x28(%rsp), %rdi
movq %r13, %rsi
callq 0x22d46
movq (%r12), %rbx
movq 0x8(%r12), %r15
cmpq %r15, %rbx
leaq 0x1c(%rsp), %r12
je 0x191ee
movl (%rbx), %eax
sarl %eax
movl %eax, 0x1c(%rsp)
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x23a4a
addq $0x4, %rbx
cmpq %r15, %rbx
jne 0x192fb
jmp 0x191ee
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop