// File: /workspace/github_cpp_makefile_star2_O3/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 0x1c67a
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 0x15a34
addq $0x10, %rsp
movq 0x8(%r14), %rax
movq (%rax), %r15
movq %rax, %rbp
testq %r15, %r15
jne 0x1c6d0
movq %rax, %rbp
movq 0x8(%rbp), %r15
addq $0x8, %rbp
testq %r15, %r15
je 0x1c6c3
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
je 0x1c724
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 0x1d968
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x1c716
movq 0x8(%rbp), %r15
addq $0x8, %rbp
jmp 0x1c707
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
jne 0x1c6e7
movq 0x90(%rsp), %rax
movq (%rax), %rsi
movq %rax, %rdx
testq %rsi, %rsi
jne 0x1c747
movq %rax, %rdx
movq 0x8(%rdx), %rsi
addq $0x8, %rdx
testq %rsi, %rsi
je 0x1c73a
movq 0x98(%rsp), %rcx
cmpq (%rax,%rcx,8), %rsi
je 0x1c966
leaq 0x1c(%rsp), %r13
leaq 0x88(%rsp), %rbp
leaq 0xc(%rsp), %r12
cmpb $0x0, 0x4(%rsi)
jne 0x1c939
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 0x1c7b3
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
leaq 0x20(%rsp), %rdi
jmp 0x1c7c6
movq %rbx, %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rdx
callq 0x1bd70
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 0x6ad0
movq 0x50(%rsp), %rcx
movq 0x60(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x1c80d
movl 0x14(%rsp), %eax
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x50(%rsp)
jmp 0x1c821
leaq 0x20(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x75be
movq 0x50(%rsp), %rcx
movq 0x30(%rsp), %rax
cmpq %rax, %rcx
je 0x1c922
movl (%rax), %ecx
movl %ecx, 0x1c(%rsp)
movq 0x40(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1c849
addq $0x4, %rax
jmp 0x1c87b
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 0x126b8
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
jbe 0x1c912
movq %r14, %rdi
movq %r13, %rsi
callq 0x126b8
movq (%rax), %rax
movl (%rax,%r15,4), %eax
movl %eax, 0xc(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1d4c8
cmpb $0x0, (%rax)
jne 0x1c90a
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1d4c8
movb $0x1, (%rax)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1c8f6
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0x1c903
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x75be
movq 0x8(%rbx), %rax
incl -0x4(%rax)
incq %r15
jmp 0x1c883
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
jne 0x1c82f
leaq 0x20(%rsp), %rdi
callq 0x690a
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rsi
movq 0x8(%rsi), %rsi
testq %rsi, %rsi
jne 0x1c94c
movq 0x8(%rdx), %rsi
addq $0x8, %rdx
jmp 0x1c93d
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rcx
cmpq (%rax,%rcx,8), %rsi
jne 0x1c76b
leaq 0x88(%rsp), %rdi
callq 0x157a4
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1c992
jmp 0x1c98b
jmp 0x1c98b
movq %rax, %rbx
jmp 0x1c99f
jmp 0x1c992
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x690a
leaq 0x88(%rsp), %rdi
callq 0x157a4
movq %rbx, %rdi
callq 0x23b0