// File: /workspace/github_cpp_makefile_star2_O2/grame-cncm[P]digraph/tests.cpp
// Function: test7(std::ostream&)
void test7(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 h  = graph2dag(g);     // on fait un dag dont les noeuds sont les cycles du graphe g
    auto p  = parallelize(h);   //
    auto rp = rparallelize(h);  //
    auto s  = serialize(h);     //

    ss << "test7:        g = " << g << "; ";
    ss << "number of cycles: " << cycles(g) << "; ";
    ss << "0-cycles        : " << cycles(cut(g, 1)) << "; ";
    ss << "graph2dag(g)    = " << h << "; ";
    ss << "parallelize(h)  = " << p << "; ";
    ss << "rparallelize(h)  = " << rp << "; ";
    ss << "serialize(h)    = " << s << "; ";

    dotfile(ss, g);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0xe2d6
leaq 0x2f(%rsp), %rsi
movb $0x41, (%rsi)
leaq 0x2e(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0xa0(%rsp), %rcx
andl $0x0, (%rcx)
movq (%r14), %rdi
callq 0x102c4
leaq 0x2d(%rsp), %rsi
movb $0x42, (%rsi)
leaq 0x2c(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x88(%rsp), %rcx
movl $0x1, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x2b(%rsp), %rsi
movb $0x43, (%rsi)
leaq 0x2a(%rsp), %rdx
movb $0x41, (%rdx)
leaq 0x70(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x29(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x28(%rsp), %rdx
movb $0x42, (%rdx)
leaq 0x30(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x27(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x26(%rsp), %rdx
movb $0x43, (%rdx)
leaq 0x40(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x25(%rsp), %rsi
movb $0x44, (%rsi)
leaq 0x24(%rsp), %rdx
movb $0x45, (%rdx)
leaq 0x6c(%rsp), %rcx
movl $0x1, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x23(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x22(%rsp), %rdx
movb $0x44, (%rdx)
leaq 0x68(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x21(%rsp), %rsi
movb $0x45, (%rsi)
leaq 0x20(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x64(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x1f(%rsp), %rsi
movb $0x46, (%rsi)
leaq 0x1e(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x60(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x1d(%rsp), %rsi
movb $0x47, (%rsi)
leaq 0x1c(%rsp), %rdx
movb $0x46, (%rdx)
leaq 0x5c(%rsp), %rcx
movl $0x1, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x1b(%rsp), %rsi
movb $0x48, (%rsi)
leaq 0x1a(%rsp), %rdx
movb $0x47, (%rdx)
leaq 0x58(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x19(%rsp), %rsi
movb $0x48, (%rsi)
leaq 0x18(%rsp), %rdx
movb $0x45, (%rdx)
leaq 0x54(%rsp), %rcx
andl $0x0, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
movb $0x48, %al
leaq 0x17(%rsp), %rsi
movb %al, (%rsi)
leaq 0x16(%rsp), %rdx
movb %al, (%rdx)
leaq 0x50(%rsp), %rcx
movl $0x1, (%rcx)
movq (%rsp), %rdi
callq 0x102c4
leaq 0x30(%rsp), %rdi
movq %rsp, %rsi
callq 0xe70c
leaq 0xa0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xeb3e
leaq 0x88(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xec7f
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xece0
leaq 0xa404(%rip), %rsi      # 0x162ef
movq %rbx, %rdi
callq 0x2140
movq %rsp, %rsi
movq %rax, %rdi
callq 0xe313
leaq 0xa3fd(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
leaq 0xa3f1(%rip), %rsi      # 0x16305
movq %rbx, %rdi
callq 0x2140
movq %rax, %r14
movq %rsp, %rdi
callq 0xedc0
movq %r14, %rdi
movl %eax, %esi
callq 0x2210
leaq 0xa3ca(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
leaq 0xa3d1(%rip), %rsi      # 0x16318
movq %rbx, %rdi
callq 0x2140
movq %rax, %r14
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
pushq $0x1
popq %rdx
callq 0xe760
leaq 0x40(%rsp), %rdi
callq 0xedc0
movq %r14, %rdi
movl %eax, %esi
callq 0x2210
leaq 0xa385(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
leaq 0x48(%rsp), %rdi
callq 0x2efc
leaq 0xa395(%rip), %rsi      # 0x1632b
movq %rbx, %rdi
callq 0x2140
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0xe5a0
leaq 0xa350(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
leaq 0xa37e(%rip), %rsi      # 0x1633f
movq %rbx, %rdi
callq 0x2140
leaq 0xa0(%rsp), %rsi
movq %rax, %rdi
callq 0xedf1
leaq 0xa322(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
leaq 0xa34f(%rip), %rsi      # 0x1633e
movq %rbx, %rdi
callq 0x2140
leaq 0x88(%rsp), %rsi
movq %rax, %rdi
callq 0xedf1
leaq 0xa2f4(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
leaq 0xa335(%rip), %rsi      # 0x16352
movq %rbx, %rdi
callq 0x2140
leaq 0x70(%rsp), %rsi
movq %rax, %rdi
callq 0xeeac
leaq 0xa2c9(%rip), %rsi      # 0x16302
movq %rax, %rdi
callq 0x2140
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xef67
leaq 0x70(%rsp), %rdi
callq 0xf38e
leaq 0x88(%rsp), %rdi
callq 0xf3b0
leaq 0xa0(%rsp), %rdi
callq 0xf3b0
leaq 0x38(%rsp), %rdi
callq 0x2efc
leaq 0x8(%rsp), %rdi
callq 0x2efc
addq $0xb8, %rsp
popq %rbx
popq %r14
retq
jmp 0xc0d0
movq %rax, %rbx
jmp 0xc0dd
movq %rax, %rbx
jmp 0xc0ea
movq %rax, %rbx
jmp 0xc0f7
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
jmp 0xc0bc
movq %rax, %rbx
jmp 0xc101
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x2efc
jmp 0xc0d3
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xf38e
leaq 0x88(%rsp), %rdi
callq 0xf3b0
leaq 0xa0(%rsp), %rdi
callq 0xf3b0
leaq 0x38(%rsp), %rdi
callq 0x2efc
leaq 0x8(%rsp), %rdi
callq 0x2efc
movq %rbx, %rdi
callq 0x2220