// File: /workspace/github_cpp_makefile_star2_O2/jacky860226[P]JinkelaSat/src/include/JinkelaSat.hpp
// Function: MiniSat::JinkelaSat::propagate()
Clause *propagate() {
    Clause *confl = nullptr;
    int num_props = 0;
    while (qhead < trail.size()) {
      Literal p = trail[qhead++];
      std::vector<Watcher> &ws = watches[p];
      std::vector<Watcher>::iterator i, j;
      for (i = j = ws.begin(); i != ws.end();) {
        Literal blocker = i->blocker;
        if (value(blocker) == Status::True) {
          *j++ = *i++;
          continue;
        }
        auto cr = i->cref;
        Clause &c = *cr;
        if (c[0] == ~p)
          std::swap(c[0], c[1]);
        ++i;

        Literal first = c[0];
        Watcher w = Watcher(cr, first);
        if (first != blocker && value(first) == Status::True) {
          *j++ = w;
          continue;
        }

        for (size_t k = 2; k < c.size(); k++) {
          if (value(c[k]) != Status::False) {
            std::swap(c[1], c[k]);
            watches[~c[1]].emplace_back(w);
            goto NextClause;
          }
        }
        *j++ = w;
        if (value(first) == Status::False) {
          confl = cr;
          qhead = trail.size();
          while (i != ws.end())
            *j++ = *i++;
        } else
          uncheckedEnqueue(first, cr);
      NextClause:;
      }
      ws.resize(j - ws.begin());
    }
    simpDB_props -= num_props;
    return confl;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x120(%rdi), %rax
movq %rax, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rdx, %rax
jae 0x2f9c
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movl (%rcx,%rax,4), %eax
movl %eax, 0x10(%rsp)
movl %eax, (%rsp)
movq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x4794
movq %rax, %rbp
movq (%rax), %rsi
movq %rsi, %r12
xorl %ecx, %ecx
leaq (%r12,%rcx), %rax
cmpq 0x8(%rbp), %rax
je 0x2f84
leaq (%rsi,%rcx), %r15
movl 0x8(%r12,%rcx), %r9d
movl %r9d, %edx
sarl %edx
movslq %edx, %rdx
movq 0x68(%rbx), %rdi
movb (%rdi,%rdx), %dl
cmpb $0x2, %dl
je 0x2e25
movl %r9d, %r8d
andb $0x1, %r8b
xorb %r8b, %dl
cmpb $0x1, %dl
jne 0x2e25
movl 0x8(%rax), %edx
movl %edx, 0x8(%r15)
movq (%rax), %rax
movq %rax, (%r15)
addq $0x10, %rcx
jmp 0x2dd8
movq (%r12,%rcx), %rdx
movq (%rdx), %r8
movl (%r8), %eax
movl %eax, %r10d
xorl 0x10(%rsp), %r10d
cmpl $0x1, %r10d
jne 0x2e4b
movl 0x4(%r8), %r10d
movl %r10d, (%r8)
movl %eax, 0x4(%r8)
movl %r10d, %eax
addq %rcx, %r12
addq $0x10, %r12
movq %rdx, (%rsp)
movl %eax, 0x8(%rsp)
cmpl %r9d, %eax
jne 0x2e96
movq 0x8(%rdx), %r9
subq %r8, %r9
sarq $0x2, %r9
pushq $0x2
popq %r10
cmpq %r9, %r10
jae 0x2ed5
movl (%r8,%r10,4), %r11d
movl %r11d, %r14d
sarl %r14d
movslq %r14d, %r14
movl %r11d, %r13d
andb $0x1, %r13b
cmpb %r13b, (%rdi,%r14)
jne 0x2f32
incq %r10
jmp 0x2e6e
movl %eax, %r9d
sarl %r9d
movslq %r9d, %r9
movb (%rdi,%r9), %r9b
cmpb $0x2, %r9b
je 0x2e5f
movl %eax, %r10d
andb $0x1, %r10b
xorb %r10b, %r9b
cmpb $0x1, %r9b
jne 0x2e5f
movl 0x8(%rsp), %eax
movl %eax, 0x8(%r15)
movq (%rsp), %rax
movq %rax, (%r15)
leaq (%rsi,%rcx), %r15
addq $0x10, %r15
jmp 0x2f7c
leaq (%rsi,%rcx), %r14
addq $0x10, %r14
movl 0x8(%rsp), %ecx
movl %ecx, 0x8(%r15)
movq (%rsp), %rcx
movq %rcx, (%r15)
movl %eax, %ecx
sarl %ecx
movslq %ecx, %rcx
movq 0x68(%rbx), %rsi
movl %eax, %edi
andb $0x1, %dil
cmpb %dil, (%rsi,%rcx)
jne 0x2f65
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
sarq $0x2, %rax
movq %rax, (%rbx)
cmpq 0x8(%rbp), %r12
je 0x2f74
movl 0x8(%r12), %eax
movl %eax, 0x8(%r14)
movq (%r12), %rax
addq $0x10, %r12
movq %rax, (%r14)
addq $0x10, %r14
jmp 0x2f12
movl 0x4(%r8), %eax
movl %r11d, 0x4(%r8)
movl %eax, (%r8,%r10,4)
movl 0x4(%r8), %eax
xorl $0x1, %eax
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x4794
movq %rax, %rdi
movq %rsp, %rsi
callq 0x4728
jmp 0x2f7c
movq %rbx, %rdi
movl %eax, %esi
callq 0x2d24
movq %r14, %r15
jmp 0x2f7c
movq %r14, %r15
movq %rdx, 0x18(%rsp)
movq %r15, %rsi
jmp 0x2dd6
subq (%rbp), %rsi
addq %rcx, %rsi
sarq $0x4, %rsi
movq %rbp, %rdi
callq 0x4760
jmp 0x2d94
movq 0x18(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq