// File: 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
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa7e0
movq -0xa0(%rbp), %rdi
addq $0x18, %rdi
movslq -0xc(%rbp), %rsi
callq 0xaab0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xa800
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
callq 0xa830
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x13b8e
jmp 0x13dd1
leaq -0x38(%rbp), %rdi
callq 0xa8a0
movq -0xa0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x44(%rbp)
addq $0x18, %rdi
movslq -0xc(%rbp), %rsi
callq 0xaab0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0xa800
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
callq 0xa830
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x13be4
jmp 0x13dc1
leaq -0x58(%rbp), %rdi
callq 0xa8a0
movl (%rax), %eax
movl %eax, -0x64(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x64(%rbp), %eax
jg 0x13bff
jmp 0x13db3
movq -0xa0(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0x3c600
movq %rax, %rdi
callq 0xf940
movq -0xa0(%rbp), %rdi
movq %rax, -0xa8(%rbp)
movslq -0x64(%rbp), %rsi
callq 0x3c600
movq %rax, %rdi
callq 0xf940
movq %rax, %rcx
movq -0xa8(%rbp), %rax
cmpq %rcx, %rax
jbe 0x13ce5
movq -0xa0(%rbp), %rdi
movslq -0x64(%rbp), %rsi
callq 0x3c600
movq %rax, %rdi
callq 0x60e90
movb %al, -0xa9(%rbp)
jmp 0x13c69
movb -0xa9(%rbp), %al
testb $0x1, %al
jne 0x13c75
jmp 0x13ce5
movq -0xa0(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0x3c600
movq -0xa0(%rbp), %rdi
movq %rax, -0xb8(%rbp)
movslq -0x64(%rbp), %rsi
callq 0x3c600
movq -0xa0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq %rax, %rdx
callq 0x13a00
testb $0x1, %al
jne 0x13cb8
jmp 0x13ce3
leaq -0x28(%rbp), %rdi
leaq -0x44(%rbp), %rsi
callq 0xa8c0
jmp 0x13cc7
jmp 0x13ce3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xab00
jmp 0x13ea1
jmp 0x13ce5
movq -0xa0(%rbp), %rdi
movslq -0x64(%rbp), %rsi
callq 0x3c600
movq %rax, %rdi
callq 0xf940
movq -0xa0(%rbp), %rdi
movq %rax, -0xc0(%rbp)
movslq -0x44(%rbp), %rsi
callq 0x3c600
movq %rax, %rdi
callq 0xf940
movq %rax, %rcx
movq -0xc0(%rbp), %rax
cmpq %rcx, %rax
jbe 0x13db1
movq -0xa0(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0x3c600
movq %rax, %rdi
callq 0x60e90
movb %al, -0xc1(%rbp)
jmp 0x13d4f
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x13d5b
jmp 0x13db1
movq -0xa0(%rbp), %rdi
movslq -0x64(%rbp), %rsi
callq 0x3c600
movq -0xa0(%rbp), %rdi
movq %rax, -0xd0(%rbp)
movslq -0x44(%rbp), %rsi
callq 0x3c600
movq -0xa0(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq %rax, %rdx
callq 0x13a00
testb $0x1, %al
jne 0x13d9e
jmp 0x13daf
leaq -0x28(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0xa8c0
jmp 0x13dad
jmp 0x13daf
jmp 0x13db1
jmp 0x13db3
leaq -0x58(%rbp), %rdi
callq 0xa930
jmp 0x13bce
jmp 0x13dc3
leaq -0x38(%rbp), %rdi
callq 0xa930
jmp 0x13b78
movl $0x0, -0x78(%rbp)
leaq -0x28(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0xa800
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
callq 0xa830
movq %rax, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x13e19
jmp 0x13e80
leaq -0x88(%rbp), %rdi
callq 0xa8a0
movq -0xa0(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %esi
callq 0x5eb70
movb %al, -0xd1(%rbp)
jmp 0x13e47
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0x13e70
jmp 0x13e53
movq -0xa0(%rbp), %rdi
movl -0x94(%rbp), %esi
callq 0x5f7f0
jmp 0x13e67
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x13e72
leaq -0x88(%rbp), %rdi
callq 0xa930
jmp 0x13e00
movl -0x78(%rbp), %eax
movl %eax, -0xd8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xab00
movl -0xd8(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x4610
nopw (%rax,%rax)