// File: /workspace/github_cpp_makefile_star2_O3/grame-cncm[P]digraph/tests.cpp
// Function: test14(std::ostream&)
void test14(std::ostream& ss)
{
    // roots and leaves
    digraph<char, int> h;
    h.add('A', 'B', 0).add('B', 'C', 0).add('C', 'D', 0).add('B', 'G', 1).add('C', 'B', 1);
    h.add('E', 'F', 0).add('F', 'G', 0).add('G', 'H', 0).add('G', 'F', 2);

    ss << "graph h   : " << h << std::endl;
    ss << dfcyclesschedule(h) << ", cost: " << schedulingcost(h, dfcyclesschedule(h)) << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x14ee8
leaq 0x7(%rsp), %rsi
movb $0x41, (%rsi)
leaq 0x6(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0x80(%rsp), %rcx
movl $0x0, (%rcx)
movq (%r14), %rdi
callq 0x1781e
leaq 0x5(%rsp), %rsi
movb $0x42, (%rsi)
leaq 0x4(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x38(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x3(%rsp), %rsi
movb $0x43, (%rsi)
leaq 0x2(%rsp), %rdx
movb $0x44, (%rdx)
leaq 0x24(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x1(%rsp), %rsi
movb $0x42, (%rsi)
leaq 0x1b(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x20(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x1a(%rsp), %rsi
movb $0x43, (%rsi)
leaq 0x19(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0x1c(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x1c(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x7(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x80(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x6(%rsp), %rsi
movb $0x46, (%rsi)
leaq 0x5(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x38(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x4(%rsp), %rsi
movb $0x47, (%rsi)
leaq 0x3(%rsp), %rdx
movb $0x48, (%rdx)
leaq 0x24(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x2(%rsp), %rsi
movb $0x47, (%rsi)
leaq 0x1(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x20(%rsp), %rcx
movl $0x2, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x9d5f(%rip), %rsi      # 0x1dbe3
movl $0xc, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x14f39
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
leaq 0x80(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x17125
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x16e43
movq %rax, %rbx
leaq 0x9d16(%rip), %rsi      # 0x1dc0a
movl $0x8, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x17125
movq %rbx, 0x28(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %r14
addq $0x8, %rax
movq %rax, 0x30(%rsp)
xorl %ebp, %ebp
cmpq %rax, %r14
je 0x1403f
leaq 0x58(%rsp), %r13
leaq 0x20(%r14), %rsi
movq 0x60(%rsp), %r8
movl $0x0, %ebx
testq %r8, %r8
je 0x13f98
movb (%rsi), %al
movq %r13, %r9
movq %r9, %rcx
movq %r8, %rdx
movb 0x20(%r8), %dil
xorl %r8d, %r8d
cmpb %al, %dil
setl %r8b
movq %rdx, %r9
cmovlq %rcx, %r9
movq 0x10(%rdx,%r8,8), %r8
testq %r8, %r8
jne 0x13f4f
movl $0x0, %ebx
cmpq %r13, %r9
je 0x13f98
cmpb %al, %dil
movq %rdx, %r8
cmovlq %rcx, %r8
cmpb 0x20(%r8), %al
jl 0x13f98
cmpb %al, %dil
cmovlq %rcx, %rdx
movl 0x24(%rdx), %ebx
movq 0x8(%rsp), %rdi
addq $0x30, %rdi
callq 0x17ddc
movq %rax, %r15
movq 0x18(%rax), %rax
addq $0x8, %r15
cmpq %r15, %rax
je 0x14029
movq 0x60(%rsp), %r12
xorl %ecx, %ecx
testq %r12, %r12
je 0x1400f
movb 0x20(%rax), %dl
movq %r12, %r10
movq %r13, %r9
movq %r9, %rsi
movq %r10, %rdi
movb 0x20(%r10), %r8b
xorl %r10d, %r10d
cmpb %dl, %r8b
setl %r10b
movq %rdi, %r9
cmovlq %rsi, %r9
movq 0x10(%rdi,%r10,8), %r10
testq %r10, %r10
jne 0x13fcb
cmpq %r13, %r9
je 0x1400f
cmpb %dl, %r8b
movq %rdi, %r9
cmovlq %rsi, %r9
cmpb 0x20(%r9), %dl
jl 0x1400f
cmpb %dl, %r8b
cmovlq %rsi, %rdi
movl 0x24(%rdi), %ecx
movl %ebx, %edx
subl %ecx, %edx
movl %edx, %ecx
negl %ecx
cmovsl %edx, %ecx
addl %ecx, %ebp
movq %rax, %rdi
callq 0x21b0
cmpq %r15, %rax
jne 0x13fbb
movq %r14, %rdi
callq 0x21b0
movq %rax, %r14
cmpq 0x30(%rsp), %rax
jne 0x13f37
movq 0x28(%rsp), %rdi
movl %ebp, %esi
callq 0x2240
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x176c6
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x14090
callq 0x2150
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x176c6
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x140ae
callq 0x2150
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x140bd
callq 0x3504
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x140e5
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
jmp 0x140ec
movq %rax, %rbx
jmp 0x140fe
jmp 0x140f1
movq %rax, %rbx
jmp 0x1410b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x17108
leaq 0x80(%rsp), %rdi
callq 0x17108
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1411a
callq 0x3504
movq %rbx, %rdi
callq 0x2250