// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movl %r9d, 0x18(%rsp)
movl %r8d, 0x14(%rsp)
movl %esi, 0x1c(%rsp)
movq %rdi, (%rsp)
movl %edx, %edi
callq 0x2220
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
xorl %ebx, %ebx
leaq 0x60(%rsp), %r13
leaq 0xc0(%rsp), %r15
leaq 0x40(%rsp), %r14
xorl %edx, %edx
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
movq %rax, %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rdx, %rcx
jbe 0x1ad7c
movq %rdx, 0x8(%rsp)
addq %rbx, %rsi
movq %r13, %rdi
callq 0x22f0
movq %r13, %rbp
leaq 0x100(%rsp), %rdi
callq 0x1d14e
leaq 0xe0(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x22f0
leaq 0x100(%rsp), %rdi
movq %r13, %rsi
callq 0x18d4c
movq %r13, %rdi
callq 0x20d0
movq %r15, %r12
movq %r15, %rdi
movq %rbp, %r13
movq %rbp, %rsi
callq 0x22f0
movq %r14, %rdi
movq %r12, %rsi
callq 0x26be0
leaq 0x208(%rsp), %rdi
movq %r14, %rsi
callq 0x22d0
movq %r14, %rdi
callq 0x20d0
movq %r12, %rdi
callq 0x20d0
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
andq $0x0, 0x50(%rsp)
movl 0x1c(%rsp), %edi
leaq 0x100(%rsp), %rsi
movq %r14, %rdx
callq 0x12cba
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x1d316
movq %r14, %rdi
callq 0x16656
leaq 0x100(%rsp), %rdi
callq 0x1d2b4
movq %r13, %rdi
callq 0x20d0
movq 0x8(%rsp), %rdx
incq %rdx
addq $0x20, %rbx
jmp 0x1ac7a
movq $0x0, 0x8(%rsp)
leaq 0x60(%rsp), %r13
leaq 0x40(%rsp), %rbx
xorl %ecx, %ecx
xorl %ebp, %ebp
movq (%rsp), %r15
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x1aea1
movq %rcx, (%rsp)
addq %rcx, %rsi
movq %r13, %rdi
callq 0x22f0
leaq 0x100(%rsp), %rdi
callq 0x1d14e
leaq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x22f0
leaq 0x100(%rsp), %rdi
leaq 0x80(%rsp), %r14
movq %r14, %rsi
callq 0x18d4c
movq %r14, %rdi
callq 0x20d0
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x22f0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x26be0
xorl %r12d, %r12d
cmpl $0x0, 0x260(%rsp)
setne %r12b
leaq 0x208(%rsp), %rdi
movq %rbx, %rsi
callq 0x22d0
movq %rbx, %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x20d0
movq 0x20(%rsp), %rsi
addq 0x8(%rsp), %rsi
leaq 0x100(%rsp), %r14
movq %r14, %rdi
movl 0x14(%rsp), %ecx
xorl %r8d, %r8d
movsd 0xd1dc(%rip), %xmm0     # 0x28040
movl 0x18(%rsp), %r9d
pushq $0x0
pushq %r12
callq 0x1a8b2
popq %rax
popq %rcx
movq %r14, %rdi
callq 0x1d2b4
movq %r13, %rdi
callq 0x20d0
incq %rbp
movq (%r15), %rsi
movq 0x8(%r15), %rax
movq (%rsp), %rcx
addq $0x20, %rcx
addq $0x18, 0x8(%rsp)
jmp 0x1ad97
leaq 0x20(%rsp), %rdi
callq 0x1d342
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1aeec
movq %rax, %rbx
jmp 0x1af25
jmp 0x1af15
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
jmp 0x1aede
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x20d0
jmp 0x1af18
movq %rax, %rbx
jmp 0x1af41
jmp 0x1aef1
movq %rax, %rbx
jmp 0x1af4b
movq %rax, %rbx
jmp 0x1af34
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
jmp 0x1af0e
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x20d0
jmp 0x1af34
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x1d2b4
jmp 0x1af41
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x16656
leaq 0x100(%rsp), %rdi
callq 0x1d2b4
leaq 0x60(%rsp), %rdi
callq 0x20d0
leaq 0x20(%rsp), %rdi
callq 0x1d342
movq %rbx, %rdi
callq 0x23d0