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

    auto h1 = cut(g, 64);     // cut vectorsize connections
    auto h2 = graph2dag(h1);  // find cycles
    auto h3 = mapnodes<digraph<char, int>, digraph<char, int>>(
        h2, [](const digraph<char, int>& gr) -> digraph<char, int> { return cut(gr, 1); });
    ss << "test3: h3= " << h3;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x14ee8
leaq 0x37(%rsp), %rsi
movb $0x41, (%rsi)
leaq 0x36(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0xa0(%rsp), %rcx
movl $0x0, (%rcx)
movq (%r14), %rdi
callq 0x1781e
leaq 0x35(%rsp), %rsi
movb $0x42, (%rsi)
leaq 0x34(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x38(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x33(%rsp), %rsi
movb $0x43, (%rsi)
leaq 0x32(%rsp), %rdx
movb $0x41, (%rdx)
leaq 0x48(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x31(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x30(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0x7c(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x2f(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x2e(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x78(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x2d(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x2c(%rsp), %rdx
movb $0x45, (%rdx)
leaq 0x74(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x2b(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x2a(%rsp), %rdx
movb $0x44, (%rdx)
leaq 0x70(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x29(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x28(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x6c(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x27(%rsp), %rsi
movb $0x46, (%rsi)
leaq 0x26(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x68(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x25(%rsp), %rsi
movb $0x47, (%rsi)
leaq 0x24(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x64(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x23(%rsp), %rsi
movb $0x48, (%rsi)
leaq 0x22(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x60(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
leaq 0x21(%rsp), %rsi
movb $0x48, (%rsi)
leaq 0x20(%rsp), %rdx
movb $0x45, (%rdx)
leaq 0x5c(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
movb $0x48, %al
leaq 0x1f(%rsp), %rsi
movb %al, (%rsi)
leaq 0x1e(%rsp), %rdx
movb %al, (%rdx)
leaq 0x58(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x1781e
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %rdx
movaps %xmm0, (%rdx)
movl $0x40, (%rdx)
leaq 0x9c6b(%rip), %rax      # 0x1981c
movq %rax, 0x18(%rdx)
leaq 0x9c68(%rip), %rax      # 0x19824
movq %rax, 0x10(%rdx)
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x196e1
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0xfbee
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xa0(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x1513a
leaq 0x130(%rsp), %r14
leaq 0x48(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %r14, %rdx
callq 0x1848d
movq %r14, %rdi
callq 0x5ad0
leaq 0x100(%rsp), %rdi
callq 0x1767c
leaq 0xb0(%rsp), %rdi
callq 0x5b6e
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rdx
movaps %xmm0, (%rdx)
leaq 0x51db(%rip), %rax      # 0x14e2c
movq %rax, 0x18(%rdx)
leaq 0x5254(%rip), %rax      # 0x14eb0
movq %rax, 0x10(%rdx)
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x15459
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0xfc91
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xd443(%rip), %rsi      # 0x1d0db
movl $0xb, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0x1527e
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xfcc7
callq 0x3504
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xfcd6
callq 0x3504
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xfce5
callq 0x3504
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfcf4
callq 0x3504
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r14
retq
jmp 0xfd71
jmp 0xfd71
movq %rax, %rbx
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0xfdc0
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xfdc0
jmp 0xfd71
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x15258
jmp 0xfdcf
movq %rax, %rbx
jmp 0xfdcf
movq %rax, %rbx
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0xfd94
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xfd94
movq %rax, %rdi
callq 0x31c5
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
jmp 0xfd91
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfda3
callq 0x3504
movq %rbx, %rdi
callq 0x2250
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xfdc0
callq 0x3504
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xfdcf
callq 0x3504
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xfd94
callq 0x3504
jmp 0xfd94