// File: /workspace/github_cpp_makefile_star2_O3/halfflat[P]tinyopt/test/googletest/googletest/src/gtest.cc
// Function: testing::TestSuite::Run()
void TestSuite::Run() {
  if (!should_run_) return;

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

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

  // Ensure our tests are in a deterministic order.
  //
  // We do this by sorting lexicographically on (file, line number), providing
  // an order matching what the user can see in the source code.
  //
  // In the common case the line number comparison shouldn't be necessary,
  // because the registrations made by the TEST macro are executed in order
  // within a translation unit. But this is not true of the manual registration
  // API, and in more exotic scenarios a single file may be part of multiple
  // translation units.
  std::stable_sort(test_info_list_.begin(), test_info_list_.end(),
                   [](const TestInfo* const a, const TestInfo* const b) {
                     if (const int result = std::strcmp(a->file(), b->file())) {
                       return result < 0;
                     }

                     return a->line() < b->line();
                   });

  // Call both legacy and the new API
  repeater->OnTestSuiteStart(*this);
//  Legacy API is deprecated but still available
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
  repeater->OnTestCaseStart(*this);
#endif  //  GTEST_REMOVE_LEGACY_TEST_CASEAPI_

  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &TestSuite::RunSetUpTestSuite, "SetUpTestSuite()");

  const bool skip_all =
      ad_hoc_test_result().Failed() || ad_hoc_test_result().Skipped();

  start_timestamp_ = internal::GetTimeInMillis();
  internal::Timer timer;
  for (int i = 0; i < total_test_count(); i++) {
    if (skip_all) {
      GetMutableTestInfo(i)->Skip();
    } else {
      GetMutableTestInfo(i)->Run();
    }
    if (GTEST_FLAG_GET(fail_fast) &&
        GetMutableTestInfo(i)->result()->Failed()) {
      for (int j = i + 1; j < total_test_count(); j++) {
        GetMutableTestInfo(j)->Skip();
      }
      break;
    }
  }
  elapsed_time_ = timer.Elapsed();

  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &TestSuite::RunTearDownTestSuite, "TearDownTestSuite()");

  // Call both legacy and the new API
  repeater->OnTestSuiteEnd(*this);
//  Legacy API is deprecated but still available
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
  repeater->OnTestCaseEnd(*this);
#endif  //  GTEST_REMOVE_LEGACY_TEST_CASEAPI_

  impl->set_current_test_suite(nullptr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x1, 0x70(%rdi)
jne 0x519f3
movq %rdi, %rbx
callq 0x490c6
movq 0x43270(%rip), %r15     # 0x949e0
movq %rbx, 0x168(%r15)
callq 0x490c6
movq 0x4325d(%rip), %rax     # 0x949e0
movq 0x1f8(%rax), %r14
movq 0x30(%rbx), %rbp
movq 0x38(%rbx), %r13
cmpq %r13, %rbp
movq %r15, (%rsp)
je 0x517fb
movq %r13, %rax
subq %rbp, %rax
sarq $0x3, %rax
leaq 0x1(%rax), %rcx
shrq $0x3f, %rcx
leaq (%rax,%rcx), %rdi
incq %rdi
sarq %rdi
callq 0x6af85
movq %rax, %r15
testq %rax, %rax
je 0x517da
movq %rdx, %r12
movq %rbp, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x6066d
jmp 0x517e8
xorl %r12d, %r12d
movq %rbp, %rdi
movq %r13, %rsi
callq 0x605f6
shlq $0x3, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xd530
movq (%rsp), %r15
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x30(%rax)
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x38(%rax)
movq 0x210(%r15), %rdi
testq %rdi, %rdi
je 0x51824
movq (%rdi), %rax
jmp 0x51842
movl $0x8, %edi
callq 0xd500
movq %rax, %rdi
leaq 0x41c98(%rip), %rax     # 0x934d0
movq %rax, (%rdi)
movq %rdi, 0x210(%r15)
callq *0x18(%rax)
leaq 0x12b2e(%rip), %rsi     # 0x6437a
leaq 0x2085c(%rip), %rcx     # 0x720af
movq %rbx, %rdi
xorl %edx, %edx
callq 0x641f5
leaq 0x88(%rbx), %r15
movq %r15, %rdi
callq 0x50002
movb $0x1, %bpl
testb %al, %al
jne 0x5187d
movq %r15, %rdi
callq 0x4ffc6
movl %eax, %ebp
callq 0xd090
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
movq %rdx, 0x78(%rbx)
callq 0xd7c0
movq %rax, %r15
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x51958
movl $0x1, %r13d
movl $0x90, %r12d
movq 0x48(%rbx), %rcx
movl -0x4(%rcx,%r13,4), %ecx
movq (%rax,%rcx,8), %rdi
testb %bpl, %bpl
je 0x518e5
callq 0x51354
jmp 0x518ea
callq 0x5119c
cmpb $0x1, 0x42fc1(%rip)     # 0x948b2
jne 0x51910
movq 0x30(%rbx), %rax
movq 0x48(%rbx), %rcx
movl -0x4(%rcx,%r13,4), %ecx
movq (%rax,%rcx,8), %rdi
addq %r12, %rdi
callq 0x50002
testb %al, %al
jne 0x51944
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
leaq 0x1(%r13), %rdx
cmpq %rcx, %r13
movq %rdx, %r13
jl 0x518cc
jmp 0x51958
movq 0x48(%rbx), %rcx
movl (%rcx,%r13,4), %ecx
movq (%rax,%rcx,8), %rdi
callq 0x51354
incq %r13
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl %ecx, %r13d
jl 0x51930
callq 0xd7c0
subq %r15, %rax
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
movq %rdx, 0x80(%rbx)
movq (%rsp), %r15
movq 0x210(%r15), %rdi
testq %rdi, %rdi
je 0x51997
movq (%rdi), %rax
jmp 0x519b5
movl $0x8, %edi
callq 0xd500
movq %rax, %rdi
leaq 0x41b25(%rip), %rax     # 0x934d0
movq %rax, (%rdi)
movq %rdi, 0x210(%r15)
callq *0x18(%rax)
leaq 0x129c7(%rip), %rsi     # 0x64386
leaq 0x206fa(%rip), %rcx     # 0x720c0
movq %rbx, %rdi
xorl %edx, %edx
callq 0x641f5
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x60(%rax)
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x68(%rax)
movq $0x0, 0x168(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
shlq $0x3, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xd530
movq %rbx, %rdi
callq 0xda70