// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SLE.cpp
// Function: maxPreprocessor::Preprocessor::trySLESlow(int, int)
int Preprocessor::trySLESlow(int lb1, int lb2) {
	vector<int> cs1;
	vector<int> cs2;
	uint64_t w1, w2;
	if (pi.isLabel[lb1] == VAR_TRUE) {
		cs1 = pi.litClauses[negLit(lb1)];
		w1 = pi.clauses[pi.litClauses[posLit(lb1)][0]].weight;
	}
	else {
		cs1 = pi.litClauses[posLit(lb1)];
		w1 = pi.clauses[pi.litClauses[negLit(lb1)][0]].weight;
	}
	if (pi.isLabel[lb2] == VAR_FALSE) {
		cs2 = pi.litClauses[posLit(lb2)];
		w2 = pi.clauses[pi.litClauses[negLit(lb2)][0]].weight;
	}
	else {
		cs2 = pi.litClauses[negLit(lb2)];
		w2 = pi.clauses[pi.litClauses[posLit(lb2)][0]].weight;
	}
	assert(w1 < HARDWEIGHT);
	assert(w2 < HARDWEIGHT);
	
	bool s1 = vSubsumed(cs1, cs2);
	bool s2 = vSubsumed(cs2, cs1);
	
	int rmClauses = 0;
	
	if (s1 && w2 <= w1) {
		if (pi.isLabel[lb1] == VAR_TRUE) {
			rmClauses = setVariable(lb1, true);
		}
		else {
			rmClauses = setVariable(lb1, false);
		}
		assert(pi.isVarRemoved(lb1));
		rLog.removeClause(rmClauses);
		rLog.removeLabel(1);
		return 1;
	}
	else if(s2 && w1 <= w2) {
		if (pi.isLabel[lb2] == VAR_TRUE) {
			rmClauses = setVariable(lb2, true);
		}
		else {
			rmClauses = setVariable(lb2, false);
		}
		assert(pi.isVarRemoved(lb2));
		rLog.removeClause(rmClauses);
		rLog.removeLabel(1);
		return 1;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, 0xc(%rsp)
movl %esi, %r14d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movslq %esi, %r15
movq 0x48(%rdi), %rax
leal (%r15,%r15), %r12d
cmpl $0x1, (%rax,%r15,4)
jne 0x118cf
movl %r12d, %eax
orl $0x1, %eax
cltq
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq 0x18(%rbx), %rsi
leaq 0x30(%rsp), %rdi
callq 0x1ef50
jmp 0x118ec
movslq %r12d, %rax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq 0x18(%rbx), %rsi
leaq 0x30(%rsp), %rdi
callq 0x1ef50
orl $0x1, %r12d
movslq %r12d, %rcx
movq (%rbx), %rdx
movq 0x18(%rbx), %rax
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rcx
movslq (%rcx), %rcx
leaq (%rcx,%rcx,4), %rcx
movq 0x18(%rdx,%rcx,8), %r13
movslq 0xc(%rsp), %r12
movq 0x48(%rbx), %rcx
leal (%r12,%r12), %ebp
cmpl $0x2, (%rcx,%r12,4)
jne 0x11938
movslq %ebp, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x10(%rsp), %rdi
callq 0x1ef50
orl $0x1, %ebp
jmp 0x11952
movl %ebp, %ecx
orl $0x1, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x10(%rsp), %rdi
callq 0x1ef50
testq %r13, %r13
js 0x11af3
movslq %ebp, %rax
movq (%rbx), %rcx
movq 0x18(%rbx), %rdx
leaq (%rax,%rax,2), %rax
movq (%rdx,%rax,8), %rax
movslq (%rax), %rax
leaq (%rax,%rax,4), %rax
movq 0x18(%rcx,%rax,8), %rax
testq %rax, %rax
js 0x11b12
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %r8
movb $0x1, %cl
movb $0x1, %r9b
cmpq %rsi, %rdx
je 0x119d3
cmpq %r8, %rdi
je 0x11a50
movq %rdx, %r9
movl (%r9), %r10d
movq %rdi, %r11
cmpl (%r11), %r10d
je 0x119c2
addq $0x4, %r11
cmpq %r8, %r11
jne 0x119b2
jmp 0x119d0
addq $0x4, %r9
cmpq %rsi, %r9
jne 0x119ac
movb $0x1, %r9b
jmp 0x119d3
xorl %r9d, %r9d
cmpq %r8, %rdi
je 0x11a00
cmpq %rsi, %rdx
je 0x119fe
movl (%rdi), %r10d
movq %rdx, %r11
cmpl (%r11), %r10d
je 0x119f3
addq $0x4, %r11
cmpq %rsi, %r11
jne 0x119e3
jmp 0x119fe
addq $0x4, %rdi
cmpq %r8, %rdi
jne 0x119dd
jmp 0x11a00
xorl %ecx, %ecx
cmpq %r13, %rax
setbe %dl
andb %dl, %r9b
cmpb $0x1, %r9b
jne 0x11a52
movq 0x48(%rbx), %rax
xorl %edx, %edx
cmpl $0x1, (%rax,%r15,4)
sete %dl
movq %rbx, %rdi
movl %r15d, %esi
callq 0xa026
movl %eax, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x278a0
testb %al, %al
je 0x11b31
addq $0x218, %rbx            # imm = 0x218
movq %rbx, %rdi
movl %ebp, %esi
callq 0x28c28
jmp 0x11aa0
movb $0x1, %cl
xorl %r14d, %r14d
testb %cl, %cl
je 0x11ab3
cmpq %rax, %r13
ja 0x11ab3
movq 0x48(%rbx), %rax
xorl %edx, %edx
cmpl $0x1, (%rax,%r12,4)
sete %dl
movq %rbx, %rdi
movl %r12d, %esi
callq 0xa026
movl %eax, %r14d
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0x278a0
testb %al, %al
je 0x11b50
addq $0x218, %rbx            # imm = 0x218
movq %rbx, %rdi
movl %r14d, %esi
callq 0x28c28
movl $0x1, %r14d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x28cdc
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11aca
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x11ae1
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26df9(%rip), %rdi     # 0x388f3
leaq 0x26e02(%rip), %rsi     # 0x38903
leaq 0x26e05(%rip), %rcx     # 0x3890d
movl $0x26, %edx
callq 0x31b0
leaq 0x26e2c(%rip), %rdi     # 0x38945
leaq 0x26de3(%rip), %rsi     # 0x38903
leaq 0x26de6(%rip), %rcx     # 0x3890d
movl $0x27, %edx
callq 0x31b0
leaq 0x26e1d(%rip), %rdi     # 0x38955
leaq 0x26dc4(%rip), %rsi     # 0x38903
leaq 0x26dc7(%rip), %rcx     # 0x3890d
movl $0x35, %edx
callq 0x31b0
leaq 0x26e13(%rip), %rdi     # 0x3896a
leaq 0x26da5(%rip), %rsi     # 0x38903
leaq 0x26da8(%rip), %rcx     # 0x3890d
movl $0x41, %edx
callq 0x31b0
jmp 0x11b71
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11b8b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x11ba2
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0