// File: /workspace/github_cpp_makefile_star2_O1/canzarlab[P]Trajan/src/LP.cpp
// Function: LP::MatchingConstraints()
void LP::MatchingConstraints()
{
    cnt = 0;
    vb P(t1.GetNumNodes());
    int n = t1.GetNumNodes(), m = t2.GetNumNodes();
    DFSLeft(t1.GetRoot(), P, [&](newick_node* nodel, newick_node* noder, double w)
    {
        if (w != 0 && (dag || (nodel->parent && nodel->child && noder->parent && noder->child)))
        {
            int i = nodel->taxoni, j = noder->taxoni;
            int col = i * m + j - cnt;
            K[i][j] = col;
            Triplets.emplace_back(i, col, 1.);
            Triplets.emplace_back(n + j, col, 1.);
            c(col) = w;
        }
        else
            ++cnt;
    });
    nr_rows = n + m;
    nr_cols = n * m - cnt;
    c.conservativeResize(nr_cols);
    // set warm_x and warm_y initialy to zeroes
    warm_x = Vector::Zero(nr_cols);
    warm_y = Vector::Zero(nr_rows);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
movl $0x0, 0x110(%rdi)
movq 0x30(%rdi), %rax
movslq 0x70(%rax), %rsi
leaq 0x1c(%rsp), %r14
movb $0x0, (%r14)
leaq 0x20(%rsp), %r15
leaq 0x18(%rsp), %r12
movq %r15, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x311d8
movq 0x30(%rbx), %rax
movl 0x70(%rax), %ecx
movl %ecx, (%r14)
movq 0x38(%rbx), %rcx
movl 0x70(%rcx), %ecx
movl %ecx, (%r12)
movq 0x68(%rax), %rsi
movq %rbx, 0x48(%rsp)
movq %r12, 0x50(%rsp)
movq %r14, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
callq 0x35326
movl 0x1c(%rsp), %eax
movl 0x18(%rsp), %ecx
leal (%rcx,%rax), %edx
movl %edx, 0x108(%rbx)
imull %eax, %ecx
movslq 0x110(%rbx), %rax
movslq %ecx, %rdx
subq %rax, %rdx
movl %edx, 0x10c(%rbx)
leaq 0xf8(%rbx), %rdi
movl $0x1, %ecx
movq %rdx, %rsi
callq 0x38164
movslq 0x10c(%rbx), %r15
testq %r15, %r15
js 0x35217
leaq 0xa0(%rbx), %r12
cmpq %r15, 0xa8(%rbx)
je 0x350bd
movl $0x1, %ecx
movq %r12, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x10056
movq 0xa8(%rbx), %r14
cmpq %r15, %r14
jne 0x35236
movq (%r12), %r15
movq %r14, %r12
shrq $0x3f, %r12
addq %r14, %r12
movq %r12, %r13
andq $-0x2, %r13
cmpq $0x2, %r14
jl 0x3510f
cmpq $0x3, %r13
movl $0x2, %eax
cmovgeq %r13, %rax
leaq -0x8(,%rax,8), %rdx
andq $-0x10, %rdx
addq $0x10, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x91c0
cmpq %r14, %r13
jge 0x35132
sarq %r12
shlq $0x4, %r12
addq %r12, %r15
shlq $0x3, %r14
subq %r12, %r14
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x91c0
movslq 0x108(%rbx), %r14
testq %r14, %r14
js 0x35217
leaq 0xb0(%rbx), %r15
cmpq %r14, 0xb8(%rbx)
je 0x35165
movl $0x1, %ecx
movq %r15, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x10056
movq 0xb8(%rbx), %rbx
cmpq %r14, %rbx
jne 0x35236
movq (%r15), %r14
movq %rbx, %r15
shrq $0x3f, %r15
addq %rbx, %r15
movq %r15, %r12
andq $-0x2, %r12
cmpq $0x2, %rbx
jl 0x351b6
cmpq $0x3, %r12
movl $0x2, %eax
cmovgeq %r12, %rax
leaq -0x8(,%rax,8), %rdx
andq $-0x10, %rdx
addq $0x10, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x91c0
cmpq %rbx, %r12
jge 0x351d9
sarq %r15
shlq $0x4, %r15
addq %r15, %r14
shlq $0x3, %rbx
subq %r15, %rbx
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x91c0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x35209
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movq %rax, 0x40(%rsp)
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2731e(%rip), %rdi     # 0x5c53c
leaq 0x273ac(%rip), %rsi     # 0x5c5d1
leaq 0x281a0(%rip), %rcx     # 0x5d3cc
movl $0x4a, %edx
callq 0x9200
leaq 0x27e23(%rip), %rdi     # 0x5d060
leaq 0x272d5(%rip), %rsi     # 0x5c519
leaq 0x28278(%rip), %rcx     # 0x5d4c3
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x9200
jmp 0x35259
jmp 0x35259
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3528c
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
callq 0x9670