// File: /workspace/github_cpp_makefile_star2_O2/Manca[P]algorithms1/./assignment5.hpp
// Function: assignment5::loadGraphAndInit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void loadGraphAndInit(const string& fileName)
    {
        // load from file
        ifstream file(fileName, ios::in);
        
        if (file.is_open())
        {
            std::string rawInput;
            int vertex;
            while (getline(file, rawInput))
            {
                std::istringstream is(rawInput);
                
                is >> vertex;
                // read the pairs of dest, weight
                int dest, weight;
                char comma;
                while (is >> dest >> comma >> weight)
                {
                    _G[vertex].push_back(make_pair(dest, weight));
                }
            }
            file.close();
        }
        
        // init shortest paths array
        _shortest_paths = std::vector<int>(_G.size() + 1,1000000); // we start with vertex 1
        _shortest_paths[1] = 0; // path to itself is 0
        
        // init processed_so_far array
        _processed_so_far.push_back(1); // first vertex is in X initially
        
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
movq %rdi, %rsi
leaq 0x1c0(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2290
leaq 0x238(%rsp), %rdi
callq 0x2070
testb %al, %al
je 0x401d
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x40(%rsp), %r15
leaq 0x1c(%rsp), %r12
leaq 0xc(%rsp), %r13
leaq 0x7(%rsp), %rbp
leaq 0x8(%rsp), %rbx
leaq 0x10(%rsp), %r14
leaq 0x1c0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4006
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x22c0
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
movq %r15, %rdi
movq %r13, %rsi
callq 0x2140
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2210
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2140
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3ff9
leaq 0xa240(%rip), %rdi      # 0xe210
movq %r12, %rsi
callq 0x5244
movl 0xc(%rsp), %ecx
movl 0x8(%rsp), %edx
shlq $0x20, %rdx
orq %rcx, %rdx
movq %rdx, 0x10(%rsp)
movq %rax, %rdi
movq %r14, %rsi
callq 0x7b54
jmp 0x3f9a
movq %r15, %rdi
callq 0x20f0
jmp 0x3f5b
leaq 0x1c0(%rsp), %rdi
callq 0x2060
leaq 0x20(%rsp), %rdi
callq 0x20e0
movq 0xa214(%rip), %rsi      # 0xe238
incq %rsi
leaq 0x20(%rsp), %rdx
movl $0xf4240, (%rdx)        # imm = 0xF4240
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rcx
callq 0x517c
leaq 0xa1f8(%rip), %rdi      # 0xe240
leaq 0x40(%rsp), %rbx
movq %rbx, %rsi
callq 0x6bbe
movq %rbx, %rdi
callq 0x606a
movq 0xa1dc(%rip), %rax      # 0xe240
andl $0x0, 0x4(%rax)
movl $0x1, (%rbx)
leaq 0xa1e3(%rip), %rdi      # 0xe258
leaq 0x40(%rsp), %rsi
callq 0x7cb0
leaq 0x1c0(%rsp), %rdi
callq 0x2080
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40ab
jmp 0x40a2
movq %rax, %rbx
jmp 0x40c9
jmp 0x40ab
jmp 0x40b2
movq %rax, %rbx
jmp 0x40bf
jmp 0x40b2
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x20f0
leaq 0x20(%rsp), %rdi
callq 0x20e0
leaq 0x1c0(%rsp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x22f0