// File: /workspace/github_cpp_makefile_star2_O1/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 $0x68, %rsp
movq %r8, 0x48(%rsp)
movq %rcx, 0x28(%rsp)
movq %rdx, %r8
movslq %esi, %rax
movq %rdi, 0x30(%rsp)
movq 0x18(%rdi), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdx
movq 0x8(%rcx,%rax,8), %rax
movq %rax, 0x58(%rsp)
cmpq %rax, %rdx
je 0x19ba1
movl %esi, %ebp
movl %esi, %eax
xorl $0x1, %eax
cltq
leaq (%rax,%rax,2), %rax
movq %rax, 0x50(%rsp)
movl $0x1, %r13d
movq %r8, 0x18(%rsp)
movq %rdx, 0x60(%rsp)
movl (%rdx), %eax
movl %eax, 0xc(%rsp)
movq %r8, %rdi
leaq 0xc(%rsp), %rsi
callq 0x244a2
testq %rax, %rax
leaq 0x10(%rsp), %r14
movq 0x28(%rsp), %r12
je 0x19a0e
movq 0x60(%rsp), %rdx
addq $0x4, %rdx
cmpq 0x58(%rsp), %rdx
movq 0x18(%rsp), %r8
jne 0x199cd
jmp 0x19ba1
movslq 0xc(%rsp), %rax
leaq (%rax,%rax,4), %rcx
shlq $0x3, %rcx
movq 0x30(%rsp), %rax
addq (%rax), %rcx
movq %rcx, 0x40(%rsp)
movq 0x18(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rax,%rcx,8), %r15
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
cmpq %rax, %r15
je 0x19b39
xorl %ebx, %ebx
movq %r14, %rsi
movq 0x18(%rsp), %r14
movq 0x38(%rsp), %r12
movl (%r15), %eax
movl %eax, 0x10(%rsp)
movq %r14, %rdi
callq 0x244a2
movl $0x5, %ecx
testq %rax, %rax
jne 0x19b0d
movq 0x40(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
cmpq %rdx, %rcx
je 0x19af7
movq 0x30(%rsp), %rax
movq (%rax), %rax
movslq 0x10(%rsp), %rsi
leaq (%rsi,%rsi,4), %rdi
movq (%rax,%rdi,8), %rsi
movq 0x8(%rax,%rdi,8), %rdi
leaq 0x4(%rsi), %r8
xorl %eax, %eax
cmpq %rdi, %rsi
je 0x19ade
movl (%rcx), %r9d
movq %r8, %r10
cmpl %ebp, %r9d
setne %r11b
movl -0x4(%r10), %r12d
xorl %r9d, %r12d
cmpl $0x1, %r12d
sete %r12b
movzbl %al, %eax
testb %r12b, %r11b
cmovnel %r13d, %eax
jne 0x19ade
leaq 0x4(%r10), %r11
cmpq %rdi, %r10
movq %r11, %r10
jne 0x19ab0
testb $0x1, %al
jne 0x19aeb
addq $0x4, %rcx
cmpq %rdx, %rcx
jne 0x19aa5
movq 0x18(%rsp), %r14
movq 0x38(%rsp), %r12
jmp 0x19af9
xorl %eax, %eax
movzbl %bl, %ebx
testb $0x1, %al
cmovel %r13d, %ebx
notb %al
movzbl %al, %ecx
andl $0x1, %ecx
shll $0x2, %ecx
leaq 0x10(%rsp), %rsi
cmpl $0x5, %ecx
je 0x19b1b
testl %ecx, %ecx
jne 0x19b28
addq $0x4, %r15
cmpq %r12, %r15
jne 0x19a57
testb $0x1, %bl
movq %rsi, %r14
movq 0x28(%rsp), %r12
jne 0x199f4
movq 0x18(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0xc(%rsp), %rsi
movq %r14, %rdx
callq 0x2451c
movl 0xc(%rsp), %eax
movl %eax, 0x10(%rsp)
movl %ebp, 0x14(%rsp)
movq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x23a38
movq 0x40(%rsp), %rax
movq (%rax), %rbx
movq 0x8(%rax), %r15
cmpq %r15, %rbx
je 0x199f4
movl (%rbx), %eax
sarl %eax
movl %eax, 0x24(%rsp)
movq %r12, 0x10(%rsp)
movq %r12, %rdi
leaq 0x24(%rsp), %rsi
movq %r14, %rdx
callq 0x2479a
addq $0x4, %rbx
jmp 0x19b75
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq