// File: /workspace/github_cpp_makefile_star2_O3/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 $0x88, %rsp
movq %rdx, %rcx
movl %esi, %edx
movq %rdi, %rbx
movb $0x1, 0x5a8e(%rip)      # 0x81ea
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0x342e
movq 0x30(%rsp), %rax
leaq 0x40(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x30(%rsp)
movaps 0x20(%rsp), %xmm1
movaps %xmm0, 0x20(%rsp)
movq %rsp, %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0x386e
movq %r14, %rdi
callq 0x386e
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r13
cmpq %r13, %r12
je 0x288b
leaq 0x10(%rsp), %r15
leaq 0x8(%rbx), %rbp
movq %rsp, %r14
movq %r15, (%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x3210
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43c4
cmpq %rbp, %rax
je 0x2ab2
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2822
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
addq $0x20, %r12
cmpq %r13, %r12
jne 0x27e0
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r13
cmpq %r13, %r12
je 0x288b
movq %rsp, %r14
movq %r15, (%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x3210
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3954
movzbl 0x30(%rbx), %esi
movq %rax, %rdi
callq 0x39a8
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2882
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
addq $0x20, %r12
cmpq %r13, %r12
jne 0x283d
movq 0x5736(%rip), %r14      # 0x7fc8
leaq 0x2829(%rip), %rsi      # 0x50c2
movl $0x10, %edx
movq %r14, %rdi
callq 0x2230
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x5704(%rip), %rdi      # 0x7fc8
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r13
cmpq %r13, %r15
je 0x2934
leaq 0x10(%rsp), %r12
movq %rsp, %r14
movq %r12, (%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x3210
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3954
movzbl 0x30(%rbx), %esi
movq %rax, %rdi
callq 0x3cc2
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x292b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
addq $0x20, %r15
cmpq %r13, %r15
jne 0x28e8
movq 0x18(%rbx), %rdi
leaq 0x8(%rbx), %r15
movq %r15, %rsi
callq 0x4607
movq %rax, %r14
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0x46f0
movq %rax, %r15
cmpb $0x0, 0x30(%rbx)
jne 0x2a85
movq 0x5661(%rip), %rbx      # 0x7fc8
leaq 0x2765(%rip), %rsi      # 0x50d3
movl $0xf, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x562f(%rip), %rdi      # 0x7fc8
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x561b(%rip), %rdi      # 0x7fc8
leaq 0x272f(%rip), %rsi      # 0x50e3
movl $0x7, %edx
callq 0x2230
movq 0x28(%rsp), %rsi
subq 0x20(%rsp), %rsi
sarq $0x5, %rsi
movq 0x55f5(%rip), %rdi      # 0x7fc8
callq 0x2140
movq %rax, %rbx
leaq 0x2709(%rip), %rsi      # 0x50eb
movl $0xb, %edx
movq %rax, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x55ab(%rip), %rdi      # 0x7fc8
movq %r14, %rsi
callq 0x21d0
movq %rax, %rbx
leaq 0x26c8(%rip), %rsi      # 0x50f7
movl $0xd, %edx
movq %rax, %rdi
callq 0x2230
movq %rbx, %rdi
movq %r15, %rsi
callq 0x21d0
movq %rax, %rbx
leaq 0x26b4(%rip), %rsi      # 0x5105
movl $0x9, %edx
movq %rax, %rdi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
xorl %ebx, %ebx
orq %r14, %r15
setne %bl
leaq 0x20(%rsp), %rdi
callq 0x386e
movb $0x0, 0x574c(%rip)      # 0x81ea
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2100
movq %rax, %r14
leaq 0x25eb(%rip), %rsi      # 0x50b1
leaq 0x68(%rsp), %rdi
movq %rsp, %rdx
callq 0x38cc
leaq 0x25dd(%rip), %rsi      # 0x50b7
leaq 0x68(%rsp), %rdi
callq 0x2350
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2b07
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x2b14
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rdx
leaq 0x40(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r14, %rdi
callq 0x22e0
xorl %ebp, %ebp
movq 0x54ac(%rip), %rsi      # 0x7ff0
movq 0x546d(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2310
jmp 0x2bec
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x2c0c
movq %rbx, %rdi
callq 0x20d0
movl 0x8(%rax), %ebx
callq 0x22f0
jmp 0x2a8d
jmp 0x2bec
jmp 0x2bec
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x2b97
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2bb2
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
testb %bpl, %bpl
jne 0x2bde
jmp 0x2bf6
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2bde
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x2bde
jmp 0x2bec
movq %rax, %rbx
movq %r14, %rdi
callq 0x2180
jmp 0x2bf6
jmp 0x2bec
jmp 0x2bec
movq %rax, %rbx
jmp 0x2c0c
jmp 0x2bf3
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2c0c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x20(%rsp), %rdi
callq 0x386e
movb $0x0, 0x55cd(%rip)      # 0x81ea
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x2bff
jmp 0x2c0c
nop