// File: /workspace/github_cpp_makefile_star2_O2/biotomas[P]ipasir/sat/minisat220/minisat-220/minisat/core/Solver.cc
// Function: Minisat::Solver::propagate()
CRef Solver::propagate()
{
    CRef    confl     = CRef_Undef;
    int     num_props = 0;

    while (qhead < trail.size()){
        Lit            p   = trail[qhead++];     // 'p' is enqueued fact to propagate.
        vec<Watcher>&  ws  = watches.lookup(p);
        Watcher        *i, *j, *end;
        num_props++;

        for (i = j = (Watcher*)ws, end = i + ws.size();  i != end;){
            // Try to avoid inspecting the clause:
            Lit blocker = i->blocker;
            if (value(blocker) == l_True){
                *j++ = *i++; continue; }

            // Make sure the false literal is data[1]:
            CRef     cr        = i->cref;
            Clause&  c         = ca[cr];
            Lit      false_lit = ~p;
            if (c[0] == false_lit)
                c[0] = c[1], c[1] = false_lit;
            assert(c[1] == false_lit);
            i++;

            // If 0th watch is true, then clause is already satisfied.
            Lit     first = c[0];
            Watcher w     = Watcher(cr, first);
            if (first != blocker && value(first) == l_True){
                *j++ = w; continue; }

            // Look for new watch:
            for (int k = 2; k < c.size(); k++)
                if (value(c[k]) != l_False){
                    c[1] = c[k]; c[k] = false_lit;
                    watches[~c[1]].push(w);
                    goto NextClause; }

            // Did not find watch -- clause is unit under assignment:
            *j++ = w;
            if (value(first) == l_False){
                confl = cr;
                qhead = trail.size();
                // Copy the remaining watches:
                while (i < end)
                    *j++ = *i++;
            }else
                uncheckedEnqueue(first, cr);

        NextClause:;
        }
        ws.shrink(i - j);
    }
    propagations += num_props;
    simpDB_props -= num_props;

    return confl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq 0x228(%rdi), %rax
movq %rax, 0x38(%rsp)
pushq $-0x1
popq %rax
movl %eax, 0x20(%rsp)
xorl %ebx, %ebx
movq %rdi, 0x10(%rsp)
movslq 0x2b8(%rdi), %rax
cmpl 0x170(%rdi), %eax
jge 0x433b
movq %rbx, 0x50(%rsp)
leal 0x1(%rax), %ecx
movl %ecx, 0x2b8(%rdi)
movq 0x168(%rdi), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, 0x24(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x24(%rsp), %rsi
callq 0x6a60
movq (%rax), %r13
movq %rax, 0x48(%rsp)
movslq 0x8(%rax), %rax
leaq (,%rax,8), %r15
addq %r13, %r15
movq %r13, %r14
xorl %ebp, %ebp
leaq (%r14,%rbp), %r12
cmpq %r15, %r12
je 0x4313
movl 0x4(%r14,%rbp), %ebx
movl %ebx, %eax
sarl %eax
movq 0x10(%rsp), %rcx
movq 0x1b0(%rcx), %rcx
cltq
movl %ebx, %edx
andb $0x1, %dl
xorb (%rcx,%rax), %dl
movb %dl, 0x18(%rsp)
movzbl 0xa09b(%rip), %esi      # 0xe1e0
leaq 0x18(%rsp), %rdi
callq 0x3652
testb %al, %al
je 0x4162
movq (%r12), %rax
movq %rax, (%r13,%rbp)
addq $0x8, %rbp
jmp 0x410e
movl (%r14,%rbp), %ecx
movq 0x10(%rsp), %rax
movq 0x2d8(%rax), %rax
leaq (%rax,%rcx,4), %r12
movl 0x24(%rsp), %eax
xorl $0x1, %eax
movl 0x4(%r12), %edx
cmpl %eax, %edx
jne 0x4195
movl 0x8(%r12), %edx
movl %edx, 0x4(%r12)
movl %eax, 0x8(%r12)
addq %rbp, %r14
addq $0x8, %r14
movl %ecx, 0x18(%rsp)
movl %edx, 0x1c(%rsp)
cmpl %ebx, %edx
movq %rcx, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movl %eax, 0x28(%rsp)
je 0x41fb
movl %edx, %eax
sarl %eax
movq 0x10(%rsp), %rcx
movq 0x1b0(%rcx), %rcx
cltq
andb $0x1, %dl
xorb (%rcx,%rax), %dl
movb %dl, 0xf(%rsp)
movzbl 0xa008(%rip), %esi      # 0xe1e0
leaq 0xf(%rsp), %rdi
callq 0x3652
testb %al, %al
je 0x41fb
addq %rbp, %r13
addq $0x8, %r13
movq 0x18(%rsp), %rax
movq %rax, -0x8(%r13)
jmp 0x410c
movq %r13, %rax
addq %rbp, %rax
movq %rax, 0x40(%rsp)
pushq $0x2
popq %rbx
movl (%r12), %eax
shrl $0x5, %eax
cmpq %rax, %rbx
jae 0x4288
movl 0x4(%r12,%rbx,4), %eax
movl %eax, %ecx
sarl %ecx
movq 0x10(%rsp), %rdx
movq 0x1b0(%rdx), %rdx
movslq %ecx, %rcx
andb $0x1, %al
xorb (%rdx,%rcx), %al
movb %al, 0xf(%rsp)
movzbl 0x9fa4(%rip), %esi      # 0xe1e1
leaq 0xf(%rsp), %rdi
callq 0x3648
incq %rbx
testb %al, %al
je 0x4209
movl (%r12,%rbx,4), %eax
movl %eax, 0x8(%r12)
movl 0x28(%rsp), %eax
movl %eax, (%r12,%rbx,4)
movslq 0x8(%r12), %rdi
xorq $0x1, %rdi
shlq $0x4, %rdi
movq 0x38(%rsp), %rax
addq (%rax), %rdi
leaq 0x18(%rsp), %rsi
callq 0x6730
movq 0x40(%rsp), %r13
jmp 0x410c
addq %rbp, %r13
addq $0x8, %r13
movq 0x18(%rsp), %rax
movq %rax, -0x8(%r13)
movl 0x2c(%rsp), %ebp
movl %ebp, %eax
sarl %eax
movq 0x10(%rsp), %rbx
movq 0x1b0(%rbx), %rcx
cltq
movl %ebp, %edx
andb $0x1, %dl
xorb (%rcx,%rax), %dl
movb %dl, 0xf(%rsp)
movzbl 0x9f20(%rip), %esi      # 0xe1e1
leaq 0xf(%rsp), %rdi
callq 0x3652
testb %al, %al
je 0x42f6
movl 0x170(%rbx), %eax
movl %eax, 0x2b8(%rbx)
movq 0x30(%rsp), %rcx
cmpq %r15, %r14
jae 0x430a
movq (%r14), %rax
addq $0x8, %r14
movq %rax, (%r13)
addq $0x8, %r13
jmp 0x42e0
movq %rbx, %rdi
movl %ebp, %esi
movq 0x30(%rsp), %rdx
callq 0x4040
jmp 0x410c
movl %ecx, 0x20(%rsp)
jmp 0x410c
movq 0x50(%rsp), %rbx
incl %ebx
subq %r13, %r15
subq %rbp, %r15
shrq $0x3, %r15
movq 0x48(%rsp), %rdi
movl %r15d, %esi
callq 0x6a92
movq 0x10(%rsp), %rdi
jmp 0x40b4
movl %ebx, %eax
addq %rax, 0x100(%rdi)
subq %rax, 0x2c0(%rdi)
movl 0x20(%rsp), %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq