// File: /workspace/github_cpp_makefile_star2_O2/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, 0x38(%rsp)
movq %rdi, %r14
leaq 0xc0(%rdi), %r15
pushq $0x1
popq %r13
leaq 0x50(%rsp), %rbx
leaq 0x8(%rsp), %rbp
testl %r13d, %r13d
je 0x40538
movb $0x0, 0x88(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq %rbx, %rdi
callq 0xb808
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
leaq 0x98(%rsp), %r12
movq %r12, %rdi
movq 0x38(%rsp), %rsi
callq 0x9470
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq %r12, %rdi
callq 0x9708
movq %rbx, %rdi
callq 0xba34
movq 0x56c1e(%rip), %rdi     # 0x96f70
leaq 0x2c62b(%rip), %rsi     # 0x6c984
callq 0x9330
cvtsi2sdq 0x50(%rsp), %xmm0
divsd 0x10cbb(%rip), %xmm0    # 0x51028
cvtsd2ss %xmm0, %xmm0
movq %rax, %rdi
callq 0x9270
movq %rax, %rdi
leaq 0x10f09(%rip), %rsi     # 0x5128c
callq 0x9330
movq %rax, %rdi
callq 0x9170
leaq 0x57059(%rip), %rax     # 0x973f0
cmpl $0x0, (%rax)
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r13
je 0x40538
andq $0x0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0xe0(%r14), %rcx
xorl %esi, %esi
pushq $0x18
popq %rbx
movq %rsi, 0x30(%rsp)
movq 0xe8(%r14), %rax
subq %rcx, %rax
cqto
idivq %rbx
cmpq %rax, %rsi
jae 0x40449
xorl %eax, %eax
movq %rax, 0x8(%rsp)
imulq $0x18, %rsi, %rdi
movq (%rcx,%rdi), %rdx
movq 0x8(%rcx,%rdi), %rdi
subq %rdx, %rdi
sarq $0x2, %rdi
cmpq %rdi, %rax
jae 0x40441
movslq (%rdx,%rax,4), %rsi
cmpq $-0x1, %rsi
je 0x4042b
movq %r15, %rdi
callq 0xd27a
movsd (%rax), %xmm0
ucomisd 0x1341d(%rip), %xmm0    # 0x53838
jbe 0x4042b
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x40a64
movq 0x8(%rsp), %rax
incq %rax
movq 0x30(%rsp), %rsi
movq 0xe0(%r14), %rcx
jmp 0x403df
incq %rsi
jmp 0x403c4
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rax
xorl %ebx, %ebx
pushq $0x8
popq %r12
pushq $0x1
popq %rcx
movq %rcx, 0x28(%rsp)
xorl %r13d, %r13d
movq %rax, %rcx
subq %rdx, %rcx
sarq $0x3, %rcx
cmpq %rbx, %rcx
jbe 0x404ef
leaq 0x1(%rbx), %rcx
movq %rcx, 0x40(%rsp)
movq %r12, 0x48(%rsp)
movq 0x28(%rsp), %rbp
movq %rax, %rcx
subq %rdx, %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
jbe 0x404d2
leaq (%rdx,%rbx,8), %rsi
addq %r12, %rdx
movq %r14, %rdi
callq 0x40576
testb %al, %al
jne 0x404bf
movq 0x10(%rsp), %rdx
leaq (%rdx,%rbx,8), %rsi
addq %r12, %rdx
movq %r14, %rdi
callq 0x40586
incl %r13d
incq %rbp
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rax
addq $0x8, %r12
jmp 0x40486
incq 0x28(%rsp)
movq 0x48(%rsp), %r12
addq $0x8, %r12
movq 0x40(%rsp), %rbx
leaq 0x8(%rsp), %rbp
jmp 0x40464
movq 0x56a7a(%rip), %rdi     # 0x96f70
leaq 0x2c4f1(%rip), %rsi     # 0x6c9ee
callq 0x9330
movq %rax, %rdi
movl %r13d, %esi
callq 0x9610
movq %rax, %rdi
leaq 0x2c4de(%rip), %rsi     # 0x6c9f5
callq 0x9330
movq %rax, %rdi
callq 0x9170
leaq 0x10(%rsp), %rdi
callq 0x41e0c
leaq 0x50(%rsp), %rbx
jmp 0x402f0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x9708
jmp 0x4056d
jmp 0x40560
jmp 0x40560
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x41e0c
movq %rbx, %rdi
callq 0x9640
nop