LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::GetReservedAttributesForElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static std::vector<std::string> GetReservedAttributesForElement(
    const std::string& xml_element) {
  if (xml_element == "testsuites") {
    return ArrayAsVector(kReservedTestSuitesAttributes);
  } else if (xml_element == "testsuite") {
    return ArrayAsVector(kReservedTestSuiteAttributes);
  } else if (xml_element == "testcase") {
    return ArrayAsVector(kReservedTestCaseAttributes);
  } else {
    GTEST_CHECK_(false) << "Unrecognized xml_element provided: " << xml_element;
  }
  // This code is unreachable but some compilers may not realizes that.
  return std::vector<std::string>();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1c279(%rip), %rsi     # 0x28d06
movq %r14, %rdi
callq 0x6120
testl %eax, %eax
je 0xcb43
leaq 0x1c23f(%rip), %rsi     # 0x28ce3
movq %r14, %rdi
callq 0x6120
testl %eax, %eax
je 0xcb58
leaq 0x1c1a5(%rip), %rsi     # 0x28c60
movq %r14, %rdi
callq 0x6120
testl %eax, %eax
je 0xcb6d
leaq 0x1b7bf(%rip), %rdx     # 0x28291
leaq 0x4(%rsp), %rdi
movl $0x3, %esi
movl $0xcd2, %ecx            # imm = 0xCD2
callq 0x1be2c
movq 0x2a503(%rip), %rdi     # 0x36ff0
leaq 0x1cb7d(%rip), %rsi     # 0x29671
movl $0x18, %edx
callq 0x6510
movq 0x2a4eb(%rip), %rdi     # 0x36ff0
leaq 0x1cb7e(%rip), %rsi     # 0x2968a
movl $0x23, %edx
callq 0x6510
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x2a4cc(%rip), %rdi     # 0x36ff0
callq 0x6510
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
jmp 0xcb88
leaq 0x29f06(%rip), %rsi     # 0x36a50
leaq 0x29f3f(%rip), %rdx     # 0x36a90
leaq 0x1(%rsp), %rcx
jmp 0xcb80
leaq 0x29f31(%rip), %rsi     # 0x36a90
leaq 0x29f5a(%rip), %rdx     # 0x36ac0
leaq 0x2(%rsp), %rcx
jmp 0xcb80
leaq 0x29f4c(%rip), %rsi     # 0x36ac0
leaq 0x29f75(%rip), %rdx     # 0x36af0
leaq 0x3(%rsp), %rcx
movq %rbx, %rdi
callq 0x21d44
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::TestResult::Clear()
void TestResult::Clear() {
  test_part_results_.clear();
  test_properties_.clear();
  death_test_count_ = 0;
  elapsed_time_ = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x38, %rdi
movq 0x38(%rbx), %rsi
callq 0x24b58
leaq 0x50(%rbx), %rdi
movq 0x50(%rbx), %rsi
callq 0x25456
movl $0x0, 0x68(%rbx)
movq $0x0, 0x70(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ReportFailureInUnknownLocation(testing::TestPartResult::Type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
                                    const std::string& message) {
  // This function is a friend of UnitTest and as such has access to
  // AddTestPartResult.
  UnitTest::GetInstance()->AddTestPartResult(
      result_type,
      NULL,  // No info about the source file where the exception occurred.
      -1,    // We have no info on which line caused the exception.
      message,
      "");   // No stack trace, either.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movl %edi, %ebp
callq 0x7dc8
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1bc11(%rip), %rdx     # 0x28ad5
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0x24240
leaq 0x2a785(%rip), %rdi     # 0x37660
movl %ebp, %esi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rbx, %r8
movq %r14, %r9
callq 0x7e38
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xcf06
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xcf2b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrintTestPartResultToString[abi:cxx11](testing::TestPartResult const&)
static std::string PrintTestPartResultToString(
    const TestPartResult& test_part_result) {
  return (Message()
          << internal::FormatFileLocation(test_part_result.file_name(),
                                          test_part_result.line_number())
          << " " << TestPartResultTypeToString(test_part_result.type())
          << test_part_result.message()).GetString();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x8(%rsp), %rdi
callq 0x9d20
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0xd3db
movq 0x8(%r15), %rsi
movl 0x28(%r15), %edx
leaq 0x10(%rsp), %rdi
callq 0xdc4d
movq 0x8(%rsp), %rbx
leaq 0x10(%rbx), %r12
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r12, %rdi
callq 0x6510
leaq 0x1be33(%rip), %rsi     # 0x2923e
movl $0x1, %edx
movq %r12, %rdi
callq 0x6510
movl (%r15), %eax
cmpq $0x2, %rax
ja 0xd431
leaq 0x1ade8(%rip), %rcx     # 0x28210
movslq (%rcx,%rax,4), %r13
addq %rcx, %r13
jmp 0xd438
leaq 0x1c311(%rip), %r13     # 0x29749
movq %r13, %rdi
callq 0x61c0
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x6510
movq 0x50(%r15), %r15
testq %r15, %r15
je 0xd464
movq %r15, %rdi
callq 0x61c0
movq %rax, %rdx
jmp 0xd470
movl $0x6, %edx
leaq 0x1b056(%rip), %r15     # 0x284c6
movq %r12, %rdi
movq %r15, %rsi
callq 0x6510
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9f89
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd4a1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6430
testq %rbx, %rbx
je 0xd4af
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xd4cb
movq %rax, %r14
movq 0x8(%rsp), %rbx
jmp 0xd4e9
jmp 0xd4cb
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd4e9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6430
testq %rbx, %rbx
je 0xd4f7
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %r14, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::Test::Run()
void Test::Run() {
  if (!HasSameFixtureClass()) return;

  internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(this, &Test::SetUp, "SetUp()");
  // We will run the test only if SetUp() was successful.
  if (!HasFatalFailure()) {
    impl->os_stack_trace_getter()->UponLeavingGTest();
    internal::HandleExceptionsInMethodIfSupported(
        this, &Test::TestBody, "the test body");
  }

  // However, we want to clean up as much as possible.  Hence we will
  // always call TearDown(), even if SetUp() or the test body has
  // failed.
  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &Test::TearDown, "TearDown()");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xcf34
testb %al, %al
je 0xd5a5
callq 0x7dc8
movq 0x2a180(%rip), %r14     # 0x376a0
movq %r14, %rdi
callq 0xd5ae
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
leaq 0x1b234(%rip), %rcx     # 0x2876c
movl $0x11, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1f44b
callq 0xd614
testb %al, %al
jne 0xd577
movq %r14, %rdi
callq 0xd5ae
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
leaq 0x1b20c(%rip), %rcx     # 0x28774
movl $0x21, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1f44b
movq %r14, %rdi
callq 0xd5ae
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
leaq 0x1b1f3(%rip), %rcx     # 0x28782
movl $0x19, %esi
movq %rbx, %rdi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1f44b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)
TestInfo* MakeAndRegisterTestInfo(
    const char* test_case_name,
    const char* name,
    const char* type_param,
    const char* value_param,
    TypeId fixture_class_id,
    SetUpTestCaseFunc set_up_tc,
    TearDownTestCaseFunc tear_down_tc,
    TestFactoryBase* factory) {
  TestInfo* const test_info =
      new TestInfo(test_case_name, name, type_param, value_param,
                   fixture_class_id, factory);
  GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info);
  return test_info;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movl $0xe0, %edi
callq 0x6400
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0x1dc32
leaq 0x18(%rsp), %rdi
leaq 0xe(%rsp), %rdx
movq %rbp, %rsi
callq 0x1dc32
movq 0x98(%rsp), %rax
movq %rax, (%rsp)
leaq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rcx
movq %r12, %r8
movq %r15, %r9
callq 0xd6b4
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd991
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x90(%rsp), %r15
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd9b4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6430
callq 0x7dc8
movq 0x29ce0(%rip), %rdi     # 0x376a0
movq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x1f5b6
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xda05
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0xda05
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xda25
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0xda25
movq %rax, %r14
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x6430
movq %r14, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::UnitTestImpl::RegisterParameterizedTests()
void UnitTestImpl::RegisterParameterizedTests() {
#if GTEST_HAS_PARAM_TEST
  if (!parameterized_tests_registered_) {
    parameterized_test_registry_.RegisterTests();
    parameterized_tests_registered_ = true;
  }
#endif
}

// Assembly:
cmpb $0x0, 0x100(%rdi)
jne 0xdf4d
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xe8(%rdi), %r14
cmpq 0xf0(%rbx), %r14
je 0xdf3f
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
addq $0x8, %r14
jmp 0xdf27
movb $0x1, 0x100(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::TestCase::Run()
void TestCase::Run() {
  if (!should_run_) return;

  internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  impl->set_current_test_case(this);

  TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater();

  repeater->OnTestCaseStart(*this);
  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &TestCase::RunSetUpTestCase, "SetUpTestCase()");

  const internal::TimeInMillis start = internal::GetTimeInMillis();
  for (int i = 0; i < total_test_count(); i++) {
    GetMutableTestInfo(i)->Run();
  }
  elapsed_time_ = internal::GetTimeInMillis() - start;

  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &TestCase::RunTearDownTestCase, "TearDownTestCase()");

  repeater->OnTestCaseEnd(*this);
  impl->set_current_test_case(NULL);
}

// Assembly:
cmpb $0x1, 0x70(%rdi)
jne 0xe514
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x7dc8
movq 0x292df(%rip), %r14     # 0x376a0
movq %rbx, 0x108(%r14)
callq 0x7dc8
movq 0x292cc(%rip), %rax     # 0x376a0
movq 0x190(%rax), %r15
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0x30(%rax)
movq %r14, %rdi
callq 0xd5ae
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
leaq 0x115bd(%rip), %rsi     # 0x1f9bc
leaq 0x1a4fb(%rip), %rcx     # 0x28901
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1f852
leaq 0x8(%rsp), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x6830
movabsq $-0x20c49ba5e353f7cf, %rax # imm = 0xDF3B645A1CAC0831
imulq 0x8(%r13)
movq %rdx, %r12
movq (%r13), %rbp
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %r12
addq %rax, %r12
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0xe483
xorl %r13d, %r13d
movq 0x48(%rbx), %rcx
movl (%rcx,%r13,4), %ecx
movq (%rax,%rcx,8), %rdi
callq 0xdf4e
incq %r13
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r13
jl 0xe458
leaq 0x8(%rsp), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x6830
movq (%r13), %rcx
subq %rbp, %rcx
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x8(%r13)
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
addq %r12, %rdx
imulq $0x3e8, %rcx, %rax      # imm = 0x3E8
addq %rdx, %rax
movq %rax, 0x78(%rbx)
movq %r14, %rdi
callq 0xd5ae
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
leaq 0x114e2(%rip), %rsi     # 0x1f9c0
leaq 0x1a42c(%rip), %rcx     # 0x28911
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1f852
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0x50(%rax)
movq $0x0, 0x108(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ColoredPrintf(testing::internal::GTestColor, char const*, ...)
void ColoredPrintf(GTestColor color, const char* fmt, ...) {
  va_list args;
  va_start(args, fmt);

#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || GTEST_OS_ZOS || GTEST_OS_IOS
  const bool use_color = false;
#else
  static const bool in_color_mode =
      ShouldUseColor(posix::IsATTY(posix::FileNo(stdout)) != 0);
  const bool use_color = in_color_mode && (color != COLOR_DEFAULT);
#endif  // GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || GTEST_OS_ZOS
  // The '!= 0' comparison is necessary to satisfy MSVC 7.1.

  if (!use_color) {
    vprintf(fmt, args);
    va_end(args);
    return;
  }

#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE
  const HANDLE stdout_handle = GetStdHandle(STD_OUTPUT_HANDLE);

  // Gets the current text color.
  CONSOLE_SCREEN_BUFFER_INFO buffer_info;
  GetConsoleScreenBufferInfo(stdout_handle, &buffer_info);
  const WORD old_color_attrs = buffer_info.wAttributes;

  // We need to flush the stream buffers into the console before each
  // SetConsoleTextAttribute call lest it affect the text that is already
  // printed but has not yet reached the console.
  fflush(stdout);
  SetConsoleTextAttribute(stdout_handle,
                          GetColorAttribute(color) | FOREGROUND_INTENSITY);
  vprintf(fmt, args);

  fflush(stdout);
  // Restores the text color.
  SetConsoleTextAttribute(stdout_handle, old_color_attrs);
#else
  printf("\033[0;3%sm", GetAnsiColorCode(color));
  vprintf(fmt, args);
  printf("\033[m");  // Resets the terminal to default.
#endif  // GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE
  va_end(args);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0xe823
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsi, 0x10(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rsp)
movb 0x28e0f(%rip), %al      # 0x37658
testb %al, %al
je 0xe8b0
testl %ebp, %ebp
je 0xe870
cmpb $0x0, 0x28df8(%rip)     # 0x37650
je 0xe870
cmpl $0x3, %ebp
ja 0xe87d
movslq %ebp, %rax
leaq 0x28287(%rip), %rcx     # 0x36af0
movq -0x8(%rcx,%rax,8), %rsi
jmp 0xe87f
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6440
jmp 0xe8a6
xorl %esi, %esi
leaq 0x1a0f5(%rip), %rdi     # 0x2897b
xorl %eax, %eax
callq 0x6080
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6440
leaq 0x1a0e5(%rip), %rdi     # 0x28984
xorl %eax, %eax
callq 0x6080
addq $0xd8, %rsp
popq %rbx
popq %rbp
retq
callq 0x6a2a
jmp 0xe84d
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::Int32FromEnvOrDie(char const*, int)
Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
  const char* str_val = posix::GetEnv(var);
  if (str_val == NULL) {
    return default_val;
  }

  Int32 result;
  if (!ParseInt32(Message() << "The value of environment variable " << var,
                  str_val, &result)) {
    exit(EXIT_FAILURE);
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r15
callq 0x65c0
testq %rax, %rax
je 0xef5e
movq %rax, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x9d20
movq (%rbx), %rbx
leaq 0x10(%rbx), %r12
leaq 0x1a0d5(%rip), %rsi     # 0x28fd2
movl $0x22, %edx
movq %r12, %rdi
callq 0x6510
testq %r15, %r15
je 0xef1c
movq %r15, %rdi
callq 0x61c0
movq %rax, %rdx
jmp 0xef28
movl $0x6, %edx
leaq 0x1959e(%rip), %r15     # 0x284c6
movq %r12, %rdi
movq %r15, %rsi
callq 0x6510
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
movq %r14, %rsi
callq 0x149a0
movl %eax, %ebp
testq %rbx, %rbx
je 0xef55
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
testb %bpl, %bpl
je 0xef6d
movl 0x4(%rsp), %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x65b0
movq %rax, %r14
testq %rbx, %rbx
je 0xef88
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %r14, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrettyUnitTestResultPrinter::OnTestCaseStart(testing::TestCase const&)
void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
  const std::string counts =
      FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
  ColoredPrintf(COLOR_GREEN, "[----------] ");
  printf("%s from %s", counts.c_str(), test_case.name());
  if (test_case.type_param() == NULL) {
    printf("\n");
  } else {
    printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
  }
  fflush(stdout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq 0x30(%rsi), %rax
movq 0x38(%rsi), %rcx
xorl %esi, %esi
cmpq %rcx, %rax
je 0xf028
movq (%rax), %rdx
movzbl 0x58(%rdx), %edx
addl %edx, %esi
addq $0x8, %rax
jmp 0xf014
leaq 0x1a247(%rip), %rdx     # 0x29276
leaq 0x19a2f(%rip), %rcx     # 0x28a65
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xf0cf
leaq 0x19a0d(%rip), %rsi     # 0x28a57
movl $0x2, %edi
xorl %eax, %eax
callq 0xe7c5
movq (%r14), %rsi
movq 0x8(%rbx), %rdx
leaq 0x19a07(%rip), %rdi     # 0x28a6b
xorl %eax, %eax
callq 0x6080
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0xf093
movq (%rax), %rdx
testq %rdx, %rdx
je 0xf093
leaq 0x199f3(%rip), %rdi     # 0x28a76
leaq 0x18418(%rip), %rsi     # 0x274a2
xorl %eax, %eax
callq 0x6080
jmp 0xf09d
movl $0xa, %edi
callq 0x66c0
movq 0x27ee4(%rip), %rax     # 0x36f88
movq (%rax), %rdi
callq 0x6560
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf0c7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrettyUnitTestResultPrinter::OnTestStart(testing::TestInfo const&)
void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
  ColoredPrintf(COLOR_GREEN,  "[ RUN      ] ");
  PrintTestName(test_info.test_case_name(), test_info.name());
  printf("\n");
  fflush(stdout);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
leaq 0x19856(%rip), %rsi     # 0x28a87
movl $0x2, %edi
xorl %eax, %eax
callq 0xe7c5
movq (%rbx), %rsi
movq 0x20(%rbx), %rdx
leaq 0x1988b(%rip), %rdi     # 0x28ad6
xorl %eax, %eax
callq 0x6080
movl $0xa, %edi
callq 0x66c0
movq 0x27d25(%rip), %rax     # 0x36f88
movq (%rax), %rdi
popq %rbx
jmp 0x6560
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult(testing::TestPartResult const&)
void PrettyUnitTestResultPrinter::OnTestPartResult(
    const TestPartResult& result) {
  // If the test part succeeded, we don't need to do anything.
  if (result.type() == TestPartResult::kSuccess)
    return;

  // Print failure message from the assertion (e.g. expected this and got that).
  PrintTestPartResult(result);
  fflush(stdout);
}

// Assembly:
cmpl $0x0, (%rsi)
je 0xf2c5
pushq %r14
pushq %rbx
subq $0x28, %rsp
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xd3b1
movq (%rbx), %rdi
callq 0x67c0
movq 0x27cf4(%rip), %r14     # 0x36f88
movq (%r14), %rdi
callq 0x6560
movq (%rbx), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf2b6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq (%r14), %rdi
callq 0x6560
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(testing::TestInfo const&)
void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
  if (test_info.result()->Passed()) {
    ColoredPrintf(COLOR_GREEN, "[       OK ] ");
  } else {
    ColoredPrintf(COLOR_RED, "[  FAILED  ] ");
  }
  PrintTestName(test_info.test_case_name(), test_info.name());
  if (test_info.result()->Failed())
    PrintFullTestCommentIfPresent(test_info);

  if (GTEST_FLAG(print_time)) {
    printf(" (%s ms)\n", internal::StreamableToString(
           test_info.result()->elapsed_time()).c_str());
  } else {
    printf("\n");
  }
  fflush(stdout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
leaq 0x68(%rsi), %r14
movq %r14, %rdi
callq 0xcbd6
testb %al, %al
je 0xf2ee
leaq 0x197bc(%rip), %rsi     # 0x28aa3
movl $0x1, %edi
jmp 0xf2fa
leaq 0x197a0(%rip), %rsi     # 0x28a95
movl $0x2, %edi
xorl %eax, %eax
callq 0xe7c5
movq (%rbx), %rsi
movq 0x20(%rbx), %rdx
leaq 0x197c7(%rip), %rdi     # 0x28ad6
xorl %eax, %eax
callq 0x6080
movq %r14, %rdi
callq 0xcbd6
testb %al, %al
je 0xf32a
movq %rbx, %rdi
callq 0xe8b7
cmpb $0x1, 0x2827f(%rip)     # 0x375b0
jne 0xf37a
movq 0xd8(%rbx), %rax
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1f9c3
movq (%rbx), %rsi
leaq 0x1975a(%rip), %rdi     # 0x28ab1
xorl %eax, %eax
callq 0x6080
movq (%rbx), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xf384
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0xf384
movl $0xa, %edi
callq 0x66c0
movq 0x27bfd(%rip), %rax     # 0x36f88
movq (%rax), %rdi
callq 0x6560
addq $0x28, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(testing::TestCase const&)
void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
  if (!GTEST_FLAG(print_time)) return;

  const std::string counts =
      FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
  ColoredPrintf(COLOR_GREEN, "[----------] ");
  printf("%s from %s (%s ms total)\n\n",
         counts.c_str(), test_case.name(),
         internal::StreamableToString(test_case.elapsed_time()).c_str());
  fflush(stdout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
cmpb $0x1, 0x28204(%rip)     # 0x375b0
jne 0xf47b
movq %rsi, %rbx
movq 0x30(%rsi), %rax
movq 0x38(%rsi), %rcx
xorl %esi, %esi
cmpq %rcx, %rax
je 0xf3d3
movq (%rax), %rdx
movzbl 0x58(%rdx), %edx
addl %edx, %esi
addq $0x8, %rax
jmp 0xf3bf
leaq 0x19e9c(%rip), %rdx     # 0x29276
leaq 0x19684(%rip), %rcx     # 0x28a65
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xf0cf
leaq 0x19662(%rip), %rsi     # 0x28a57
movl $0x2, %edi
xorl %eax, %eax
callq 0xe7c5
movq (%r14), %r14
movq 0x8(%rbx), %r15
movq 0x78(%rbx), %rax
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x30(%rsp), %rdi
callq 0x1f9c3
leaq 0x40(%rsp), %rbx
movq -0x10(%rbx), %rcx
leaq 0x1968d(%rip), %rdi     # 0x28abb
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x6080
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0xf451
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x27b30(%rip), %rax     # 0x36f88
movq (%rax), %rdi
callq 0x6560
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf47b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf4a3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(testing::UnitTest const&)
void PrettyUnitTestResultPrinter::PrintFailedTests(const UnitTest& unit_test) {
  const int failed_test_count = unit_test.failed_test_count();
  if (failed_test_count == 0) {
    return;
  }

  for (int i = 0; i < unit_test.total_test_case_count(); ++i) {
    const TestCase& test_case = *unit_test.GetTestCase(i);
    if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
      continue;
    }
    for (int j = 0; j < test_case.total_test_count(); ++j) {
      const TestInfo& test_info = *test_case.GetTestInfo(j);
      if (!test_info.should_run() || test_info.result()->Passed()) {
        continue;
      }
      ColoredPrintf(COLOR_RED, "[  FAILED  ] ");
      printf("%s.%s", test_case.name(), test_info.name());
      PrintFullTestCommentIfPresent(test_info);
      printf("\n");
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x40(%rdi), %rdi
callq 0x99b4
testl %eax, %eax
je 0xf648
movq 0x40(%rbx), %rcx
movq 0xb8(%rcx), %rax
movq 0xc0(%rcx), %rdx
subq %rax, %rdx
shrq $0x3, %rdx
testl %edx, %edx
jle 0xf648
leaq 0x195b3(%rip), %r15     # 0x28ad6
xorl %ebp, %ebp
movq 0xd0(%rcx), %rdx
movq 0xd8(%rcx), %rcx
subq %rdx, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %rbp
jge 0xf54e
cmpl $0x0, (%rdx,%rbp,4)
js 0xf54e
movq (%rax,%rbp,8), %r12
jmp 0xf551
xorl %r12d, %r12d
cmpb $0x1, 0x70(%r12)
jne 0xf620
movq %r12, %rdi
callq 0x9a04
testl %eax, %eax
je 0xf620
movq 0x30(%r12), %rax
movq 0x38(%r12), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0xf620
xorl %r14d, %r14d
movq 0x48(%r12), %rcx
movq 0x50(%r12), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
movslq %edx, %rdx
cmpq %rdx, %r14
jge 0xf5b1
movslq (%rcx,%r14,4), %rcx
testq %rcx, %rcx
js 0xf5b1
movq (%rax,%rcx,8), %r13
jmp 0xf5b4
xorl %r13d, %r13d
cmpb $0x1, 0x58(%r13)
jne 0xf600
leaq 0x68(%r13), %rdi
callq 0xcbd6
testb %al, %al
je 0xf600
movl $0x1, %edi
leaq 0x194cf(%rip), %rsi     # 0x28aa3
xorl %eax, %eax
callq 0xe7c5
movq 0x8(%r12), %rsi
movq 0x20(%r13), %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x6080
movq %r13, %rdi
callq 0xe8b7
movl $0xa, %edi
callq 0x66c0
incq %r14
movq 0x30(%r12), %rax
movq 0x38(%r12), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jl 0xf589
incq %rbp
movq 0x40(%rbx), %rcx
movq 0xb8(%rcx), %rax
movq 0xc0(%rcx), %rdx
subq %rax, %rdx
shrq $0x3, %rdx
movslq %edx, %rdx
cmpq %rdx, %rbp
jl 0xf525
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::TestEventRepeater::Release(testing::TestEventListener*)
TestEventListener* TestEventRepeater::Release(TestEventListener *listener) {
  for (size_t i = 0; i < listeners_.size(); ++i) {
    if (listeners_[i] == listener) {
      listeners_.erase(listeners_.begin() + i);
      return listener;
    }
  }

  return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rax
movq %rax, %rdx
subq %rsi, %rdx
je 0xfa86
movq %rdi, %r14
movq %rdx, %rcx
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
addq $0x8, %rsi
addq $-0x8, %rdx
cmpq %rbx, -0x8(%rsi)
je 0xfa8a
addq $0x8, %rsi
addq $-0x8, %rdx
decq %rcx
jne 0xfa73
xorl %ebx, %ebx
jmp 0xfaa4
cmpq %rax, %rsi
je 0xfa9c
leaq -0x8(%rsi), %rdi
callq 0x6840
movq 0x18(%r14), %rax
addq $-0x8, %rax
movq %rax, 0x18(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int)
void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
                                                  int /*iteration*/) {
  FILE* xmlout = NULL;
  FilePath output_file(output_file_);
  FilePath output_dir(output_file.RemoveFileName());

  if (output_dir.CreateDirectoriesRecursively()) {
    xmlout = posix::FOpen(output_file_.c_str(), "w");
  }
  if (xmlout == NULL) {
    // TODO(wan): report the reason of the failure.
    //
    // We don't do it for now as:
    //
    //   1. There is no urgent need for it.
    //   2. It's a bit involved to make the errno variable thread-safe on
    //      all three operating systems (Linux, Windows, and Mac OS).
    //   3. To interpret the meaning of errno in a thread-safe way,
    //      we need the strerror_r() function, which is not available on
    //      Windows.
    fprintf(stderr,
            "Unable to open file \"%s\"\n",
            output_file_.c_str());
    fflush(stderr);
    exit(EXIT_FAILURE);
  }
  std::stringstream stream;
  PrintXmlUnitTest(&stream, unit_test);
  fprintf(xmlout, "%s", StringStreamToString(&stream).c_str());
  fclose(xmlout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rsi, %rbx
movq %rdi, %r15
addq $0x8, %r15
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1dc70
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1005c
leaq 0x8(%rsp), %rdi
callq 0x1014c
testb %al, %al
je 0xffe6
movq (%r15), %rdi
leaq 0x18c55(%rip), %rsi     # 0x28b74
callq 0x6570
testq %rax, %rax
je 0xffe6
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x62b0
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0x1024c
leaq 0x48(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x9f89
leaq 0x58(%rsp), %rbx
movq -0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x64e0
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0xff7d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6430
movq %r14, %rdi
callq 0x63f0
movq 0x27004(%rip), %rsi     # 0x36f90
leaq 0x68(%rsp), %rdi
callq 0x62e0
leaq 0xe8(%rsp), %rdi
callq 0x6150
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xffbe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xffd9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbx
popq %r14
popq %r15
retq
movq %r15, %rdi
callq 0x6a9f
jmp 0xfff0
movq %rax, %rbx
movq 0x26f96(%rip), %rsi     # 0x36f90
leaq 0x68(%rsp), %rdi
callq 0x62e0
leaq 0xe8(%rsp), %rdi
callq 0x6150
jmp 0x10018
jmp 0x10015
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10038
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x10038
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10053
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::FilePath::RemoveFileName() const
FilePath FilePath::RemoveFileName() const {
  const char* const last_sep = FindLastPathSeparator();
  std::string dir;
  if (last_sep) {
    dir = std::string(c_str(), last_sep + 1 - c_str());
  } else {
    dir = kCurrentDirectoryString;
  }
  return FilePath(dir);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rsi), %r14
movq %r14, %rdi
movl $0x2f, %esi
callq 0x64c0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
testq %rax, %rax
je 0x100da
incq %rax
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x24240
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %r14
movq %r14, %rsi
callq 0x65d0
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x100f5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x100f5
leaq 0x174dc(%rip), %rcx     # 0x275bd
leaq 0x8(%rsp), %rdi
movl $0x2, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x67d0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x1dc70
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x10119
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x1012a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x10144
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(
    const std::string& str) {
  std::string output;
  output.reserve(str.size());
  for (std::string::const_iterator it = str.begin(); it != str.end(); ++it)
    if (IsValidXmlCharacter(*it))
      output.push_back(*it);

  return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rsi
callq 0x67e0
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x10af8
movq (%r14), %rcx
movl $0x2600, %ebp           # imm = 0x2600
movq %rcx, %r12
movb (%r12), %dl
cmpb $0x1f, %dl
jg 0x10ada
cmpb $0xd, %dl
ja 0x10aec
movzbl %dl, %esi
btl %esi, %ebp
jae 0x10aec
movsbl %dl, %esi
movq %rbx, %rdi
callq 0x6390
movq (%r14), %rcx
movq 0x8(%r14), %rax
incq %r12
leaq (%rcx,%rax), %rdx
cmpq %rdx, %r12
jne 0x10ac4
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10b06
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x10b1c
movq (%r15), %rsi
incq %rsi
callq 0x6430
movq %r14, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection(std::ostream*, char const*)
void XmlUnitTestResultPrinter::OutputXmlCDataSection(::std::ostream* stream,
                                                     const char* data) {
  const char* segment = data;
  *stream << "<![CDATA[";
  for (;;) {
    const char* const next_segment = strstr(segment, "]]>");
    if (next_segment != NULL) {
      stream->write(
          segment, static_cast<std::streamsize>(next_segment - segment));
      *stream << "]]>]]&gt;<![CDATA[";
      segment = next_segment + strlen("]]>");
    } else {
      *stream << segment;
      break;
    }
  }
  *stream << "]]>";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1754b(%rip), %rsi     # 0x28bbf
movl $0x9, %edx
callq 0x6510
leaq 0x1752d(%rip), %rsi     # 0x28bb2
movq %r14, %rdi
callq 0x60d0
testq %rax, %rax
je 0x116e0
movq %rax, %r13
leaq 0x1751a(%rip), %r15     # 0x28bb6
leaq 0x1750f(%rip), %r12     # 0x28bb2
movq %r13, %rdx
subq %r14, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6670
movl $0x12, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6510
movq %r13, %r14
addq $0x3, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x60d0
movq %rax, %r13
testq %rax, %rax
jne 0x116a3
jmp 0x116e5
testq %r14, %r14
je 0x11718
movq %r14, %rdi
callq 0x61c0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x6510
leaq 0x174b0(%rip), %rsi     # 0x28bb2
movl $0x3, %edx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x6510
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x6870
jmp 0x116fb
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(std::ostream*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void XmlUnitTestResultPrinter::OutputXmlAttribute(
    std::ostream* stream,
    const std::string& element_name,
    const std::string& name,
    const std::string& value) {
  const std::vector<std::string>& allowed_names =
      GetReservedAttributesForElement(element_name);

  GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) !=
                   allowed_names.end())
      << "Attribute " << name << " is not allowed for element <" << element_name
      << ">.";

  *stream << " " << name << "=\"" << EscapeXmlAttribute(value) << "\"";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0x28(%rsp), %r13
movq %r13, %rdi
callq 0xca7c
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movq %r15, %rdx
callq 0x2532e
cmpq 0x30(%rsp), %rax
jne 0x11817
leaq 0x16b17(%rip), %rdx     # 0x28291
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x1296, %ecx           # imm = 0x1296
callq 0x1be2c
movq 0x2585b(%rip), %rdi     # 0x36ff0
leaq 0x1742d(%rip), %rsi     # 0x28bc9
movl $0x65, %edx
callq 0x6510
movq 0x25843(%rip), %rdi     # 0x36ff0
leaq 0x1747b(%rip), %rsi     # 0x28c2f
movl $0xa, %edx
callq 0x6510
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x25824(%rip), %rdi     # 0x36ff0
callq 0x6510
movq %rax, %r13
leaq 0x1745f(%rip), %rsi     # 0x28c3a
movl $0x1d, %edx
movq %rax, %rdi
callq 0x6510
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r13, %rdi
callq 0x6510
leaq 0x17458(%rip), %rsi     # 0x28c58
movl $0x2, %edx
movq %rax, %rdi
callq 0x6510
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
leaq 0x17a20(%rip), %rsi     # 0x2923e
movl $0x1, %edx
movq %r14, %rdi
callq 0x6510
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x6510
movq %rax, %r14
leaq 0x1746f(%rip), %rsi     # 0x28cb3
movl $0x2, %edx
movq %rax, %rdi
callq 0x6510
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x1085a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x6510
leaq 0x16c34(%rip), %rsi     # 0x284b0
movl $0x1, %edx
movq %rax, %rdi
callq 0x6510
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x118a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x28(%rsp), %rdi
callq 0x1effc
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x118f1
jmp 0x118f1
jmp 0x118f1
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x118f4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x118f4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
jmp 0x118f4
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1effc
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes[abi:cxx11](testing::TestResult const&)
std::string XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes(
    const TestResult& result) {
  Message attributes;
  for (int i = 0; i < result.test_property_count(); ++i) {
    const TestProperty& property = result.GetTestProperty(i);
    attributes << " " << property.key() << "="
        << "\"" << EscapeXmlAttribute(property.value()) << "\"";
  }
  return attributes.GetString();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r15
movq %rdi, 0x38(%rsp)
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x9d20
movq 0x58(%r15), %rax
subq 0x50(%r15), %rax
shrq $0x6, %rax
movq (%rbx), %rcx
movq %rcx, 0x10(%rsp)
testl %eax, %eax
jle 0x123c9
movq 0x10(%rsp), %rax
leaq 0x10(%rax), %r12
xorl %ebp, %ebp
leaq 0x40(%rsp), %r13
movq %r15, %rdi
movl %ebp, %esi
callq 0xc526
movq %rax, %r14
movl $0x1, %edx
movq %r12, %rdi
leaq 0x16f65(%rip), %rsi     # 0x2923e
callq 0x6510
movq (%r14), %rbx
testq %rbx, %rbx
je 0x122f3
movq %rbx, %rdi
callq 0x61c0
movq %rax, %rdx
jmp 0x122ff
movl $0x6, %edx
leaq 0x161c7(%rip), %rbx     # 0x284c6
movq %r12, %rdi
movq %rbx, %rsi
callq 0x6510
movl $0x1, %edx
movq %r12, %rdi
leaq 0x1766f(%rip), %rsi     # 0x29988
callq 0x6510
movl $0x1, %edx
movq %r12, %rdi
leaq 0x16183(%rip), %rsi     # 0x284b0
callq 0x6510
movq 0x20(%r14), %rsi
movq %r13, %rdi
leaq 0xf(%rsp), %rdx
callq 0x1dc32
leaq 0x18(%rsp), %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x1085a
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r12, %rdi
callq 0x6510
movl $0x1, %edx
movq %r12, %rdi
leaq 0x1613a(%rip), %rsi     # 0x284b0
callq 0x6510
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x12397
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x123b3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6430
incl %ebp
movq 0x58(%r15), %rax
subq 0x50(%r15), %rax
shrq $0x6, %rax
cmpl %eax, %ebp
jl 0x122bd
movq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x9f89
testq %r14, %r14
je 0x123ec
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x12451
jmp 0x12449
movq %rax, %rbx
jmp 0x1242b
jmp 0x12449
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1242b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1244c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x1244c
movq %rax, %rbx
movq 0x10(%rsp), %r14
testq %r14, %r14
je 0x1245f
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::FormatCompilerIndependentFileLocation[abi:cxx11](char const*, int)
GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(
    const char* file, int line) {
  const std::string file_name(file == NULL ? kUnknownFile : file);

  if (line < 0)
    return file_name;
  else
    return file_name + ":" + StreamableToString(line);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, 0xc(%rsp)
testq %rsi, %rsi
leaq 0x1513c(%rip), %rax     # 0x275c0
cmoveq %rax, %r14
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0x61c0
leaq (%rax,%r14), %rdx
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x24240
cmpl $0x0, 0xc(%rsp)
js 0x12546
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x242d6
leaq 0x16953(%rip), %rsi     # 0x28e2f
leaq 0x10(%rsp), %rdi
callq 0x69a0
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x1fa2d
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x38(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x12517
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x1253a
leaq 0x40(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x12535
movq 0x40(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x12567
leaq 0x10(%rsp), %rdi
callq 0x6130
jmp 0x12575
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x242d6
jmp 0x125e8
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x64f0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x12594
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1259a
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x125d1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x125e8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x125ff
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1264c
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12633
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x12633
jmp 0x12630
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x1264f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x1264f
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x12666
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::StreamingListener::UrlEncode[abi:cxx11](char const*)
string StreamingListener::UrlEncode(const char* str) {
  string result;
  result.reserve(strlen(str) + 1);
  for (char ch = *str; ch != '\0'; ch = *++str) {
    switch (ch) {
      case '%':
      case '=':
      case '&':
      case '\n':
        result.append("%" + String::FormatByte(static_cast<unsigned char>(ch)));
        break;
      default:
        result.push_back(ch);
        break;
    }
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x61c0
leaq 0x1(%rax), %rsi
movq %rbx, %rdi
callq 0x67e0
leaq 0x18(%rsp), %r13
movabsq $0x2000006000000400, %rbp # imm = 0x2000006000000400
leaq 0x28(%rsp), %r15
leaq 0x1615c(%rip), %r12     # 0x28d4c
movzbl (%r14), %eax
cmpq $0x3d, %rax
ja 0x12cb7
btq %rax, %rbp
jae 0x12cb2
movzbl %al, %esi
movq %r15, %rdi
callq 0xc388
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r12, %rcx
callq 0x64f0
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x12c4b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x12c53
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x6130
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12c94
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x12cc2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x12cc2
testq %rax, %rax
je 0x12cca
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6390
incq %r14
jmp 0x12bf0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12cfc
jmp 0x12cfc
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12d04
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x12d04
movq %rax, %r14
jmp 0x12d20
movq %rax, %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x12d20
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
movq (%rsp), %rax
movq (%rbx), %rdi
cmpq %rax, %rdi
je 0x12d37
movq (%rax), %rsi
incq %rsi
callq 0x6430
movq %r14, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::TestEventListeners::Release(testing::TestEventListener*)
TestEventListener* TestEventListeners::Release(TestEventListener* listener) {
  if (listener == default_result_printer_)
    default_result_printer_ = NULL;
  else if (listener == default_xml_generator_)
    default_xml_generator_ = NULL;
  return repeater_->Release(listener);
}

// Assembly:
cmpq %rsi, 0x8(%rdi)
je 0x131ac
cmpq %rsi, 0x10(%rdi)
jne 0x131b7
leaq 0x10(%rdi), %rax
jmp 0x131b0
leaq 0x8(%rdi), %rax
movq $0x0, (%rax)
movq (%rdi), %rdi
jmp 0xfa42
nop