// File: fjamour[P]icentral/src/unit_tests.h
// Function: timing__Update_BC(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, int, int, int, comp_type_t, int, operation_t)
void timing__Update_BC(
            vector<string>  path_vec,           //paths of the graphs
            int             num_edges,          //number of random edges
            int             rand_seed,          //seed for srand(...)
            int             num_sources,        //
            comp_type_t     algo_flag = BCC,    //what algorithms to evaluate
            int             num_thread = 1,
            operation_t     op = INSERTION
        )
{
    srand(rand_seed);
    vector<vector<edge_t> > edge_vec2;
    
    //generate random edges
    for(int p = 0; p < path_vec.size(); ++p) {
        string graph_path = path_vec[p];
        graph_t graph;
        graph.read_graph(graph_path);
        graph.graph_name = extract_graph_name(graph_path);
        vector<edge_t> edge_vec;
        gen_rand_edges(num_edges, graph, edge_vec);
        edge_vec2.push_back(edge_vec);
    }
    
    for(int p = 0; p < path_vec.size(); ++p) {
        string graph_path = path_vec[p];
        graph_t graph;
        graph.read_graph(graph_path);
        graph.graph_name = extract_graph_name(graph_path);
        timing__Update_BC_graph(graph,
                edge_vec2[p], 
                num_sources, 
                algo_flag, 
                false, 
                1.0,
                num_thread,
                op
                );
    }
}

// Assembly:
subq $0x408, %rsp            # imm = 0x408
movq %rdi, 0x40(%rsp)
movl 0x410(%rsp), %eax
movq %rdi, 0x400(%rsp)
movl %esi, 0x3fc(%rsp)
movl %edx, 0x3f8(%rsp)
movl %ecx, 0x3f4(%rsp)
movl %r8d, 0x3f0(%rsp)
movl %r9d, 0x3ec(%rsp)
movl 0x3f8(%rsp), %edi
callq 0x96f0
leaq 0x3d0(%rsp), %rdi
callq 0x5f0e0
movl $0x0, 0x3cc(%rsp)
movq 0x40(%rsp), %rdi
movslq 0x3cc(%rsp), %rax
movq %rax, 0x38(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jae 0x5af38
movq 0x40(%rsp), %rdi
movslq 0x3cc(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x3a8(%rsp), %rdi
callq 0x9270
jmp 0x5ad40
leaq 0x270(%rsp), %rdi
callq 0x5eda0
jmp 0x5ad4f
leaq 0x250(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x9270
jmp 0x5ad66
leaq 0x270(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x56b50
jmp 0x5ad7d
leaq 0x250(%rsp), %rdi
callq 0x9410
leaq 0x210(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x9270
jmp 0x5ada1
leaq 0x230(%rsp), %rdi
leaq 0x210(%rsp), %rsi
callq 0x789e0
jmp 0x5adb8
leaq 0x378(%rsp), %rdi
leaq 0x230(%rsp), %rsi
movq %rsi, 0x28(%rsp)
callq 0x98e0
movq 0x28(%rsp), %rdi
callq 0x9410
leaq 0x210(%rsp), %rdi
callq 0x9410
leaq 0x1f8(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x4db80
movq 0x30(%rsp), %rdx
movl 0x3fc(%rsp), %edi
leaq 0x270(%rsp), %rsi
callq 0x47910
jmp 0x5ae16
leaq 0x3d0(%rsp), %rdi
leaq 0x1f8(%rsp), %rsi
callq 0x5f130
jmp 0x5ae2d
leaq 0x1f8(%rsp), %rdi
callq 0x4dc40
leaq 0x270(%rsp), %rdi
callq 0x5efc0
leaq 0x3a8(%rsp), %rdi
callq 0x9410
movl 0x3cc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3cc(%rsp)
jmp 0x5acf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
jmp 0x5b15a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
jmp 0x5af26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
jmp 0x5af19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
leaq 0x250(%rsp), %rdi
callq 0x9410
jmp 0x5af19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
leaq 0x210(%rsp), %rdi
callq 0x9410
jmp 0x5af19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
leaq 0x1f8(%rsp), %rdi
callq 0x4dc40
leaq 0x270(%rsp), %rdi
callq 0x5efc0
leaq 0x3a8(%rsp), %rdi
callq 0x9410
jmp 0x5b15a
movl $0x0, 0x1f4(%rsp)
movq 0x40(%rsp), %rdi
movslq 0x1f4(%rsp), %rax
movq %rax, 0x20(%rsp)
callq 0x5f0f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x5b145
movq 0x40(%rsp), %rdi
movslq 0x1f4(%rsp), %rsi
callq 0x5f110
movq %rax, %rsi
leaq 0x1d0(%rsp), %rdi
callq 0x9270
jmp 0x5af8f
leaq 0xa8(%rsp), %rdi
callq 0x5eda0
jmp 0x5af9e
leaq 0x88(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x9270
jmp 0x5afb5
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x56b50
jmp 0x5afcc
leaq 0x88(%rsp), %rdi
callq 0x9410
leaq 0x48(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x9270
jmp 0x5afed
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x789e0
jmp 0x5affe
leaq 0x1b0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
movq %rsi, 0x18(%rsp)
callq 0x98e0
movq 0x18(%rsp), %rdi
callq 0x9410
leaq 0x48(%rsp), %rdi
callq 0x9410
movslq 0x1f4(%rsp), %rsi
leaq 0x3d0(%rsp), %rdi
callq 0x58990
movq %rax, %rsi
movl 0x3f4(%rsp), %edx
movl 0x3f0(%rsp), %ecx
movl 0x3ec(%rsp), %r9d
movl 0x410(%rsp), %eax
testl %eax, %eax
setne %al
movzbl %al, %edi
movq %rsp, %rax
movl %edi, (%rax)
movl $0x0, 0x8(%rax)
leaq 0xa8(%rsp), %rdi
xorl %r8d, %r8d
movsd 0x1ff8b(%rip), %xmm0    # 0x7b010
callq 0x5a720
jmp 0x5b08c
leaq 0xa8(%rsp), %rdi
callq 0x5efc0
leaq 0x1d0(%rsp), %rdi
callq 0x9410
movl 0x1f4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f4(%rsp)
jmp 0x5af43
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
jmp 0x5b136
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
jmp 0x5b129
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x9410
jmp 0x5b129
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3a0(%rsp)
movl %eax, 0x39c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x9410
leaq 0xa8(%rsp), %rdi
callq 0x5efc0
leaq 0x1d0(%rsp), %rdi
callq 0x9410
jmp 0x5b15a
leaq 0x3d0(%rsp), %rdi
callq 0x5f1a0
addq $0x408, %rsp            # imm = 0x408
retq
leaq 0x3d0(%rsp), %rdi
callq 0x5f1a0
movq 0x3a0(%rsp), %rdi
callq 0x9cf0
nopw %cs:(%rax,%rax)