// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/bicon.cc
// Function: graph_t::i_art_point_dfs_visitor(unsigned int, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<unsigned int, std::allocator<unsigned int>>&, int&, std::vector<unsigned int, std::allocator<unsigned int>>&)
void graph_t::i_art_point_dfs_visitor(node_id_t u,
                          vector<int>& color_vec,
                          vector<int>& low_vec,
                          vector<int>& d_vec,
                          vector<node_id_t>& pred_vec,
                          int& time,
                          vector<node_id_t>& art_point_vec)
{
    color_vec[u] = 1;           //1 means grey
    d_vec[u] = ++time;
    low_vec[u] = d_vec[u];
    vector<node_id_t> nbr_vec = get_nbrs(u);
    int tree_edge_cnt = 0;
    for(int i = 0; i < nbr_vec.size(); ++i) {
        node_id_t v = nbr_vec[i];
        if(color_vec[v] == 0) { // (u, v) is a tree edge
            pred_vec[v] = u;
            tree_edge_cnt++;
            i_art_point_dfs_visitor(v, color_vec, low_vec, d_vec, pred_vec, time, art_point_vec);
            low_vec[u] = min(low_vec[u], low_vec[v]);
            if(pred_vec[u] == -1) {     //this is the root of the tree
                //if v is u's second child then u is art vertex
                if(tree_edge_cnt > 1) {
                    art_point_vec.push_back(u);
                }
            } else if(low_vec[v] >= d_vec[u]) {
                art_point_vec.push_back(u);
            }
        } else if(v != pred_vec[u]) {   // (u, v) is a back edge
            low_vec[u] = min(low_vec[u], d_vec[v]);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movq %rdx, %r14
movq 0x80(%rsp), %r10
movl %esi, 0xc(%rsp)
movl %esi, %eax
movq (%rdx), %rdx
movl $0x1, (%rdx,%rax,4)
movl (%r10), %r9d
incl %r9d
movl %r9d, (%r10)
movq %r8, 0x10(%rsp)
movq (%r8), %rdx
movl %r9d, (%rdx,%rax,4)
movq %rcx, 0x18(%rsp)
movq (%rcx), %rdx
movl %r9d, (%rdx,%rax,4)
movq %rdi, 0x20(%rsp)
callq 0x1dc78
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x6112
movq (%r13), %rdi
cmpq %rdi, 0x8(%r13)
je 0x1467f
movq 0x88(%rsp), %r10
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %r14, 0x28(%rsp)
movl (%rdi,%rbp,4), %r13d
movq (%r14), %rax
cmpl $0x0, (%rax,%r13,4)
movl 0xc(%rsp), %eax
je 0x145ce
movq (%rbx), %rcx
cmpl (%rcx,%rax,4), %r13d
je 0x145a5
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq (%rdx), %rdx
movl (%rdx,%r13,4), %edx
movl (%rcx,%rax,4), %esi
cmpl %esi, %edx
cmovll %edx, %esi
movl %esi, (%rcx,%rax,4)
movl %r15d, %r14d
incq %rbp
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
movl %r14d, %r15d
cmpq %rbp, %rax
movq 0x28(%rsp), %r14
ja 0x1456b
jmp 0x1467f
movq (%rbx), %rcx
movl %eax, (%rcx,%r13,4)
movq 0x20(%rsp), %rdi
movl %r13d, %esi
movq %r14, %rdx
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %r8
movq %rbx, %r9
pushq %r10
pushq 0x88(%rsp)
movq %r10, %r12
callq 0x144e4
addq $0x10, %rsp
movq %r12, %r10
leal 0x1(%r15), %r14d
movl 0xc(%rsp), %eax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movl (%rcx,%r13,4), %edx
movl (%rcx,%rax,4), %esi
cmpl %esi, %edx
cmovll %edx, %esi
movl %esi, (%rcx,%rax,4)
movl 0xc(%rsp), %eax
movq (%rbx), %rdx
cmpl $-0x1, (%rdx,%rax,4)
je 0x14648
movl (%rcx,%r13,4), %ecx
movq 0x10(%rsp), %rdx
movq (%rdx), %rdx
cmpl (%rdx,%rax,4), %ecx
jl 0x145a8
jmp 0x14651
testl %r15d, %r15d
jle 0x145a8
movq 0x8(%r10), %rsi
cmpq 0x10(%r10), %rsi
je 0x1466a
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r10)
jmp 0x145a8
movq %r10, %rdi
leaq 0xc(%rsp), %rdx
callq 0x6f14
movq %r12, %r10
jmp 0x145a8
testq %rdi, %rdi
je 0x14691
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x146ba
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0