// File: WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*)
Result HandleExceptionsInMethodIfSupported(
    T* object, Result (T::*method)(), const char* location) {
  // NOTE: The user code can affect the way in which Google Test handles
  // exceptions by setting GTEST_FLAG(catch_exceptions), but only before
  // RUN_ALL_TESTS() starts. It is technically possible to check the flag
  // after the exception is caught and either report or re-throw the
  // exception based on the flag's value:
  //
  // try {
  //   // Perform the test method.
  // } catch (...) {
  //   if (GTEST_FLAG(catch_exceptions))
  //     // Report the exception as failure.
  //   else
  //     throw;  // Re-throws the original exception.
  // }
  //
  // However, the purpose of this flag is to allow the program to drop into
  // the debugger when the exception is thrown. On most platforms, once the
  // control enters the catch block, the exception origin information is
  // lost and the debugger will stop the program at the point of the
  // re-throw in this function -- instead of at the point of the original
  // throw statement in the code under test.  For this reason, we perform
  // the check early, sacrificing the ability to affect Google Test's
  // exception handling in the method where the exception is thrown.
  if (internal::GetUnitTestImpl()->catch_exceptions()) {
#if GTEST_HAS_EXCEPTIONS
    try {
      return HandleSehExceptionsInMethodIfSupported(object, method, location);
    } catch (const internal::GoogleTestFailureException&) {  // NOLINT
      // This exception type can only be thrown by a failed Google
      // Test assertion with the intention of letting another testing
      // framework catch it.  Therefore we just re-throw it.
      throw;
    } catch (const std::exception& e) {  // NOLINT
      internal::ReportFailureInUnknownLocation(
          TestPartResult::kFatalFailure,
          FormatCxxExceptionMessage(e.what(), location));
    } catch (...) {  // NOLINT
      internal::ReportFailureInUnknownLocation(
          TestPartResult::kFatalFailure,
          FormatCxxExceptionMessage(NULL, location));
    }
    return static_cast<Result>(0);
#else
    return HandleSehExceptionsInMethodIfSupported(object, method, location);
#endif  // GTEST_HAS_EXCEPTIONS
  } else {
    return (object->*method)();
  }
}

// Assembly:
subq $0xd8, %rsp
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xc8(%rsp)
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rdx
movq %rdi, 0xb8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rax, 0xa8(%rsp)
movq %rcx, 0xa0(%rsp)
callq 0x32df0
movq %rax, %rdi
callq 0x44e50
testb $0x1, %al
jne 0x35dcd
jmp 0x35fd0
movq 0xb8(%rsp), %rdi
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rdx
movq 0xa0(%rsp), %rcx
movq %rdx, 0x98(%rsp)
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x44f80
movq %rax, 0x28(%rsp)
jmp 0x35e19
movq 0x28(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x36039
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x24(%rsp)
movl $0x3, %ecx
cmpl %ecx, %eax
jne 0x35e6f
movq 0x88(%rsp), %rdi
callq 0xe360
movq %rax, 0x30(%rsp)
callq 0xf090
jmp 0x3605e
movl 0x24(%rsp), %eax
movl $0x2, %ecx
cmpl %ecx, %eax
jne 0x35ed8
movq 0x88(%rsp), %rdi
callq 0xe360
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, %rsi
movq 0xa0(%rsp), %rdx
leaq 0x38(%rsp), %rdi
callq 0x31f50
jmp 0x35eb3
movl $0x2, %edi
leaq 0x38(%rsp), %rsi
callq 0x1dc70
jmp 0x35ec4
leaq 0x38(%rsp), %rdi
callq 0xf698
callq 0xf2a0
jmp 0x35fc2
movq 0x88(%rsp), %rdi
callq 0xe360
movq 0xa0(%rsp), %rdx
xorl %eax, %eax
movl %eax, %esi
leaq 0x60(%rsp), %rdi
callq 0x31f50
jmp 0x35efd
movl $0x2, %edi
leaq 0x60(%rsp), %rsi
callq 0x1dc70
jmp 0x35f0e
leaq 0x60(%rsp), %rdi
callq 0xf698
callq 0xf2a0
jmp 0x35fc2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0x35f56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x60(%rsp), %rdi
callq 0xf698
callq 0xf2a0
jmp 0x35f5d
jmp 0x36049
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0x35f96
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x38(%rsp), %rdi
callq 0xf698
callq 0xf2a0
jmp 0x35f9d
jmp 0x36049
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
callq 0xf2a0
jmp 0x35fbd
jmp 0x36049
movq $0x0, 0xd0(%rsp)
jmp 0x36039
movq 0xb8(%rsp), %rcx
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xb0(%rsp), %rdx
addq %rdx, %rcx
movq %rcx, 0x18(%rsp)
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3601b
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq (%rax), %rax
subq $0x1, %rcx
movq (%rax,%rcx), %rax
movq %rax, 0x8(%rsp)
jmp 0x36025
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rax
callq *%rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
movq 0x88(%rsp), %rdi
callq 0xf410
movq %rax, %rdi
callq 0x108e0
nop