// File: /workspace/github_cpp_makefile_star2_O2/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::HasOneFailure(char const*, char const*, char const*, testing::TestPartResultArray const&, testing::TestPartResult::Type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AssertionResult HasOneFailure(const char* /* results_expr */,
                              const char* /* type_expr */,
                              const char* /* substr_expr */,
                              const TestPartResultArray& results,
                              TestPartResult::Type type,
                              const string& substr) {
  const std::string expected(type == TestPartResult::kFatalFailure ?
                        "1 fatal failure" :
                        "1 non-fatal failure");
  Message msg;
  if (results.size() != 1) {
    msg << "Expected: " << expected << "\n"
        << "  Actual: " << results.size() << " failures";
    for (int i = 0; i < results.size(); i++) {
      msg << "\n" << results.GetTestPartResult(i);
    }
    return AssertionFailure() << msg;
  }

  const TestPartResult& r = results.GetTestPartResult(0);
  if (r.type() != type) {
    return AssertionFailure() << "Expected: " << expected << "\n"
                              << "  Actual:\n"
                              << r;
  }

  if (strstr(r.message(), substr.c_str()) == NULL) {
    return AssertionFailure() << "Expected: " << expected << " containing \""
                              << substr << "\"\n"
                              << "  Actual:\n"
                              << r;
  }

  return AssertionSuccess();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %r9d, %ebp
movq %r8, %r14
movq %rdi, %rbx
cmpl $0x2, %r9d
leaq 0x15af4(%rip), %rax     # 0x1e343
leaq 0x15afd(%rip), %rsi     # 0x1e353
cmoveq %rax, %rsi
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1543a
leaq 0x8(%rsp), %rdi
callq 0x8f22
movq 0x8(%r14), %rax
subq (%r14), %rax
pushq $0x70
popq %r12
cqto
idivq %r12
cmpl $0x1, %eax
jne 0x88c5
movq %r14, %rdi
xorl %esi, %esi
callq 0x8b18
movq %rax, %r14
cmpl %ebp, (%rax)
jne 0x89c1
movq 0x70(%rsp), %r12
movq 0x50(%r14), %rdi
movq (%r12), %rsi
callq 0x60d0
testq %rax, %rax
je 0x8a23
movb $0x1, (%rbx)
andq $0x0, 0x8(%rbx)
jmp 0x8aa5
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x15acd(%rip), %rsi     # 0x1e3a2
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x20(%rsp), %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x161a7(%rip), %rsi     # 0x1eaa4
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x15a84(%rip), %rsi     # 0x1e396
callq 0x6410
movq 0x8(%r14), %rax
subq (%r14), %rax
cqto
idivq %r12
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %eax, %esi
callq 0x68e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x15a24(%rip), %rsi     # 0x1e367
callq 0x6410
xorl %ebp, %ebp
leaq 0x16153(%rip), %r15     # 0x1eaa4
movq 0x8(%r14), %rax
subq (%r14), %rax
cqto
idivq %r12
cmpl %eax, %ebp
jge 0x8991
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movq %r15, %rsi
callq 0x6410
movq %r14, %rdi
movl %ebp, %esi
callq 0x8b18
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movq %rax, %rsi
callq 0x148bc
incl %ebp
jmp 0x8951
leaq 0x18(%rsp), %r14
movb $0x0, -0x8(%r14)
andq $0x0, (%r14)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x15598
movq %rbx, %rdi
movq %rax, %rsi
callq 0x91a4
movq %r14, %rdi
jmp 0x8aa0
leaq 0x18(%rsp), %r15
movb $0x0, -0x8(%r15)
andq $0x0, (%r15)
leaq 0x159cc(%rip), %rsi     # 0x1e3a2
leaq 0x10(%rsp), %rdi
callq 0x155fc
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x15660
leaq 0x160b0(%rip), %rsi     # 0x1eaa4
movq %rax, %rdi
callq 0x156c4
leaq 0x1596e(%rip), %rsi     # 0x1e371
movq %rax, %rdi
callq 0x155fc
movq %rax, %rdi
movq %r14, %rsi
callq 0x15728
movq %rbx, %rdi
movq %rax, %rsi
callq 0x91a4
jmp 0x8a9d
leaq 0x18(%rsp), %r15
movb $0x0, -0x8(%r15)
andq $0x0, (%r15)
leaq 0x1596a(%rip), %rsi     # 0x1e3a2
leaq 0x10(%rsp), %rdi
callq 0x155fc
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x15660
leaq 0x15926(%rip), %rsi     # 0x1e37c
movq %rax, %rdi
callq 0x1578c
movq %rax, %rdi
movq %r12, %rsi
callq 0x15660
leaq 0x160ed(%rip), %rsi     # 0x1eb5d
movq %rax, %rdi
callq 0x157f0
leaq 0x158f2(%rip), %rsi     # 0x1e371
movq %rax, %rdi
callq 0x155fc
movq %rax, %rdi
movq %r14, %rsi
callq 0x15728
movq %rbx, %rdi
movq %rax, %rsi
callq 0x91a4
movq %r15, %rdi
callq 0x7362
leaq 0x8(%rsp), %rdi
callq 0x731c
leaq 0x20(%rsp), %rdi
callq 0x6a28
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8ada
movq %rax, %rbx
movq %r14, %rdi
jmp 0x8ae0
jmp 0x8ae9
movq %rax, %rbx
jmp 0x8af6
movq %rax, %rbx
movq %r15, %rdi
callq 0x7362
jmp 0x8aec
jmp 0x8ae9
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x731c
leaq 0x20(%rsp), %rdi
callq 0x6a28
movq %rbx, %rdi
callq 0x6900