// File: /workspace/github_cpp_makefile_star2_O3/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 $0x218, %rsp            # imm = 0x218
movl %r9d, 0x2c(%rsp)
movl %r8d, 0x28(%rsp)
movl %esi, 0x20(%rsp)
movq %rdi, %r14
movl %edx, %edi
callq 0x2220
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movq $0x0, 0xe0(%rsp)
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
je 0x20b94
movl $0x8, %r15d
xorl %ebx, %ebx
leaq 0xf0(%rsp), %r12
leaq 0x30(%rsp), %r13
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x24624
movq %r12, %rdi
callq 0x23f22
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rbp
movq %rbp, %rdi
callq 0x24624
movq %r12, %rdi
movq %rbp, %rsi
callq 0x1dfe6
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x20a81
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2250
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rbp
movq %rbp, %rdi
callq 0x24624
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2f943
leaq 0x1f8(%rsp), %rdi
movq %r13, %rsi
callq 0x22d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x20ae4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2250
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x20b09
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2250
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movl 0x20(%rsp), %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x16ecd
leaq 0xd0(%rsp), %rdi
movq %r13, %rsi
callq 0x24150
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x20b50
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %r12, %rdi
callq 0x240ba
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20b73
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2250
incq %rbx
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
addq $0x20, %r15
cmpq %rbx, %rdx
ja 0x20a00
movq %r14, 0x20(%rsp)
cmpq %rax, %rcx
je 0x20d2b
movl $0x8, %ebx
xorl %r13d, %r13d
leaq 0xf0(%rsp), %r12
leaq 0x30(%rsp), %r14
xorl %ebp, %ebp
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x24624
movq %r12, %rdi
callq 0x23f22
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x24624
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
callq 0x1dfe6
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x20c27
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2250
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %r15
movq %r15, %rdi
callq 0x24624
movq %r14, %rdi
movq %r15, %rsi
callq 0x2f943
leaq 0x1f8(%rsp), %rdi
movq %r14, %rsi
callq 0x22d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x20c84
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2250
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x20ca6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2250
xorl %eax, %eax
cmpl $0x0, 0x250(%rsp)
setne %al
movq 0xd0(%rsp), %rsi
addq %r13, %rsi
movq %r12, %rdi
movl 0x28(%rsp), %ecx
xorl %r8d, %r8d
movsd 0xf360(%rip), %xmm0     # 0x30030
movl 0x2c(%rsp), %r9d
pushq $0x0
pushq %rax
callq 0x20489
addq $0x10, %rsp
movq %r12, %rdi
callq 0x240ba
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20d04
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2250
incq %rbp
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x18, %r13
addq $0x20, %rbx
cmpq %rbp, %rcx
ja 0x20bb9
leaq 0xd0(%rsp), %rdi
callq 0x2417c
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x20d97
jmp 0x20d9f
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x20df5
movq 0x60(%rsp), %rsi
jmp 0x20d8d
jmp 0x20df2
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x20df5
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2250
jmp 0x20df5
movq %rax, %r14
jmp 0x20e39
movq %rax, %r14
jmp 0x20e1e
jmp 0x20dc8
movq %rax, %r14
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x20e11
movq 0xc0(%rsp), %rsi
jmp 0x20ded
movq %rax, %r14
jmp 0x20e11
movq %rax, %r14
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x20e11
movq 0xa0(%rsp), %rsi
incq %rsi
jmp 0x20e0c
movq %rax, %r14
jmp 0x20e11
movq %rax, %r14
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x20e11
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0xf0(%rsp), %rdi
callq 0x240ba
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20e39
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2250
leaq 0xd0(%rsp), %rdi
callq 0x2417c
movq %r14, %rdi
callq 0x23b0