// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/Graph.cpp
// Function: LDAG::Init()
Graph* LDAG::Init()
{
    vn T;
    vb C(_n);
    TransitiveReduction(root, C);
    // Restore dfs ordering of indices
    Wipe(root);
    _n = 0;
    Renumerate(root);
    GenPaths(root, T);
    sort(P.begin(), P.end(), [](const vn& a, const vn& b)
    {
        return a.size() > b.size();
    });
    vvb D(_n, vb(_n));
    vector<vn> Q;
    for (int k = 0; k < P.size(); ++k)
    {
        ForeachPair(P[k], [&](vn& p, int i, int j)
        {
            if (D[i][j]) return;
            Q.push_back(p);
            ForeachPair(P[k], [&](vn& p, int i, int j)
            {
                D[i][j] = D[j][j] = true;
            });
        });
    }
    P = move(Q);
    return Graph::Init();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
andq $0x0, 0xb0(%rsp)
movq 0x70(%rdi), %rsi
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x2dd44
movq 0x68(%r12), %rsi
leaq 0xc0(%rsp), %rdx
movq %r12, %rdi
callq 0x2d22c
movq 0x68(%r12), %rsi
movq %r12, %rdi
callq 0x2d2f2
andq $0x0, 0x70(%r12)
movq 0x68(%r12), %rsi
movq %r12, %rdi
callq 0x2d328
movq 0x68(%r12), %rsi
leaq 0xa0(%rsp), %rdx
movq %r12, %rdi
callq 0x2d368
movq 0xf0(%r12), %r15
movq 0xf8(%r12), %r14
cmpq %r14, %r15
je 0x2cf8f
movq %r14, %rbx
subq %r15, %rbx
movq %rbx, %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2d72a
cmpq $0x181, %rbx            # imm = 0x181
jl 0x2cf84
leaq 0x180(%r15), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2daae
jmp 0x2cf7d
movq %rbx, %rdi
callq 0x2db58
addq $0x18, %rbx
cmpq %r14, %rbx
jne 0x2cf71
jmp 0x2cf8f
movq %r15, %rdi
movq %r14, %rsi
callq 0x2daae
movq 0x70(%r12), %rbx
leaq 0x70(%rsp), %rdi
leaq 0x60(%rsp), %rdx
movq %rbx, %rsi
callq 0x2dd44
leaq 0x38(%rsp), %rdi
leaq 0x70(%rsp), %rdx
leaq 0x50(%rsp), %rcx
movq %rbx, %rsi
callq 0x2dd58
leaq 0xf0(%r12), %rax
movq %rax, 0x8(%rsp)
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0xbdb2
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
xorl %edi, %edi
leaq 0x60(%rsp), %r13
movq %r12, (%rsp)
movq 0xf0(%r12), %rcx
movq 0xf8(%r12), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %rdi, %rax
jbe 0x2d176
movq %rdi, 0x18(%rsp)
imulq $0x18, %rdi, %rdx
leaq (%rcx,%rdx), %rax
movq %rax, 0x10(%rsp)
movq (%rcx,%rdx), %rax
movq %rdx, 0x20(%rsp)
movq 0x8(%rcx,%rdx), %rcx
xorl %esi, %esi
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x2d165
pushq $0x1
popq %rdi
movq %rsi, 0x28(%rsp)
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rdi, %rdx
jbe 0x2d15d
movq (%rax,%rsi,8), %rcx
movslq 0x28(%rcx), %rcx
movq %rdi, 0x30(%rsp)
movq (%rax,%rdi,8), %rax
movslq 0x28(%rax), %rsi
imulq $0x28, %rcx, %rdi
addq 0x38(%rsp), %rdi
callq 0x2ddae
testq %rdx, (%rax)
je 0x2d0a4
movq 0x30(%rsp), %rdi
incq %rdi
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
movq 0x28(%rsp), %rsi
jmp 0x2d04e
leaq 0x70(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2de06
movq 0x8(%rsp), %rax
movq (%rax), %rcx
movq 0x20(%rsp), %rdx
leaq (%rcx,%rdx), %rbp
movq (%rcx,%rdx), %rax
movq 0x8(%rcx,%rdx), %rcx
xorl %r14d, %r14d
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
jbe 0x2d089
pushq $0x1
popq %r15
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x2d155
movq (%rax,%r14,8), %rcx
movslq 0x28(%rcx), %r12
movq (%rax,%r15,8), %rax
movslq 0x28(%rax), %rbx
imulq $0x28, %rbx, %rdi
addq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ddae
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
orq %rdx, (%rax)
imulq $0x28, %r12, %rdi
addq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ddae
movq %rax, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x2f468
incq %r15
movq (%rbp), %rax
movq 0x8(%rbp), %rcx
jmp 0x2d0e3
incq %r14
jmp 0x2d0d0
incq %rsi
jmp 0x2d033
movq 0x18(%rsp), %rdi
incq %rdi
movq (%rsp), %r12
jmp 0x2cfed
leaq 0x70(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x2f47e
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x2cdac
leaq 0x70(%rsp), %rdi
callq 0x2dcde
leaq 0x38(%rsp), %rdi
callq 0xbd44
leaq 0xc0(%rsp), %rdi
callq 0xbdb2
leaq 0xa0(%rsp), %rdi
callq 0xbeac
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d1f3
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xbdb2
jmp 0x2d20a
jmp 0x2d1ec
movq %rax, %rbx
jmp 0x2d217
movq %rax, %rbx
jmp 0x2d20a
jmp 0x2d1f3
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x2dcde
leaq 0x38(%rsp), %rdi
callq 0xbd44
leaq 0xc0(%rsp), %rdi
callq 0xbdb2
leaq 0xa0(%rsp), %rdi
callq 0xbeac
movq %rbx, %rdi
callq 0x9640