double evaluateGTRGAMMAMULTINVAR(int *ex1, int *ex2, int *modelptr, int *wptr,
                                 int *iptr, double *x1_start, double *x2_start,
                                 double *EIGN, double *gammaRates,
                                 double *tipVector, double *tFreqs,
                                 double *invariants, double *pz, char *tipX1,
                                 int lower, int n, int numberOfModels,
                                 int multiBranch) {
  double sum = 0.0, z, lz = 0.0, term, ki;
  int i, model;
  double *diagptable, *diagptable_start, *x1, *x2, *scalers, *freqs;
  if (!multiBranch) {
    z = pz[0];
    if (z < 1.0E-15)
      z = 1.0E-15;
    lz = log(z);
  }
  diagptable = diagptable_start =
      (double *)malloc(sizeof(double) * 12 * numberOfModels);
  freqs = (double *)malloc(4 * numberOfModels * sizeof(double));
  scalers = (double *)malloc(numberOfModels * sizeof(double));
  for (model = 0; model < numberOfModels; model++) {
    if (multiBranch) {
      z = pz[model];
      if (z < 1.0E-15)
        z = 1.0E-15;
      lz = log(z);
    }
    scalers[model] = 0.25 * (1.0 - invariants[model]);
    freqs[4 * model] = tFreqs[4 * model] * invariants[model];
    freqs[4 * model + 1] = tFreqs[4 * model + 1] * invariants[model];
    freqs[4 * model + 2] = tFreqs[4 * model + 2] * invariants[model];
    freqs[4 * model + 3] = tFreqs[4 * model + 3] * invariants[model];
    diagptable = &diagptable_start[12 * model];
    for (i = 0; i < 4; i++) {
      ki = gammaRates[model * 4 + i];
      *diagptable++ = exp(EIGN[model * 3] * ki * lz);
      *diagptable++ = exp(EIGN[model * 3 + 1] * ki * lz);
      *diagptable++ = exp(EIGN[model * 3 + 2] * ki * lz);
    }
  }
  if (tipX1) {
    for (i = lower; i < n; i++) {
      model = modelptr[i];
      x1 = &(tipVector[64 * model + 4 * tipX1[i]]);
      x2 = &x2_start[16 * i];
      diagptable = &diagptable_start[12 * model];
      term = x1[0] * x2[0];
      term += x1[1] * x2[1] * *diagptable++;
      term += x1[2] * x2[2] * *diagptable++;
      term += x1[3] * x2[3] * *diagptable++;
      term += x1[0] * x2[4];
      term += x1[1] * x2[5] * *diagptable++;
      term += x1[2] * x2[6] * *diagptable++;
      term += x1[3] * x2[7] * *diagptable++;
      term += x1[0] * x2[8];
      term += x1[1] * x2[9] * *diagptable++;
      term += x1[2] * x2[10] * *diagptable++;
      term += x1[3] * x2[11] * *diagptable++;
      term += x1[0] * x2[12];
      term += x1[1] * x2[13] * *diagptable++;
      term += x1[2] * x2[14] * *diagptable++;
      term += x1[3] * x2[15] * *diagptable++;
      if (iptr[i] < 4)
        term = log(
            ((scalers[model] * term) + freqs[model * 4 + iptr[i]]) *
            pow((1.0 /
                 115792089237316195423570985008687907853269984665640564039457584007913129639936.0),
                ex2[i]));
      else
        term =
            log(scalers[model] * term) +
            (ex2[i] *
             log((
                 1.0 /
                 115792089237316195423570985008687907853269984665640564039457584007913129639936.0)));
      sum += wptr[i] * term;
    }
    free(diagptable_start);
    free(scalers);
    free(freqs);
    return sum;
  } else {
    for (i = lower; i < n; i++) {
      model = modelptr[i];
      diagptable = &diagptable_start[model * 12];
      x1 = &x1_start[16 * i];
      x2 = &x2_start[16 * i];
      term = x1[0] * x2[0];
      term += x1[1] * x2[1] * *diagptable++;
      term += x1[2] * x2[2] * *diagptable++;
      term += x1[3] * x2[3] * *diagptable++;
      term += x1[4] * x2[4];
      term += x1[5] * x2[5] * *diagptable++;
      term += x1[6] * x2[6] * *diagptable++;
      term += x1[7] * x2[7] * *diagptable++;
      term += x1[8] * x2[8];
      term += x1[9] * x2[9] * *diagptable++;
      term += x1[10] * x2[10] * *diagptable++;
      term += x1[11] * x2[11] * *diagptable++;
      term += x1[12] * x2[12];
      term += x1[13] * x2[13] * *diagptable++;
      term += x1[14] * x2[14] * *diagptable++;
      term += x1[15] * x2[15] * *diagptable++;
      if (iptr[i] < 4)
        term = log(
            ((scalers[model] * term) + freqs[model * 4 + iptr[i]]) *
            pow((1.0 /
                 115792089237316195423570985008687907853269984665640564039457584007913129639936.0),
                ex2[i] + ex1[i]));
      else
        term =
            log(scalers[model] * term) +
            ((ex1[i] + ex2[i]) *
             log((
                 1.0 /
                 115792089237316195423570985008687907853269984665640564039457584007913129639936.0)));
      sum += wptr[i] * term;
    }
    free(diagptable_start);
    free(scalers);
    free(freqs);
    return sum;
  }
}


