// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/src/MSFG.cc
// Function: MultiStringFactorGraph::print_dot_digraph(std::ostream&)
void MultiStringFactorGraph::print_dot_digraph(ostream &fstr)
{
    fstr << "digraph {" << endl << endl;
    fstr << "\tnode [shape=ellipse,fontsize=30,fixedsize=false,width=0.95];" << endl;
    fstr << "\tedge [fontsize=12];" << endl;
    fstr << "\trankdir=LR;" << endl << endl;

    for (msfg_node_idx_t ni=0; ni<nodes.size(); ++ni) {
        fstr << "\t" << ni;
        string label = nodes[ni].factor;
        if (label == start_end_symbol && ni > 0) {
            label += " / " + reverse_string_end_nodes[ni];
            fstr << " [label=\"" << label << "\", style=filled, fillcolor=grey]" << endl;
        }
        else
            fstr << " [label=\"" << label << "\"]" << endl;
    }
    fstr << endl;

    for (msfg_node_idx_t ni=0; ni<nodes.size(); ++ni) {
        Node &nd = nodes[ni];
        for (auto ait = nd.outgoing.begin(); ait != nd.outgoing.end(); ++ait) {
            fstr << "\t" << (*ait)->source_node << " -> " << (*ait)->target_node;
            flt_type *cost = (*(*ait)).cost;
            if (cost != nullptr)
                fstr << "[label=\"" << *cost << "\"];";
            fstr << endl;
        }
    }
    fstr << "}" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x135f6(%rip), %rsi     # 0x266ac
movl $0x9, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
leaq 0x1359b(%rip), %rsi     # 0x266b6
movl $0x3d, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
leaq 0x1359e(%rip), %rsi     # 0x266f4
movl $0x14, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
leaq 0x13578(%rip), %rsi     # 0x26709
movl $0xc, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
movl $0x0, -0x2c(%rbp)
movq 0x28(%r15), %rax
cmpq 0x20(%r15), %rax
movq %r15, -0x38(%rbp)
je 0x133bc
leaq -0x50(%rbp), %r12
leaq 0x68(%r15), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %r13
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x1336f(%rip), %rsi     # 0x26596
callq 0x4400
movl -0x2c(%rbp), %esi
movq %rbx, %rdi
callq 0x4250
movl -0x2c(%rbp), %eax
movq 0x20(%r15), %rcx
shlq $0x7, %rax
movq %r12, -0x60(%rbp)
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x5f0e
movq -0x58(%rbp), %rdx
cmpq 0x8(%r15), %rdx
jne 0x1332b
testq %rdx, %rdx
je 0x13284
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq -0x60(%rbp), %rdi
callq 0x43a0
testl %eax, %eax
sete %al
jmp 0x13286
movb $0x1, %al
testb %al, %al
je 0x1332b
cmpl $0x0, -0x2c(%rbp)
je 0x1332b
movq -0x40(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x13872
leaq -0x80(%rbp), %rdi
leaq 0x13521(%rip), %rsi     # 0x267d1
movq %rax, %rdx
callq 0xb04d
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq %r13, %rdi
callq 0x4100
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x132da
callq 0x4350
movl $0x9, %edx
movq %rbx, %rdi
leaq 0x1342d(%rip), %rsi     # 0x26716
callq 0x4400
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %rbx, %rdi
callq 0x4400
movq %rax, %r14
movl $0x20, %edx
movq %rax, %rdi
leaq 0x134c5(%rip), %rsi     # 0x267d5
callq 0x4400
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0x1337a
movl $0x9, %edx
movq %rbx, %rdi
leaq 0x133dc(%rip), %rsi     # 0x26716
callq 0x4400
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %rbx, %rdi
callq 0x4400
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x133bf(%rip), %rsi     # 0x26720
callq 0x4400
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x1339b
callq 0x4350
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movq -0x38(%rbp), %r15
movq 0x28(%r15), %rcx
subq 0x20(%r15), %rcx
sarq $0x7, %rcx
cmpq %rax, %rcx
ja 0x13218
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
cmpq %rax, %rcx
je 0x13505
xorl %edx, %edx
leaq 0x13326(%rip), %r12     # 0x26723
xorl %edi, %edi
movq %rdi, -0x40(%rbp)
shlq $0x7, %rdx
leaq (%rax,%rdx), %r15
addq $0x58, %r15
movq 0x10(%r15), %r13
cmpq %r15, %r13
je 0x134e9
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x1316b(%rip), %rsi     # 0x26596
callq 0x4400
movq 0x20(%r13), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x4250
movq %rax, %r14
movl $0x4, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4400
movq 0x20(%r13), %rax
movl 0x4(%rax), %esi
movq %r14, %rdi
callq 0x4250
movq 0x20(%r13), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
je 0x134a2
movl $0x8, %edx
movq %rbx, %rdi
leaq 0x1329b(%rip), %rsi     # 0x26717
callq 0x4400
movsd (%r14), %xmm0
movq %rbx, %rdi
callq 0x4590
movl $0x3, %edx
movq %rax, %rdi
leaq 0x1328b(%rip), %rsi     # 0x26728
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
movq %r13, %rdi
callq 0x4410
movq %rax, %r13
cmpq %r15, %rax
jne 0x1341c
movq -0x38(%rbp), %rcx
movq 0x20(%rcx), %rax
movq 0x28(%rcx), %rcx
movq -0x40(%rbp), %rdi
incl %edi
movq %rcx, %rsi
subq %rax, %rsi
sarq $0x7, %rsi
movq %rdi, %rdx
cmpq %rdi, %rsi
ja 0x133ff
leaq 0x13220(%rip), %rsi     # 0x2672c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x4400
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4260
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x1356b
callq 0x4350
jmp 0x1356b
jmp 0x13568
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x13579
callq 0x4350
movq %rbx, %rdi
callq 0x4650
nop