// File: /workspace/github_cpp_makefile_star2_O3/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), %rax
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rdx, %rax
jae 0x3397
movq %rdi, %rbx
leaq 0x120(%rdi), %rdx
movq %rdx, 0x20(%rsp)
movq $0x0, (%rsp)
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movl (%rcx,%rax,4), %r12d
movl %r12d, 0x8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4718
movq %rax, %rbp
movq (%rax), %r15
cmpq 0x8(%rax), %r15
je 0x3365
movq %r15, %r13
movl 0x8(%r15), %edi
movl %edi, %eax
sarl %eax
movslq %eax, %rcx
movq 0x68(%rbx), %rax
movb (%rax,%rcx), %cl
cmpb $0x2, %cl
je 0x31eb
movl %edi, %edx
andb $0x1, %dl
xorb %dl, %cl
cmpb $0x1, %cl
jne 0x31eb
movl 0x8(%r15), %eax
movl %eax, 0x8(%r13)
movq (%r15), %rax
addq $0x10, %r15
movq %rax, (%r13)
addq $0x10, %r13
cmpq 0x8(%rbp), %r15
jne 0x31a6
jmp 0x335f
movq (%r15), %rdx
movq (%rdx), %rcx
movl (%rcx), %esi
movl %esi, %r8d
xorl %r12d, %r8d
cmpl $0x1, %r8d
jne 0x320c
movl 0x4(%rcx), %r8d
movl %r8d, (%rcx)
movl %esi, 0x4(%rcx)
movl %r8d, %esi
addq $0x10, %r15
movq %rdx, 0x8(%rsp)
movl %esi, 0x10(%rsp)
cmpl %edi, %esi
jne 0x32b6
movq 0x8(%rdx), %rdi
subq %rcx, %rdi
sarq $0x2, %rdi
cmpq $0x3, %rdi
jb 0x325e
movl $0x2, %r8d
movl (%rcx,%r8,4), %r9d
movl %r9d, %r10d
sarl %r10d
movslq %r10d, %r10
movl %r9d, %r11d
andb $0x1, %r11b
cmpb %r11b, (%rax,%r10)
jne 0x330d
incq %r8
cmpq %r8, %rdi
jne 0x3238
leaq 0x10(%r13), %r14
movl 0x10(%rsp), %eax
movl %eax, 0x8(%r13)
movq 0x8(%rsp), %rax
movq %rax, (%r13)
movl %esi, %eax
sarl %eax
cltq
movq 0x68(%rbx), %rcx
movl %esi, %edi
andb $0x1, %dil
cmpb %dil, (%rcx,%rax)
jne 0x32f1
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
sarq $0x2, %rax
movq %rax, (%rbx)
cmpq 0x8(%rbp), %r15
je 0x3301
movl 0x8(%r15), %eax
movl %eax, 0x8(%r14)
movq (%r15), %rax
addq $0x10, %r15
movq %rax, (%r14)
addq $0x10, %r14
jmp 0x3298
movl %esi, %edi
sarl %edi
movslq %edi, %rdi
movb (%rax,%rdi), %dil
cmpb $0x2, %dil
je 0x3221
movl %esi, %r8d
andb $0x1, %r8b
xorb %r8b, %dil
cmpb $0x1, %dil
jne 0x3221
movl 0x10(%rsp), %eax
movl %eax, 0x8(%r13)
movq 0x8(%rsp), %rax
jmp 0x31d8
movq %rbx, %rdi
callq 0x30d0
movq %r14, %r13
jmp 0x31e0
movq %r14, %r13
movq %rdx, (%rsp)
jmp 0x31e0
movl 0x4(%rcx), %eax
movl %r9d, 0x4(%rcx)
movl %eax, (%rcx,%r8,4)
movl 0x4(%rcx), %eax
xorl $0x1, %eax
movl %eax, 0x1c(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x1c(%rsp), %rsi
callq 0x4718
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0x334d
movups 0x8(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rax)
jmp 0x31e0
movq %rax, %rdi
leaq 0x8(%rsp), %rdx
callq 0x4a28
jmp 0x31e0
movq (%rbp), %r15
jmp 0x3368
movq %r15, %r13
subq %r15, %r13
sarq $0x4, %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x46e4
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rdx, %rax
jb 0x3174
jmp 0x339f
movq $0x0, (%rsp)
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq