// File: /workspace/github_cpp_makefile_star2_O3/kc885[P]SAT-Solver-with-CDCL/cdcl.cpp
// Function: ck_cdcl_solver::Solver::recursion(int, int)
bool recursion(int index, int level){
            std::unordered_set<int> implied;
            if(!unitPropagate(implied,level)){
                for(auto iter = implied.begin();iter != implied.end(); iter++)
                    val_decisionLevel[*iter] = 0;
                return false;
            }
                
            int i = index;
            while(i < variableNumber && val_decisionLevel[sor[i]] != 0)
                i++;
            if(i == variableNumber)
                return true;
            
            
            decisionVar[level+1] = sor[i];
            val_decisionLevel[sor[i]] = -level-1;
            if(recursion(i+1,level+1))
                return true;
            
            decisionVar[level+1] = -sor[i];
            val_decisionLevel[sor[i]] = level+1;
            if(recursion(i+1,level+1))
                return true;
            
            val_decisionLevel[sor[i]] = 0;
            for(auto iter = implied.begin();iter != implied.end(); iter++)
                val_decisionLevel[*iter] = 0;
            return false;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x40(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0x10(%rsp), %rsi
callq 0x4868
testb %al, %al
je 0x4d1c
movl 0x98(%rbx), %eax
cmpl %ebp, %eax
jle 0x4d45
movq 0x50(%rbx), %rcx
movslq %ebp, %rdx
shlq $0x2, %rdx
addq 0x80(%rbx), %rdx
movslq (%rdx), %rsi
cmpl $0x0, (%rcx,%rsi,4)
je 0x4d45
incl %ebp
addq $0x4, %rdx
cmpl %ebp, %eax
jne 0x4d01
movb $0x1, %r14b
jmp 0x4e09
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x4d3d
movq 0x50(%rbx), %rcx
movslq 0x8(%rax), %rdx
movl $0x0, (%rcx,%rdx,4)
movq (%rax), %rax
testq %rax, %rax
jne 0x4d2a
xorl %r14d, %r14d
jmp 0x4e09
movb $0x1, %r14b
cmpl %eax, %ebp
je 0x4e09
movslq %ebp, %rdx
movq 0x68(%rbx), %rax
movq 0x80(%rbx), %rcx
movq %rdx, 0x8(%rsp)
movslq (%rcx,%rdx,4), %rcx
movslq %r15d, %r13
leal 0x1(%r15), %r12d
movl %ecx, 0x4(%rax,%r13,4)
notl %r15d
movq 0x50(%rbx), %rax
movl %r15d, (%rax,%rcx,4)
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x4c9e
testb %al, %al
jne 0x4e09
incq %r13
movq 0x68(%rbx), %rax
movq 0x80(%rbx), %rcx
xorl %edx, %edx
movq 0x8(%rsp), %rsi
subl (%rcx,%rsi,4), %edx
movl %edx, (%rax,%r13,4)
movslq (%rcx,%rsi,4), %rax
movq 0x50(%rbx), %rcx
movl %r12d, (%rcx,%rax,4)
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x4c9e
testb %al, %al
jne 0x4e09
movq 0x50(%rbx), %rax
movq 0x80(%rbx), %rcx
movq 0x8(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
movl $0x0, (%rax,%rcx,4)
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
je 0x4d3d
xorl %r14d, %r14d
movslq 0x8(%rcx), %rdx
movl $0x0, (%rax,%rdx,4)
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x4df6
leaq 0x10(%rsp), %rdi
callq 0x3d9a
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4e27
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3d9a
movq %rbx, %rdi
callq 0x2210