// File: /workspace/github_cpp_makefile_star2_O1/jacky860226[P]JinkelaSat/src/include/JinkelaSat.hpp
// Function: MiniSat::JinkelaSat::addClause(std::vector<MiniSat::Literal, std::allocator<MiniSat::Literal>>&&)
bool addClause(std::vector<Literal> &&ps) {
    if (!ok)
      return false;
    for (Literal p : ps)
      while (p.var() >= int(nVars()))
        newVar();
    std::sort(ps.begin(), ps.end());
    Literal p;
    size_t j = 0;
    for (Literal l : ps) {
      if (value(l) == Status::True || l == ~p) {
        return true;
      } else if (value(l) != Status::False && l != p) {
        ps[j++] = p = l;
      }
    }
    ps.resize(j), ps.shrink_to_fit();
    if (ps.empty())
      return ok = false;
    else if (ps.size() == 1) {
      uncheckedEnqueue(ps[0]);
      return ok = (propagate() == nullptr);
    } else {
      clauses.emplace_back(new Clause(std::move(ps), false));
      attachClause(clauses.back().get());
    }
    return true;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x1, 0x208(%rdi)
jne 0x29a1
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
movq 0x8(%rsi), %r12
cmpq %r12, %r15
je 0x2865
movl (%r15), %ebp
sarl %ebp
cmpl 0x1e8(%rbx), %ebp
jl 0x285f
movq %rbx, %rdi
callq 0x3004
jmp 0x284d
addq $0x4, %r15
jmp 0x2843
movq (%r14), %r15
movq 0x8(%r14), %r12
cmpq %r12, %r15
je 0x289e
movq %r12, %rax
subq %r15, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x40c1
movq %r15, %rdi
movq %r12, %rsi
callq 0x41a4
movq (%r14), %rcx
movq 0x8(%r14), %rdx
cmpq %rdx, %rcx
sete %al
je 0x2939
movq 0x68(%rbx), %rdi
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %esi, %esi
movl $0x2, %r8d
movq %rcx, %r10
movl (%r10), %r11d
movl %r11d, %ebp
sarl %ebp
movslq %ebp, %r15
movb (%rdi,%r15), %bpl
movl %r11d, %r15d
andb $0x1, %r15b
xorb %bpl, %r15b
cmpb $0x2, %bpl
movzbl %r15b, %r15d
cmovel %r8d, %r15d
cmpb $0x1, %r15b
setne %r12b
movl %r11d, %ebp
xorl %r9d, %ebp
cmpl $0x1, %ebp
setne %bpl
andb %r12b, %bpl
cmpb $0x1, %bpl
jne 0x2926
testb %r15b, %r15b
sete %r15b
cmpl %r9d, %r11d
sete %r12b
orb %r15b, %r12b
jne 0x2926
movl %r11d, (%rcx,%rsi,4)
incq %rsi
movl %r11d, %r9d
testb %bpl, %bpl
je 0x293b
addq $0x4, %r10
cmpq %rdx, %r10
sete %al
jne 0x28c6
jmp 0x293b
xorl %esi, %esi
movb $0x1, %bpl
testb $0x1, %al
je 0x29a3
movq %r14, %rdi
callq 0x30c4
movq 0x10(%r14), %rax
cmpq 0x8(%r14), %rax
je 0x295c
movq %r14, %rdi
callq 0x456e
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0x299a
movq %r13, %rax
subq %r12, %rax
cmpq $0x4, %rax
jne 0x29b4
movl (%r12), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x30f6
movq %rbx, %rdi
callq 0x315a
testq %rax, %rax
sete %bpl
sete 0x208(%rbx)
jmp 0x29a3
movb $0x0, 0x208(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rbx), %r15
movl $0x20, %edi
callq 0x2170
movq %r12, (%rax)
movq %r13, 0x8(%rax)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movb $0x0, 0x18(%rax)
movl $0x0, 0x1c(%rax)
movq %rsp, %rsi
movq %rax, (%rsi)
movq %r15, %rdi
callq 0x3430
movq 0x28(%rbx), %rax
movq -0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x3460
jmp 0x29a3
nop