// File: /workspace/github_cpp_makefile_star2_O1/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 0x13504(%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 0x134a9(%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 0x134ac(%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 0x13486(%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, -0x40(%rbp)
je 0x134ae
leaq -0x50(%rbp), %r12
leaq 0x68(%r15), %rax
movq %rax, -0x38(%rbp)
leaq -0x60(%rbp), %r13
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x1327d(%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 0x5f0a
movq -0x58(%rbp), %rdx
cmpq 0x8(%r15), %rdx
jne 0x13372
testq %rdx, %rdx
je 0x13376
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq -0x60(%rbp), %rdi
callq 0x43a0
testl %eax, %eax
sete %al
jmp 0x13378
xorl %eax, %eax
jmp 0x13378
movb $0x1, %al
testb %al, %al
je 0x1341d
cmpl $0x0, -0x2c(%rbp)
je 0x1341d
movq -0x38(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x13954
leaq -0x80(%rbp), %rdi
leaq 0x1342f(%rip), %rsi     # 0x267d1
movq %rax, %rdx
callq 0xb149
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 0x133cc
callq 0x4350
movl $0x9, %edx
movq %rbx, %rdi
leaq 0x1333b(%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 0x133d3(%rip), %rsi     # 0x267d5
callq 0x4400
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0x1346c
movl $0x9, %edx
movq %rbx, %rdi
leaq 0x132ea(%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 0x132cd(%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 0x1348d
callq 0x4350
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movq -0x40(%rbp), %r15
movq 0x28(%r15), %rcx
subq 0x20(%r15), %rcx
sarq $0x7, %rcx
cmpq %rax, %rcx
ja 0x1330a
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
cmpq %rax, 0x28(%r15)
je 0x135f1
xorl %ecx, %ecx
leaq 0x13237(%rip), %r12     # 0x26723
xorl %esi, %esi
movq %rsi, -0x38(%rbp)
shlq $0x7, %rcx
leaq (%rax,%rcx), %r15
addq $0x58, %r15
movq 0x10(%r15), %r13
cmpq %r15, %r13
je 0x135cc
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x1307c(%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 0x13591
movl $0x8, %edx
movq %rbx, %rdi
leaq 0x131ac(%rip), %rsi     # 0x26717
callq 0x4400
movsd (%r14), %xmm0
movq %rbx, %rdi
callq 0x4590
movl $0x3, %edx
movq %rax, %rdi
leaq 0x1319c(%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 0x1350b
movq -0x38(%rbp), %rsi
incl %esi
movq -0x40(%rbp), %rcx
movq 0x20(%rcx), %rax
movq 0x28(%rcx), %rdx
subq %rax, %rdx
sarq $0x7, %rdx
movq %rsi, %rcx
cmpq %rsi, %rdx
ja 0x134ee
leaq 0x13134(%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 0x13657
callq 0x4350
jmp 0x13657
jmp 0x13654
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x13665
callq 0x4350
movq %rbx, %rdi
callq 0x4650
nop