// File: /workspace/github_cpp_makefile_star2_O3/grame-cncm[P]digraph/./dglib/schedule.hh
// Function: schedule<char> bfcyclesschedule<char, int>(digraph<char, int> const&)
inline schedule<N> bfcyclesschedule(const digraph<N, A>& G)
{
    digraph<digraph<N, A>, A> H  = graph2dag(G);
    schedule<digraph<N, A>>   SH = bfschedule(H);
    schedule<N>               S;
    for (const digraph<N, A>& n : SH.elements()) {
        S.append(dfschedule(cut(n, 1)));
    }
    return S;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x90(%rsp), %rdi
callq 0x1513a
leaq 0x120(%rsp), %r14
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1848d
movq %r14, %rdi
callq 0x5ad0
leaq 0xf0(%rsp), %rdi
callq 0x1767c
leaq 0xa0(%rsp), %rdi
callq 0x5b6e
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x15922
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %rax
movaps %xmm0, -0x20(%rax)
xorl %ecx, %ecx
movq %rcx, -0x10(%rax)
movl $0x0, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
cmpq %rax, %rcx
je 0x1746d
xorl %r12d, %r12d
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x90(%rsp), %r14
leaq (%r12,%r12,2), %rdx
movq (%rax,%rdx,8), %r15
movq 0x8(%rax,%rdx,8), %rbp
cmpq %rbp, %r15
je 0x17457
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b41a
addq $0x10, %r15
cmpq %rbp, %r15
jne 0x17439
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
incq %r12
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq %rdx, %r12
jb 0x17427
leaq 0x48(%rsp), %rdi
callq 0x164f0
xorl %eax, %eax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movl $0x0, 0x20(%rbx)
movq %rax, 0x28(%rbx)
movq %rcx, 0x30(%rbx)
movq %rcx, 0x38(%rbx)
movq %rax, 0x40(%rbx)
movq 0x90(%rsp), %r14
movq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq %rax, %r14
je 0x17578
leaq 0x38(%rsp), %r15
movq %rsp, %r13
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movl $0x1, (%rsp)
leaq 0x2343(%rip), %rax      # 0x1981c
movq %rax, 0x18(%rsp)
leaq 0x233f(%rip), %rax      # 0x19824
movq %rax, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x196e1
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1750f
movq %r13, %rdi
movq %r13, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x48(%rsp), %rdi
movq %r15, %rbp
movq %r15, %rsi
callq 0x16fa5
movq 0x48(%rsp), %r15
movq 0x50(%rsp), %r12
cmpq %r12, %r15
je 0x1753e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1aa72
incq %r15
jmp 0x17529
leaq 0x60(%rsp), %rdi
callq 0x176c6
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x17557
callq 0x2150
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
movq %rbp, %r15
je 0x17569
callq 0x3504
addq $0x10, %r14
cmpq 0x20(%rsp), %r14
jne 0x174c4
leaq 0xa8(%rsp), %rdi
callq 0x18a4e
leaq 0x90(%rsp), %rdi
callq 0x164aa
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x175a1
callq 0x3504
movq %rbx, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x17665
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x15258
jmp 0x17674
jmp 0x175f6
movq %rax, %r14
jmp 0x1760b
movq %rax, %r14
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1761a
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x1761a
movq %rax, %rdi
callq 0x31c5
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x17108
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1761a
callq 0x3504
movq %rbx, %rdi
callq 0x17108
leaq 0xa8(%rsp), %rdi
callq 0x18a4e
leaq 0x90(%rsp), %rdi
callq 0x164aa
jmp 0x17665
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0x18a4e
leaq 0x90(%rsp), %rdi
callq 0x164aa
leaq 0x48(%rsp), %rdi
callq 0x164f0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x17674
callq 0x3504
movq %r14, %rdi
callq 0x2250