// File: /workspace/github_cpp_makefile_star2_O2/fjamour[P]icentral/src/bcc_delta.cc
// Function: bcc_delta_t::compute_bc(std::tr1::unordered_map<unsigned int, double, std::tr1::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, double>>>&, unsigned int, unsigned int)
void bcc_delta_t::compute_bc(tr1_map_t(double)& bc_map,
                        node_id_t src,
                        node_id_t dst)
{

    //bc_map will have for each vertex in the muc it's betweenness centrality
    bcc_subgraph.remove_edge(src, dst);
    tr1_map_t(int) d_src_vec, d_dst_vec;
    bcc_subgraph.find_sssp(src, d_src_vec);
    bcc_subgraph.find_sssp(dst, d_dst_vec);
    
    //this must be commented in general.. if it's there it makes bc_map contain deltas
    //bcc_subgraph.i_fill_map<double>(bc_map, 0);
    
    for(graph_hash_t::nodes_map_t::iterator
                        it =  bcc_subgraph.nodes_map.begin();
                        it != bcc_subgraph.nodes_map.end();
                        ++it) {
        node_id_t s = it->first;
        if(d_src_vec[s] != d_dst_vec[s]) {
            i_iteration(s, 
                    src, 
                    dst, 
                    d_src_vec[s], 
                    d_dst_vec[s], 
                    bc_map);
        }
    }
    bcc_subgraph.insert_edge(src, dst);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %edx, %ebp
movq %rsi, 0x30(%rsp)
movq %rdi, %r12
leaq 0x30(%rdi), %r14
movq %r14, %rdi
movl %edx, %esi
movl %ecx, 0xc(%rsp)
movl %ecx, %edx
callq 0x1762e
leaq 0x68(%rsp), %rdi
pushq $0xa
popq %rbx
leaq 0x38(%rsp), %rdx
leaq 0x18(%rsp), %rcx
leaq 0x8(%rsp), %r8
movq %rbx, %rsi
callq 0xf72c
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x13(%rsp), %r8
movq %rbx, %rsi
callq 0xf72c
leaq 0x68(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x17c4e
leaq 0x38(%rsp), %rdx
movq %r14, %rdi
movl 0xc(%rsp), %esi
callq 0x17c4e
movl %ebp, 0x14(%rsp)
movq %r14, 0x28(%rsp)
movq %r14, %rdi
callq 0xb11c
leaq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movq %rdx, 0x8(%rcx)
leaq 0x68(%rsp), %r14
leaq 0x8(%rsp), %r15
leaq 0x38(%rsp), %rbx
movq 0x38(%r12), %rcx
movq 0x40(%r12), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0xcb48
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xb180
movl (%rax), %ebp
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb180
cmpl (%rax), %ebp
je 0xcb34
movl 0x8(%rsp), %ebp
movq %r14, %rdi
movq %r15, %rsi
callq 0xb180
movl (%rax), %r13d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb180
movl (%rax), %r9d
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq %r12, %rdi
movl %ebp, %esi
movl 0x14(%rsp), %edx
movl 0xc(%rsp), %ecx
movl %r13d, %r8d
callq 0xcba8
leaq 0x18(%rsp), %rdi
callq 0xbdd6
movq 0x18(%rsp), %rax
jmp 0xcac4
movq 0x28(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x1756e
leaq 0x38(%rsp), %rdi
callq 0xf15e
leaq 0x68(%rsp), %rdi
callq 0xf15e
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xcb89
movq %rax, %rbx
jmp 0xcb96
jmp 0xcb89
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xf15e
leaq 0x68(%rsp), %rdi
callq 0xf15e
movq %rbx, %rdi
callq 0x23d0