// File: /workspace/github_cpp_makefile_star2_O1/canzarlab[P]Trajan/src/LP.cpp
// Function: LP::SolveLP()
bool LP::SolveLP()
{
    clog << "nr_rows = " << nr_rows << " and nr_cols = " << nr_cols << endl;

    SpMat A(nr_rows, nr_cols);
    A.setFromTriplets(Triplets.begin(), Triplets.end());
    SpMat A_t = A.transpose();
    Vector b = Vector::Ones(nr_rows);

    x = warm_x;
    //x = Vector::Zero(nr_cols);
    y = Vector::Zero(nr_rows);

    Vector c1 = -c;
    PackingJRF simpleJRF(A, b, c1, warm_x, y);
    AugmentedLagrangian solver(simpleJRF, 15);
    solver.setParameter("verbose", false);
    solver.setParameter("pgtol", 1e-1); // should influence running time a lot
    solver.setParameter("constraintsTol", 1e-3);
    Timer timeGeno;
    timeGeno.start();
    solver.solve();
    timeGeno.stop();

    clog << "f = " << solver.f() << " computed in time: " << timeGeno.secs() << " secs" << endl;

    warm_x = x = Vector::ConstMapType(solver.x(), nr_cols);
    y = Vector::ConstMapType(solver.y(), nr_rows);
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
movq 0x5268d(%rip), %r14     # 0x87f78
leaq 0x39a26(%rip), %rsi     # 0x6f318
movl $0xa, %edx
movq %r14, %rdi
callq 0x93a0
movl 0x108(%rbx), %esi
movq %r14, %rdi
callq 0x9640
movq %rax, %r14
leaq 0x39a0c(%rip), %rsi     # 0x6f323
movl $0xf, %edx
movq %rax, %rdi
callq 0x93a0
movl 0x10c(%rbx), %esi
movq %r14, %rdi
callq 0x9640
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movslq 0x108(%rbx), %rsi
movslq 0x10c(%rbx), %rdx
leaq 0xf0(%rsp), %rdi
movb $0x0, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
callq 0x386d2
movq 0x88(%rbx), %rax
leaq 0x88(%rsp), %rdi
movq %rax, (%rdi)
movq 0x90(%rbx), %rax
leaq 0x138(%rsp), %rsi
movq %rax, (%rsi)
leaq 0xf0(%rsp), %r14
leaq 0x1c8(%rsp), %rcx
movq %r14, %rdx
callq 0x387a4
xorl %eax, %eax
leaq 0x88(%rsp), %rsi
movb %al, (%rsi)
movq %r14, 0x8(%rsi)
leaq 0x138(%rsp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
callq 0x39790
movslq 0x108(%rbx), %rax
movq %rax, 0x88(%rsp)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x98(%rsp)
testq %rax, %rax
js 0x36028
leaq 0x8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x377fc
leaq 0xc0(%rbx), %r12
movq 0xa0(%rbx), %r15
movq 0xa8(%rbx), %r14
cmpq %r14, 0xc8(%rbx)
je 0x35a71
testq %r14, %r14
js 0x360b3
movl $0x1, %ecx
movq %r12, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x10056
movq 0xc8(%rbx), %rax
cmpq %r14, %rax
jne 0x36047
movq (%r12), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x35aad
xorl %esi, %esi
movaps (%r15,%rsi,8), %xmm0
movaps %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x35a9b
cmpq %rax, %rdx
jge 0x35ac5
movsd (%r15,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x35ab2
movslq 0x108(%rbx), %r15
testq %r15, %r15
js 0x36028
leaq 0xd0(%rbx), %r14
cmpq %r15, 0xd8(%rbx)
je 0x35af8
movl $0x1, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x10056
movq %r12, (%rsp)
movq 0xd8(%rbx), %rbp
cmpq %r15, %rbp
jne 0x36094
movq %r14, %r13
movq (%r14), %r15
movq %rbp, %r12
shrq $0x3f, %r12
addq %rbp, %r12
movq %r12, %r14
andq $-0x2, %r14
cmpq $0x2, %rbp
jl 0x35b50
cmpq $0x3, %r14
movl $0x2, %eax
cmovgeq %r14, %rax
leaq -0x8(,%rax,8), %rdx
andq $-0x10, %rdx
addq $0x10, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x91c0
cmpq %rbp, %r14
jge 0x35b73
sarq %r12
shlq $0x4, %r12
addq %r12, %r15
shlq $0x3, %rbp
subq %r12, %rbp
movq %r15, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x91c0
leaq 0xf8(%rbx), %rax
leaq 0x88(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x39b9e
movq %r13, %r14
leaq 0xa0(%rbx), %r12
leaq 0x1c8(%rsp), %rsi
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rsi)
leaq 0x8(%rsp), %rax
movq %rax, 0x10(%rsi)
movq %r15, 0x18(%rsi)
movq %r12, 0x20(%rsi)
movq %r13, 0x28(%rsi)
movups 0xf8(%rsp), %xmm0
movups %xmm0, 0x30(%rsi)
leaq 0x508c0(%rip), %rax     # 0x86498
movq %rax, (%rsi)
leaq 0x88(%rsp), %rdi
movl $0xf, %edx
callq 0xdf90
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x26835(%rip), %rsi     # 0x5c432
leaq 0x26835(%rip), %rdx     # 0x5c439
leaq 0x58(%rsp), %rdi
callq 0xdb24
leaq 0x88(%rsp), %rdi
leaq 0x58(%rsp), %rsi
xorps %xmm0, %xmm0
callq 0xee5a
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x35c3a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x267c6(%rip), %rsi     # 0x5c410
leaq 0x267c4(%rip), %rdx     # 0x5c415
leaq 0x38(%rsp), %rdi
callq 0xdb24
leaq 0x88(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movsd 0x27ca8(%rip), %xmm0    # 0x5d918
callq 0xee5a
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x35c8c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x28(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x26787(%rip), %rsi     # 0x5c423
leaq 0x2678e(%rip), %rdx     # 0x5c431
leaq 0x18(%rsp), %rdi
callq 0xdb24
leaq 0x88(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movsd 0x27c46(%rip), %xmm0    # 0x5d908
callq 0xee5a
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x35cde
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x190(%rsp), %rdi
movb $0x0, 0x28(%rdi)
leaq 0x1b0(%rsp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%r15)
movq %r15, %rsi
callq 0x9580
movb $0x1, 0x8(%r15)
leaq 0x88(%rsp), %rdi
callq 0xe148
leaq 0x1a0(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x9580
movb $0x0, 0x18(%r13)
movq (%r13), %rax
subq -0x10(%r13), %rax
movq 0x8(%r13), %rbp
imulq $0xf4240, %rax, %rax    # imm = 0xF4240
subq -0x8(%r13), %rbp
addq %rax, %rbp
addq -0x20(%r13), %rbp
movq %rbp, -0x20(%r13)
movq 0x52223(%rip), %rdi     # 0x87f78
leaq 0x3af20(%rip), %rsi     # 0x70c7c
movl $0x4, %edx
callq 0x93a0
leaq 0x88(%rsp), %rdi
callq 0xee54
movq 0x521fe(%rip), %rdi     # 0x87f78
callq 0x9560
movq %rax, %r15
leaq 0x395aa(%rip), %rsi     # 0x6f333
movl $0x13, %edx
movq %rax, %rdi
callq 0x93a0
xorps %xmm0, %xmm0
cvtsi2sd %rbp, %xmm0
divsd 0x26282(%rip), %xmm0    # 0x5c028
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r15, %rdi
callq 0x9560
movq %rax, %r15
leaq 0x264cc(%rip), %rsi     # 0x5c28c
movl $0x5, %edx
movq %rax, %rdi
callq 0x93a0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r15, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
leaq 0x88(%rsp), %rdi
callq 0xee48
movslq 0x10c(%rbx), %r15
testq %r15, %r15
js 0x3605e
movq %rax, %r13
cmpq %r15, 0xc8(%rbx)
je 0x35e31
movl $0x1, %ecx
movq (%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x10056
movq 0xc8(%rbx), %rax
cmpq %r15, %rax
jne 0x3607d
movq (%rsp), %rcx
movq (%rcx), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x35e71
xorl %esi, %esi
movups (%r13,%rsi,8), %xmm0
movaps %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x35e5e
cmpq %rax, %rdx
jge 0x35e8a
movsd (%r13,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x35e76
movq 0xc0(%rbx), %r13
movq 0xc8(%rbx), %r15
cmpq %r15, 0xa8(%rbx)
je 0x35ebd
testq %r15, %r15
js 0x360b3
movl $0x1, %ecx
movq %r12, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x10056
movq 0xa8(%rbx), %rax
cmpq %r15, %rax
jne 0x36047
movq (%r12), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x35efa
xorl %esi, %esi
movaps (%r13,%rsi,8), %xmm0
movaps %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x35ee7
cmpq %rax, %rdx
jge 0x35f13
movsd (%r13,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x35eff
leaq 0x88(%rsp), %rdi
callq 0xee4e
movslq 0x108(%rbx), %r12
testq %r12, %r12
js 0x3605e
movq %rax, %r15
cmpq %r12, 0xd8(%rbx)
je 0x35f4f
movl $0x1, %ecx
movq %r14, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x10056
movq 0xd8(%rbx), %rax
cmpq %r12, %rax
jne 0x3607d
movq (%r14), %rcx
movq %rax, %rdx
shrq $0x3f, %rdx
addq %rax, %rdx
andq $-0x2, %rdx
cmpq $0x2, %rax
jl 0x35f8a
xorl %esi, %esi
movups (%r15,%rsi,8), %xmm0
movaps %xmm0, (%rcx,%rsi,8)
addq $0x2, %rsi
cmpq %rdx, %rsi
jl 0x35f78
cmpq %rax, %rdx
jge 0x35fa2
movsd (%r15,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x35f8f
movq 0xc0(%rsp), %rdi
callq 0x93c0
movq 0xb0(%rsp), %rdi
callq 0x93c0
movq 0x78(%rsp), %rdi
callq 0x93c0
movq 0x8(%rsp), %rdi
callq 0x93c0
leaq 0x160(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x93c0
movq -0x8(%rbx), %rdi
callq 0x93c0
movq %rbx, %rdi
callq 0x38782
leaq 0x118(%rsp), %rbx
movq -0x10(%rbx), %rdi
callq 0x93c0
movq -0x8(%rbx), %rdi
callq 0x93c0
movq %rbx, %rdi
callq 0x38782
movb $0x1, %al
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2650d(%rip), %rdi     # 0x5c53c
leaq 0x2659b(%rip), %rsi     # 0x5c5d1
leaq 0x2738f(%rip), %rcx     # 0x5d3cc
movl $0x4a, %edx
callq 0x9200
leaq 0x27012(%rip), %rdi     # 0x5d060
leaq 0x264c4(%rip), %rsi     # 0x5c519
leaq 0x27290(%rip), %rcx     # 0x5d2ec
jmp 0x360a9
leaq 0x26b22(%rip), %rdi     # 0x5cb87
leaq 0x26898(%rip), %rsi     # 0x5c904
leaq 0x276cb(%rip), %rcx     # 0x5d73e
movl $0xa3, %edx
callq 0x9200
leaq 0x26fdc(%rip), %rdi     # 0x5d060
leaq 0x2648e(%rip), %rsi     # 0x5c519
leaq 0x2774e(%rip), %rcx     # 0x5d7e0
jmp 0x360a9
leaq 0x26fc5(%rip), %rdi     # 0x5d060
leaq 0x26477(%rip), %rsi     # 0x5c519
leaq 0x2741a(%rip), %rcx     # 0x5d4c3
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x9200
leaq 0x26d9e(%rip), %rdi     # 0x5ce58
leaq 0x26bf6(%rip), %rsi     # 0x5ccb7
leaq 0x26f1f(%rip), %rcx     # 0x5cfe7
movl $0x11d, %edx            # imm = 0x11D
callq 0x9200
jmp 0x3616c
jmp 0x36139
jmp 0x36139
jmp 0x3616c
jmp 0x3616c
jmp 0x3616c
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x3616f
movq 0x28(%rsp), %rsi
jmp 0x36128
jmp 0x3616c
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x3616f
movq 0x48(%rsp), %rsi
jmp 0x36128
jmp 0x3616c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x3616f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x9340
jmp 0x3616f
jmp 0x3616c
movq %rax, %rbx
jmp 0x36189
movq %rax, %rbx
jmp 0x36193
movq %rax, %rbx
jmp 0x3619d
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x38782
jmp 0x361aa
movq %rax, %rbx
jmp 0x361aa
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x38782
jmp 0x361b7
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
callq 0x93c0
movq 0xb0(%rsp), %rdi
callq 0x93c0
movq 0x78(%rsp), %rdi
callq 0x93c0
movq 0x8(%rsp), %rdi
callq 0x93c0
leaq 0x138(%rsp), %rdi
callq 0x369fa
leaq 0xf0(%rsp), %rdi
callq 0x369fa
movq %rbx, %rdi
callq 0x9670
nop