// File: /workspace/github_c_makefile_star2_O3/nemequ[P]safe-math/munit/munit.c
// Function: munit_test_runner_run_test
static void
munit_test_runner_run_test(MunitTestRunner* runner,
                           const MunitTest* test,
                           const char* prefix) {
  char* test_name = munit_maybe_concat(NULL, (char*) prefix, (char*) test->name);

  munit_rand_seed(runner->seed);

  fprintf(MUNIT_OUTPUT_FILE, "%-" MUNIT_XSTRINGIFY(MUNIT_TEST_NAME_LEN) "s", test_name);

  if (test->parameters == NULL) {
    /* No parameters.  Simple, nice. */
    munit_test_runner_run_test_with_params(runner, test, NULL);
  } else {
    /* The array of parameters to pass to
     * munit_test_runner_run_test_with_params */
    MunitParameter* params = NULL;
    size_t params_l = 0;
    /* Wildcard parameters are parameters which have possible values
     * specified in the test, but no specific value was passed to the
     * CLI.  That means we want to run the test once for every
     * possible combination of parameter values or, if --single was
     * passed to the CLI, a single time with a random set of
     * parameters. */
    MunitParameter* wild_params = NULL;
    size_t wild_params_l = 0;

    fputc('\n', MUNIT_OUTPUT_FILE);

    for (const MunitParameterEnum* pe = test->parameters ; pe != NULL && pe->name != NULL ; pe++) {
      /* Did we received a value for this parameter from the CLI? */
      bool filled = false;
      for (const MunitParameter* cli_p = runner->parameters ; cli_p != NULL && cli_p->name != NULL ; cli_p++) {
        if (strcmp(cli_p->name, pe->name) == 0) {
          if (MUNIT_UNLIKELY(munit_parameters_add(&params_l, &params, pe->name, cli_p->value) != MUNIT_OK))
            goto cleanup;
          filled = true;
          break;
        }
      }
      if (filled)
        continue;

      /* Nothing from CLI, is the enum NULL/empty?  We're not a
       * fuzzer… */
      if (pe->values == NULL || pe->values[0] == NULL)
        continue;

      /* If --single was passed to the CLI, choose a value from the
       * list of possibilities randomly. */
      if (runner->single_parameter_mode) {
        unsigned int possible = 0;
        for (char** vals = pe->values ; *vals != NULL ; vals++)
          possible++;
        /* We want the tests to be reproducible, even if you're only
         * running a single test, but we don't want every test with
         * the same number of parameters to choose the same parameter
         * number, so use the test name as a primitive salt. */
	const int pidx = munit_rand_at_most(munit_str_hash(test_name), possible - 1);
        if (MUNIT_UNLIKELY(munit_parameters_add(&params_l, &params, pe->name, pe->values[pidx]) != MUNIT_OK))
          goto cleanup;
      } else {
        /* We want to try every permutation.  Put in a placeholder
         * entry, we'll iterate through them later. */
        if (MUNIT_UNLIKELY(munit_parameters_add(&wild_params_l, &wild_params, pe->name, NULL) != MUNIT_OK))
          goto cleanup;
      }
    }

    if (wild_params_l != 0) {
      const size_t first_wild = params_l;
      for (const MunitParameter* wp = wild_params ; wp != NULL && wp->name != NULL ; wp++) {
        for (const MunitParameterEnum* pe = test->parameters ; pe != NULL && pe->name != NULL ; pe++) {
          if (strcmp(wp->name, pe->name) == 0) {
            if (MUNIT_UNLIKELY(munit_parameters_add(&params_l, &params, pe->name, pe->values[0]) != MUNIT_OK))
              goto cleanup;
          }
        }
      }

      munit_test_runner_run_test_wild(runner, test, test_name, params, params + first_wild);
    } else {
      munit_test_runner_run_test_with_params(runner, test, params);
    }

  cleanup:
    free(params);
    free(wild_params);
  }

  munit_maybe_free_concat(test_name, prefix, test->name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rax
movq %rsi, %r13
movq %rdi, %rbx
movq (%rsi), %rdx
xorl %edi, %edi
movq %rax, 0x40(%rsp)
movq %rax, %rsi
callq 0x4679
movq %rbx, 0x28(%rsp)
imull $0x2c9277b5, 0x18(%rbx), %ecx # imm = 0x2C9277B5
addl $0x93a8436, %ecx        # imm = 0x93A8436
xchgl %ecx, 0x6de2(%rip)      # 0xb6f0
movq 0x56bb(%rip), %rbx      # 0x9fd0
movq (%rbx), %rdi
leaq 0x25fa(%rip), %rsi      # 0x6f19
movq %rax, 0x30(%rsp)
movq %rax, %rdx
xorl %eax, %eax
callq 0x31d0
cmpq $0x0, 0x28(%r13)
je 0x4b6e
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x3150
movq 0x28(%r13), %rbx
testq %rbx, %rbx
je 0x4b82
movq (%rbx), %r15
testq %r15, %r15
movq %r13, 0x8(%rsp)
je 0x4b8f
movq 0x30(%rsp), %rax
incq %rax
movq %rax, 0x38(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
xorl %esi, %esi
movq 0x28(%rsp), %rax
movq 0x20(%rax), %r14
testq %r14, %r14
je 0x49c9
movq (%r14), %rdi
testq %rdi, %rdi
je 0x49c9
movq %rsi, 0x20(%rsp)
addq $0x10, %r14
movq %r15, %rsi
callq 0x31b0
testl %eax, %eax
je 0x49cf
movq (%r14), %rdi
addq $0x10, %r14
testq %rdi, %rdi
jne 0x49a6
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x20(%rsp), %rsi
jmp 0x4a26
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x4a26
movq -0x8(%r14), %r14
movq 0x18(%rsp), %r13
movq %r13, %r12
shlq $0x4, %r12
leaq 0x20(%r12), %rsi
movq %rbp, %rdi
callq 0x3240
movq %rax, %rbp
testq %rax, %rax
setne %al
je 0x4a16
movq %r15, (%rbp,%r12)
movq %r14, 0x8(%rbp,%r12)
incq %r13
movq %r13, 0x18(%rsp)
shlq $0x4, %r13
xorps %xmm0, %xmm0
movups %xmm0, (%rbp,%r13)
movq 0x8(%rsp), %r13
movq 0x20(%rsp), %rsi
testq %rbp, %rbp
sete %cl
orb %cl, %al
je 0x4a37
testb %cl, %cl
je 0x4b55
jmp 0x4c94
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x4b55
cmpq $0x0, (%rax)
je 0x4b55
movq 0x28(%rsp), %rcx
cmpb $0x1, 0x28(%rcx)
jne 0x4aa6
movq %rsi, 0x20(%rsp)
addq $0x8, %rax
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
incl %esi
cmpq $0x0, (%rax)
leaq 0x8(%rax), %rax
jne 0x4a67
movq 0x30(%rsp), %rax
movb (%rax), %cl
testb %cl, %cl
movq 0x18(%rsp), %r12
je 0x4af3
movl $0x1505, %edx           # imm = 0x1505
movq 0x38(%rsp), %rax
movl %edx, %edi
movsbl %cl, %ecx
shll $0x5, %edi
addl %edx, %edi
addl %ecx, %edi
movb (%rax), %cl
incq %rax
movl %edi, %edx
testb %cl, %cl
jne 0x4a8f
jmp 0x4af8
movq (%rbx), %r14
movq %rsi, %r15
shlq $0x4, %r15
movq %rsi, %r13
leaq 0x20(%r15), %rsi
movq 0x10(%rsp), %rdi
callq 0x3240
testq %rax, %rax
je 0x4cda
movq %r14, (%rax,%r15)
movq $0x0, 0x8(%rax,%r15)
incq %r13
movq %r13, %rcx
shlq $0x4, %rcx
movq %rax, 0x10(%rsp)
addq %rax, %rcx
movq %r13, %rsi
movq 0x8(%rsp), %r13
jmp 0x4b4f
movl $0x1505, %edi           # imm = 0x1505
callq 0x3a55
movq (%rbx), %r14
movq 0x8(%rbx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r15
movq %r12, %r13
shlq $0x4, %r12
leaq 0x20(%r12), %rsi
movq %rbp, %rdi
callq 0x3240
testq %rax, %rax
je 0x4c8d
movq %rax, %rbp
movq %r14, (%rax,%r12)
movq %r15, 0x8(%rax,%r12)
incq %r13
movq %r13, 0x18(%rsp)
movq %r13, %rcx
shlq $0x4, %rcx
addq %rax, %rcx
movq 0x8(%rsp), %r13
movq 0x20(%rsp), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rbx), %r15
addq $0x10, %rbx
testq %r15, %r15
jne 0x4987
testq %rsi, %rsi
sete %al
jmp 0x4ba5
movq 0x28(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4ce5
jmp 0x4ca6
movq $0x0, 0x10(%rsp)
xorl %ebp, %ebp
jmp 0x4ba9
movb $0x1, %al
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
xorl %ebp, %ebp
testb %al, %al
je 0x4bbe
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x4ce5
jmp 0x4c94
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x4c6a
cmpq $0x0, (%rax)
je 0x4c6a
movq %rax, %r13
movq 0x18(%rsp), %r12
movq 0x8(%rsp), %rax
movq 0x28(%rax), %r14
testq %r14, %r14
je 0x4c5b
movq (%r14), %r15
testq %r15, %r15
je 0x4c5b
addq $0x10, %r14
movq %r13, 0x20(%rsp)
movq (%r13), %rdi
movq %r15, %rsi
callq 0x31b0
testl %eax, %eax
jne 0x4c4f
movq -0x8(%r14), %rax
movq (%rax), %r13
movq %r12, %rbx
shlq $0x4, %rbx
leaq 0x20(%rbx), %rsi
movq %rbp, %rdi
callq 0x3240
testq %rax, %rax
je 0x4c8d
movq %rax, %rbp
movq %r15, (%rax,%rbx)
movq %r13, 0x8(%rax,%rbx)
incq %r12
movq %r12, %rax
shlq $0x4, %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rbp,%rax)
movq 0x20(%rsp), %r13
movq (%r14), %r15
addq $0x10, %r14
testq %r15, %r15
jne 0x4bfd
cmpq $0x0, 0x10(%r13)
leaq 0x10(%r13), %r13
jne 0x4bde
movq 0x18(%rsp), %rcx
shlq $0x4, %rcx
addq %rbp, %rcx
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %r13
movq %r13, %rsi
movq %rbp, %rdx
callq 0x53c1
jmp 0x4c94
xorl %ebp, %ebp
movq 0x8(%rsp), %r13
movq %rbp, %rdi
callq 0x3030
movq 0x10(%rsp), %rdi
callq 0x3030
movq 0x30(%rsp), %rdi
cmpq 0x40(%rsp), %rdi
je 0x4ccb
cmpq %rdi, (%r13)
je 0x4ccb
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3030
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x10(%rsp)
jmp 0x4c8f