// File: /workspace/github_cpp_makefile_star2_O1/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 0x14de0
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
leaq 0x9cbb(%rip), %rsi      # 0x1dbe3
movl $0xc, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x14e31
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 0x16ffd
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x16d49
movq %rax, %rbx
leaq 0x9c72(%rip), %rsi      # 0x1dc0a
movl $0x8, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x16ffd
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 0x14046
leaq 0x38(%rsp), %r15
leaq 0x20(%r14), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1aabc
movl %eax, %r12d
movq 0x8(%rsp), %rdi
addq $0x30, %rdi
movq %rbx, %rsi
callq 0x17cbe
movq %rax, %r13
movq 0x18(%rax), %rbx
addq $0x8, %r13
cmpq %r13, %rbx
je 0x14034
leaq 0x20(%rbx), %rsi
movq %r15, %rdi
callq 0x1aabc
movl %r12d, %ecx
subl %eax, %ecx
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
addl %eax, %ebp
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
cmpq %r13, %rax
jne 0x1400a
movq %r14, %rdi
callq 0x21b0
movq %rax, %r14
cmpq 0x30(%rsp), %rax
jne 0x13fd7
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 0x175a0
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x14097
callq 0x2150
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x175a0
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x140b5
callq 0x2150
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x140c4
callq 0x35d6
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x140ec
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
jmp 0x140f3
movq %rax, %rbx
jmp 0x14107
jmp 0x140fa
movq %rax, %rbx
jmp 0x14114
jmp 0x140fa
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x16fe0
leaq 0x80(%rsp), %rdi
callq 0x16fe0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x14123
callq 0x35d6
movq %rbx, %rdi
callq 0x2250