// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq %rsi, %rbx
movq %rdi, %r12
addq $0x98, %rdi
movl (%rsi), %eax
leaq 0x4(%rsp), %r13
movl %eax, (%r13)
movq %rdi, 0x18(%rsp)
movq %r13, %rsi
callq 0x7356
movq %rbx, 0x8(%rsp)
movl (%rbx), %eax
movl %eax, (%r13)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x5063
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r14)
jmp 0x5070
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
callq 0x7466
movq %r14, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rbx
movq 0x30(%rax), %rax
movq %rax, 0x20(%rsp)
cmpq %rax, %rbx
setne %bpl
je 0x523d
leaq 0x70(%r12), %r15
leaq 0xa0(%r12), %r14
movl (%rbx), %r13d
movq 0x8(%rsp), %rax
cmpl %r13d, (%rax)
je 0x5282
movq %r12, %rdi
movl %r13d, %esi
callq 0x4d66
movq 0x78(%r12), %rdx
movq %r15, %rcx
testq %rdx, %rdx
je 0x50e5
movq %r15, %rcx
xorl %esi, %esi
cmpl %r13d, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x50cd
movq %r15, %rdx
cmpq %r15, %rcx
je 0x50f8
cmpl 0x20(%rcx), %r13d
cmovbq %r15, %rcx
movq %rcx, %rdx
movl $0x3, %ecx
cmpq %r15, %rdx
jne 0x5221
movq 0xa8(%r12), %rdx
movq %r14, %rcx
testq %rdx, %rdx
je 0x5131
movq %r14, %rcx
xorl %esi, %esi
cmpl %r13d, 0x20(%rdx)
setb %sil
cmovaeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x5119
movq %r14, %rdx
cmpq %r14, %rcx
je 0x5144
cmpl 0x20(%rcx), %r13d
cmovbq %r14, %rcx
movq %rcx, %rdx
cmpq %r14, %rdx
je 0x51d4
movl $0x10, %edx
movb %bpl, 0x3(%rsp)
movq %r14, %rbp
movq 0x1de57(%rip), %r14     # 0x22fb8
movq %r14, %rdi
leaq 0x131d4(%rip), %rsi     # 0x1833f
callq 0x43a0
movq %r12, %rdi
movl %r13d, %esi
callq 0x4d66
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r14, %rdi
movq %rbp, %r14
movb 0x3(%rsp), %bpl
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 0x10(%rsp), %r13
movq %r13, %rsi
callq 0x4f32
addq $-0x4, 0x8(%r13)
jmp 0x51f4
movq %r12, %rdi
movq %rax, %rsi
movq 0x10(%rsp), %rdx
callq 0x500c
xorl %ecx, %ecx
testb %al, %al
je 0x5221
movq 0x10(%rsp), %rax
addq $-0x4, 0x8(%rax)
movq 0x8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %r13
movq %r13, %rdi
leaq 0x4(%rsp), %rsi
callq 0x7542
movq %r13, %rdi
movq %rax, %rsi
callq 0x75ba
movl $0x1, %ecx
cmpl $0x3, %ecx
je 0x522a
testl %ecx, %ecx
jne 0x526d
addq $0x4, %rbx
cmpq 0x20(%rsp), %rbx
setne %bpl
jne 0x50a1
movq 0x10(%rsp), %rax
addq $-0x4, 0x8(%rax)
movq 0x8(%rsp), %rax
movl (%rax), %eax
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x7542
movq %rbx, %rdi
movq %rax, %rsi
callq 0x75ba
andb $0x1, %bpl
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13053(%rip), %rdi     # 0x182dc
leaq 0x12ecf(%rip), %rsi     # 0x1815f
leaq 0x1306a(%rip), %rcx     # 0x18301
movl $0x99, %edx
callq 0x4230
nop