// File: /workspace/github_cpp_makefile_star2_O3/Myyura[P]MyyuraSat/./source/./solver_search.cpp
// Function: MyyuraSat::Solver::search(int)
LiftedBoolean Solver::search(int n_conflicts) {
    if (_myyura != true) {
        throw;
    }

    Vector<Literal> learnt_clause;
    int backtrack_level;

    for (; ;) {
        // Propagation
        CRARef conflict = propagate();
        std::cout << conflict << std::endl;
        if (conflict != CRAREF_UNDEF) {
            if (decision_level() == 0) { return LIFTED_BOOLEAN_FALSE; }

            learnt_clause.clear();
            analyze(conflict, learnt_clause, backtrack_level);
            cancel_until(backtrack_level);

            if (learnt_clause.size() == 1) {
                unchecked_enqueue(learnt_clause[0]);
            } else {
                CRARef cr = _ca.alloc(learnt_clause, true);
                _learnts.push(cr);
                attach_clause_watcher(cr);
                unchecked_enqueue(learnt_clause[0], cr);
            }
        } else {
            // NO CONFLICT
            Literal next = LITERAL_UNDEF;

            if (next == LITERAL_UNDEF){
                // New variable decision:
                next = pick_branch_literal();

                if (next == LITERAL_UNDEF)
                    // Model found:
                    return LIFTED_BOOLEAN_TRUE;
            }

            // Increase decision level and enqueue 'next'
            new_decision_level();
            unchecked_enqueue(next);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpb $0x0, 0x188(%rdi)
je 0x49a1
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %r14
movaps %xmm0, (%r14)
leaq 0xf8(%rdi), %rax
movq %rax, -0x58(%rbp)
leaq 0x18(%rdi), %rax
movq %rax, -0x50(%rbp)
leaq 0x38(%rdi), %rax
movq %rax, -0x60(%rbp)
movq 0x7744(%rip), %r15      # 0xbf98
movq %rbx, %rdi
callq 0x2ce0
movl %eax, %r12d
movl %eax, %esi
movq %r15, %rdi
callq 0x20d0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
cmpl $-0x1, %r12d
je 0x48ec
cmpl $0x0, 0x40(%rbx)
je 0x4969
cmpq $0x0, -0x40(%rbp)
je 0x48b1
movl $0x0, -0x38(%rbp)
movq %rbx, %rdi
movl %r12d, %esi
movq %r14, %rdx
leaq -0x44(%rbp), %rcx
callq 0x4306
movl -0x44(%rbp), %esi
movq %rbx, %rdi
callq 0x423a
cmpl $0x1, -0x38(%rbp)
jne 0x4927
movq -0x40(%rbp), %rax
movl (%rax), %esi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2bf4
jmp 0x4854
movq %rbx, %rdi
callq 0x46b6
movl %eax, %r12d
cmpl 0x786f(%rip), %eax      # 0xc16c
je 0x4972
movl 0x30(%rbx), %eax
movl %eax, -0x2c(%rbp)
movq -0x60(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x5f66
movq %rbx, %rdi
movl %r12d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2bf4
jmp 0x4854
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x5a8c
movl %eax, -0x2c(%rbp)
movq -0x50(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x5ae8
movl -0x2c(%rbp), %esi
movq %rbx, %rdi
callq 0x3140
movq -0x40(%rbp), %rax
movl (%rax), %esi
movl -0x2c(%rbp), %edx
movq %rbx, %rdi
callq 0x2bf4
jmp 0x4854
leaq 0x7805(%rip), %rax      # 0xc175
jmp 0x4979
leaq 0x77fb(%rip), %rax      # 0xc174
movb (%rax), %bl
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x4990
movl $0x0, -0x38(%rbp)
callq 0x2180
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x21e0
jmp 0x49ac
jmp 0x49ac
jmp 0x49ac
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x49c4
movl $0x0, -0x38(%rbp)
callq 0x2180
movq %rbx, %rdi
callq 0x2270