// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/experiments.cc
// Function: lbcc_stat(graph_t&)
void lbcc_stat(graph_t& graph)
{
    printf("==========================================================\n");
    printf("Graph: \t\t\t%s\n", graph.graph_name.c_str());
    printf("Graph # nodes: \t\t%d\n", graph.size());
    printf("Graph # edges: \t\t%d\n", graph.edge_set.size());
    vector<graph_hash_t> bcc_vec;
    graph.find_bicon_comp(bcc_vec);
    
    int lbcc_i = 0;//index of the lbcc, # of nodes
    int lbcc_j = 0;//index of the lbcc, # of edges
    int lbcc_n = 0;//highest # of nodes
    int lbcc_m = 0;//highest # of edges
    if(bcc_vec.size() > 1) {
        for(int i = 0; i < bcc_vec.size(); ++i) {
            if(bcc_vec[i].size() > lbcc_n) {
                lbcc_n = bcc_vec[i].size();
                lbcc_i = i;
            }
            if(bcc_vec[i].edge_set.size() > lbcc_m) {
                lbcc_m = bcc_vec[i].edge_set.size();
                lbcc_j = i;
            }
        }
    }
    if(lbcc_i != lbcc_j) {
        printf("LBCC_m is not LBCC_n!\n");
    }
    int num_nodes = lbcc_n;
    int num_edges = bcc_vec[lbcc_i].edge_set.size();
    double frac_nodes = (double)num_nodes/graph.size();
    double frac_edges = (double)num_edges/graph.edge_set.size();
    printf("\tLBCC # nodes:\t\t%d\n", num_nodes);
    printf("\tLBCC # edges:\t\t%d\n", num_edges);
    printf("\tLBCC frac nodes:\t%f\n", frac_nodes);
    printf("\tLBCC frac edges:\t%f\n", frac_edges);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x15aac(%rip), %rdi     # 0x30b40
callq 0x2350
movq 0x108(%rbx), %rsi
leaq 0x151a9(%rip), %rdi     # 0x30250
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x2030
movq %rbx, %rdi
callq 0x1dfcc
leaq 0x1519e(%rip), %rdi     # 0x3025e
movq %rax, %rsi
xorl %eax, %eax
callq 0x2030
movq 0x58(%rbx), %rsi
leaq 0x1519e(%rip), %rdi     # 0x30273
xorl %eax, %eax
callq 0x2030
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x146c2
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
sete %cl
sarq $0x3, %rax
movabsq $-0x303030303030303, %rdx # imm = 0xFCFCFCFCFCFCFCFD
imulq %rdx, %rax
cmpq $0x2, %rax
setb %al
orb %cl, %al
je 0x1b12c
xorl %r14d, %r14d
jmp 0x1b1c4
movq %rbx, 0x8(%rsp)
xorl %r12d, %r12d
xorl %ebx, %ebx
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r14d, %r14d
addq %r12, %rdi
callq 0x1c4e0
movslq %r14d, %rcx
cmpq %rcx, %rax
jbe 0x1b164
movq 0x10(%rsp), %rdi
addq %r12, %rdi
callq 0x1c4e0
movq %rax, %r14
movl %ebx, %r15d
movq 0x10(%rsp), %rdi
movq 0x58(%rdi,%r12), %rax
movslq %ebp, %rbp
cmpq %rbp, %rax
cmoval %eax, %ebp
cmoval %ebx, %r13d
movq 0x18(%rsp), %rax
incq %rbx
subq %rdi, %rax
sarq $0x3, %rax
movabsq $-0x303030303030303, %rcx # imm = 0xFCFCFCFCFCFCFCFD
imulq %rcx, %rax
addq $0x2a8, %r12            # imm = 0x2A8
cmpq %rbx, %rax
ja 0x1b141
cmpl %r13d, %r15d
movq 0x8(%rsp), %rbx
jne 0x1b1b3
movl %r13d, %r15d
jmp 0x1b1c4
leaq 0x159c1(%rip), %rdi     # 0x30b7b
callq 0x2350
movq 0x10(%rsp), %rdi
movslq %r15d, %rax
imulq $0x2a8, %rax, %rax      # imm = 0x2A8
movq 0x58(%rdi,%rax), %r15
movq %rbx, %rdi
callq 0x1dfcc
cvtsi2sd %r14d, %xmm4
movq %rax, %xmm0
movq 0x15033(%rip), %xmm1    # 0x30220
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x15037(%rip), %xmm2    # 0x30230
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
cvtsi2sd %r15d, %xmm5
divsd %xmm3, %xmm4
movsd %xmm4, 0x8(%rsp)
movq 0x58(%rbx), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm5
movsd %xmm5, 0x30(%rsp)
leaq 0x15868(%rip), %rdi     # 0x30aaa
movl %r14d, %esi
xorl %eax, %eax
callq 0x2030
leaq 0x1586b(%rip), %rdi     # 0x30abe
movl %r15d, %esi
xorl %eax, %eax
callq 0x2030
leaq 0x1586e(%rip), %rdi     # 0x30ad2
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x2030
leaq 0x15870(%rip), %rdi     # 0x30ae8
movsd 0x30(%rsp), %xmm0
movb $0x1, %al
callq 0x2030
leaq 0x10(%rsp), %rdi
callq 0x15702
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b2a2
jmp 0x1b2a2
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x15702
movq %rbx, %rdi
callq 0x23b0
nop