x86 assembly (clang, -O0):
<evaluateGTRGAMMAMULTINVAR>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    0x68(%rbp),%eax
mov    0x60(%rbp),%eax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
cmpl   $0x0,0x68(%rbp)
jne    11f5 <evaluateGTRGAMMAMULTINVAR+0xa5>
mov    0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe32(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    11e6 <evaluateGTRGAMMAMULTINVAR+0x96>
movsd  0xe1f(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x50(%rbp)
movslq 0x60(%rbp),%rax
imul   $0x60,%rax,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x78(%rbp)
mov    %rax,-0x70(%rbp)
mov    0x60(%rbp),%eax
shl    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x98(%rbp)
movslq 0x60(%rbp),%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x90(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    0x60(%rbp),%eax
jge    14a6 <evaluateGTRGAMMAMULTINVAR+0x356>
cmpl   $0x0,0x68(%rbp)
je     1295 <evaluateGTRGAMMAMULTINVAR+0x145>
mov    0x40(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xd92(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    1286 <evaluateGTRGAMMAMULTINVAR+0x136>
movsd  0xd7f(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x50(%rbp)
mov    0x38(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  0xd73(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
movsd  0xd5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x90(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x30(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x68(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x98(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x30(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x68(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x98(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x30(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x68(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x98(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x30(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x68(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x98(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x78(%rbp),%rax
imul   $0xc,-0x68(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jge    1493 <evaluateGTRGAMMAMULTINVAR+0x343>
mov    0x20(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x18(%rbp),%rax
imul   $0x3,-0x68(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
call   1050 <exp@plt>
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
imul   $0x3,-0x68(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
call   1050 <exp@plt>
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
imul   $0x3,-0x68(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
call   1050 <exp@plt>
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  %xmm0,(%rax)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    13c5 <evaluateGTRGAMMAMULTINVAR+0x275>
jmp    1498 <evaluateGTRGAMMAMULTINVAR+0x348>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    123e <evaluateGTRGAMMAMULTINVAR+0xee>
cmpq   $0x0,0x48(%rbp)
je     19c2 <evaluateGTRGAMMAMULTINVAR+0x872>
mov    0x50(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x58(%rbp),%eax
jge    1992 <evaluateGTRGAMMAMULTINVAR+0x842>
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x68(%rbp)
mov    0x28(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x6,%ecx
mov    0x48(%rbp),%rdx
movslq -0x64(%rbp),%rsi
movsbl (%rdx,%rsi,1),%edx
shl    $0x2,%edx
add    %edx,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    0x10(%rbp),%rax
mov    -0x64(%rbp),%ecx
shl    $0x4,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x78(%rbp),%rax
imul   $0xc,-0x68(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x10(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  0x20(%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x28(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x30(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x38(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x48(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x50(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x58(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  0x60(%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x68(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x70(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x78(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x64(%rbp),%rcx
cmpl   $0x4,(%rax,%rcx,4)
jge    18fc <evaluateGTRGAMMAMULTINVAR+0x7ac>
mov    -0x90(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x58(%rbp),%xmm2
mov    -0x98(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x30(%rbp),%rdx
movslq -0x64(%rbp),%rsi
add    (%rdx,%rsi,4),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
movsd  0x72f(%rip),%xmm0
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x58(%rbp)
jmp    1960 <evaluateGTRGAMMAMULTINVAR+0x810>
mov    -0x90(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x58(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0x6cd(%rip),%xmm0
call   1060 <log@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    14b7 <evaluateGTRGAMMAMULTINVAR+0x367>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1eda <evaluateGTRGAMMAMULTINVAR+0xd8a>
mov    0x50(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x58(%rbp),%eax
jge    1eaf <evaluateGTRGAMMAMULTINVAR+0xd5f>
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x68(%rbp)
mov    -0x78(%rbp),%rax
imul   $0xc,-0x68(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x64(%rbp),%ecx
shl    $0x4,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    0x10(%rbp),%rax
mov    -0x64(%rbp),%ecx
shl    $0x4,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x10(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  0x20(%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x28(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x30(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x38(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x48(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x50(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x58(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  0x60(%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x68(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x70(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x88(%rbp),%rax
mulsd  0x78(%rax),%xmm0
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x64(%rbp),%rcx
cmpl   $0x4,(%rax,%rcx,4)
jge    1e0c <evaluateGTRGAMMAMULTINVAR+0xcbc>
mov    -0x90(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x58(%rbp),%xmm2
mov    -0x98(%rbp),%rax
mov    -0x68(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x30(%rbp),%rdx
movslq -0x64(%rbp),%rsi
add    (%rdx,%rsi,4),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x64(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
cvtsi2sd %eax,%xmm1
movsd  0x21f(%rip),%xmm0
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x58(%rbp)
jmp    1e7d <evaluateGTRGAMMAMULTINVAR+0xd2d>
mov    -0x90(%rbp),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x58(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x18(%rbp),%rcx
movslq -0x64(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0x1b0(%rip),%xmm0
call   1060 <log@plt>
movsd  -0xc8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    19c8 <evaluateGTRGAMMAMULTINVAR+0x878>
mov    -0x78(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluateGTRGAMMAMULTINVAR>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9,0x60(%rsp)
mov    %r8,0x38(%rsp)
mov    %rcx,0x50(%rsp)
mov    %rdx,0x48(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,0x40(%rsp)
mov    0x110(%rsp),%ebx
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
cmpl   $0x0,0x118(%rsp)
jne    11b7 <evaluateGTRGAMMAMULTINVAR+0x67>
movsd  0xe5f(%rip),%xmm0
mov    0xf0(%rsp),%rax
maxsd  (%rax),%xmm0
call   1060 <log@plt>
movsd  %xmm0,(%rsp)
movslq %ebx,%rbp
mov    %rbp,%rax
shl    $0x5,%rax
lea    (%rax,%rax,2),%rdi
call   1040 <malloc@plt>
mov    %rax,0x30(%rsp)
lea    0x0(,%rbp,4),%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %rbp,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x28(%rsp)
test   %ebp,%ebp
jle    150f <evaluateGTRGAMMAMULTINVAR+0x3bf>
mov    %ebx,%eax
shl    $0x2,%rax
mov    %rax,0x68(%rsp)
xor    %ebp,%ebp
xor    %r15d,%r15d
xor    %ebx,%ebx
jmp    14dd <evaluateGTRGAMMAMULTINVAR+0x38d>
nopw   0x0(%rax,%rax,1)
mov    0xe8(%rsp),%rax
movsd  (%rax,%rbp,2),%xmm0
movsd  0xdd3(%rip),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xdcf(%rip),%xmm1
mov    0x28(%rsp),%rax
movsd  %xmm1,(%rax,%rbp,2)
mov    %rbp,0x10(%rsp)
mov    0x10(%rsp),%r14d
shl    $0x3,%r14
mov    0xe0(%rsp),%rdx
movupd (%rdx,%r14,1),%xmm1
unpcklpd %xmm0,%xmm0
mulpd  %xmm0,%xmm1
mov    0x20(%rsp),%rcx
movupd %xmm1,(%rcx,%r14,1)
mov    0x10(%rsp),%rax
add    $0x2,%eax
movupd (%rdx,%rax,8),%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,(%rcx,%rax,8)
mov    %rbx,0x58(%rsp)
mov    0x58(%rsp),%r13
and    $0xfffffffc,%r13d
mov    %r15d,%ecx
mov    %rcx,0x70(%rsp)
lea    0x1(%r15),%r12d
lea    0x2(%r15),%ebp
mov    0xd0(%rsp),%rax
movsd  (%rax,%r14,1),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0xc8(%rsp),%rbx
movsd  (%rbx,%rcx,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
mov    %r15,0x80(%rsp)
mov    0x30(%rsp),%r15
movsd  %xmm0,(%r15,%r13,8)
movsd  (%rbx,%r12,8),%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x8(%r15,%r13,8)
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx,%rbp,8),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x10(%r15,%r13,8)
mov    %r14,%rax
or     $0x8,%rax
mov    0xd0(%rsp),%rcx
movsd  (%rcx,%rax,1),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x70(%rsp),%rbx
mov    0xc8(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x18(%r15,%r13,8)
mov    0xc8(%rsp),%rax
movsd  (%rax,%r12,8),%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x20(%r15,%r13,8)
movsd  0x8(%rsp),%xmm0
mov    0xc8(%rsp),%rax
mulsd  (%rax,%rbp,8),%xmm0
mov    %rbp,0x78(%rsp)
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x28(%r15,%r13,8)
mov    %r14,%rax
or     $0x10,%rax
mov    0xd0(%rsp),%rcx
movsd  (%rcx,%rax,1),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0xc8(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x30(%r15,%r13,8)
mov    0xc8(%rsp),%rax
movsd  (%rax,%r12,8),%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x38(%r15,%r13,8)
mov    0xc8(%rsp),%rax
movsd  0x8(%rsp),%xmm0
mulsd  (%rax,%rbp,8),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x40(%r15,%r13,8)
or     $0x18,%r14
mov    0xd0(%rsp),%rax
movsd  (%rax,%r14,1),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x10(%rsp),%rbp
mov    0xc8(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
mov    %rax,%rbx
mulsd  %xmm1,%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x48(%r15,%r13,8)
movsd  (%rbx,%r12,8),%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x50(%r15,%r13,8)
mov    0x78(%rsp),%rax
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx,%rax,8),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x58(%r15,%r13,8)
mov    0x80(%rsp),%r15
mov    0x58(%rsp),%rbx
add    $0xc,%rbx
add    $0x3,%r15d
add    $0x4,%rbp
cmp    %rbp,0x68(%rsp)
je     150f <evaluateGTRGAMMAMULTINVAR+0x3bf>
cmpl   $0x0,0x118(%rsp)
je     1220 <evaluateGTRGAMMAMULTINVAR+0xd0>
movsd  0xb0d(%rip),%xmm0
mov    0xf0(%rsp),%rax
maxsd  (%rax,%rbp,2),%xmm0
call   1060 <log@plt>
movsd  %xmm0,(%rsp)
jmp    1220 <evaluateGTRGAMMAMULTINVAR+0xd0>
mov    0x108(%rsp),%eax
mov    0x100(%rsp),%r12d
mov    0xc0(%rsp),%r13
xorpd  %xmm3,%xmm3
cmpq   $0x0,0xf8(%rsp)
je     177f <evaluateGTRGAMMAMULTINVAR+0x62f>
cmp    %eax,%r12d
mov    0x38(%rsp),%rbx
jge    19e4 <evaluateGTRGAMMAMULTINVAR+0x894>
mov    0xd8(%rsp),%r14
movslq %r12d,%rbp
movslq %eax,%r15
shl    $0x4,%r12d
xorpd  %xmm3,%xmm3
jmp    15b1 <evaluateGTRGAMMAMULTINVAR+0x461>
nop
mulsd  %xmm1,%xmm0
call   1060 <log@plt>
movapd %xmm0,%xmm1
mov    0x18(%rsp),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax,%rbp,4),%xmm0
mulsd  0xa96(%rip),%xmm0
addsd  %xmm1,%xmm0
mov    0x50(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%rbp,4),%xmm1
mulsd  %xmm0,%xmm1
movsd  (%rsp),%xmm3
addsd  %xmm1,%xmm3
add    $0x1,%rbp
add    $0x10,%r12d
cmp    %rbp,%r15
je     19e4 <evaluateGTRGAMMAMULTINVAR+0x894>
movsd  %xmm3,(%rsp)
mov    0x48(%rsp),%rax
movslq (%rax,%rbp,4),%rax
mov    %rax,%rcx
shl    $0x6,%rcx
mov    0xf8(%rsp),%rdx
movsbq (%rdx,%rbp,1),%rdx
lea    (%rcx,%rdx,4),%rsi
movslq %r12d,%rdx
lea    (%rax,%rax,2),%rcx
shl    $0x5,%rcx
movsd  (%r14,%rsi,8),%xmm2
movsd  0x8(%r14,%rsi,8),%xmm1
movsd  0x0(%r13,%rdx,8),%xmm0
mulsd  %xmm2,%xmm0
movsd  0x8(%r13,%rdx,8),%xmm4
mulsd  %xmm1,%xmm4
mov    0x30(%rsp),%rdi
mulsd  (%rdi,%rcx,1),%xmm4
addsd  %xmm0,%xmm4
movsd  0x10(%r14,%rsi,8),%xmm3
movsd  0x10(%r13,%rdx,8),%xmm5
mulsd  %xmm3,%xmm5
mulsd  0x8(%rdi,%rcx,1),%xmm5
addsd  %xmm4,%xmm5
movsd  0x18(%r14,%rsi,8),%xmm0
movsd  0x18(%r13,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
mulsd  0x10(%rdi,%rcx,1),%xmm4
addsd  %xmm5,%xmm4
movsd  0x20(%r13,%rdx,8),%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm4,%xmm5
movsd  0x28(%r13,%rdx,8),%xmm4
mulsd  %xmm1,%xmm4
mulsd  0x18(%rdi,%rcx,1),%xmm4
addsd  %xmm5,%xmm4
movsd  0x30(%r13,%rdx,8),%xmm5
mulsd  %xmm3,%xmm5
mulsd  0x20(%rdi,%rcx,1),%xmm5
addsd  %xmm4,%xmm5
movsd  0x38(%r13,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
mulsd  0x28(%rdi,%rcx,1),%xmm4
addsd  %xmm5,%xmm4
movsd  0x40(%r13,%rdx,8),%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm4,%xmm5
movsd  0x48(%r13,%rdx,8),%xmm4
mulsd  %xmm1,%xmm4
mulsd  0x30(%rdi,%rcx,1),%xmm4
movsd  0x50(%r13,%rdx,8),%xmm6
mulsd  %xmm3,%xmm6
mulsd  0x38(%rdi,%rcx,1),%xmm6
addsd  %xmm5,%xmm4
addsd  %xmm4,%xmm6
movsd  0x58(%r13,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
mulsd  0x40(%rdi,%rcx,1),%xmm4
mulsd  0x60(%r13,%rdx,8),%xmm2
addsd  %xmm6,%xmm4
addsd  %xmm4,%xmm2
mulsd  0x68(%r13,%rdx,8),%xmm1
mulsd  0x48(%rdi,%rcx,1),%xmm1
mulsd  0x70(%r13,%rdx,8),%xmm3
addsd  %xmm2,%xmm1
mulsd  0x50(%rdi,%rcx,1),%xmm3
addsd  %xmm1,%xmm3
mulsd  0x78(%r13,%rdx,8),%xmm0
mulsd  0x58(%rdi,%rcx,1),%xmm0
addsd  %xmm3,%xmm0
movslq (%rbx,%rbp,4),%rcx
mov    0x28(%rsp),%rdx
movsd  (%rdx,%rax,8),%xmm1
cmp    $0x3,%rcx
jg     1560 <evaluateGTRGAMMAMULTINVAR+0x410>
lea    (%rcx,%rax,4),%rax
mulsd  %xmm0,%xmm1
mov    0x20(%rsp),%rcx
addsd  (%rcx,%rax,8),%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x18(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%rbp,4),%xmm1
movsd  0x8b6(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x10(%rsp),%xmm0
call   1060 <log@plt>
jmp    1586 <evaluateGTRGAMMAMULTINVAR+0x436>
cmp    %eax,%r12d
mov    0x38(%rsp),%r15
mov    0x60(%rsp),%rbx
jge    19e4 <evaluateGTRGAMMAMULTINVAR+0x894>
movslq %r12d,%rbp
movslq %eax,%r14
shl    $0x4,%r12d
xorpd  %xmm3,%xmm3
jmp    180b <evaluateGTRGAMMAMULTINVAR+0x6bb>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mulsd  %xmm1,%xmm0
call   1060 <log@plt>
movsd  (%rsp),%xmm3
movapd %xmm0,%xmm1
mov    0x18(%rsp),%rax
mov    (%rax,%rbp,4),%eax
mov    0x40(%rsp),%rcx
add    (%rcx,%rbp,4),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x837(%rip),%xmm0
addsd  %xmm1,%xmm0
mov    0x50(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%rbp,4),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm1,%xmm3
add    $0x1,%rbp
add    $0x10,%r12d
cmp    %rbp,%r14
je     19e4 <evaluateGTRGAMMAMULTINVAR+0x894>
mov    0x48(%rsp),%rax
movslq (%rax,%rbp,4),%rax
lea    (%rax,%rax,2),%rcx
shl    $0x5,%rcx
movslq %r12d,%rdx
movsd  (%rbx,%rdx,8),%xmm0
movsd  0x8(%rbx,%rdx,8),%xmm1
mulsd  0x0(%r13,%rdx,8),%xmm0
mulsd  0x8(%r13,%rdx,8),%xmm1
mov    0x30(%rsp),%rsi
mulsd  (%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rbx,%rdx,8),%xmm0
mulsd  0x10(%r13,%rdx,8),%xmm0
mulsd  0x8(%rsi,%rcx,1),%xmm0
addsd  %xmm1,%xmm0
movsd  0x18(%rbx,%rdx,8),%xmm1
mulsd  0x18(%r13,%rdx,8),%xmm1
mulsd  0x10(%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x20(%rbx,%rdx,8),%xmm0
mulsd  0x20(%r13,%rdx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  0x28(%rbx,%rdx,8),%xmm1
mulsd  0x28(%r13,%rdx,8),%xmm1
mulsd  0x18(%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x30(%rbx,%rdx,8),%xmm0
mulsd  0x30(%r13,%rdx,8),%xmm0
mulsd  0x20(%rsi,%rcx,1),%xmm0
addsd  %xmm1,%xmm0
movsd  0x38(%rbx,%rdx,8),%xmm1
mulsd  0x38(%r13,%rdx,8),%xmm1
mulsd  0x28(%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x40(%rbx,%rdx,8),%xmm0
mulsd  0x40(%r13,%rdx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  0x48(%rbx,%rdx,8),%xmm1
mulsd  0x48(%r13,%rdx,8),%xmm1
mulsd  0x30(%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x50(%rbx,%rdx,8),%xmm0
mulsd  0x50(%r13,%rdx,8),%xmm0
mulsd  0x38(%rsi,%rcx,1),%xmm0
addsd  %xmm1,%xmm0
movsd  0x58(%rbx,%rdx,8),%xmm1
mulsd  0x58(%r13,%rdx,8),%xmm1
mulsd  0x40(%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x60(%rbx,%rdx,8),%xmm0
mulsd  0x60(%r13,%rdx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  0x68(%rbx,%rdx,8),%xmm1
mulsd  0x68(%r13,%rdx,8),%xmm1
mulsd  0x48(%rsi,%rcx,1),%xmm1
addsd  %xmm0,%xmm1
movsd  0x70(%rbx,%rdx,8),%xmm2
mulsd  0x70(%r13,%rdx,8),%xmm2
mulsd  0x50(%rsi,%rcx,1),%xmm2
addsd  %xmm1,%xmm2
movsd  0x78(%rbx,%rdx,8),%xmm0
mulsd  0x78(%r13,%rdx,8),%xmm0
mulsd  0x58(%rsi,%rcx,1),%xmm0
addsd  %xmm2,%xmm0
movslq (%r15,%rbp,4),%rcx
mov    0x28(%rsp),%rdx
movsd  (%rdx,%rax,8),%xmm1
cmp    $0x3,%rcx
movsd  %xmm3,(%rsp)
jg     17b0 <evaluateGTRGAMMAMULTINVAR+0x660>
lea    (%rcx,%rax,4),%rax
mulsd  %xmm0,%xmm1
mov    0x20(%rsp),%rcx
addsd  (%rcx,%rax,8),%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x40(%rsp),%rax
mov    (%rax,%rbp,4),%eax
mov    0x18(%rsp),%rcx
add    (%rcx,%rbp,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x656(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x10(%rsp),%xmm0
call   1060 <log@plt>
movsd  (%rsp),%xmm3
jmp    17e5 <evaluateGTRGAMMAMULTINVAR+0x695>
movsd  %xmm3,(%rsp)
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
movsd  (%rsp),%xmm0
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @evaluateGTRGAMMAMULTINVAR(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, double* %5, double* %6, double* %7, double* %8, double* %9, double* %10, double* %11, double* %12, i8* %13, i32 %14, i32 %15, i32 %16, i32 %17) {
%19 = alloca double
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca i32*
%24 = alloca i32*
%25 = alloca double*
%26 = alloca double*
%27 = alloca double*
%28 = alloca double*
%29 = alloca double*
%30 = alloca double*
%31 = alloca double*
%32 = alloca double*
%33 = alloca i8*
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca i32
%44 = alloca i32
%45 = alloca double*
%46 = alloca double*
%47 = alloca double*
%48 = alloca double*
%49 = alloca double*
%50 = alloca double*
store i32* %0, i32** %20
store i32* %1, i32** %21
store i32* %2, i32** %22
store i32* %3, i32** %23
store i32* %4, i32** %24
store double* %5, double** %25
store double* %6, double** %26
store double* %7, double** %27
store double* %8, double** %28
store double* %9, double** %29
store double* %10, double** %30
store double* %11, double** %31
store double* %12, double** %32
store i8* %13, i8** %33
store i32 %14, i32* %34
store i32 %15, i32* %35
store i32 %16, i32* %36
store i32 %17, i32* %37
store double 0.000000e+00, double* %38
store double 0.000000e+00, double* %40
%51 = load i32, i32* %37
%52 = icmp ne i32 %51, 0
br i1 %52, label %63, label %53
53: ; preds = %18
%54 = load double*, double** %32
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
store double %56, double* %39
%57 = load double, double* %39
%58 = fcmp olt double %57, 1.000000e-15
br i1 %58, label %59, label %60
59: ; preds = %53
store double 1.000000e-15, double* %39
br label %60
60: ; preds = %59, %53
%61 = load double, double* %39
%62 = call double @log(double %61)
store double %62, double* %40
br label %63
63: ; preds = %60, %18
%64 = load i32, i32* %36
%65 = sext i32 %64 to i64
%66 = mul i64 96, %65
%67 = call i8* @malloc(i64 %66)
%68 = bitcast i8* %67 to double*
store double* %68, double** %46
store double* %68, double** %45
%69 = load i32, i32* %36
%70 = mul nsw i32 4, %69
%71 = sext i32 %70 to i64
%72 = mul i64 %71, 8
%73 = call i8* @malloc(i64 %72)
%74 = bitcast i8* %73 to double*
store double* %74, double** %50
%75 = load i32, i32* %36
%76 = sext i32 %75 to i64
%77 = mul i64 %76, 8
%78 = call i8* @malloc(i64 %77)
%79 = bitcast i8* %78 to double*
store double* %79, double** %49
store i32 0, i32* %44
br label %80
80: ; preds = %247, %63
%81 = load i32, i32* %44
%82 = load i32, i32* %36
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %250
84: ; preds = %80
%85 = load i32, i32* %37
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %99
87: ; preds = %84
%88 = load double*, double** %32
%89 = load i32, i32* %44
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, double* %88, i64 %90
%92 = load double, double* %91
store double %92, double* %39
%93 = load double, double* %39
%94 = fcmp olt double %93, 1.000000e-15
br i1 %94, label %95, label %96
95: ; preds = %87
store double 1.000000e-15, double* %39
br label %96
96: ; preds = %95, %87
%97 = load double, double* %39
%98 = call double @log(double %97)
store double %98, double* %40
br label %99
99: ; preds = %96, %84
%100 = load double*, double** %31
%101 = load i32, i32* %44
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
%104 = load double, double* %103
%105 = fsub double 1.000000e+00, %104
%106 = fmul double 2.500000e-01, %105
%107 = load double*, double** %49
%108 = load i32, i32* %44
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %107, i64 %109
store double %106, double* %110
%111 = load double*, double** %30
%112 = load i32, i32* %44
%113 = mul nsw i32 4, %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %111, i64 %114
%116 = load double, double* %115
%117 = load double*, double** %31
%118 = load i32, i32* %44
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %117, i64 %119
%121 = load double, double* %120
%122 = fmul double %116, %121
%123 = load double*, double** %50
%124 = load i32, i32* %44
%125 = mul nsw i32 4, %124
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %123, i64 %126
store double %122, double* %127
%128 = load double*, double** %30
%129 = load i32, i32* %44
%130 = mul nsw i32 4, %129
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %128, i64 %132
%134 = load double, double* %133
%135 = load double*, double** %31
%136 = load i32, i32* %44
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = fmul double %134, %139
%141 = load double*, double** %50
%142 = load i32, i32* %44
%143 = mul nsw i32 4, %142
%144 = add nsw i32 %143, 1
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, double* %141, i64 %145
store double %140, double* %146
%147 = load double*, double** %30
%148 = load i32, i32* %44
%149 = mul nsw i32 4, %148
%150 = add nsw i32 %149, 2
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, double* %147, i64 %151
%153 = load double, double* %152
%154 = load double*, double** %31
%155 = load i32, i32* %44
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
%159 = fmul double %153, %158
%160 = load double*, double** %50
%161 = load i32, i32* %44
%162 = mul nsw i32 4, %161
%163 = add nsw i32 %162, 2
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %160, i64 %164
store double %159, double* %165
%166 = load double*, double** %30
%167 = load i32, i32* %44
%168 = mul nsw i32 4, %167
%169 = add nsw i32 %168, 3
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, double* %166, i64 %170
%172 = load double, double* %171
%173 = load double*, double** %31
%174 = load i32, i32* %44
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %173, i64 %175
%177 = load double, double* %176
%178 = fmul double %172, %177
%179 = load double*, double** %50
%180 = load i32, i32* %44
%181 = mul nsw i32 4, %180
%182 = add nsw i32 %181, 3
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %179, i64 %183
store double %178, double* %184
%185 = load double*, double** %46
%186 = load i32, i32* %44
%187 = mul nsw i32 12, %186
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %185, i64 %188
store double* %189, double** %45
store i32 0, i32* %43
br label %190
190: ; preds = %243, %99
%191 = load i32, i32* %43
%192 = icmp slt i32 %191, 4
br i1 %192, label %193, label %246
193: ; preds = %190
%194 = load double*, double** %28
%195 = load i32, i32* %44
%196 = mul nsw i32 %195, 4
%197 = load i32, i32* %43
%198 = add nsw i32 %196, %197
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %194, i64 %199
%201 = load double, double* %200
store double %201, double* %42
%202 = load double*, double** %27
%203 = load i32, i32* %44
%204 = mul nsw i32 %203, 3
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds double, double* %202, i64 %205
%207 = load double, double* %206
%208 = load double, double* %42
%209 = fmul double %207, %208
%210 = load double, double* %40
%211 = fmul double %209, %210
%212 = call double @exp(double %211)
%213 = load double*, double** %45
%214 = getelementptr inbounds double, double* %213, i32 1
store double* %214, double** %45
store double %212, double* %213
%215 = load double*, double** %27
%216 = load i32, i32* %44
%217 = mul nsw i32 %216, 3
%218 = add nsw i32 %217, 1
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds double, double* %215, i64 %219
%221 = load double, double* %220
%222 = load double, double* %42
%223 = fmul double %221, %222
%224 = load double, double* %40
%225 = fmul double %223, %224
%226 = call double @exp(double %225)
%227 = load double*, double** %45
%228 = getelementptr inbounds double, double* %227, i32 1
store double* %228, double** %45
store double %226, double* %227
%229 = load double*, double** %27
%230 = load i32, i32* %44
%231 = mul nsw i32 %230, 3
%232 = add nsw i32 %231, 2
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds double, double* %229, i64 %233
%235 = load double, double* %234
%236 = load double, double* %42
%237 = fmul double %235, %236
%238 = load double, double* %40
%239 = fmul double %237, %238
%240 = call double @exp(double %239)
%241 = load double*, double** %45
%242 = getelementptr inbounds double, double* %241, i32 1
store double* %242, double** %45
store double %240, double* %241
br label %243
243: ; preds = %193
%244 = load i32, i32* %43
%245 = add nsw i32 %244, 1
store i32 %245, i32* %43
br label %190
246: ; preds = %190
br label %247
247: ; preds = %246
%248 = load i32, i32* %44
%249 = add nsw i32 %248, 1
store i32 %249, i32* %44
br label %80
250: ; preds = %80
%251 = load i8*, i8** %33
%252 = icmp ne i8* %251, null
br i1 %252, label %253, label %536
253: ; preds = %250
%254 = load i32, i32* %34
store i32 %254, i32* %43
br label %255
255: ; preds = %525, %253
%256 = load i32, i32* %43
%257 = load i32, i32* %35
%258 = icmp slt i32 %256, %257
br i1 %258, label %259, label %528
259: ; preds = %255
%260 = load i32*, i32** %22
%261 = load i32, i32* %43
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds i32, i32* %260, i64 %262
%264 = load i32, i32* %263
store i32 %264, i32* %44
%265 = load double*, double** %29
%266 = load i32, i32* %44
%267 = mul nsw i32 64, %266
%268 = load i8*, i8** %33
%269 = load i32, i32* %43
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds i8, i8* %268, i64 %270
%272 = load i8, i8* %271
%273 = sext i8 %272 to i32
%274 = mul nsw i32 4, %273
%275 = add nsw i32 %267, %274
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds double, double* %265, i64 %276
store double* %277, double** %47
%278 = load double*, double** %26
%279 = load i32, i32* %43
%280 = mul nsw i32 16, %279
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds double, double* %278, i64 %281
store double* %282, double** %48
%283 = load double*, double** %46
%284 = load i32, i32* %44
%285 = mul nsw i32 12, %284
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds double, double* %283, i64 %286
store double* %287, double** %45
%288 = load double*, double** %47
%289 = getelementptr inbounds double, double* %288, i64 0
%290 = load double, double* %289
%291 = load double*, double** %48
%292 = getelementptr inbounds double, double* %291, i64 0
%293 = load double, double* %292
%294 = fmul double %290, %293
store double %294, double* %41
%295 = load double*, double** %47
%296 = getelementptr inbounds double, double* %295, i64 1
%297 = load double, double* %296
%298 = load double*, double** %48
%299 = getelementptr inbounds double, double* %298, i64 1
%300 = load double, double* %299
%301 = fmul double %297, %300
%302 = load double*, double** %45
%303 = getelementptr inbounds double, double* %302, i32 1
store double* %303, double** %45
%304 = load double, double* %302
%305 = load double, double* %41
%306 = call double @llvm.fmuladd.f64(double %301, double %304, double %305)
store double %306, double* %41
%307 = load double*, double** %47
%308 = getelementptr inbounds double, double* %307, i64 2
%309 = load double, double* %308
%310 = load double*, double** %48
%311 = getelementptr inbounds double, double* %310, i64 2
%312 = load double, double* %311
%313 = fmul double %309, %312
%314 = load double*, double** %45
%315 = getelementptr inbounds double, double* %314, i32 1
store double* %315, double** %45
%316 = load double, double* %314
%317 = load double, double* %41
%318 = call double @llvm.fmuladd.f64(double %313, double %316, double %317)
store double %318, double* %41
%319 = load double*, double** %47
%320 = getelementptr inbounds double, double* %319, i64 3
%321 = load double, double* %320
%322 = load double*, double** %48
%323 = getelementptr inbounds double, double* %322, i64 3
%324 = load double, double* %323
%325 = fmul double %321, %324
%326 = load double*, double** %45
%327 = getelementptr inbounds double, double* %326, i32 1
store double* %327, double** %45
%328 = load double, double* %326
%329 = load double, double* %41
%330 = call double @llvm.fmuladd.f64(double %325, double %328, double %329)
store double %330, double* %41
%331 = load double*, double** %47
%332 = getelementptr inbounds double, double* %331, i64 0
%333 = load double, double* %332
%334 = load double*, double** %48
%335 = getelementptr inbounds double, double* %334, i64 4
%336 = load double, double* %335
%337 = load double, double* %41
%338 = call double @llvm.fmuladd.f64(double %333, double %336, double %337)
store double %338, double* %41
%339 = load double*, double** %47
%340 = getelementptr inbounds double, double* %339, i64 1
%341 = load double, double* %340
%342 = load double*, double** %48
%343 = getelementptr inbounds double, double* %342, i64 5
%344 = load double, double* %343
%345 = fmul double %341, %344
%346 = load double*, double** %45
%347 = getelementptr inbounds double, double* %346, i32 1
store double* %347, double** %45
%348 = load double, double* %346
%349 = load double, double* %41
%350 = call double @llvm.fmuladd.f64(double %345, double %348, double %349)
store double %350, double* %41
%351 = load double*, double** %47
%352 = getelementptr inbounds double, double* %351, i64 2
%353 = load double, double* %352
%354 = load double*, double** %48
%355 = getelementptr inbounds double, double* %354, i64 6
%356 = load double, double* %355
%357 = fmul double %353, %356
%358 = load double*, double** %45
%359 = getelementptr inbounds double, double* %358, i32 1
store double* %359, double** %45
%360 = load double, double* %358
%361 = load double, double* %41
%362 = call double @llvm.fmuladd.f64(double %357, double %360, double %361)
store double %362, double* %41
%363 = load double*, double** %47
%364 = getelementptr inbounds double, double* %363, i64 3
%365 = load double, double* %364
%366 = load double*, double** %48
%367 = getelementptr inbounds double, double* %366, i64 7
%368 = load double, double* %367
%369 = fmul double %365, %368
%370 = load double*, double** %45
%371 = getelementptr inbounds double, double* %370, i32 1
store double* %371, double** %45
%372 = load double, double* %370
%373 = load double, double* %41
%374 = call double @llvm.fmuladd.f64(double %369, double %372, double %373)
store double %374, double* %41
%375 = load double*, double** %47
%376 = getelementptr inbounds double, double* %375, i64 0
%377 = load double, double* %376
%378 = load double*, double** %48
%379 = getelementptr inbounds double, double* %378, i64 8
%380 = load double, double* %379
%381 = load double, double* %41
%382 = call double @llvm.fmuladd.f64(double %377, double %380, double %381)
store double %382, double* %41
%383 = load double*, double** %47
%384 = getelementptr inbounds double, double* %383, i64 1
%385 = load double, double* %384
%386 = load double*, double** %48
%387 = getelementptr inbounds double, double* %386, i64 9
%388 = load double, double* %387
%389 = fmul double %385, %388
%390 = load double*, double** %45
%391 = getelementptr inbounds double, double* %390, i32 1
store double* %391, double** %45
%392 = load double, double* %390
%393 = load double, double* %41
%394 = call double @llvm.fmuladd.f64(double %389, double %392, double %393)
store double %394, double* %41
%395 = load double*, double** %47
%396 = getelementptr inbounds double, double* %395, i64 2
%397 = load double, double* %396
%398 = load double*, double** %48
%399 = getelementptr inbounds double, double* %398, i64 10
%400 = load double, double* %399
%401 = fmul double %397, %400
%402 = load double*, double** %45
%403 = getelementptr inbounds double, double* %402, i32 1
store double* %403, double** %45
%404 = load double, double* %402
%405 = load double, double* %41
%406 = call double @llvm.fmuladd.f64(double %401, double %404, double %405)
store double %406, double* %41
%407 = load double*, double** %47
%408 = getelementptr inbounds double, double* %407, i64 3
%409 = load double, double* %408
%410 = load double*, double** %48
%411 = getelementptr inbounds double, double* %410, i64 11
%412 = load double, double* %411
%413 = fmul double %409, %412
%414 = load double*, double** %45
%415 = getelementptr inbounds double, double* %414, i32 1
store double* %415, double** %45
%416 = load double, double* %414
%417 = load double, double* %41
%418 = call double @llvm.fmuladd.f64(double %413, double %416, double %417)
store double %418, double* %41
%419 = load double*, double** %47
%420 = getelementptr inbounds double, double* %419, i64 0
%421 = load double, double* %420
%422 = load double*, double** %48
%423 = getelementptr inbounds double, double* %422, i64 12
%424 = load double, double* %423
%425 = load double, double* %41
%426 = call double @llvm.fmuladd.f64(double %421, double %424, double %425)
store double %426, double* %41
%427 = load double*, double** %47
%428 = getelementptr inbounds double, double* %427, i64 1
%429 = load double, double* %428
%430 = load double*, double** %48
%431 = getelementptr inbounds double, double* %430, i64 13
%432 = load double, double* %431
%433 = fmul double %429, %432
%434 = load double*, double** %45
%435 = getelementptr inbounds double, double* %434, i32 1
store double* %435, double** %45
%436 = load double, double* %434
%437 = load double, double* %41
%438 = call double @llvm.fmuladd.f64(double %433, double %436, double %437)
store double %438, double* %41
%439 = load double*, double** %47
%440 = getelementptr inbounds double, double* %439, i64 2
%441 = load double, double* %440
%442 = load double*, double** %48
%443 = getelementptr inbounds double, double* %442, i64 14
%444 = load double, double* %443
%445 = fmul double %441, %444
%446 = load double*, double** %45
%447 = getelementptr inbounds double, double* %446, i32 1
store double* %447, double** %45
%448 = load double, double* %446
%449 = load double, double* %41
%450 = call double @llvm.fmuladd.f64(double %445, double %448, double %449)
store double %450, double* %41
%451 = load double*, double** %47
%452 = getelementptr inbounds double, double* %451, i64 3
%453 = load double, double* %452
%454 = load double*, double** %48
%455 = getelementptr inbounds double, double* %454, i64 15
%456 = load double, double* %455
%457 = fmul double %453, %456
%458 = load double*, double** %45
%459 = getelementptr inbounds double, double* %458, i32 1
store double* %459, double** %45
%460 = load double, double* %458
%461 = load double, double* %41
%462 = call double @llvm.fmuladd.f64(double %457, double %460, double %461)
store double %462, double* %41
%463 = load i32*, i32** %24
%464 = load i32, i32* %43
%465 = sext i32 %464 to i64
%466 = getelementptr inbounds i32, i32* %463, i64 %465
%467 = load i32, i32* %466
%468 = icmp slt i32 %467, 4
br i1 %468, label %469, label %498
469: ; preds = %259
%470 = load double*, double** %49
%471 = load i32, i32* %44
%472 = sext i32 %471 to i64
%473 = getelementptr inbounds double, double* %470, i64 %472
%474 = load double, double* %473
%475 = load double, double* %41
%476 = load double*, double** %50
%477 = load i32, i32* %44
%478 = mul nsw i32 %477, 4
%479 = load i32*, i32** %24
%480 = load i32, i32* %43
%481 = sext i32 %480 to i64
%482 = getelementptr inbounds i32, i32* %479, i64 %481
%483 = load i32, i32* %482
%484 = add nsw i32 %478, %483
%485 = sext i32 %484 to i64
%486 = getelementptr inbounds double, double* %476, i64 %485
%487 = load double, double* %486
%488 = call double @llvm.fmuladd.f64(double %474, double %475, double %487)
%489 = load i32*, i32** %21
%490 = load i32, i32* %43
%491 = sext i32 %490 to i64
%492 = getelementptr inbounds i32, i32* %489, i64 %491
%493 = load i32, i32* %492
%494 = sitofp i32 %493 to double
%495 = call double @pow(double 0x2FF0000000000000, double %494)
%496 = fmul double %488, %495
%497 = call double @log(double %496)
store double %497, double* %41
br label %515
498: ; preds = %259
%499 = load double*, double** %49
%500 = load i32, i32* %44
%501 = sext i32 %500 to i64
%502 = getelementptr inbounds double, double* %499, i64 %501
%503 = load double, double* %502
%504 = load double, double* %41
%505 = fmul double %503, %504
%506 = call double @log(double %505)
%507 = load i32*, i32** %21
%508 = load i32, i32* %43
%509 = sext i32 %508 to i64
%510 = getelementptr inbounds i32, i32* %507, i64 %509
%511 = load i32, i32* %510
%512 = sitofp i32 %511 to double
%513 = call double @log(double 0x2FF0000000000000)
%514 = call double @llvm.fmuladd.f64(double %512, double %513, double %506)
store double %514, double* %41
br label %515
515: ; preds = %498, %469
%516 = load i32*, i32** %23
%517 = load i32, i32* %43
%518 = sext i32 %517 to i64
%519 = getelementptr inbounds i32, i32* %516, i64 %518
%520 = load i32, i32* %519
%521 = sitofp i32 %520 to double
%522 = load double, double* %41
%523 = load double, double* %38
%524 = call double @llvm.fmuladd.f64(double %521, double %522, double %523)
store double %524, double* %38
br label %525
525: ; preds = %515
%526 = load i32, i32* %43
%527 = add nsw i32 %526, 1
store i32 %527, i32* %43
br label %255
528: ; preds = %255
%529 = load double*, double** %46
%530 = bitcast double* %529 to i8*
%531 = load double*, double** %49
%532 = bitcast double* %531 to i8*
%533 = load double*, double** %50
%534 = bitcast double* %533 to i8*
%535 = load double, double* %38
store double %535, double* %19
br label %823
536: ; preds = %250
%537 = load i32, i32* %34
store i32 %537, i32* %43
br label %538
538: ; preds = %812, %536
%539 = load i32, i32* %43
%540 = load i32, i32* %35
%541 = icmp slt i32 %539, %540
br i1 %541, label %542, label %815
542: ; preds = %538
%543 = load i32*, i32** %22
%544 = load i32, i32* %43
%545 = sext i32 %544 to i64
%546 = getelementptr inbounds i32, i32* %543, i64 %545
%547 = load i32, i32* %546
store i32 %547, i32* %44
%548 = load double*, double** %46
%549 = load i32, i32* %44
%550 = mul nsw i32 %549, 12
%551 = sext i32 %550 to i64
%552 = getelementptr inbounds double, double* %548, i64 %551
store double* %552, double** %45
%553 = load double*, double** %25
%554 = load i32, i32* %43
%555 = mul nsw i32 16, %554
%556 = sext i32 %555 to i64
%557 = getelementptr inbounds double, double* %553, i64 %556
store double* %557, double** %47
%558 = load double*, double** %26
%559 = load i32, i32* %43
%560 = mul nsw i32 16, %559
%561 = sext i32 %560 to i64
%562 = getelementptr inbounds double, double* %558, i64 %561
store double* %562, double** %48
%563 = load double*, double** %47
%564 = getelementptr inbounds double, double* %563, i64 0
%565 = load double, double* %564
%566 = load double*, double** %48
%567 = getelementptr inbounds double, double* %566, i64 0
%568 = load double, double* %567
%569 = fmul double %565, %568
store double %569, double* %41
%570 = load double*, double** %47
%571 = getelementptr inbounds double, double* %570, i64 1
%572 = load double, double* %571
%573 = load double*, double** %48
%574 = getelementptr inbounds double, double* %573, i64 1
%575 = load double, double* %574
%576 = fmul double %572, %575
%577 = load double*, double** %45
%578 = getelementptr inbounds double, double* %577, i32 1
store double* %578, double** %45
%579 = load double, double* %577
%580 = load double, double* %41
%581 = call double @llvm.fmuladd.f64(double %576, double %579, double %580)
store double %581, double* %41
%582 = load double*, double** %47
%583 = getelementptr inbounds double, double* %582, i64 2
%584 = load double, double* %583
%585 = load double*, double** %48
%586 = getelementptr inbounds double, double* %585, i64 2
%587 = load double, double* %586
%588 = fmul double %584, %587
%589 = load double*, double** %45
%590 = getelementptr inbounds double, double* %589, i32 1
store double* %590, double** %45
%591 = load double, double* %589
%592 = load double, double* %41
%593 = call double @llvm.fmuladd.f64(double %588, double %591, double %592)
store double %593, double* %41
%594 = load double*, double** %47
%595 = getelementptr inbounds double, double* %594, i64 3
%596 = load double, double* %595
%597 = load double*, double** %48
%598 = getelementptr inbounds double, double* %597, i64 3
%599 = load double, double* %598
%600 = fmul double %596, %599
%601 = load double*, double** %45
%602 = getelementptr inbounds double, double* %601, i32 1
store double* %602, double** %45
%603 = load double, double* %601
%604 = load double, double* %41
%605 = call double @llvm.fmuladd.f64(double %600, double %603, double %604)
store double %605, double* %41
%606 = load double*, double** %47
%607 = getelementptr inbounds double, double* %606, i64 4
%608 = load double, double* %607
%609 = load double*, double** %48
%610 = getelementptr inbounds double, double* %609, i64 4
%611 = load double, double* %610
%612 = load double, double* %41
%613 = call double @llvm.fmuladd.f64(double %608, double %611, double %612)
store double %613, double* %41
%614 = load double*, double** %47
%615 = getelementptr inbounds double, double* %614, i64 5
%616 = load double, double* %615
%617 = load double*, double** %48
%618 = getelementptr inbounds double, double* %617, i64 5
%619 = load double, double* %618
%620 = fmul double %616, %619
%621 = load double*, double** %45
%622 = getelementptr inbounds double, double* %621, i32 1
store double* %622, double** %45
%623 = load double, double* %621
%624 = load double, double* %41
%625 = call double @llvm.fmuladd.f64(double %620, double %623, double %624)
store double %625, double* %41
%626 = load double*, double** %47
%627 = getelementptr inbounds double, double* %626, i64 6
%628 = load double, double* %627
%629 = load double*, double** %48
%630 = getelementptr inbounds double, double* %629, i64 6
%631 = load double, double* %630
%632 = fmul double %628, %631
%633 = load double*, double** %45
%634 = getelementptr inbounds double, double* %633, i32 1
store double* %634, double** %45
%635 = load double, double* %633
%636 = load double, double* %41
%637 = call double @llvm.fmuladd.f64(double %632, double %635, double %636)
store double %637, double* %41
%638 = load double*, double** %47
%639 = getelementptr inbounds double, double* %638, i64 7
%640 = load double, double* %639
%641 = load double*, double** %48
%642 = getelementptr inbounds double, double* %641, i64 7
%643 = load double, double* %642
%644 = fmul double %640, %643
%645 = load double*, double** %45
%646 = getelementptr inbounds double, double* %645, i32 1
store double* %646, double** %45
%647 = load double, double* %645
%648 = load double, double* %41
%649 = call double @llvm.fmuladd.f64(double %644, double %647, double %648)
store double %649, double* %41
%650 = load double*, double** %47
%651 = getelementptr inbounds double, double* %650, i64 8
%652 = load double, double* %651
%653 = load double*, double** %48
%654 = getelementptr inbounds double, double* %653, i64 8
%655 = load double, double* %654
%656 = load double, double* %41
%657 = call double @llvm.fmuladd.f64(double %652, double %655, double %656)
store double %657, double* %41
%658 = load double*, double** %47
%659 = getelementptr inbounds double, double* %658, i64 9
%660 = load double, double* %659
%661 = load double*, double** %48
%662 = getelementptr inbounds double, double* %661, i64 9
%663 = load double, double* %662
%664 = fmul double %660, %663
%665 = load double*, double** %45
%666 = getelementptr inbounds double, double* %665, i32 1
store double* %666, double** %45
%667 = load double, double* %665
%668 = load double, double* %41
%669 = call double @llvm.fmuladd.f64(double %664, double %667, double %668)
store double %669, double* %41
%670 = load double*, double** %47
%671 = getelementptr inbounds double, double* %670, i64 10
%672 = load double, double* %671
%673 = load double*, double** %48
%674 = getelementptr inbounds double, double* %673, i64 10
%675 = load double, double* %674
%676 = fmul double %672, %675
%677 = load double*, double** %45
%678 = getelementptr inbounds double, double* %677, i32 1
store double* %678, double** %45
%679 = load double, double* %677
%680 = load double, double* %41
%681 = call double @llvm.fmuladd.f64(double %676, double %679, double %680)
store double %681, double* %41
%682 = load double*, double** %47
%683 = getelementptr inbounds double, double* %682, i64 11
%684 = load double, double* %683
%685 = load double*, double** %48
%686 = getelementptr inbounds double, double* %685, i64 11
%687 = load double, double* %686
%688 = fmul double %684, %687
%689 = load double*, double** %45
%690 = getelementptr inbounds double, double* %689, i32 1
store double* %690, double** %45
%691 = load double, double* %689
%692 = load double, double* %41
%693 = call double @llvm.fmuladd.f64(double %688, double %691, double %692)
store double %693, double* %41
%694 = load double*, double** %47
%695 = getelementptr inbounds double, double* %694, i64 12
%696 = load double, double* %695
%697 = load double*, double** %48
%698 = getelementptr inbounds double, double* %697, i64 12
%699 = load double, double* %698
%700 = load double, double* %41
%701 = call double @llvm.fmuladd.f64(double %696, double %699, double %700)
store double %701, double* %41
%702 = load double*, double** %47
%703 = getelementptr inbounds double, double* %702, i64 13
%704 = load double, double* %703
%705 = load double*, double** %48
%706 = getelementptr inbounds double, double* %705, i64 13
%707 = load double, double* %706
%708 = fmul double %704, %707
%709 = load double*, double** %45
%710 = getelementptr inbounds double, double* %709, i32 1
store double* %710, double** %45
%711 = load double, double* %709
%712 = load double, double* %41
%713 = call double @llvm.fmuladd.f64(double %708, double %711, double %712)
store double %713, double* %41
%714 = load double*, double** %47
%715 = getelementptr inbounds double, double* %714, i64 14
%716 = load double, double* %715
%717 = load double*, double** %48
%718 = getelementptr inbounds double, double* %717, i64 14
%719 = load double, double* %718
%720 = fmul double %716, %719
%721 = load double*, double** %45
%722 = getelementptr inbounds double, double* %721, i32 1
store double* %722, double** %45
%723 = load double, double* %721
%724 = load double, double* %41
%725 = call double @llvm.fmuladd.f64(double %720, double %723, double %724)
store double %725, double* %41
%726 = load double*, double** %47
%727 = getelementptr inbounds double, double* %726, i64 15
%728 = load double, double* %727
%729 = load double*, double** %48
%730 = getelementptr inbounds double, double* %729, i64 15
%731 = load double, double* %730
%732 = fmul double %728, %731
%733 = load double*, double** %45
%734 = getelementptr inbounds double, double* %733, i32 1
store double* %734, double** %45
%735 = load double, double* %733
%736 = load double, double* %41
%737 = call double @llvm.fmuladd.f64(double %732, double %735, double %736)
store double %737, double* %41
%738 = load i32*, i32** %24
%739 = load i32, i32* %43
%740 = sext i32 %739 to i64
%741 = getelementptr inbounds i32, i32* %738, i64 %740
%742 = load i32, i32* %741
%743 = icmp slt i32 %742, 4
br i1 %743, label %744, label %779
744: ; preds = %542
%745 = load double*, double** %49
%746 = load i32, i32* %44
%747 = sext i32 %746 to i64
%748 = getelementptr inbounds double, double* %745, i64 %747
%749 = load double, double* %748
%750 = load double, double* %41
%751 = load double*, double** %50
%752 = load i32, i32* %44
%753 = mul nsw i32 %752, 4
%754 = load i32*, i32** %24
%755 = load i32, i32* %43
%756 = sext i32 %755 to i64
%757 = getelementptr inbounds i32, i32* %754, i64 %756
%758 = load i32, i32* %757
%759 = add nsw i32 %753, %758
%760 = sext i32 %759 to i64
%761 = getelementptr inbounds double, double* %751, i64 %760
%762 = load double, double* %761
%763 = call double @llvm.fmuladd.f64(double %749, double %750, double %762)
%764 = load i32*, i32** %21
%765 = load i32, i32* %43
%766 = sext i32 %765 to i64
%767 = getelementptr inbounds i32, i32* %764, i64 %766
%768 = load i32, i32* %767
%769 = load i32*, i32** %20
%770 = load i32, i32* %43
%771 = sext i32 %770 to i64
%772 = getelementptr inbounds i32, i32* %769, i64 %771
%773 = load i32, i32* %772
%774 = add nsw i32 %768, %773
%775 = sitofp i32 %774 to double
%776 = call double @pow(double 0x2FF0000000000000, double %775)
%777 = fmul double %763, %776
%778 = call double @log(double %777)
store double %778, double* %41
br label %802
779: ; preds = %542
%780 = load double*, double** %49
%781 = load i32, i32* %44
%782 = sext i32 %781 to i64
%783 = getelementptr inbounds double, double* %780, i64 %782
%784 = load double, double* %783
%785 = load double, double* %41
%786 = fmul double %784, %785
%787 = call double @log(double %786)
%788 = load i32*, i32** %20
%789 = load i32, i32* %43
%790 = sext i32 %789 to i64
%791 = getelementptr inbounds i32, i32* %788, i64 %790
%792 = load i32, i32* %791
%793 = load i32*, i32** %21
%794 = load i32, i32* %43
%795 = sext i32 %794 to i64
%796 = getelementptr inbounds i32, i32* %793, i64 %795
%797 = load i32, i32* %796
%798 = add nsw i32 %792, %797
%799 = sitofp i32 %798 to double
%800 = call double @log(double 0x2FF0000000000000)
%801 = call double @llvm.fmuladd.f64(double %799, double %800, double %787)
store double %801, double* %41
br label %802
802: ; preds = %779, %744
%803 = load i32*, i32** %23
%804 = load i32, i32* %43
%805 = sext i32 %804 to i64
%806 = getelementptr inbounds i32, i32* %803, i64 %805
%807 = load i32, i32* %806
%808 = sitofp i32 %807 to double
%809 = load double, double* %41
%810 = load double, double* %38
%811 = call double @llvm.fmuladd.f64(double %808, double %809, double %810)
store double %811, double* %38
br label %812
812: ; preds = %802
%813 = load i32, i32* %43
%814 = add nsw i32 %813, 1
store i32 %814, i32* %43
br label %538
815: ; preds = %538
%816 = load double*, double** %46
%817 = bitcast double* %816 to i8*
%818 = load double*, double** %49
%819 = bitcast double* %818 to i8*
%820 = load double*, double** %50
%821 = bitcast double* %820 to i8*
%822 = load double, double* %38
store double %822, double* %19
br label %823
823: ; preds = %815, %528
%824 = load double, double* %19
ret double %824
}

LLVM IR (-O2):
define double @evaluateGTRGAMMAMULTINVAR(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* nocapture %8, double* nocapture %9, double* nocapture %10, double* nocapture %11, double* nocapture %12, i8* %13, i32 %14, i32 %15, i32 %16, i32 %17) {
%19 = icmp eq i32 %17, 0
br i1 %19, label %20, label %25
20: ; preds = %18
%21 = load double, double* %12
%22 = fcmp olt double %21, 1.000000e-15
%23 = select i1 %22, double 1.000000e-15, double %21
%24 = tail call double @log(double %23)
br label %25
25: ; preds = %20, %18
%26 = phi double [ 0.000000e+00, %18 ], [ %24, %20 ]
%27 = sext i32 %16 to i64
%28 = mul nsw i64 %27, 96
%29 = tail call i8* @malloc(i64 %28)
%30 = bitcast i8* %29 to double*
%31 = shl nsw i32 %16, 2
%32 = sext i32 %31 to i64
%33 = shl nsw i64 %32, 3
%34 = tail call i8* @malloc(i64 %33)
%35 = bitcast i8* %34 to double*
%36 = shl nsw i64 %27, 3
%37 = tail call i8* @malloc(i64 %36)
%38 = bitcast i8* %37 to double*
%39 = icmp sgt i32 %16, 0
br i1 %39, label %40, label %161
40: ; preds = %25
%41 = zext i32 %16 to i64
br label %42
42: ; preds = %40, %51
%43 = phi i64 [ 0, %40 ], [ %159, %51 ]
%44 = phi double [ %26, %40 ], [ %52, %51 ]
br i1 %19, label %51, label %45
45: ; preds = %42
%46 = getelementptr inbounds double, double* %12, i64 %43
%47 = load double, double* %46
%48 = fcmp olt double %47, 1.000000e-15
%49 = select i1 %48, double 1.000000e-15, double %47
%50 = tail call double @log(double %49)
br label %51
51: ; preds = %45, %42
%52 = phi double [ %50, %45 ], [ %44, %42 ]
%53 = getelementptr inbounds double, double* %11, i64 %43
%54 = load double, double* %53
%55 = fsub double 1.000000e+00, %54
%56 = fmul double %55, 2.500000e-01
%57 = getelementptr inbounds double, double* %38, i64 %43
store double %56, double* %57
%58 = trunc i64 %43 to i32
%59 = shl nsw i32 %58, 2
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds double, double* %10, i64 %60
%62 = getelementptr inbounds double, double* %35, i64 %60
%63 = bitcast double* %61 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = insertelement <2 x double> poison, double %54, i64 0
%66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
%67 = fmul <2 x double> %66, %64
%68 = bitcast double* %62 to <2 x double>*
store <2 x double> %67, <2 x double>* %68
%69 = or i32 %59, 2
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds double, double* %10, i64 %70
%72 = getelementptr inbounds double, double* %35, i64 %70
%73 = bitcast double* %71 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = fmul <2 x double> %66, %74
%76 = bitcast double* %72 to <2 x double>*
store <2 x double> %75, <2 x double>* %76
%77 = mul i64 %43, 12
%78 = and i64 %77, 4294967292
%79 = getelementptr inbounds double, double* %30, i64 %78
%80 = mul nsw i32 %58, 3
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds double, double* %7, i64 %81
%83 = add nuw nsw i32 %80, 1
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds double, double* %7, i64 %84
%86 = add nuw nsw i32 %80, 2
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds double, double* %7, i64 %87
%89 = getelementptr inbounds double, double* %8, i64 %60
%90 = load double, double* %89
%91 = load double, double* %82
%92 = fmul double %90, %91
%93 = fmul double %52, %92
%94 = tail call double @exp(double %93)
%95 = getelementptr inbounds double, double* %79, i64 1
store double %94, double* %79
%96 = load double, double* %85
%97 = fmul double %90, %96
%98 = fmul double %52, %97
%99 = tail call double @exp(double %98)
%100 = getelementptr inbounds double, double* %79, i64 2
store double %99, double* %95
%101 = load double, double* %88
%102 = fmul double %90, %101
%103 = fmul double %52, %102
%104 = tail call double @exp(double %103)
%105 = getelementptr inbounds double, double* %79, i64 3
store double %104, double* %100
%106 = or i64 %60, 1
%107 = getelementptr inbounds double, double* %8, i64 %106
%108 = load double, double* %107
%109 = load double, double* %82
%110 = fmul double %108, %109
%111 = fmul double %52, %110
%112 = tail call double @exp(double %111)
%113 = getelementptr inbounds double, double* %105, i64 1
store double %112, double* %105
%114 = load double, double* %85
%115 = fmul double %108, %114
%116 = fmul double %52, %115
%117 = tail call double @exp(double %116)
%118 = getelementptr inbounds double, double* %105, i64 2
store double %117, double* %113
%119 = load double, double* %88
%120 = fmul double %108, %119
%121 = fmul double %52, %120
%122 = tail call double @exp(double %121)
%123 = getelementptr inbounds double, double* %105, i64 3
store double %122, double* %118
%124 = or i64 %60, 2
%125 = getelementptr inbounds double, double* %8, i64 %124
%126 = load double, double* %125
%127 = load double, double* %82
%128 = fmul double %126, %127
%129 = fmul double %52, %128
%130 = tail call double @exp(double %129)
%131 = getelementptr inbounds double, double* %123, i64 1
store double %130, double* %123
%132 = load double, double* %85
%133 = fmul double %126, %132
%134 = fmul double %52, %133
%135 = tail call double @exp(double %134)
%136 = getelementptr inbounds double, double* %123, i64 2
store double %135, double* %131
%137 = load double, double* %88
%138 = fmul double %126, %137
%139 = fmul double %52, %138
%140 = tail call double @exp(double %139)
%141 = getelementptr inbounds double, double* %123, i64 3
store double %140, double* %136
%142 = or i64 %60, 3
%143 = getelementptr inbounds double, double* %8, i64 %142
%144 = load double, double* %143
%145 = load double, double* %82
%146 = fmul double %144, %145
%147 = fmul double %52, %146
%148 = tail call double @exp(double %147)
%149 = getelementptr inbounds double, double* %141, i64 1
store double %148, double* %141
%150 = load double, double* %85
%151 = fmul double %144, %150
%152 = fmul double %52, %151
%153 = tail call double @exp(double %152)
%154 = getelementptr inbounds double, double* %141, i64 2
store double %153, double* %149
%155 = load double, double* %88
%156 = fmul double %144, %155
%157 = fmul double %52, %156
%158 = tail call double @exp(double %157)
store double %158, double* %154
%159 = add nuw nsw i64 %43, 1
%160 = icmp eq i64 %159, %41
br i1 %160, label %161, label %42
161: ; preds = %51, %25
%162 = icmp eq i8* %13, null
%163 = icmp slt i32 %14, %15
br i1 %162, label %168, label %164
164: ; preds = %161
br i1 %163, label %165, label %481
165: ; preds = %164
%166 = sext i32 %14 to i64
%167 = sext i32 %15 to i64
br label %172
168: ; preds = %161
br i1 %163, label %169, label %481
169: ; preds = %168
%170 = sext i32 %14 to i64
%171 = sext i32 %15 to i64
br label %315
172: ; preds = %165, %307
%173 = phi i64 [ %166, %165 ], [ %313, %307 ]
%174 = phi double [ 0.000000e+00, %165 ], [ %312, %307 ]
%175 = trunc i64 %173 to i32
%176 = getelementptr inbounds i32, i32* %2, i64 %173
%177 = load i32, i32* %176
%178 = shl nsw i32 %177, 6
%179 = getelementptr inbounds i8, i8* %13, i64 %173
%180 = load i8, i8* %179
%181 = sext i8 %180 to i32
%182 = shl nsw i32 %181, 2
%183 = add nsw i32 %182, %178
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, double* %9, i64 %184
%186 = shl nsw i32 %175, 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, double* %6, i64 %187
%189 = mul nsw i32 %177, 12
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, double* %30, i64 %190
%192 = load double, double* %185
%193 = load double, double* %188
%194 = fmul double %192, %193
%195 = getelementptr inbounds double, double* %185, i64 1
%196 = load double, double* %195
%197 = getelementptr inbounds double, double* %188, i64 1
%198 = load double, double* %197
%199 = fmul double %196, %198
%200 = getelementptr inbounds double, double* %191, i64 1
%201 = load double, double* %191
%202 = tail call double @llvm.fmuladd.f64(double %199, double %201, double %194)
%203 = getelementptr inbounds double, double* %185, i64 2
%204 = load double, double* %203
%205 = getelementptr inbounds double, double* %188, i64 2
%206 = load double, double* %205
%207 = fmul double %204, %206
%208 = getelementptr inbounds double, double* %200, i64 1
%209 = load double, double* %200
%210 = tail call double @llvm.fmuladd.f64(double %207, double %209, double %202)
%211 = getelementptr inbounds double, double* %185, i64 3
%212 = load double, double* %211
%213 = getelementptr inbounds double, double* %188, i64 3
%214 = load double, double* %213
%215 = fmul double %212, %214
%216 = getelementptr inbounds double, double* %208, i64 1
%217 = load double, double* %208
%218 = tail call double @llvm.fmuladd.f64(double %215, double %217, double %210)
%219 = getelementptr inbounds double, double* %188, i64 4
%220 = load double, double* %219
%221 = tail call double @llvm.fmuladd.f64(double %192, double %220, double %218)
%222 = getelementptr inbounds double, double* %188, i64 5
%223 = load double, double* %222
%224 = fmul double %196, %223
%225 = getelementptr inbounds double, double* %216, i64 1
%226 = load double, double* %216
%227 = tail call double @llvm.fmuladd.f64(double %224, double %226, double %221)
%228 = getelementptr inbounds double, double* %188, i64 6
%229 = load double, double* %228
%230 = fmul double %204, %229
%231 = getelementptr inbounds double, double* %225, i64 1
%232 = load double, double* %225
%233 = tail call double @llvm.fmuladd.f64(double %230, double %232, double %227)
%234 = getelementptr inbounds double, double* %188, i64 7
%235 = load double, double* %234
%236 = fmul double %212, %235
%237 = getelementptr inbounds double, double* %231, i64 1
%238 = load double, double* %231
%239 = tail call double @llvm.fmuladd.f64(double %236, double %238, double %233)
%240 = getelementptr inbounds double, double* %188, i64 8
%241 = load double, double* %240
%242 = tail call double @llvm.fmuladd.f64(double %192, double %241, double %239)
%243 = getelementptr inbounds double, double* %188, i64 9
%244 = load double, double* %243
%245 = fmul double %196, %244
%246 = getelementptr inbounds double, double* %237, i64 1
%247 = load double, double* %237
%248 = tail call double @llvm.fmuladd.f64(double %245, double %247, double %242)
%249 = getelementptr inbounds double, double* %188, i64 10
%250 = load double, double* %249
%251 = fmul double %204, %250
%252 = getelementptr inbounds double, double* %246, i64 1
%253 = load double, double* %246
%254 = tail call double @llvm.fmuladd.f64(double %251, double %253, double %248)
%255 = getelementptr inbounds double, double* %188, i64 11
%256 = load double, double* %255
%257 = fmul double %212, %256
%258 = getelementptr inbounds double, double* %252, i64 1
%259 = load double, double* %252
%260 = tail call double @llvm.fmuladd.f64(double %257, double %259, double %254)
%261 = getelementptr inbounds double, double* %188, i64 12
%262 = load double, double* %261
%263 = tail call double @llvm.fmuladd.f64(double %192, double %262, double %260)
%264 = getelementptr inbounds double, double* %188, i64 13
%265 = load double, double* %264
%266 = fmul double %196, %265
%267 = getelementptr inbounds double, double* %258, i64 1
%268 = load double, double* %258
%269 = tail call double @llvm.fmuladd.f64(double %266, double %268, double %263)
%270 = getelementptr inbounds double, double* %188, i64 14
%271 = load double, double* %270
%272 = fmul double %204, %271
%273 = getelementptr inbounds double, double* %267, i64 1
%274 = load double, double* %267
%275 = tail call double @llvm.fmuladd.f64(double %272, double %274, double %269)
%276 = getelementptr inbounds double, double* %188, i64 15
%277 = load double, double* %276
%278 = fmul double %212, %277
%279 = load double, double* %273
%280 = tail call double @llvm.fmuladd.f64(double %278, double %279, double %275)
%281 = getelementptr inbounds i32, i32* %4, i64 %173
%282 = load i32, i32* %281
%283 = icmp slt i32 %282, 4
%284 = sext i32 %177 to i64
%285 = getelementptr inbounds double, double* %38, i64 %284
%286 = load double, double* %285
br i1 %283, label %287, label %300
287: ; preds = %172
%288 = shl nsw i32 %177, 2
%289 = add nsw i32 %282, %288
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds double, double* %35, i64 %290
%292 = load double, double* %291
%293 = tail call double @llvm.fmuladd.f64(double %286, double %280, double %292)
%294 = getelementptr inbounds i32, i32* %1, i64 %173
%295 = load i32, i32* %294
%296 = sitofp i32 %295 to double
%297 = tail call double @pow(double 0x2FF0000000000000, double %296)
%298 = fmul double %293, %297
%299 = tail call double @log(double %298)
br label %307
300: ; preds = %172
%301 = fmul double %280, %286
%302 = tail call double @log(double %301)
%303 = getelementptr inbounds i32, i32* %1, i64 %173
%304 = load i32, i32* %303
%305 = sitofp i32 %304 to double
%306 = tail call double @llvm.fmuladd.f64(double %305, double 0xC0662E42FEFA39EF, double %302)
br label %307
307: ; preds = %300, %287
%308 = phi double [ %299, %287 ], [ %306, %300 ]
%309 = getelementptr inbounds i32, i32* %3, i64 %173
%310 = load i32, i32* %309
%311 = sitofp i32 %310 to double
%312 = tail call double @llvm.fmuladd.f64(double %311, double %308, double %174)
%313 = add nsw i64 %173, 1
%314 = icmp eq i64 %313, %167
br i1 %314, label %481, label %172
315: ; preds = %169, %473
%316 = phi i64 [ %170, %169 ], [ %479, %473 ]
%317 = phi double [ 0.000000e+00, %169 ], [ %478, %473 ]
%318 = trunc i64 %316 to i32
%319 = getelementptr inbounds i32, i32* %2, i64 %316
%320 = load i32, i32* %319
%321 = mul nsw i32 %320, 12
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds double, double* %30, i64 %322
%324 = shl nsw i32 %318, 4
%325 = sext i32 %324 to i64
%326 = getelementptr inbounds double, double* %5, i64 %325
%327 = getelementptr inbounds double, double* %6, i64 %325
%328 = load double, double* %326
%329 = load double, double* %327
%330 = fmul double %328, %329
%331 = getelementptr inbounds double, double* %326, i64 1
%332 = load double, double* %331
%333 = getelementptr inbounds double, double* %327, i64 1
%334 = load double, double* %333
%335 = fmul double %332, %334
%336 = getelementptr inbounds double, double* %323, i64 1
%337 = load double, double* %323
%338 = tail call double @llvm.fmuladd.f64(double %335, double %337, double %330)
%339 = getelementptr inbounds double, double* %326, i64 2
%340 = load double, double* %339
%341 = getelementptr inbounds double, double* %327, i64 2
%342 = load double, double* %341
%343 = fmul double %340, %342
%344 = getelementptr inbounds double, double* %336, i64 1
%345 = load double, double* %336
%346 = tail call double @llvm.fmuladd.f64(double %343, double %345, double %338)
%347 = getelementptr inbounds double, double* %326, i64 3
%348 = load double, double* %347
%349 = getelementptr inbounds double, double* %327, i64 3
%350 = load double, double* %349
%351 = fmul double %348, %350
%352 = getelementptr inbounds double, double* %344, i64 1
%353 = load double, double* %344
%354 = tail call double @llvm.fmuladd.f64(double %351, double %353, double %346)
%355 = getelementptr inbounds double, double* %326, i64 4
%356 = load double, double* %355
%357 = getelementptr inbounds double, double* %327, i64 4
%358 = load double, double* %357
%359 = tail call double @llvm.fmuladd.f64(double %356, double %358, double %354)
%360 = getelementptr inbounds double, double* %326, i64 5
%361 = load double, double* %360
%362 = getelementptr inbounds double, double* %327, i64 5
%363 = load double, double* %362
%364 = fmul double %361, %363
%365 = getelementptr inbounds double, double* %352, i64 1
%366 = load double, double* %352
%367 = tail call double @llvm.fmuladd.f64(double %364, double %366, double %359)
%368 = getelementptr inbounds double, double* %326, i64 6
%369 = load double, double* %368
%370 = getelementptr inbounds double, double* %327, i64 6
%371 = load double, double* %370
%372 = fmul double %369, %371
%373 = getelementptr inbounds double, double* %365, i64 1
%374 = load double, double* %365
%375 = tail call double @llvm.fmuladd.f64(double %372, double %374, double %367)
%376 = getelementptr inbounds double, double* %326, i64 7
%377 = load double, double* %376
%378 = getelementptr inbounds double, double* %327, i64 7
%379 = load double, double* %378
%380 = fmul double %377, %379
%381 = getelementptr inbounds double, double* %373, i64 1
%382 = load double, double* %373
%383 = tail call double @llvm.fmuladd.f64(double %380, double %382, double %375)
%384 = getelementptr inbounds double, double* %326, i64 8
%385 = load double, double* %384
%386 = getelementptr inbounds double, double* %327, i64 8
%387 = load double, double* %386
%388 = tail call double @llvm.fmuladd.f64(double %385, double %387, double %383)
%389 = getelementptr inbounds double, double* %326, i64 9
%390 = load double, double* %389
%391 = getelementptr inbounds double, double* %327, i64 9
%392 = load double, double* %391
%393 = fmul double %390, %392
%394 = getelementptr inbounds double, double* %381, i64 1
%395 = load double, double* %381
%396 = tail call double @llvm.fmuladd.f64(double %393, double %395, double %388)
%397 = getelementptr inbounds double, double* %326, i64 10
%398 = load double, double* %397
%399 = getelementptr inbounds double, double* %327, i64 10
%400 = load double, double* %399
%401 = fmul double %398, %400
%402 = getelementptr inbounds double, double* %394, i64 1
%403 = load double, double* %394
%404 = tail call double @llvm.fmuladd.f64(double %401, double %403, double %396)
%405 = getelementptr inbounds double, double* %326, i64 11
%406 = load double, double* %405
%407 = getelementptr inbounds double, double* %327, i64 11
%408 = load double, double* %407
%409 = fmul double %406, %408
%410 = getelementptr inbounds double, double* %402, i64 1
%411 = load double, double* %402
%412 = tail call double @llvm.fmuladd.f64(double %409, double %411, double %404)
%413 = getelementptr inbounds double, double* %326, i64 12
%414 = load double, double* %413
%415 = getelementptr inbounds double, double* %327, i64 12
%416 = load double, double* %415
%417 = tail call double @llvm.fmuladd.f64(double %414, double %416, double %412)
%418 = getelementptr inbounds double, double* %326, i64 13
%419 = load double, double* %418
%420 = getelementptr inbounds double, double* %327, i64 13
%421 = load double, double* %420
%422 = fmul double %419, %421
%423 = getelementptr inbounds double, double* %410, i64 1
%424 = load double, double* %410
%425 = tail call double @llvm.fmuladd.f64(double %422, double %424, double %417)
%426 = getelementptr inbounds double, double* %326, i64 14
%427 = load double, double* %426
%428 = getelementptr inbounds double, double* %327, i64 14
%429 = load double, double* %428
%430 = fmul double %427, %429
%431 = getelementptr inbounds double, double* %423, i64 1
%432 = load double, double* %423
%433 = tail call double @llvm.fmuladd.f64(double %430, double %432, double %425)
%434 = getelementptr inbounds double, double* %326, i64 15
%435 = load double, double* %434
%436 = getelementptr inbounds double, double* %327, i64 15
%437 = load double, double* %436
%438 = fmul double %435, %437
%439 = load double, double* %431
%440 = tail call double @llvm.fmuladd.f64(double %438, double %439, double %433)
%441 = getelementptr inbounds i32, i32* %4, i64 %316
%442 = load i32, i32* %441
%443 = icmp slt i32 %442, 4
%444 = sext i32 %320 to i64
%445 = getelementptr inbounds double, double* %38, i64 %444
%446 = load double, double* %445
br i1 %443, label %447, label %463
447: ; preds = %315
%448 = shl nsw i32 %320, 2
%449 = add nsw i32 %442, %448
%450 = sext i32 %449 to i64
%451 = getelementptr inbounds double, double* %35, i64 %450
%452 = load double, double* %451
%453 = tail call double @llvm.fmuladd.f64(double %446, double %440, double %452)
%454 = getelementptr inbounds i32, i32* %1, i64 %316
%455 = load i32, i32* %454
%456 = getelementptr inbounds i32, i32* %0, i64 %316
%457 = load i32, i32* %456
%458 = add nsw i32 %457, %455
%459 = sitofp i32 %458 to double
%460 = tail call double @pow(double 0x2FF0000000000000, double %459)
%461 = fmul double %453, %460
%462 = tail call double @log(double %461)
br label %473
463: ; preds = %315
%464 = fmul double %440, %446
%465 = tail call double @log(double %464)
%466 = getelementptr inbounds i32, i32* %0, i64 %316
%467 = load i32, i32* %466
%468 = getelementptr inbounds i32, i32* %1, i64 %316
%469 = load i32, i32* %468
%470 = add nsw i32 %469, %467
%471 = sitofp i32 %470 to double
%472 = tail call double @llvm.fmuladd.f64(double %471, double 0xC0662E42FEFA39EF, double %465)
br label %473
473: ; preds = %463, %447
%474 = phi double [ %462, %447 ], [ %472, %463 ]
%475 = getelementptr inbounds i32, i32* %3, i64 %316
%476 = load i32, i32* %475
%477 = sitofp i32 %476 to double
%478 = tail call double @llvm.fmuladd.f64(double %477, double %474, double %317)
%479 = add nsw i64 %316, 1
%480 = icmp eq i64 %479, %171
br i1 %480, label %481, label %315
481: ; preds = %307, %473, %168, %164
%482 = phi double [ 0.000000e+00, %164 ], [ 0.000000e+00, %168 ], [ %478, %473 ], [ %312, %307 ]
tail call void @free(i8* %29)
tail call void @free(i8* %37)
tail call void @free(i8* %34)
ret double %482
}