// File: /workspace/github_cpp_makefile_star2_O1/canzarlab[P]Trajan/src/LPInt.cpp
// Function: LPInt::Solve(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void LPInt::Solve(string filename, string outScoreFile)
{
    int cnt = 1;
    for (int i = 0; cnt; i++)
    {
        Timer T_lp, T_cross, T_indep;
        T_lp.start();
        SolveLP();
        WriteSolution(filename);
        T_lp.stop();
        clog << ">>> Time for solve: \t\t" << T_lp.secs() << " secs" << endl;
        if (cf == 0)
            break;

        vector<ii> E;
        for (size_t i = 0; i < K.size(); i++)
            for (size_t j = 0; j < K[i].size(); j++)
                if (K[i][j] != -1 && x(K[i][j]) > 1-1e-1)
                    E.emplace_back(i, j);

        cnt = 0;
        for (int i = 0; i < E.size(); ++i)
            for (int j = i + 1; j < E.size(); ++j)
                if (!CC(E[i], E[j]))
                    AddConstraint(E[i], E[j]), cnt++;
        clog << "Added " << cnt << " rows." << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, 0x40(%rsp)
movq %rdi, %r14
leaq 0xa0(%rsp), %r12
leaq 0x60(%rsp), %r15
movl $0x1, 0xc(%rsp)
movq 0x41405(%rip), %r13     # 0x87f78
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
cmpl $0x0, 0xc(%rsp)
je 0x46f33
movb $0x0, 0xa8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0x9580
movb $0x1, 0xa8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
movq %r15, 0x50(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0xda94
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x18(%rax)
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x46bfd
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x90(%rsp), %rdi
movq %r12, %rsi
callq 0x9580
movb $0x0, 0xa8(%rsp)
movq 0x90(%rsp), %rax
subq 0x80(%rsp), %rax
movq 0x98(%rsp), %rbx
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
subq 0x88(%rsp), %rbx
addq %rax, %rbx
addq 0x70(%rsp), %rbx
movq %rbx, 0x70(%rsp)
movl $0x16, %edx
movq %r13, %rdi
leaq 0x28648(%rip), %rsi     # 0x6f2a0
callq 0x93a0
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
divsd 0x153bb(%rip), %xmm0    # 0x5c028
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x9560
movq %rax, %rbx
movl $0x5, %edx
movq %rax, %rdi
leaq 0x155fd(%rip), %rsi     # 0x5c28c
callq 0x93a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
leaq 0x4173e(%rip), %rax     # 0x88400
movl (%rax), %eax
movl %eax, 0x3c(%rsp)
testl %eax, %eax
je 0x46f28
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq 0xe8(%r14), %rax
cmpq 0xe0(%r14), %rax
leaq 0x10(%rsp), %rbx
leaq 0x28(%rsp), %r15
leaq 0x30(%rsp), %r12
je 0x46dc9
movq $0x0, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq 0xe0(%r14), %rdx
leaq (%rax,%rax,2), %rsi
movq (%rdx,%rsi,8), %rcx
cmpq %rcx, 0x8(%rdx,%rsi,8)
je 0x46da2
xorl %edx, %edx
movslq (%rcx,%rdx,4), %rax
cmpq $-0x1, %rax
je 0x46d70
testl %eax, %eax
js 0x46f45
cmpq %rax, 0xc8(%r14)
jle 0x46f45
movq 0xc0(%r14), %rcx
movsd (%rcx,%rax,8), %xmm0
ucomisd 0x16bb0(%rip), %xmm0    # 0x5d910
jbe 0x46d70
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4797c
movq 0x30(%rsp), %rdx
incq %rdx
movq %rdx, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq 0xe0(%r14), %rsi
leaq (%rax,%rax,2), %rdi
movq (%rsi,%rdi,8), %rcx
movq 0x8(%rsi,%rdi,8), %rsi
subq %rcx, %rsi
sarq $0x2, %rsi
cmpq %rsi, %rdx
jb 0x46d2d
incq %rax
movq %rax, 0x28(%rsp)
movq 0xe8(%r14), %rcx
subq 0xe0(%r14), %rcx
sarq $0x3, %rcx
imulq %rbp, %rcx
cmpq %rcx, %rax
jb 0x46d07
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0x46e8d
xorl %r12d, %r12d
movl $0x1, %r15d
movl $0x8, %ebp
movl $0x0, 0xc(%rsp)
leaq 0x1(%r12), %rdx
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movq %rdx, 0x48(%rsp)
cmpq %rdx, %rcx
jbe 0x46e68
movq %rbp, %r13
movq %r15, %rbx
movl (%rax,%r12,8), %ecx
movl 0x4(%rax,%r12,8), %esi
movl (%rax,%r13), %r8d
movl 0x4(%rax,%r13), %edx
movq %r14, %rdi
callq 0x34be6
testb %al, %al
jne 0x46e4b
movq 0x10(%rsp), %rdx
leaq (%rdx,%r12,8), %rsi
addq %r13, %rdx
movq %r14, %rdi
callq 0x46fb2
incl 0xc(%rsp)
incq %rbx
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
addq $0x8, %r13
cmpq %rbx, %rcx
ja 0x46e15
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x3, %rax
incq %r15
addq $0x8, %rbp
movq 0x48(%rsp), %r12
cmpq %r12, %rax
ja 0x46def
jmp 0x46e95
movl $0x0, 0xc(%rsp)
movl $0x6, %edx
movq 0x410d7(%rip), %r13     # 0x87f78
movq %r13, %rdi
leaq 0x2845f(%rip), %rsi     # 0x6f30a
callq 0x93a0
movq %r13, %rdi
movl 0xc(%rsp), %esi
callq 0x9640
movq %rax, %rbx
movl $0x6, %edx
movq %rax, %rdi
leaq 0x28443(%rip), %rsi     # 0x6f311
callq 0x93a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
leaq 0x60(%rsp), %r15
leaq 0xa0(%rsp), %r12
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
je 0x46f28
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
cmpl $0x0, 0x3c(%rsp)
jne 0x46b7d
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x162d9(%rip), %rdi     # 0x5d225
leaq 0x162ef(%rip), %rsi     # 0x5d242
leaq 0x1630b(%rip), %rcx     # 0x5d265
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x9200
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x46f99
movq 0x60(%rsp), %rsi
incq %rsi
jmp 0x46f94
jmp 0x46f7f
jmp 0x46f7f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x46f99
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movq %rbx, %rdi
callq 0x9670
nop