// File: /workspace/github_cpp_makefile_star2_O2/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 $0xb8, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xe2d6
leaq 0x37(%rsp), %rsi
movb $0x41, (%rsi)
leaq 0x36(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0x58(%rsp), %rcx
andl $0x0, (%rcx)
movq (%r14), %rdi
callq 0x102c4
leaq 0x35(%rsp), %rsi
movb $0x42, (%rsi)
leaq 0x34(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x48(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x33(%rsp), %rsi
movb $0x43, (%rsi)
leaq 0x32(%rsp), %rdx
movb $0x41, (%rdx)
leaq 0x38(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x31(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x30(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0x8c(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x2f(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x2e(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x88(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x2d(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x2c(%rsp), %rdx
movb $0x45, (%rdx)
leaq 0x84(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x2b(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x2a(%rsp), %rdx
movb $0x44, (%rdx)
leaq 0x80(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x29(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x28(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x7c(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x27(%rsp), %rsi
movb $0x46, (%rsi)
leaq 0x26(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x78(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x25(%rsp), %rsi
movb $0x47, (%rsi)
leaq 0x24(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x74(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x23(%rsp), %rsi
movb $0x48, (%rsi)
leaq 0x22(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x70(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x21(%rsp), %rsi
movb $0x48, (%rsi)
leaq 0x20(%rsp), %rdx
movb $0x45, (%rdx)
leaq 0x6c(%rsp), %rcx
andl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
movb $0x48, %al
leaq 0x1f(%rsp), %rsi
movb %al, (%rsi)
leaq 0x1e(%rsp), %rdx
movb %al, (%rdx)
leaq 0x68(%rsp), %rcx
movl $0x1, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x102c4
leaq 0x58(%rsp), %rdi
leaq 0x8(%rsp), %rsi
pushq $0x40
popq %rdx
callq 0xe760
leaq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xe70c
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rdx
movaps %xmm0, (%rdx)
leaq 0x2fa3(%rip), %rax      # 0xe288
movq %rax, 0x18(%rdx)
leaq 0x2fae(%rip), %rax      # 0xe29e
movq %rax, 0x10(%rdx)
leaq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xe7b5
leaq 0x90(%rsp), %rdi
callq 0x14342
leaq 0xad80(%rip), %rsi      # 0x16097
movq %rbx, %rdi
callq 0x2140
leaq 0x38(%rsp), %rsi
movq %rax, %rdi
callq 0xe5a0
leaq 0x40(%rsp), %rdi
callq 0x2efc
leaq 0x50(%rsp), %rdi
callq 0x2efc
leaq 0x60(%rsp), %rdi
callq 0x2efc
leaq 0x10(%rsp), %rdi
callq 0x2efc
addq $0xb8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x14342
jmp 0xb3a2
movq %rax, %rbx
jmp 0xb3ac
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
jmp 0xb390
movq %rax, %rbx
jmp 0xb3b6
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2efc
leaq 0x50(%rsp), %rdi
callq 0x2efc
leaq 0x60(%rsp), %rdi
callq 0x2efc
leaq 0x10(%rsp), %rdi
callq 0x2efc
movq %rbx, %rdi
callq 0x2220