// File: /workspace/github_cpp_makefile_star2_O2/Laakeri[P]maxpre/src/./SE.cpp
// Function: maxPreprocessor::Preprocessor::trySESlow(int)
int Preprocessor::trySESlow(int lit) {
	vector<int> toRemove;
	
	for (int c1 : pi.litClauses[lit]) {
		for (int c2 : pi.litClauses[lit]) {
			if (c1 <= c2) continue;
			if (pi.clauses[c1].lit.size() > pi.clauses[c2].lit.size() && pi.clauses[c2].isHard()) {
				if (isSubsumed(pi.clauses[c1].lit, pi.clauses[c2].lit)) {
					toRemove.push_back(c1);
				}
			}
			if (pi.clauses[c2].lit.size() > pi.clauses[c1].lit.size() && pi.clauses[c1].isHard()) {
				if (isSubsumed(pi.clauses[c2].lit, pi.clauses[c1].lit)) {
					toRemove.push_back(c2);
				}
			}
		}
	}
	int removed = 0;
	for (int c : toRemove) {
		if (!pi.isClauseRemoved(c)) {
			pi.removeClause(c);
			removed++;
		}
	}
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
andq $0x0, 0x10(%rax)
movaps %xmm0, (%rax)
movslq %esi, %rax
movq 0x18(%rdi), %rcx
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rdx
movq %rax, 0x30(%rsp)
movq 0x8(%rcx,%rax), %rax
movq %rax, 0x38(%rsp)
cmpq 0x38(%rsp), %rdx
je 0x9225
movq %rdx, 0x40(%rsp)
movl (%rdx), %eax
movl %eax, 0x8(%rsp)
movq 0x18(%rbx), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx), %r12
movq 0x8(%rax,%rcx), %r14
cmpq %r14, %r12
je 0x9217
movl (%r12), %ebp
movl %ebp, 0xc(%rsp)
movl 0x8(%rsp), %r15d
cmpl %ebp, %r15d
jle 0x920e
movslq %ebp, %rax
movslq %r15d, %rcx
movq (%rbx), %r13
imulq $0x28, %rcx, %rcx
movq 0x8(%r13,%rcx), %rdx
subq (%r13,%rcx), %rdx
imulq $0x28, %rax, %rax
movq 0x8(%r13,%rax), %rcx
subq (%r13,%rax), %rcx
cmpq %rcx, %rdx
jbe 0x91a5
addq %rax, %r13
movq %r13, %rdi
callq 0x21bac
movl 0xc(%rsp), %ebp
movq (%rbx), %r13
movl 0x8(%rsp), %r15d
testb %al, %al
je 0x91a5
movslq %ebp, %rax
movslq %r15d, %rcx
imulq $0x28, %rcx, %rsi
addq %r13, %rsi
imulq $0x28, %rax, %rdx
addq %r13, %rdx
callq 0x904c
testb %al, %al
je 0x91a5
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x68a4
movl 0xc(%rsp), %ebp
movq (%rbx), %r13
movl 0x8(%rsp), %r15d
movslq %ebp, %rax
imulq $0x28, %rax, %rax
movq 0x8(%r13,%rax), %rcx
subq (%r13,%rax), %rcx
movslq %r15d, %rax
imulq $0x28, %rax, %rax
movq 0x8(%r13,%rax), %rdx
subq (%r13,%rax), %rdx
cmpq %rdx, %rcx
jbe 0x920e
addq %rax, %r13
movq %r13, %rdi
callq 0x21bac
testb %al, %al
je 0x920e
movslq 0xc(%rsp), %rax
movq (%rbx), %rcx
imulq $0x28, %rax, %rsi
addq %rcx, %rsi
movslq 0x8(%rsp), %rax
imulq $0x28, %rax, %rdx
addq %rcx, %rdx
callq 0x904c
testb %al, %al
je 0x920e
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x68a4
addq $0x4, %r12
jmp 0x9109
movq 0x40(%rsp), %rdx
addq $0x4, %rdx
jmp 0x90e1
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r12
xorl %ebp, %ebp
cmpq %r12, %r15
je 0x925b
movl (%r15), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x20f14
testb %al, %al
jne 0x9255
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21490
incl %ebp
addq $0x4, %r15
jmp 0x9231
leaq 0x10(%rsp), %rdi
callq 0x7512
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9278
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7512
movq %rbx, %rdi
callq 0x3490
nop