// File: /workspace/github_cpp_makefile_star2_O2/Myyura[P]MyyuraSat/./source/./solver_simplify.cpp
// Function: MyyuraSat::Solver::subsume1(unsigned int)
void Solver::subsume1(CRARef cr) {
    // TODO : flag to turn off
    Vector<CRARef> subs_queue;
    int q;
    for (q = 0, subs_queue.push(cr); q < subs_queue.size(); q++) {
        if (is_removed(subs_queue[q])) { q++; continue; }
        Clause& c = _ca[subs_queue[q]];

        int min_i = 0;
        for (int i = 0; i < c.size(); i++) {
            if (_occur_lit[c[i]].size() < _occur_lit[c[min_i]].size()) {
                min_i = i;
            }
        }

        Vector<CRARef>& crs = _occur_lit[c[min_i]];
        for (int i = 0; i < crs.size(); i++) {
            if (is_removed(crs[i])) { continue; }

            if (cr != crs[i]) {
                Clause& cp = _ca[crs[i]];
                Literal p = c.subsumes(cp);
                if (p != LITERAL_UNDEF && p != LITERAL_ERROR) {
                    // _selfsubsumption_removed++;
                    cp.strengthen(p);
                    subs_queue.push(crs[i]);
                }
            }
        }
    }

    check_garbage();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r15
leaq -0x30(%rbp), %rax
movl %esi, (%rax)
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %rdi
movaps %xmm0, (%rdi)
movq %rax, %rsi
callq 0x4ba2
leaq 0xf8(%r15), %rax
movq %rax, -0x48(%rbp)
leaq 0x1a0(%r15), %r14
xorl %r12d, %r12d
movq %r15, -0x68(%rbp)
movq %r14, -0x50(%rbp)
cmpl -0x38(%rbp), %r12d
jge 0x42c1
movq -0x40(%rbp), %rax
movslq %r12d, %rbx
movl (%rax,%rbx,4), %esi
movq %r15, %rdi
callq 0x4d76
testb %al, %al
je 0x41a7
incl %r12d
jmp 0x42b9
movq %r12, -0x70(%rbp)
movq -0x40(%rbp), %rax
movl (%rax,%rbx,4), %esi
movq -0x48(%rbp), %rdi
callq 0x5a5e
movq %rax, %r12
addq $0x4, %r12
xorl %r14d, %r14d
movq %r12, -0x58(%rbp)
movq %r12, %rsi
xorl %r12d, %r12d
movq %rax, -0x60(%rbp)
movl (%rax), %eax
shrl $0x5, %eax
movslq %r12d, %r15
cmpq %rax, %r14
jae 0x4224
movl %r12d, -0x2c(%rbp)
movq -0x50(%rbp), %r13
movq %r13, %rdi
movq %rsi, %r12
callq 0x4ce4
movl 0x8(%rax), %ebx
movq -0x58(%rbp), %rax
leaq (%rax,%r15,4), %rsi
movq %r13, %rdi
callq 0x4ce4
movl %r14d, %ecx
cmpl 0x8(%rax), %ebx
jl 0x4211
movl -0x2c(%rbp), %ecx
incq %r14
movq %r12, %rsi
addq $0x4, %rsi
movl %ecx, %r12d
movq -0x60(%rbp), %rax
jmp 0x41d3
movq -0x58(%rbp), %rax
leaq (%rax,%r15,4), %rsi
movq -0x50(%rbp), %rdi
callq 0x4ce4
movq %rax, %r12
xorl %ebx, %ebx
xorl %r13d, %r13d
movq -0x68(%rbp), %r15
movslq 0x8(%r12), %rax
cmpq %rax, %r13
jge 0x42b5
movq (%r12), %rax
movl (%rax,%rbx), %esi
movq %r15, %rdi
callq 0x4d76
testb %al, %al
jne 0x42ac
movq (%r12), %rax
movl (%rax,%rbx), %esi
cmpl %esi, -0x30(%rbp)
je 0x42ac
movq -0x48(%rbp), %rdi
callq 0x5a5e
movq %rax, %r14
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x55be
cmpl 0x8ed4(%rip), %eax      # 0xd15c
je 0x42ac
cmpl 0x8ed0(%rip), %eax      # 0xd160
je 0x42ac
movq %r14, %rdi
movl %eax, %esi
callq 0x569a
movq (%r12), %rsi
addq %rbx, %rsi
leaq -0x40(%rbp), %rdi
callq 0x4ba2
incq %r13
addq $0x4, %rbx
jmp 0x4241
movq -0x70(%rbp), %r12
incl %r12d
jmp 0x417f
movq %r15, %rdi
callq 0x5688
leaq -0x40(%rbp), %rdi
callq 0x501c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x42ef
jmp 0x42ef
jmp 0x42ef
jmp 0x42ef
jmp 0x42ef
jmp 0x42ef
jmp 0x42ef
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x501c
movq %rbx, %rdi
callq 0x2250
nop