// File: conp-solutions[P]cnfmiter/AtLeastTwoSolutions.cc
// Function: generate_equivalence(CNFMITER::Formula&, CNFMITER::Lit, CNFMITER::Lit, CNFMITER::Lit)
void generate_equivalence(Formula &f, Lit a, Lit b, Lit c)
{
    static std::vector<Lit> C(3, a);

    C[0] = a;
    C[1] = b;
    C[2] = c;
    f.addClause_(C);

    C[0] = ~a;
    C[1] = ~b;
    C[2] = c;
    f.addClause_(C);

    C[0] = a;
    C[1] = ~b;
    C[2] = ~c;
    f.addClause_(C);

    C[0] = ~a;
    C[1] = b;
    C[2] = ~c;
    f.addClause_(C);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %esi, -0x4(%rbp)
movl %edx, -0x8(%rbp)
movl %ecx, -0xc(%rbp)
movq %rdi, -0x18(%rbp)
cmpb $0x0, 0x8d8c(%rip)      # 0xb198
jne 0x2476
leaq 0x8d83(%rip), %rdi      # 0xb198
callq 0x2290
cmpl $0x0, %eax
je 0x2476
leaq -0x19(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x40c0
movq -0x68(%rbp), %rcx
leaq 0x8d49(%rip), %rdi      # 0xb180
movl $0x3, %esi
leaq -0x4(%rbp), %rdx
callq 0x40e0
jmp 0x2447
leaq -0x19(%rbp), %rdi
callq 0x4160
leaq 0x1d29(%rip), %rdi      # 0x4180
leaq 0x8d22(%rip), %rsi      # 0xb180
leaq 0x8cfb(%rip), %rdx      # 0xb160
callq 0x2110
leaq 0x8d27(%rip), %rdi      # 0xb198
callq 0x20d0
leaq 0x8d03(%rip), %rdi      # 0xb180
xorl %eax, %eax
movl %eax, %esi
callq 0x41e0
movl -0x4(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x8cee(%rip), %rdi      # 0xb180
movl $0x1, %esi
callq 0x41e0
movl -0x8(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x8cd8(%rip), %rdi      # 0xb180
movl $0x2, %esi
callq 0x41e0
movl -0xc(%rbp), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
leaq 0x8cbe(%rip), %rsi      # 0xb180
callq 0x4200
movl -0x4(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %edi
callq 0x4230
movl %eax, -0x30(%rbp)
leaq 0x8ca1(%rip), %rdi      # 0xb180
xorl %eax, %eax
movl %eax, %esi
callq 0x41e0
movl -0x30(%rbp), %ecx
movl %ecx, (%rax)
movl -0x8(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %edi
callq 0x4230
movl %eax, -0x38(%rbp)
leaq 0x8c7b(%rip), %rdi      # 0xb180
movl $0x1, %esi
callq 0x41e0
movl -0x38(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x8c65(%rip), %rdi      # 0xb180
movl $0x2, %esi
callq 0x41e0
movl -0xc(%rbp), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
leaq 0x8c4b(%rip), %rsi      # 0xb180
callq 0x4200
leaq 0x8c3f(%rip), %rdi      # 0xb180
xorl %eax, %eax
movl %eax, %esi
callq 0x41e0
movl -0x4(%rbp), %ecx
movl %ecx, (%rax)
movl -0x8(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %edi
callq 0x4230
movl %eax, -0x40(%rbp)
leaq 0x8c19(%rip), %rdi      # 0xb180
movl $0x1, %esi
callq 0x41e0
movl -0x40(%rbp), %ecx
movl %ecx, (%rax)
movl -0xc(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %edi
callq 0x4230
movl %eax, -0x48(%rbp)
leaq 0x8bf2(%rip), %rdi      # 0xb180
movl $0x2, %esi
callq 0x41e0
movl -0x48(%rbp), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
leaq 0x8bd8(%rip), %rsi      # 0xb180
callq 0x4200
movl -0x4(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %edi
callq 0x4230
movl %eax, -0x50(%rbp)
leaq 0x8bbb(%rip), %rdi      # 0xb180
xorl %eax, %eax
movl %eax, %esi
callq 0x41e0
movl -0x50(%rbp), %ecx
movl %ecx, (%rax)
leaq 0x8ba6(%rip), %rdi      # 0xb180
movl $0x1, %esi
callq 0x41e0
movl -0x8(%rbp), %ecx
movl %ecx, (%rax)
movl -0xc(%rbp), %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %edi
callq 0x4230
movl %eax, -0x58(%rbp)
leaq 0x8b7f(%rip), %rdi      # 0xb180
movl $0x2, %esi
callq 0x41e0
movl -0x58(%rbp), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rdi
leaq 0x8b65(%rip), %rsi      # 0xb180
callq 0x4200
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x4160
leaq 0x8b56(%rip), %rdi      # 0xb198
callq 0x20c0
movq -0x28(%rbp), %rdi
callq 0x2260