// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./FLP.cpp
// Function: maxPreprocessor::Preprocessor::doFLP()
int Preprocessor::doFLP() {
	rLog.startTechnique(Log::Technique::FLP);
	if (!rLog.requestTime(Log::Technique::FLP)) {
		rLog.stopTechnique(Log::Technique::FLP);
		return 0;
	}
	int removed = 0;
	for (int c = 0; c < (int)pi.clauses.size(); c++) {
		if (!rLog.requestTime(Log::Technique::FLP)) break;
		if (pi.isClauseRemoved(c)) continue;
		if (!pi.clauses[c].isHard()) continue;
		vector<int> lbs;
		bool f = false;
		for (int lit : pi.clauses[c].lit) {
			if (pi.isLabel[litVariable(lit)]) lbs.push_back(lit);
			else f = true;
		}
		if (lbs.size() > 0 && f) removed += tryFLP(lbs, c);
	}
	log(removed, " cores found by FLP");
	rLog.stopTechnique(Log::Technique::FLP);
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x218(%rdi), %rbx
movq %rbx, %rdi
movl $0xc, %esi
callq 0x28b9e
movq %rbx, %rdi
movl $0xc, %esi
callq 0x29718
testb %al, %al
je 0x190f3
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x19104
xorl %r15d, %r15d
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0xc, %esi
callq 0x29718
testb %al, %al
je 0x19106
movq %r14, %rdi
movl %r15d, %esi
callq 0x27804
movq (%r14), %rcx
testb %al, %al
jne 0x190d2
leaq (%r15,%r15,4), %r12
leaq (%rcx,%r12,8), %rdi
callq 0x2883e
movq (%r14), %rcx
testb %al, %al
je 0x190d2
movl %ebp, 0xc(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq (%rcx,%r12,8), %rbp
movq 0x8(%rcx,%r12,8), %r13
cmpq %r13, %rbp
je 0x190ae
xorl %r12d, %r12d
movl (%rbp), %eax
movl %eax, 0x2c(%rsp)
movl %eax, %ecx
sarl %ecx
movslq %ecx, %rcx
movq 0x48(%r14), %rdx
cmpl $0x0, (%rdx,%rcx,4)
je 0x1903c
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x19041
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x19050
movb $0x1, %r12b
jmp 0x19050
leaq 0x10(%rsp), %rdi
leaq 0x2c(%rsp), %rdx
callq 0x98f8
addq $0x4, %rbp
cmpq %r13, %rbp
jne 0x1900b
movq 0x10(%rsp), %rdi
cmpq %rdi, 0x18(%rsp)
setne %al
testb %r12b, %al
je 0x190b9
leaq 0x30(%rsp), %r12
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0x1f3de
movl 0xc(%rsp), %r13d
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x187f8
movl %eax, %ebp
addl %r13d, %ebp
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x190b2
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x190b2
movl 0xc(%rsp), %ebp
movq 0x10(%rsp), %rdi
jmp 0x190bd
movl 0xc(%rsp), %ebp
testq %rdi, %rdi
je 0x190cf
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq (%r14), %rcx
incq %r15
movq 0x8(%r14), %rax
subq %rcx, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
cmpq %rax, %r15
jl 0x18f9e
jmp 0x19106
movq %rbx, %rdi
movl $0xc, %esi
callq 0x28be0
xorl %ebp, %ebp
jmp 0x19124
xorl %ebp, %ebp
leaq 0x1ff47(%rip), %rdx     # 0x39054
movq %r14, %rdi
movl %ebp, %esi
callq 0x1e844
movq %rbx, %rdi
movl $0xc, %esi
callq 0x28be0
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x19156
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x19156
jmp 0x19153
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1916d
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop