// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./BIG.cpp
// Function: maxPreprocessor::Preprocessor::doBIG(bool)
int Preprocessor::doBIG(bool doTC) {
	rLog.startTechnique(Log::Technique::EE);
	if (!rLog.requestTime(Log::Technique::EE)) {
		rLog.stopTechnique(Log::Technique::EE);
		return 0;
	}
	int removed = 0;
	BIGIt++;
	if ((int)BIGu.size() < 2*pi.vars) BIGu.resize(2*pi.vars);
	if ((int)BIGu2.size() < 2*pi.vars) BIGu2.resize(2*pi.vars);
	if ((int)BIGid.size() < 2*pi.vars) BIGid.resize(2*pi.vars);
	vector<int> checkLit = pi.tl.getBinaryLiterals("BIG");
	for (int lit : checkLit) {
		if (!rLog.requestTime(Log::Technique::EE)) break;
		if (BIGu[lit] == BIGIt || pi.isLabel[litVariable(lit)]) continue;
		removed += tryBIG(lit, doTC);
	}
	log(removed, " variables removed by EE");
	rLog.stopTechnique(Log::Technique::EE);
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %r12d
movq %rdi, %r14
leaq 0x218(%rdi), %rbx
movq %rbx, %rdi
movl $0x9, %esi
callq 0x28b9e
movq %rbx, %rdi
movl $0x9, %esi
callq 0x29718
testb %al, %al
je 0x15da4
incl 0x3ac(%r14)
movq 0x3b8(%r14), %rax
subq 0x3b0(%r14), %rax
shrq $0x2, %rax
movslq 0x60(%r14), %rsi
addq %rsi, %rsi
cmpl %eax, %esi
jle 0x15c61
leaq 0x3b0(%r14), %rdi
callq 0x8cac
movl 0x60(%r14), %esi
addl %esi, %esi
movq 0x3d0(%r14), %rax
subq 0x3c8(%r14), %rax
shrq $0x2, %rax
cmpl %eax, %esi
jle 0x15c8c
leaq 0x3c8(%r14), %rdi
movslq %esi, %rsi
callq 0x8cac
movl 0x60(%r14), %esi
addl %esi, %esi
movq 0x3e8(%r14), %rax
subq 0x3e0(%r14), %rax
shrq $0x2, %rax
cmpl %eax, %esi
jle 0x15cb1
leaq 0x3e0(%r14), %rdi
movslq %esi, %rsi
callq 0x8cac
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x23099(%rip), %rsi     # 0x38d5a
leaq 0x23095(%rip), %rdx     # 0x38d5d
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x9466
leaq 0x68(%r14), %rsi
leaq 0x10(%rsp), %rdi
movq %r15, %rdx
callq 0x2f9c4
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x15cfd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rbp
xorl %r15d, %r15d
cmpq %rbp, %r13
je 0x15d6c
movzbl %r12b, %eax
movl %eax, 0xc(%rsp)
movslq (%r13), %r12
movq %rbx, %rdi
movl $0x9, %esi
callq 0x29718
testb %al, %al
je 0x15d6c
movq 0x3b0(%r14), %rax
movl (%rax,%r12,4), %eax
cmpl 0x3ac(%r14), %eax
je 0x15d63
movl %r12d, %eax
sarl %eax
cltq
movq 0x48(%r14), %rcx
cmpl $0x0, (%rcx,%rax,4)
jne 0x15d63
movq %r14, %rdi
movl %r12d, %esi
movl 0xc(%rsp), %edx
callq 0x1430e
addl %eax, %r15d
addq $0x4, %r13
cmpq %rbp, %r13
jne 0x15d17
leaq 0x22feb(%rip), %rdx     # 0x38d5e
movq %r14, %rdi
movl %r15d, %esi
callq 0x1e844
movq %rbx, %rdi
movl $0x9, %esi
callq 0x28be0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x15db4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x15db4
movq %rbx, %rdi
movl $0x9, %esi
callq 0x28be0
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x15df9
movq 0x38(%rsp), %rsi
incq %rsi
jmp 0x15df4
jmp 0x15ddf
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x15df9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop