// File: /workspace/github_cpp_makefile_star2_O1/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), %r13
movq %r13, %rdi
movl $0xc, %esi
callq 0x298e6
movq %r13, %rdi
movl $0xc, %esi
callq 0x2a464
xorl %r12d, %r12d
testb %al, %al
je 0x1990f
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
testl %eax, %eax
jle 0x198f5
xorl %r15d, %r15d
xorl %ebp, %ebp
movq %r13, 0x28(%rsp)
movq %r13, %rdi
movl $0xc, %esi
callq 0x2a464
testb %al, %al
je 0x198fa
movq %r14, %rdi
movl %r15d, %esi
callq 0x284dc
testb %al, %al
jne 0x19851
leaq (%r15,%r15,4), %rbx
leaq (,%rbx,8), %rdi
addq (%r14), %rdi
callq 0x29586
testb %al, %al
je 0x19851
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%r14), %rax
movq (%rax,%rbx,8), %r13
movq 0x8(%rax,%rbx,8), %rbx
cmpq %rbx, %r13
je 0x1987b
xorl %r12d, %r12d
movl (%r13), %eax
movl %eax, 0x24(%rsp)
movl %eax, %ecx
sarl %ecx
movslq %ecx, %rcx
movq 0x48(%r14), %rdx
cmpl $0x0, (%rdx,%rcx,4)
je 0x19830
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x19835
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x19842
movb $0x1, %r12b
jmp 0x19842
movq %rsp, %rdi
leaq 0x24(%rsp), %rdx
callq 0x98e8
addq $0x4, %r13
cmpq %rbx, %r13
jne 0x197fe
xorb $0x1, %r12b
jmp 0x1987e
movl %ebp, %r12d
incq %r15
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
cltq
movl %r12d, %ebp
cmpq %rax, %r15
jl 0x19796
jmp 0x198fd
movb $0x1, %r12b
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
sete %al
orb %r12b, %al
testb $0x1, %al
movq 0x28(%rsp), %r13
je 0x1989b
movl %ebp, %r12d
jmp 0x198d6
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %rsp, %rsi
callq 0x1ffa6
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
callq 0x19050
movl %eax, %r12d
addl %ebp, %r12d
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x198d6
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x19854
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x19854
xorl %r12d, %r12d
jmp 0x198fd
movl %ebp, %r12d
leaq 0x206a0(%rip), %rdx     # 0x39fa4
movq %r14, %rdi
movl %r12d, %esi
callq 0x1f426
movq %r13, %rdi
movl $0xc, %esi
callq 0x29928
movl %r12d, %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 0x1994f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x1994f
jmp 0x1994c
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x19965
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop