// File: /workspace/github_cpp_makefile_star2_O2/eecs280staff[P]unit_test_framework/./unit_test_framework.hpp
// Function: unit_test_framework::TestSuite::run_tests(int, char**)
int run_tests(int argc, char** argv) {
      SetComplete completer(TestSuite::incomplete);
      std::vector<std::string> test_names_to_run;
      try {
        test_names_to_run = get_test_names_to_run(argc, argv);
      }
      catch (ExitSuite& e) {
        return e.status;
      }

      for (auto test_name : test_names_to_run) {
        if (tests_.find(test_name) == end(tests_)) {
          throw std::runtime_error("Test " + test_name + " not found");
        }
      }

      for (auto test_name : test_names_to_run) {
        tests_.at(test_name).run(quiet_mode);
      }

      std::cout << "\n*** Results ***" << std::endl;
      for (auto test_name : test_names_to_run) {
        tests_.at(test_name).print(quiet_mode);
      }

      auto num_failures =
        std::count_if(tests_.begin(), tests_.end(),
                      [](std::pair<std::string, TestCase> test_pair) {
                        return not test_pair.second.failure_msg.empty();
                      });
      auto num_errors =
        std::count_if(tests_.begin(), tests_.end(),
                      [](std::pair<std::string, TestCase> test_pair) {
                        return not test_pair.second.exception_msg.empty();
                      });

      if (not quiet_mode) {
        std::cout << "*** Summary ***" << std::endl;
        std::cout << "Out of " << test_names_to_run.size()
                  << " tests run:" << std::endl;
        std::cout << num_failures << " failure(s), " << num_errors
                  << " error(s)" << std::endl;
      }

      if (num_failures == 0 and num_errors == 0) {
        return 0;
      }
      return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rcx
movl %esi, %edx
movq %rdi, %rbx
movb $0x1, 0x4b32(%rip)      # 0x71ed
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ee8
movq %rsp, %r14
leaq 0x18(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x399a
movq %r15, %rdi
callq 0x3202
movq (%r14), %r12
movq 0x8(%r14), %r13
leaq 0x8(%rbx), %r14
cmpq %r13, %r12
je 0x272d
movq %r15, %rdi
movq %r12, %rsi
callq 0x2270
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3a30
cmpq %r14, %rax
je 0x28b8
movq %r15, %rdi
callq 0x20d0
addq $0x20, %r12
jmp 0x26fb
movq (%rsp), %r15
movq 0x8(%rsp), %r13
leaq 0x18(%rsp), %r12
cmpq %r13, %r15
je 0x2770
movq %r12, %rdi
movq %r15, %rsi
callq 0x2270
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32b8
movzbl 0x30(%rbx), %esi
movq %rax, %rdi
callq 0x32fe
movq %r12, %rdi
callq 0x20d0
addq $0x20, %r15
jmp 0x273b
movq 0x4851(%rip), %rdi      # 0x6fc8
leaq 0x1928(%rip), %rsi      # 0x40a6
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
movq (%rsp), %r15
movq 0x8(%rsp), %r13
leaq 0x18(%rsp), %r12
cmpq %r13, %r15
je 0x27ce
movq %r12, %rdi
movq %r15, %rsi
callq 0x2270
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32b8
movzbl 0x30(%rbx), %esi
movq %rax, %rdi
callq 0x351a
movq %r12, %rdi
callq 0x20d0
addq $0x20, %r15
jmp 0x2799
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x3bf6
movq %rax, %r15
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x3c73
movq %rax, %r14
cmpb $0x0, 0x30(%rbx)
jne 0x2890
movq 0x47cb(%rip), %rdi      # 0x6fc8
leaq 0x18b3(%rip), %rsi      # 0x40b7
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
movq 0x47b0(%rip), %rdi      # 0x6fc8
leaq 0x18a8(%rip), %rsi      # 0x40c7
callq 0x21d0
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x5, %rsi
movq %rax, %rdi
callq 0x2120
leaq 0x188f(%rip), %rsi      # 0x40cf
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
movq 0x4771(%rip), %rdi      # 0x6fc8
movq %r15, %rsi
callq 0x21c0
leaq 0x1875(%rip), %rsi      # 0x40db
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
movq %r14, %rsi
callq 0x21c0
leaq 0x1869(%rip), %rsi      # 0x40e9
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
xorl %ebx, %ebx
orq %r15, %r14
setne %bl
movq %rsp, %rdi
callq 0x3202
movb $0x0, 0x4946(%rip)      # 0x71ed
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20f0
movq %rax, %r14
leaq 0x17cb(%rip), %rsi      # 0x4095
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x3242
leaq 0x17bb(%rip), %rdx      # 0x409b
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x3223
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x22e0
xorl %ebp, %ebp
movq 0x46e8(%rip), %rsi      # 0x6ff0
movq 0x46b1(%rip), %rdx      # 0x6fc0
movq %r14, %rdi
callq 0x2300
jmp 0x2973
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x2989
movq %rbx, %rdi
callq 0x20b0
movl 0x8(%rax), %ebx
callq 0x22f0
jmp 0x2898
jmp 0x2973
jmp 0x2973
jmp 0x2973
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x20d0
jmp 0x2951
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0x20d0
testb %bpl, %bpl
jne 0x2965
jmp 0x297f
movq %rax, %rbx
movq %r14, %rdi
callq 0x2160
jmp 0x297f
jmp 0x2973
jmp 0x2973
movq %rax, %rbx
jmp 0x2989
jmp 0x297c
jmp 0x297c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20d0
movq %rsp, %rdi
callq 0x3202
movb $0x0, 0x4855(%rip)      # 0x71ed
movq %rbx, %rdi
callq 0x2320