// File: /workspace/github_cpp_makefile_star2_O1/jacky860226[P]JinkelaSat/src/include/JinkelaSat.hpp
// Function: MiniSat::JinkelaSat::search(int)
Status search(int nof_conflicts) {
    int conflictC = 0;
    for (;;) {
      auto confl = propagate();
      if (confl != nullptr) {
        ++conflictC;
        if (decisionLevel() == 0)
          return Status::False;
        std::vector<Literal> learnt_clause;
        int backtrack_level;
        analyze(confl, learnt_clause, backtrack_level);
        cancelUntil(backtrack_level);
        if (learnt_clause.size() == 1) {
          uncheckedEnqueue(learnt_clause[0]);
        } else {
          learnts.emplace_back(new Clause(std::move(learnt_clause), true));
          auto cr = learnts.back().get();
          attachClause(cr);
          claBumpActivity(*cr);
          uncheckedEnqueue((*cr)[0], cr);
        }
        varDecayActivity();
        claDecayActivity();
        if (--learntsize_adjust_cnt == 0) {
          learntsize_adjust_confl *= learntsize_adjust_inc;
          learntsize_adjust_cnt = (int)learntsize_adjust_confl;
          max_learnts *= learntsize_inc;
        }
      } else {
        if (nof_conflicts >= 0 && conflictC >= nof_conflicts) {
          cancelUntil(0);
          return Status::Undef;
        }
        if (decisionLevel() == 0 && !simplify())
          return Status::False;
        if (int(learnts.size()) - int(nAssigns()) >= max_learnts)
          reduceDB();
        Literal next = pickBranchLit();
        if (next.isUndef())
          return Status::True;
        newDecisionLevel();
        uncheckedEnqueue(next);
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x38(%rdi), %rax
movq %rax, 0x28(%rsp)
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x315a
testq %rax, %rax
je 0x57a4
incl %r13d
movq 0x58(%r14), %rcx
cmpq 0x50(%r14), %rcx
je 0x5836
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
movq %rax, %rsi
movq %rsp, %rdx
leaq 0x24(%rsp), %rcx
callq 0x5b7a
movslq 0x24(%rsp), %rsi
movq %r14, %rdi
callq 0x5a70
movq (%rsp), %r15
movq 0x8(%rsp), %r12
movq %r12, %rax
subq %r15, %rax
cmpq $0x4, %rax
jne 0x5840
movl (%r15), %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0x30f6
jmp 0x58b8
testl %ebx, %ebx
sets %al
cmpl %ebx, %r13d
setl %cl
orb %al, %cl
je 0x5965
movq 0x58(%r14), %rax
cmpq 0x50(%r14), %rax
jne 0x57d0
movq %r14, %rdi
callq 0x5f36
xorl %r15d, %r15d
testb %al, %al
je 0x5839
movq 0x40(%r14), %rax
subq 0x38(%r14), %rax
movq 0x10(%r14), %rcx
shrq $0x3, %rax
subq 0x8(%r14), %rcx
shrq $0x2, %rcx
subl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
ucomisd 0x1c0(%r14), %xmm0
jb 0x5804
movq %r14, %rdi
callq 0x5fb2
movq %r14, %rdi
callq 0x613c
cmpl $-0x1, %eax
setne %r15b
je 0x5977
movl %eax, %r12d
movq %r14, %rdi
callq 0x61f8
movq %r14, %rdi
movl %r12d, %esi
xorl %edx, %edx
callq 0x30f6
jmp 0x597a
xorl %r15d, %r15d
xorl %ebp, %ebp
jmp 0x597a
movl $0x20, %edi
callq 0x2170
movq %r15, (%rax)
movq %r12, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movb $0x1, 0x18(%rax)
movl $0x0, 0x1c(%rax)
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3430
movq 0x40(%r14), %rax
movq -0x8(%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x3460
movq %r14, %rdi
movq %r12, %rsi
callq 0x5ec6
movq (%r12), %rax
movl (%rax), %esi
movq %r14, %rdi
movq %r12, %rdx
callq 0x30f6
movsd 0x2780(%rip), %xmm1     # 0x8040
movapd %xmm1, %xmm0
divsd 0x1a0(%r14), %xmm0
mulsd 0x1b8(%r14), %xmm0
movsd %xmm0, 0x1b8(%r14)
movapd %xmm1, %xmm0
divsd 0x1a8(%r14), %xmm0
mulsd 0x1b0(%r14), %xmm0
movsd %xmm0, 0x1b0(%r14)
decq 0x1d0(%r14)
jne 0x594a
movsd 0x190(%r14), %xmm0
movsd 0x198(%r14), %xmm1
mulsd 0x1c8(%r14), %xmm0
movsd %xmm0, 0x1c8(%r14)
cvttsd2si %xmm0, %eax
cltq
movq %rax, 0x1d0(%r14)
mulsd 0x1c0(%r14), %xmm1
movsd %xmm1, 0x1c0(%r14)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5960
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movb $0x1, %r15b
jmp 0x597a
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
callq 0x5a70
movb $0x2, %bpl
jmp 0x597a
movb $0x1, %bpl
testb %r15b, %r15b
jne 0x572b
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5998
jmp 0x5998
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x59b1
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2240
nop