// File: /workspace/github_cpp_makefile_star2_O3/LiuYinCarl[P]headerFileAnalysis/headerFileAnalysis.cpp
// Function: Graph::check_circle_dfs(Node*, std::vector<unsigned int, std::allocator<unsigned int>>&)
bool Graph::check_circle_dfs(Node* node, std::vector<uint32_t>& circle_link) {
  visiting.insert(node->get_node_id());
  circle_link.push_back(node->get_node_id());
  std::vector<uint32_t>& childrens = node->get_child_nodes();
  for (uint32_t child_node_id : childrens) {
    assert(node->get_node_id() != child_node_id);
    Node* child_node = get_node_by_id(child_node_id);
    if (visited.count(child_node_id) > 0)
      continue;
    if (visiting.count(child_node_id) > 0) {
      std::cout << "circle include: " << get_node_by_id(child_node_id)->get_node_name() << std::endl;
      print_circle(circle_link);
      circle_link.pop_back();
      visiting.erase(node->get_node_id());
      return true;
    }
    if (check_circle_dfs(child_node, circle_link)) {
      circle_link.pop_back();
      visiting.erase(node->get_node_id());
      return true;
    }
  }
  circle_link.pop_back();
  visiting.erase(node->get_node_id());
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0x98(%rdi), %rbx
movl (%rsi), %eax
leaq 0xc(%rsp), %r13
movl %eax, (%r13)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x72ea
movq %r14, 0x10(%rsp)
movl (%r14), %eax
movl %eax, (%r13)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
movq %rbx, 0x20(%rsp)
movq %r15, 0x18(%rsp)
je 0x504c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r15)
jmp 0x5059
leaq 0xc(%rsp), %rdx
movq %r15, %rdi
callq 0x73f8
movq 0x10(%rsp), %rax
movq 0x28(%rax), %r13
movq 0x30(%rax), %rbx
cmpq %rbx, %r13
je 0x5117
leaq 0x70(%r12), %r15
leaq 0xa0(%r12), %r14
movl (%r13), %ebp
movq 0x10(%rsp), %rax
cmpl %ebp, (%rax)
je 0x5205
movq %r12, %rdi
movl %ebp, %esi
callq 0x4d56
movq 0x78(%r12), %rcx
testq %rcx, %rcx
je 0x50c5
movq %r15, %rdx
xorl %esi, %esi
cmpl %ebp, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rdx
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x50a4
cmpq %r15, %rdx
je 0x50c5
cmpl 0x20(%rdx), %ebp
jae 0x510a
movq 0xa8(%r12), %rcx
testq %rcx, %rcx
je 0x50f6
movq %r14, %rdx
xorl %esi, %esi
cmpl %ebp, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rdx
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x50d5
cmpq %r14, %rdx
je 0x50f6
cmpl 0x20(%rdx), %ebp
jae 0x515a
movq %r12, %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
callq 0x4fec
testb %al, %al
jne 0x514e
addq $0x4, %r13
cmpq %rbx, %r13
jne 0x507c
movq 0x18(%rsp), %rax
addq $-0x4, 0x8(%rax)
movq 0x10(%rsp), %rax
movl (%rax), %eax
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x74d4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7552
xorl %eax, %eax
jmp 0x51f6
movq 0x18(%rsp), %rax
addq $-0x4, 0x8(%rax)
jmp 0x51ce
movq 0x1de57(%rip), %r13     # 0x22fb8
leaq 0x131d7(%rip), %rsi     # 0x1833f
movl $0x10, %edx
movq %r13, %rdi
callq 0x43a0
movq %r12, %rdi
movl %ebp, %esi
callq 0x4d56
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r13, %rdi
callq 0x43a0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq %r12, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rsi
callq 0x4f12
addq $-0x4, 0x8(%rbx)
movq 0x10(%rsp), %rax
movl (%rax), %eax
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x74d4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7552
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x130d0(%rip), %rdi     # 0x182dc
leaq 0x12f4c(%rip), %rsi     # 0x1815f
leaq 0x130e7(%rip), %rcx     # 0x18301
movl $0x99, %edx
callq 0x4230