// File: /workspace/github_cpp_makefile_star2_O1/kelwinfc[P]ci4721-Fernandez-Gyomrey/src/block.cpp
// Function: dump_in_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void dump_in_file(string filename){
    
    dump_blocks_definition("bla");
    
    ofstream fout;
    
    fout.open((filename+".gv").c_str());
    fout << "##Command to produce the output: "
         << "\"neato -Tpng bla.gv > bla.png\"\n"
         << "digraph GrafoDeBloquesBasicos {\n"
         << "    node [shape=circle,width=0.1];";
    for (uint block_index = 0 ; block_index != list_of_blocks.size();
         block_index++)
    {
        fout << " B" << list_of_blocks[block_index]->index << ";";
    }
    fout << endl;
    
    for (uint block_index = 0 ; block_index != list_of_blocks.size();
         block_index++)
    {
        if ( list_of_blocks[block_index]->mandatory_exit ){
            fout << "B" << list_of_blocks[block_index]->index
                 << "->B"
                 << list_of_blocks[block_index]->mandatory_exit->index
                 << ";" << endl;
        }
        
        vector<Block*>::iterator it =
            list_of_blocks[block_index]->sucessors.begin();
        for ( ; it != list_of_blocks[block_index]->sucessors.end(); ++it ){
            fout << "B" << list_of_blocks[block_index]->index
                 << "->B"
                 << (*it)->index
                 << ";" << endl;
        }
    }
    
    fout << endl
         << "overlap=false\n"
         << "label=\"Grafo de Bloques Basicos\"\n"
         << "fontsize=8;\n"
         << "}\n";
    fout.close();
    
    string command = "rm -rf " + filename + ".png; neato -Tpng "
                        + filename + ".gv > "+ filename + ".png";
    int salida = system(command.c_str());
    
    if ( salida != 0 ){
        cout << "Ocurrió un error al ejecutar el comando neato para generar el"
             << "grafo.\n";
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rdi, 0x20(%rsp)
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x12267(%rip), %rsi     # 0x2e383
leaq 0x12263(%rip), %rdx     # 0x2e386
leaq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x6fec
movq %rbx, %rdi
callq 0x1bd91
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1c158
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x62f0
leaq 0xe8(%rsp), %rdi
callq 0x6510
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x16c42
leaq 0x121fb(%rip), %rsi     # 0x2e387
movq %rsp, %rdi
callq 0x65a0
movq (%rsp), %rsi
leaq 0xe8(%rsp), %rdi
movl $0x10, %edx
callq 0x6070
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1c1c5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x62f0
leaq 0x121bf(%rip), %rsi     # 0x2e38b
leaq 0xe8(%rsp), %rdi
movl $0x21, %edx
callq 0x6360
leaq 0x121c8(%rip), %rsi     # 0x2e3ad
leaq 0xe8(%rsp), %rdi
movl $0x1f, %edx
callq 0x6360
leaq 0x121cf(%rip), %rsi     # 0x2e3cd
leaq 0xe8(%rsp), %rdi
movl $0x20, %edx
callq 0x6360
leaq 0x121d7(%rip), %rsi     # 0x2e3ee
leaq 0xe8(%rsp), %rdi
movl $0x22, %edx
callq 0x6360
leaq 0x22180(%rip), %r14     # 0x3e3b0
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x1c29b
movl $0x1, %ebp
xorl %ebx, %ebx
leaq 0x1210e(%rip), %r15     # 0x2e355
leaq 0xe8(%rsp), %r12
leaq 0x121b9(%rip), %r13     # 0x2e40f
movl $0x2, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6360
movq (%r14), %rax
movq (%rax,%rbx,8), %rax
movl (%rax), %esi
movq %r12, %rdi
callq 0x6530
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x6360
movq 0x8(%r14), %rax
subq (%r14), %rax
movl %ebp, %ebx
sarq $0x3, %rax
incl %ebp
cmpq %rbx, %rax
jne 0x1c256
movq 0xe8(%rsp), %rax
leaq 0xe8(%rsp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x62b0
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61f0
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x1c44d
xorl %r15d, %r15d
leaq 0xe8(%rsp), %r12
leaq 0x1211f(%rip), %rbp     # 0x2e40f
movq (%rax,%r15,8), %rax
cmpq $0x0, 0x10(%rax)
je 0x1c38a
movl $0x1, %edx
movq %r12, %rdi
leaq 0x12048(%rip), %rsi     # 0x2e356
callq 0x6360
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movl (%rax), %esi
movq %r12, %rdi
callq 0x6530
movq %rax, %rbx
movl $0x3, %edx
movq %rax, %rdi
leaq 0x120db(%rip), %rsi     # 0x2e411
callq 0x6360
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x10(%rax), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x6530
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x6360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x62b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61f0
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x18(%rax), %r13
cmpq 0x20(%rax), %r13
je 0x1c433
movl $0x1, %edx
movq %r12, %rdi
leaq 0x11fa8(%rip), %rsi     # 0x2e356
callq 0x6360
movq (%r14), %rax
movq (%rax,%r15,8), %rax
movl (%rax), %esi
movq %r12, %rdi
callq 0x6530
movq %rax, %rbx
movl $0x3, %edx
movq %rax, %rdi
leaq 0x1203b(%rip), %rsi     # 0x2e411
callq 0x6360
movq (%r13), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x6530
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x6360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x62b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61f0
addq $0x8, %r13
movq (%r14), %rax
movq (%rax,%r15,8), %rax
jmp 0x1c395
incl %r15d
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jne 0x1c2f0
movq 0xe8(%rsp), %rax
leaq 0xe8(%rsp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x62b0
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61f0
movq %rax, %r14
leaq 0x11f88(%rip), %rsi     # 0x2e415
movl $0xe, %edx
movq %rax, %rdi
callq 0x6360
leaq 0x11f83(%rip), %rsi     # 0x2e424
movl $0x21, %edx
movq %r14, %rdi
callq 0x6360
leaq 0x11f91(%rip), %rsi     # 0x2e446
movl $0xc, %edx
movq %r14, %rdi
callq 0x6360
leaq 0x11f8a(%rip), %rsi     # 0x2e453
movl $0x2, %edx
movq %r14, %rdi
callq 0x6360
leaq 0xe8(%rsp), %rdi
callq 0x6410
leaq 0x11f6c(%rip), %rsi     # 0x2e456
leaq 0xa8(%rsp), %rdi
movq 0x20(%rsp), %rdx
callq 0x1c9ae
leaq 0x11f5b(%rip), %rsi     # 0x2e45e
leaq 0xa8(%rsp), %rdi
callq 0x65a0
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c537
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1c53e
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x60f0
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c592
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x1c599
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x11eb5(%rip), %rsi     # 0x2e471
callq 0x65a0
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c5e9
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x1c5f1
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x60f0
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c64e
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x1c656
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x11dfc(%rip), %rsi     # 0x2e478
callq 0x65a0
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c6a7
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1c6ad
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c6e2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c6f9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x1c710
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1c727
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c748
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x62f0
movq (%rsp), %rdi
callq 0x6280
testl %eax, %eax
je 0x1c785
movq 0x21864(%rip), %rdi     # 0x3dfc0
leaq 0x11d1a(%rip), %rsi     # 0x2e47d
movl $0x3e, %edx
callq 0x6360
movq 0x2184c(%rip), %rdi     # 0x3dfc0
leaq 0x11d41(%rip), %rsi     # 0x2e4bc
movl $0x7, %edx
callq 0x6360
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1c7a0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x21809(%rip), %rax     # 0x3dfb0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0xf0(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0xe8(%rsp,%rcx)
callq 0x6270
leaq 0x1e0(%rsp), %rdi
callq 0x6100
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c80f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x1c80f
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c82b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x1c82b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x1c847
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x1c847
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1c863
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x1c863
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c8d1
movq 0xb8(%rsp), %rsi
jmp 0x1c8be
jmp 0x1c8ce
jmp 0x1c8a8
jmp 0x1c8a8
jmp 0x1c8ce
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1c8de
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x1c8de
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1c8d1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x1c8d1
jmp 0x1c8ce
jmp 0x1c8ce
jmp 0x1c8ce
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x65c8
movq %rbx, %rdi
callq 0x6550