// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rsi, %r13
movq %rdi, %r12
movq (%rsi), %rdx
xorl %edi, %edi
movq %r14, %rsi
callq 0x47a2
imull $0x2c9277b5, 0x18(%r12), %ecx # imm = 0x2C9277B5
addl $0x93a8436, %ecx        # imm = 0x93A8436
xchgl %ecx, 0x6c95(%rip)      # 0xb6f0
movq %rax, %r15
movq 0x556b(%rip), %rbx      # 0x9fd0
movq (%rbx), %rdi
leaq 0x24ad(%rip), %rsi      # 0x6f1c
movq %rax, %rdx
xorl %eax, %eax
callq 0x31d0
cmpq $0x0, 0x28(%r13)
je 0x4d3c
movq %r12, 0x20(%rsp)
movq %r15, 0x30(%rsp)
movq %r14, 0x40(%rsp)
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x3150
movq %r13, 0x18(%rsp)
movq 0x28(%r13), %rbx
movb $0x1, %al
testq %rbx, %rbx
je 0x4d4e
movq (%rbx), %r15
testq %r15, %r15
sete %bpl
je 0x4d60
movq 0x30(%rsp), %rax
incq %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x4, %r13d
movq $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq $0x0, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %r12
movl $0x5, %r14d
testq %r12, %r12
je 0x4b34
movq (%r12), %rdi
testq %rdi, %rdi
je 0x4b34
addq $0x10, %r12
movq %r15, %rsi
callq 0x31b0
testl %eax, %eax
je 0x4b94
movq (%r12), %rdi
addq $0x10, %r12
testq %rdi, %rdi
jne 0x4b1b
xorl %edx, %edx
xorl %ecx, %ecx
orb %cl, %dl
testb %cl, %cl
cmovel %r13d, %r14d
testb %dl, %dl
jne 0x4d0c
movq 0x8(%rbx), %rax
movl $0x4, %r14d
testq %rax, %rax
je 0x4d0c
cmpq $0x0, (%rax)
je 0x4d0c
movq 0x20(%rsp), %rcx
cmpb $0x1, 0x28(%rcx)
jne 0x4be5
cmpq $0x0, (%rax)
je 0x4c65
addq $0x8, %rax
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
incl %esi
cmpq $0x0, (%rax)
leaq 0x8(%rax), %rax
jne 0x4b83
jmp 0x4c6a
movq -0x8(%r12), %r14
movq 0x8(%rsp), %r13
movq %r13, %r12
shlq $0x4, %r12
leaq 0x20(%r12), %rsi
movq 0x10(%rsp), %rdi
callq 0x3240
testq %rax, %rax
setne %dl
je 0x4c49
movq %r15, (%rax,%r12)
movq %r14, 0x8(%rax,%r12)
incq %r13
movq %r13, 0x8(%rsp)
shlq $0x4, %r13
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%r13)
movl $0x5, %r14d
jmp 0x4c4f
movq (%rbx), %r14
movq 0x28(%rsp), %r12
movq %r12, %r15
shlq $0x4, %r15
leaq 0x20(%r15), %rsi
movq (%rsp), %rdi
callq 0x3240
testq %rax, %rax
movq %rax, (%rsp)
je 0x4c30
movq %r14, (%rax,%r15)
movq $0x0, 0x8(%rax,%r15)
incq %r12
movq %r12, %rax
shlq $0x4, %rax
movq (%rsp), %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rcx,%rax)
movq (%rsp), %rax
movq %r12, 0x28(%rsp)
testq %rax, %rax
jne 0x4d09
movl $0x8, %r14d
jmp 0x4d0c
movl $0x8, %r14d
movl $0x4, %r13d
movq %rax, 0x10(%rsp)
testq %rax, %rax
sete %cl
jmp 0x4b38
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq 0x30(%rsp), %rax
movb (%rax), %cl
testb %cl, %cl
je 0x4c98
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 0x4c81
jmp 0x4c9d
movl $0x1505, %edi           # imm = 0x1505
callq 0x3a57
movq (%rbx), %r14
movq 0x8(%rbx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r15
movq 0x8(%rsp), %r13
movq %r13, %r12
shlq $0x4, %r12
leaq 0x20(%r12), %rsi
movq 0x10(%rsp), %rdi
callq 0x3240
testq %rax, %rax
je 0x4cf3
movq %r14, (%rax,%r12)
movq %r15, 0x8(%rax,%r12)
incq %r13
movq %r13, %rcx
movq %r13, 0x8(%rsp)
shlq $0x4, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rcx)
xorl %r14d, %r14d
jmp 0x4cf9
movl $0x8, %r14d
movl $0x4, %r13d
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x4d0c
xorl %r14d, %r14d
testb $0xb, %r14b
jne 0x4d27
movq 0x10(%rbx), %r15
addq $0x10, %rbx
testq %r15, %r15
sete %bpl
jne 0x4afa
cmpq $0x0, 0x28(%rsp)
sete %al
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r13
jmp 0x4d6d
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4ea3
jmp 0x4e73
xorl %ebx, %ebx
xorl %r13d, %r13d
movq $0x0, (%rsp)
movb $0x1, %bpl
jmp 0x4d6d
xorl %ebx, %ebx
xorl %r13d, %r13d
movq $0x0, (%rsp)
testb $0x1, %bpl
je 0x4e53
testb %al, %al
movq 0x18(%rsp), %rsi
je 0x4d92
movq 0x20(%rsp), %rdi
movq %rbx, %rdx
callq 0x4ea3
jmp 0x4e53
movq (%rsp), %r14
testq %r14, %r14
movq %r13, 0x8(%rsp)
je 0x4e35
cmpq $0x0, (%r14)
je 0x4e35
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rbp
testq %rbp, %rbp
je 0x4e26
movq (%rbp), %r15
testq %r15, %r15
je 0x4e26
addq $0x10, %rbp
movq (%r14), %rdi
movq %r15, %rsi
callq 0x31b0
testl %eax, %eax
jne 0x4e19
movq -0x8(%rbp), %rax
movq (%rax), %r12
movq %rbx, %rdi
movq %r13, %rbx
shlq $0x4, %rbx
leaq 0x20(%rbx), %rsi
callq 0x3240
testq %rax, %rax
je 0x4e11
movq %r15, (%rax,%rbx)
movq %r12, 0x8(%rax,%rbx)
incq %r13
movq %r13, %rcx
shlq $0x4, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rcx)
movq %rax, %rbx
testq %rax, %rax
je 0x4e53
movq (%rbp), %r15
addq $0x10, %rbp
testq %r15, %r15
jne 0x4dc9
cmpq $0x0, 0x10(%r14)
leaq 0x10(%r14), %r14
jne 0x4dae
movq 0x8(%rsp), %rcx
shlq $0x4, %rcx
addq %rbx, %rcx
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x5560
movq %rbx, %rdi
callq 0x3030
movq (%rsp), %rdi
callq 0x3030
movq 0x18(%rsp), %r13
movq 0x40(%rsp), %r14
movq 0x30(%rsp), %r15
cmpq %r14, %r15
je 0x4e94
cmpq %r15, (%r13)
je 0x4e94
movq %r15, %rdi
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