// File: /workspace/github_cpp_makefile_star2_O1/kulpreet[P]lightning-network-graph-analysis/src/include/algos.hpp
// Function: lncentrality::get_articulation_points(boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, lncentrality::LitVertex, lncentrality::LitEdge, boost::no_property, boost::listS>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void get_articulation_points(LitGraph &g, string &stem, string &outdir) {
  std::ofstream out;
  std::vector<Vertex> art_points;
  std::pair<std::size_t, std::back_insert_iterator<std::vector<Vertex>>>
      results = biconnected_components(g, get(&LitEdge::component, g),
                                       std::back_inserter(art_points));

  // date, #components, #interesting art points
  out.open(outdir + "/all_ap_stats.csv", std::fstream::out | std::fstream::app);
  out << stem << "," << results.first << "," << art_points.size() << std::endl;
  out.close();

  find_non_singleton_components(art_points, g, stem, outdir);
  sort_and_print_art_points(art_points, g, stem, outdir);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x240, %rsp            # imm = 0x240
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x40(%rsp), %rdi
callq 0x7500
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x20(%rsp), %rcx
movl $0x0, (%rcx)
movl $0xd8, %esi
movq %r15, %rdi
callq 0xd9ee
movq %rax, %r12
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xabc6
leaq 0x134b0(%rip), %rsi     # 0x1c104
leaq 0x20(%rsp), %rdi
callq 0x75c0
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x11, %edx
callq 0x7170
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x8c89
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7300
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x40(%rsp), %rdi
callq 0x7350
movq %rax, %r13
leaq 0x133f2(%rip), %rsi     # 0x1c096
movl $0x1, %edx
movq %rax, %rdi
callq 0x7350
movq %r13, %rdi
movq %r12, %rsi
callq 0x7230
movq %rax, %r12
leaq 0x133d0(%rip), %rsi     # 0x1c096
movl $0x1, %edx
movq %rax, %rdi
callq 0x7350
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x3, %rsi
movq %r12, %rdi
callq 0x7230
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x72e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
leaq 0x40(%rsp), %rdi
callq 0x7430
movq %rsp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x8448
movq %rsp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x80ac
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8d54
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x7300
movq 0x21225(%rip), %rax     # 0x29f80
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x48(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x40(%rsp,%rcx)
callq 0x72a0
leaq 0x138(%rsp), %rdi
callq 0x7110
addq $0x240, %rsp            # imm = 0x240
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x8d99
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x8dba
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7300
jmp 0x8dba
jmp 0x8db7
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8dd0
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x7300
leaq 0x40(%rsp), %rdi
callq 0x7450
movq %rbx, %rdi
callq 0x7550