// File: /workspace/github_cpp_makefile_star2_O3/LiuYinCarl[P]headerFileAnalysis/headerFileAnalysis.cpp
// Function: WalkMan::get_include_lines(std::filesystem::__cxx11::path const&)
std::vector<std::string> WalkMan::get_include_lines(const fs::path& path) {
  // regex expression from:
  // https://stackoverflow.com/questions/26492513/write-c-regular-expression-to-match-a-include-preprocessing-directive
  static std::regex re{"^\\s*#\\s*include\\s+[<\"][^>\"]*[>\"]\\s*"};
  //static std::regex re_filename{"\"(.*?)\"|(<.*?>)"};
  static std::regex re_filename{"[<\"](.*?)[>\"]"};
  std::vector<std::string> include_info{ path.filename() };

  std::ifstream is { path.c_str() };
  std::string s;
  while (std::getline(is, s)) {
    if (std::regex_search(begin(s), end(s), re)) {
      std::smatch matchRes;
      std::regex_search(s, matchRes, re_filename);
      std::string filename = matchRes[1].str();
      assert(filename.size() > 0);
      if (headers.count(filename) == 0) { // filter stdlib headers
	continue;
      }
      include_info.emplace_back(std::move(filename));
    }
  }
  assert(include_info.size() > 0);
  return include_info;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
movb 0x1db26(%rip), %al      # 0x23718
testb %al, %al
je 0x5f2c
movb 0x1db40(%rip), %al      # 0x23740
testb %al, %al
je 0x5f83
movq 0x8(%r15), %rcx
testq %rcx, %rcx
je 0x5c6c
movq 0x20(%r15), %rax
movl %eax, %edx
notb %dl
movq %r15, %rsi
testb $0x3, %dl
je 0x5c5d
movl %eax, %edx
andl $0x3, %edx
jne 0x5c6c
movq (%r15), %rdx
cmpb $0x2f, -0x1(%rdx,%rcx)
je 0x5c6c
movq %r15, %rsi
testb $0x3, %al
jne 0x5c57
leaq 0x20(%r15), %rdi
callq 0x4210
movq %rax, %rsi
movq 0x20(%r15), %rax
addq $-0x30, %rsi
testb $0x3, %al
cmovneq %r15, %rsi
movq 0x20(%rsi), %rax
notl %eax
testb $0x3, %al
jne 0x5c6c
leaq 0x80(%rsp), %rdi
callq 0x6ce2
jmp 0x5c79
leaq 0x80(%rsp), %rdi
callq 0x64d2
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x6d38
leaq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %rcx
movl $0x1, %edx
movq 0x8(%rsp), %rdi
callq 0x66f6
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x5ccf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4330
leaq 0x80(%rsp), %rdi
callq 0x660a
movq (%r15), %rsi
leaq 0x80(%rsp), %r15
movq %r15, %rdi
movl $0x8, %edx
callq 0x4520
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x108(%r12), %rax
movq %rax, 0x78(%rsp)
addq $0x110, %r12            # imm = 0x110
leaq 0x38(%rsp), %r13
leaq 0x10(%rsp), %rbx
leaq 0x58(%rsp), %r14
movq 0x80(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x4530
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x5ea3
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
addq %rdi, %rsi
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rbx, %rdx
leaq 0x1d970(%rip), %rcx     # 0x236f8
xorl %r8d, %r8d
callq 0x13183
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5da9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4330
testb %bpl, %bpl
je 0x5d2b
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
addq %rdi, %rsi
movq %rbx, %rdx
leaq 0x1d94a(%rip), %rcx     # 0x23720
xorl %r8d, %r8d
callq 0x151d8
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
je 0x5e12
movq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
addq $-0x5, %rdx
cmpq $-0x3, %rdx
ja 0x5e12
addq $0x18, %rax
jmp 0x5e19
addq %rcx, %rax
addq $-0x48, %rax
cmpb $0x1, 0x10(%rax)
jne 0x5ef5
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r14, %rdi
callq 0x1722e
cmpq $0x0, 0x60(%rsp)
je 0x5f0d
movq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x172a8
cmpq %r12, %rax
je 0x5e67
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x673e
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x5e83
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x4330
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5d2b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4330
jmp 0x5d2b
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
cmpq (%rcx), %rax
je 0x5fda
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x5ed1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4330
leaq 0x80(%rsp), %rdi
callq 0x4070
movq 0x8(%rsp), %rax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
movb $0x0, 0x68(%rsp)
leaq 0x1253a(%rip), %rdi     # 0x1844e
leaq 0x12244(%rip), %rsi     # 0x1815f
leaq 0x12540(%rip), %rcx     # 0x18462
movl $0x123, %edx            # imm = 0x123
callq 0x4230
leaq 0x1d7e5(%rip), %rdi     # 0x23718
callq 0x4500
testl %eax, %eax
je 0x5bfa
leaq 0x1d7b1(%rip), %rdi     # 0x236f8
leaq 0x124ce(%rip), %rsi     # 0x1841c
movl $0x10, %edx
callq 0x666e
leaq 0x777(%rip), %rdi       # 0x66d6
leaq 0x1d792(%rip), %rsi     # 0x236f8
leaq 0x1d36b(%rip), %rdx     # 0x232d8
callq 0x42d0
leaq 0x1d79f(%rip), %rdi     # 0x23718
callq 0x4220
jmp 0x5bfa
leaq 0x1d7b6(%rip), %rdi     # 0x23740
callq 0x4500
testl %eax, %eax
je 0x5c08
leaq 0x1d782(%rip), %rdi     # 0x23720
leaq 0x1249b(%rip), %rsi     # 0x18440
movl $0x10, %edx
callq 0x666e
leaq 0x720(%rip), %rdi       # 0x66d6
leaq 0x1d763(%rip), %rsi     # 0x23720
leaq 0x1d314(%rip), %rdx     # 0x232d8
callq 0x42d0
leaq 0x1d770(%rip), %rdi     # 0x23740
callq 0x4220
jmp 0x5c08
leaq 0x124c7(%rip), %rdi     # 0x184a8
leaq 0x12177(%rip), %rsi     # 0x1815f
leaq 0x12473(%rip), %rcx     # 0x18462
movl $0x12a, %edx            # imm = 0x12A
callq 0x4230
movq %rax, %rbx
leaq 0x1d73d(%rip), %rdi     # 0x23740
jmp 0x600f
movq %rax, %rbx
leaq 0x1d709(%rip), %rdi     # 0x23718
callq 0x4200
jmp 0x60ce
movq %rax, %rbx
jmp 0x60ce
movq %rax, %rbx
jmp 0x60c4
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x6048
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4330
jmp 0x6048
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x660a
jmp 0x60ce
jmp 0x607c
jmp 0x607c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x607f
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x4330
jmp 0x607f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x609b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4330
jmp 0x609b
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq 0x38(%rsp), %rdi
cmpq %rax, %rdi
je 0x60b7
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4330
leaq 0x80(%rsp), %rdi
callq 0x4070
movq 0x8(%rsp), %rdi
callq 0x67ac
movq %rbx, %rdi
callq 0x44e0