// File: /workspace/github_cpp_makefile_star2_O1/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 0x4a17
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %rax
movaps %xmm0, (%rax)
leaq 0xf8(%rdi), %rax
movq %rax, -0x60(%rbp)
leaq 0x18(%rdi), %rax
movq %rax, -0x58(%rbp)
leaq 0x38(%rdi), %rax
movq %rax, -0x50(%rbp)
movq 0x86e3(%rip), %r12      # 0xcf98
movq %rbx, %rdi
callq 0x2d3a
movl %eax, %r13d
movl %eax, %esi
movq %r12, %rdi
callq 0x20d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
cmpl $-0x1, %r13d
je 0x494d
cmpl $0x0, 0x40(%rbx)
je 0x4969
cmpq $0x0, -0x40(%rbp)
je 0x490e
movl $0x0, -0x38(%rbp)
movq %rbx, %rdi
movl %r13d, %esi
leaq -0x40(%rbp), %rdx
leaq -0x44(%rbp), %rcx
callq 0x4354
movl -0x44(%rbp), %esi
movq %rbx, %rdi
callq 0x4290
cmpl $0x1, -0x38(%rbp)
jne 0x4975
movq -0x40(%rbp), %rax
movl (%rax), %esi
movb $0x1, %r15b
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2c48
jmp 0x49de
movq %rbx, %rdi
callq 0x46fc
movl %eax, %r13d
cmpl 0x880e(%rip), %eax      # 0xd16c
jne 0x49b8
movb 0x880d(%rip), %r14b     # 0xd174
jmp 0x4970
movb 0x8805(%rip), %r14b     # 0xd175
xorl %r15d, %r15d
jmp 0x49de
movq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movl $0x1, %edx
callq 0x5c1e
movl %eax, -0x2c(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x5c7a
movl -0x2c(%rbp), %esi
movq %rbx, %rdi
callq 0x31a4
movq -0x40(%rbp), %rax
movl (%rax), %esi
movl -0x2c(%rbp), %edx
movq %rbx, %rdi
callq 0x2c48
movb $0x1, %r15b
jmp 0x49de
movl 0x30(%rbx), %eax
movl %eax, -0x2c(%rbp)
movq -0x50(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x60f4
movb $0x1, %r15b
movq %rbx, %rdi
movl %r13d, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2c48
testb %r15b, %r15b
jne 0x48b5
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x4a05
xorl %ebx, %ebx
movl %ebx, -0x38(%rbp)
callq 0x2180
movq $0x0, -0x40(%rbp)
movl %ebx, -0x34(%rbp)
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x21e0
jmp 0x4a22
jmp 0x4a22
jmp 0x4a22
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x4a46
xorl %r14d, %r14d
movl %r14d, -0x38(%rbp)
callq 0x2180
movq $0x0, -0x40(%rbp)
movl %r14d, -0x34(%rbp)
movq %rbx, %rdi
callq 0x2270