// File: /workspace/github_cpp_makefile_star2_O1/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 0x14de0
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
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 0x176e8
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movl $0x40, (%rdx)
leaq 0x9a09(%rip), %rax      # 0x19714
movq %rax, 0x18(%rdx)
leaq 0x9a06(%rip), %rax      # 0x1971c
movq %rax, 0x10(%rdx)
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x195d8
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0xfd48
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xa0(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x15032
leaq 0x130(%rsp), %r14
leaq 0x48(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %r14, %rdx
callq 0x18373
movq %r14, %rdi
callq 0x5be8
leaq 0x100(%rsp), %rdi
callq 0x17556
leaq 0xb0(%rsp), %rdi
callq 0x5c86
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rdx
movaps %xmm0, (%rdx)
leaq 0x4f75(%rip), %rax      # 0x14d20
movq %rax, 0x18(%rdx)
leaq 0x4ff2(%rip), %rax      # 0x14da8
movq %rax, 0x10(%rdx)
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x15363
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0xfdeb
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xd2e9(%rip), %rsi      # 0x1d0db
movl $0xb, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0x15188
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xfe21
callq 0x35d6
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xfe30
callq 0x35d6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xfe3f
callq 0x35d6
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfe4e
callq 0x35d6
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r14
retq
jmp 0xfecb
jmp 0xfecb
movq %rax, %rbx
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0xff1a
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xff1a
jmp 0xfecb
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x15162
jmp 0xff29
movq %rax, %rbx
jmp 0xff29
movq %rax, %rbx
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0xfeee
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xfeee
movq %rax, %rdi
callq 0x329c
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
jmp 0xfeeb
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfefd
callq 0x35d6
movq %rbx, %rdi
callq 0x2250
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xff1a
callq 0x35d6
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xff29
callq 0x35d6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xfeee
callq 0x35d6
jmp 0xfeee