// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/graph_hash_t.cc
// Function: graph_hash_t::conn_comp_sizes(std::vector<int, std::allocator<int>>&)
void graph_hash_t::conn_comp_sizes(vector<int>& out_vec)
{
    out_vec.clear();
    tr1::unordered_map<node_id_t, bool> visited_map;
    for(nodes_map_t::iterator it = nodes_map.begin(); it != nodes_map.end(); ++it) {
        visited_map.insert(make_pair(it->first, false));
    }
    for(tr1::unordered_map<node_id_t, bool>::iterator it = visited_map.begin(); it != visited_map.end(); ++it) {
        if(!it->second) {
            node_id_t s = it->first;
            it->second = true;
            out_vec.push_back(1);
            //do a BFS from s, count the number of vertices, and mark the visited
            queue<node_id_t> q;
            q.push(s);
            while(!q.empty()) {
                node_id_t node = q.front(); q.pop();
                for(int i = 0; i < nodes_map[node].nbrs_vec.size(); ++i) {
                    node_id_t nbr = nodes_map[node].nbrs_vec[i];
                    if(!visited_map[nbr]) {
                        visited_map[nbr] = true;
                        q.push(nbr);
                        out_vec.back() = out_vec.back()+1;
                    }
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x1c7c6
movq %rax, 0x8(%rbx)
leaq 0x12(%rsp), %rax
leaq 0x1c(%rsp), %r10
leaq 0x88(%rsp), %rdi
leaq 0xc(%rsp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x14(%rsp), %r8
leaq 0x13(%rsp), %r9
movl $0xa, %esi
pushq %rax
pushq %r10
callq 0x15b26
addq $0x10, %rsp
movq 0x8(%r14), %rbp
movq (%rbp), %r15
testq %r15, %r15
jne 0x1c814
movq 0x8(%rbp), %r15
addq $0x8, %rbp
jmp 0x1c805
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
je 0x1c86c
leaq 0x88(%rsp), %r12
leaq 0x14(%rsp), %r13
movl (%r15), %eax
movl %eax, 0x14(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1dada
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x1c85e
movq 0x8(%rbp), %r15
addq $0x8, %rbp
jmp 0x1c84f
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
jne 0x1c82f
movq 0x90(%rsp), %rdx
movq (%rdx), %rsi
testq %rsi, %rsi
jne 0x1c886
movq 0x8(%rdx), %rsi
addq $0x8, %rdx
jmp 0x1c877
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rcx
cmpq (%rax,%rcx,8), %rsi
je 0x1ca9a
leaq 0x1c(%rsp), %r13
leaq 0x88(%rsp), %rbp
leaq 0xc(%rsp), %r12
cmpb $0x0, 0x4(%rsi)
jne 0x1ca6d
movq %rdx, 0x80(%rsp)
movl (%rsi), %eax
movl %eax, 0x14(%rsp)
movq %rsi, 0x78(%rsp)
movb $0x1, 0x4(%rsi)
movl $0x1, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x1c8fa
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
leaq 0x20(%rsp), %rdi
jmp 0x1c90d
movq %rbx, %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rdx
callq 0x1be56
movq %r15, %rdi
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
xorl %esi, %esi
callq 0x6b50
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1c954
movl 0x14(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0x1c963
leaq 0x20(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x7644
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
je 0x1ca56
movl (%rax), %ecx
movl %ecx, 0x1c(%rsp)
movq 0x40(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1c98d
addq $0x4, %rax
jmp 0x1c9bf
movq 0x38(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x48(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
xorl %r15d, %r15d
movq %r14, %rdi
movq %r13, %rsi
callq 0x12762
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
jbe 0x1c963
movq %r14, %rdi
movq %r13, %rsi
callq 0x12762
movq (%rax), %rax
movl (%rax,%r15,4), %eax
movl %eax, 0xc(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1d5da
cmpb $0x0, (%rax)
jne 0x1ca4e
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1d5da
movb $0x1, (%rax)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1ca3a
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0x1ca47
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x7644
movq 0x8(%rbx), %rax
incl -0x4(%rax)
incq %r15
jmp 0x1c9c7
leaq 0x20(%rsp), %rdi
callq 0x6998
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rsi
movq 0x8(%rsi), %rsi
testq %rsi, %rsi
jne 0x1ca80
movq 0x8(%rdx), %rsi
addq $0x8, %rdx
jmp 0x1ca71
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rcx
cmpq (%rax,%rcx,8), %rsi
jne 0x1c8b2
leaq 0x88(%rsp), %rdi
callq 0x15896
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1cac6
jmp 0x1cabf
jmp 0x1cabf
movq %rax, %rbx
jmp 0x1cad3
jmp 0x1cac6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x6998
leaq 0x88(%rsp), %rdi
callq 0x15896
movq %rbx, %rdi
callq 0x23b0