// File: /workspace/github_cpp_makefile_star2_O3/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 $0xa8, %rsp
movq %rsi, 0x28(%rsp)
movq %rdi, %r14
leaq 0x90(%rsp), %rbx
leaq 0x50(%rsp), %r15
movq 0x3fc5d(%rip), %r13     # 0x85f78
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
movb $0x0, 0x98(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x9590
movb $0x1, 0x98(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
movq %r15, 0x40(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0xda46
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x46399
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x9590
movb $0x0, 0x98(%rsp)
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rbx
subq 0x70(%rsp), %rax
subq 0x78(%rsp), %rbx
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
addq %rax, %rbx
addq 0x60(%rsp), %rbx
movl $0x16, %edx
movq %r13, %rdi
leaq 0x27a67(%rip), %rsi     # 0x6de50
callq 0x93b0
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
divsd 0x15c2a(%rip), %xmm0    # 0x5c028
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r13, %rdi
callq 0x9570
movq %rax, %rbx
movl $0x5, %edx
movq %rax, %rdi
leaq 0x15e6c(%rip), %rsi     # 0x5c28c
callq 0x93b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
leaq 0x3ffb5(%rip), %rax     # 0x86408
cmpl $0x0, (%rax)
movq %rsp, %rbx
leaq 0x20(%rsp), %r15
leaq 0x18(%rsp), %r12
je 0x46699
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movq 0xe0(%r14), %rax
movq 0xe8(%r14), %rdx
cmpq %rax, %rdx
je 0x465fc
xorl %ecx, %ecx
movq $0x0, 0x18(%rsp)
leaq (%rcx,%rcx,2), %rdi
movq (%rax,%rdi,8), %rsi
cmpq %rsi, 0x8(%rax,%rdi,8)
je 0x4652b
xorl %edx, %edx
movslq (%rsi,%rdx,4), %rsi
cmpq $-0x1, %rsi
je 0x46503
testl %esi, %esi
js 0x466ab
cmpq %rsi, 0xc8(%r14)
jle 0x466ab
movq 0xc0(%r14), %rdi
movsd (%rdi,%rsi,8), %xmm0
ucomisd 0x17356(%rip), %xmm0    # 0x5d838
jbe 0x46503
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4709c
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0xe0(%r14), %rax
incq %rdx
movq %rdx, 0x18(%rsp)
leaq (%rcx,%rcx,2), %rdi
movq (%rax,%rdi,8), %rsi
movq 0x8(%rax,%rdi,8), %rdi
subq %rsi, %rdi
sarq $0x2, %rdi
cmpq %rdi, %rdx
jb 0x464af
movq 0xe8(%r14), %rdx
incq %rcx
movq %rcx, 0x20(%rsp)
movq %rdx, %rsi
subq %rax, %rsi
sarq $0x3, %rsi
imulq %rbp, %rsi
cmpq %rsi, %rcx
jb 0x46495
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq %rax, %rcx
je 0x465fc
xorl %r12d, %r12d
movl $0x1, %ebx
movl $0x8, %ebp
xorl %r15d, %r15d
leaq 0x1(%r12), %rsi
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movq %rsi, 0x30(%rsp)
cmpq %rsi, %rdx
movq %rbx, 0x38(%rsp)
jbe 0x465e0
movq %rbp, %r13
movl (%rax,%r12,8), %ecx
movl 0x4(%rax,%r12,8), %esi
movl (%rax,%r13), %r8d
movl 0x4(%rax,%r13), %edx
movq %r14, %rdi
callq 0x3417c
testb %al, %al
jne 0x465c1
movq (%rsp), %rdx
leaq (%rdx,%r12,8), %rsi
addq %r13, %rdx
movq %r14, %rdi
callq 0x46716
incl %r15d
incq %rbx
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
addq $0x8, %r13
cmpq %rbx, %rdx
ja 0x4658d
movq 0x38(%rsp), %rbx
incq %rbx
addq $0x8, %rbp
movq 0x30(%rsp), %r12
cmpq %r12, %rdx
ja 0x4656c
jmp 0x465ff
xorl %r15d, %r15d
movl $0x6, %edx
movq 0x3f96d(%rip), %r13     # 0x85f78
movq %r13, %rdi
leaq 0x278a5(%rip), %rsi     # 0x6deba
callq 0x93b0
movq %r13, %rdi
movl %r15d, %esi
callq 0x9650
movq %rax, %rbx
movl $0x6, %edx
movq %rax, %rdi
leaq 0x2788a(%rip), %rsi     # 0x6dec1
callq 0x93b0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
movq (%rsp), %rdi
testq %rdi, %rdi
leaq 0x90(%rsp), %rbx
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
je 0x4668b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
testl %r15d, %r15d
leaq 0x50(%rsp), %r15
jne 0x46325
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x16b93(%rip), %rdi     # 0x5d245
leaq 0x16ba9(%rip), %rsi     # 0x5d262
leaq 0x16bc5(%rip), %rcx     # 0x5d285
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x9200
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x466fe
movq 0x50(%rsp), %rsi
incq %rsi
jmp 0x466f9
jmp 0x466e5
jmp 0x466e5
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x466fe
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movq %rbx, %rdi
callq 0x9680