void evaluateGTRGAMMAMULTINVAR_VECTOR(int *ex2, int *modelptr, int *iptr,
                                      double *x2_start, double *v, double *EIGN,
                                      double *gammaRates, double *tipVector,
                                      double *tFreqs, double *invariants,
                                      double *pz, char *tipX1, int lower, int n,
                                      int numberOfModels, int multiBranch) {
  double z, lz = 0.0, term, ki;
  int i, model;
  double *diagptable, *diagptable_start;
  double *x1, *x2;
  double *scalers;
  double *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);
    }
  }
  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));
    v[i] = term;
  }
  free(diagptable_start);
  free(scalers);
  free(freqs);
}


x86 assembly (clang, -O0):
<evaluateGTRGAMMAMULTINVAR_VECTOR>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
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,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
cmpl   $0x0,0x58(%rbp)
jne    11e5 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x95>
mov    0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe42(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    11d6 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x86>
movsd  0xe2f(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x40(%rbp)
movslq 0x50(%rbp),%rax
imul   $0x60,%rax,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x68(%rbp)
mov    %rax,-0x60(%rbp)
mov    0x50(%rbp),%eax
shl    $0x2,%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x88(%rbp)
movslq 0x50(%rbp),%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    0x50(%rbp),%eax
jge    1490 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x340>
cmpl   $0x0,0x58(%rbp)
je     1282 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x132>
mov    0x30(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xda5(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    1273 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x123>
movsd  0xd92(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x40(%rbp)
mov    0x28(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  0xd86(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
movsd  0xd71(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x80(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x58(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x58(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x58(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x58(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x88(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%rax
imul   $0xc,-0x58(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    147d <evaluateGTRGAMMAMULTINVAR_VECTOR+0x32d>
mov    0x10(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
add    -0x54(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x30(%rbp),%rax
imul   $0x3,-0x58(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
call   1050 <exp@plt>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
imul   $0x3,-0x58(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
call   1050 <exp@plt>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
imul   $0x3,-0x58(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
call   1050 <exp@plt>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  %xmm0,(%rax)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    13af <evaluateGTRGAMMAMULTINVAR_VECTOR+0x25f>
jmp    1482 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x332>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    122b <evaluateGTRGAMMAMULTINVAR_VECTOR+0xdb>
mov    0x40(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    0x48(%rbp),%eax
jge    1926 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x7d6>
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x58(%rbp)
mov    0x18(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x6,%ecx
mov    0x38(%rbp),%rdx
movslq -0x54(%rbp),%rsi
movsbl (%rdx,%rsi,1),%edx
shl    $0x2,%edx
add    %edx,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x54(%rbp),%ecx
shl    $0x4,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x68(%rbp),%rax
imul   $0xc,-0x58(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x10(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x78(%rbp),%rax
movsd  0x20(%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x28(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x30(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x38(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x78(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x48(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x50(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x58(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x78(%rbp),%rax
movsd  0x60(%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x68(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x70(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x70(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x78(%rbp),%rax
mulsd  0x78(%rax),%xmm0
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x60(%rbp)
movsd  (%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x54(%rbp),%rcx
cmpl   $0x4,(%rax,%rcx,4)
jge    18a5 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x755>
mov    -0x80(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x88(%rbp),%rax
mov    -0x58(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x18(%rbp),%rdx
movslq -0x54(%rbp),%rsi
add    (%rdx,%rsi,4),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
movsd  0x786(%rip),%xmm0
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0x48(%rbp)
jmp    1906 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x7b6>
mov    -0x80(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1060 <log@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x8(%rbp),%rax
movslq -0x54(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0x727(%rip),%xmm0
call   1060 <log@plt>
movsd  -0xa0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1496 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x346>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x88(%rbp),%rdi
call   1030 <free@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluateGTRGAMMAMULTINVAR_VECTOR>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %r9,0xb8(%rsp)
mov    %r8,0x98(%rsp)
mov    %rcx,0xa0(%rsp)
mov    %rdx,0x90(%rsp)
mov    %rsi,0x80(%rsp)
mov    %rdi,0x88(%rsp)
mov    0x158(%rsp),%ecx
mov    0x150(%rsp),%r14d
mov    0x148(%rsp),%eax
mov    %eax,0x4c(%rsp)
mov    0x140(%rsp),%eax
mov    %eax,0x50(%rsp)
mov    0x138(%rsp),%rax
mov    %rax,0x60(%rsp)
mov    0x130(%rsp),%rax
mov    %rax,0x58(%rsp)
mov    0x128(%rsp),%rax
mov    %rax,0xc8(%rsp)
mov    0x120(%rsp),%rax
mov    %rax,0xc0(%rsp)
mov    0x118(%rsp),%rax
mov    %rax,0xa8(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x110(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    %ecx,0x54(%rsp)
test   %ecx,%ecx
jne    123b <evaluateGTRGAMMAMULTINVAR_VECTOR+0xeb>
movsd  0xdd9(%rip),%xmm0
mov    0x58(%rsp),%rax
maxsd  (%rax),%xmm0
call   1060 <log@plt>
movsd  %xmm0,0x8(%rsp)
movslq %r14d,%rbp
mov    %rbp,%rax
shl    $0x5,%rax
lea    (%rax,%rax,2),%rdi
call   1040 <malloc@plt>
mov    %rax,0x38(%rsp)
lea    0x0(,%rbp,4),%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x30(%rsp)
mov    %rbp,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,0x40(%rsp)
test   %ebp,%ebp
jle    1577 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x427>
mov    %r14d,%eax
shl    $0x2,%rax
mov    %rax,0xb0(%rsp)
xor    %ebp,%ebp
xor    %r14d,%r14d
xor    %ebx,%ebx
mov    0x38(%rsp),%r15
jmp    154a <evaluateGTRGAMMAMULTINVAR_VECTOR+0x3fa>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0xc8(%rsp),%rax
movsd  (%rax,%rbp,2),%xmm0
movsd  0xd43(%rip),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xd3f(%rip),%xmm1
mov    0x40(%rsp),%rax
movsd  %xmm1,(%rax,%rbp,2)
mov    %rbp,0x28(%rsp)
mov    0x28(%rsp),%ebp
shl    $0x3,%rbp
mov    0xc0(%rsp),%rdx
movupd (%rdx,%rbp,1),%xmm1
unpcklpd %xmm0,%xmm0
mulpd  %xmm0,%xmm1
mov    0x30(%rsp),%rcx
movupd %xmm1,(%rcx,%rbp,1)
mov    0x28(%rsp),%rax
add    $0x2,%eax
movupd (%rdx,%rax,8),%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,(%rcx,%rax,8)
mov    %rbx,0x78(%rsp)
mov    0x78(%rsp),%r12
and    $0xfffffffc,%r12d
mov    %r14d,%eax
mov    %rax,0x18(%rsp)
lea    0x1(%r14),%r13d
mov    %r13,0x70(%rsp)
lea    0x2(%r14),%ecx
mov    %rcx,0x68(%rsp)
mov    %r14,0xd0(%rsp)
mov    0x20(%rsp),%rcx
movsd  (%rcx,%rbp,1),%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0xb8(%rsp),%rbx
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,(%r15,%r12,8)
movsd  (%rbx,%r13,8),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x8(%r15,%r12,8)
mov    0x68(%rsp),%r14
movsd  0x10(%rsp),%xmm0
mulsd  (%rbx,%r14,8),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x10(%r15,%r12,8)
mov    %rbp,%rax
or     $0x8,%rax
mov    0x20(%rsp),%r13
movsd  0x0(%r13,%rax,1),%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x18(%rsp),%rax
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x18(%r15,%r12,8)
mov    0x70(%rsp),%rax
movsd  (%rbx,%rax,8),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x20(%r15,%r12,8)
movsd  0x10(%rsp),%xmm0
mulsd  (%rbx,%r14,8),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x28(%r15,%r12,8)
mov    %rbp,%rax
or     $0x10,%rax
movsd  0x0(%r13,%rax,1),%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x18(%rsp),%rax
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x30(%r15,%r12,8)
mov    0x70(%rsp),%r13
movsd  (%rbx,%r13,8),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x38(%r15,%r12,8)
movsd  0x10(%rsp),%xmm0
mulsd  (%rbx,%r14,8),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x40(%r15,%r12,8)
or     $0x18,%rbp
mov    0x20(%rsp),%rax
movsd  (%rax,%rbp,1),%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x28(%rsp),%rbp
mov    0xd0(%rsp),%r14
mov    0x18(%rsp),%rax
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x48(%r15,%r12,8)
movsd  (%rbx,%r13,8),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x50(%r15,%r12,8)
mov    0x68(%rsp),%rax
movsd  0x10(%rsp),%xmm0
mulsd  (%rbx,%rax,8),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x58(%r15,%r12,8)
mov    0x78(%rsp),%rbx
add    $0xc,%rbx
add    $0x3,%r14d
add    $0x4,%rbp
cmp    %rbp,0xb0(%rsp)
je     1577 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x427>
cmpl   $0x0,0x54(%rsp)
je     12b0 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x160>
movsd  0xaa3(%rip),%xmm0
mov    0x58(%rsp),%rax
maxsd  (%rax,%rbp,2),%xmm0
call   1060 <log@plt>
movsd  %xmm0,0x8(%rsp)
jmp    12b0 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x160>
mov    0x50(%rsp),%edi
mov    0x4c(%rsp),%ecx
cmp    %ecx,%edi
mov    0xa0(%rsp),%rbp
jge    17f6 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x6a6>
movslq %edi,%rax
movslq %ecx,%r14
shl    $0x4,%edi
mov    0x80(%rsp),%rcx
lea    (%rcx,%rax,4),%rcx
mov    %rcx,0x8(%rsp)
add    %rax,0x60(%rsp)
mov    0x90(%rsp),%rcx
lea    (%rcx,%rax,4),%rcx
mov    %rcx,0x28(%rsp)
mov    0x88(%rsp),%rcx
lea    (%rcx,%rax,4),%rcx
mov    %rcx,0x18(%rsp)
mov    0x98(%rsp),%rcx
lea    (%rcx,%rax,8),%r15
sub    %rax,%r14
xor    %r12d,%r12d
jmp    1631 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x4e1>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mulsd  %xmm1,%xmm0
mov    %edi,%ebx
call   1060 <log@plt>
mov    %ebx,%edi
movapd %xmm0,%xmm1
mov    0x18(%rsp),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax,%r12,4),%xmm0
mulsd  0xa01(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r15,%r12,8)
add    $0x10,%edi
add    $0x1,%r12
cmp    %r12,%r14
je     17f6 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x6a6>
mov    0x8(%rsp),%rax
movslq (%rax,%r12,4),%r8
mov    %r8,%rcx
shl    $0x6,%rcx
mov    0x60(%rsp),%rdx
movsbq (%rdx,%r12,1),%rdx
lea    (%rcx,%rdx,4),%rsi
movslq %edi,%rdx
lea    (%r8,%r8,2),%rcx
shl    $0x5,%rcx
mov    0xa8(%rsp),%rax
movsd  (%rax,%rsi,8),%xmm2
movsd  0x8(%rax,%rsi,8),%xmm1
movsd  0x0(%rbp,%rdx,8),%xmm0
mulsd  %xmm2,%xmm0
movsd  0x8(%rbp,%rdx,8),%xmm4
mulsd  %xmm1,%xmm4
mov    0x38(%rsp),%rbx
mulsd  (%rbx,%rcx,1),%xmm4
addsd  %xmm0,%xmm4
movsd  0x10(%rax,%rsi,8),%xmm3
movsd  0x10(%rbp,%rdx,8),%xmm5
mulsd  %xmm3,%xmm5
mulsd  0x8(%rbx,%rcx,1),%xmm5
addsd  %xmm4,%xmm5
movsd  0x18(%rax,%rsi,8),%xmm0
movsd  0x18(%rbp,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
mulsd  0x10(%rbx,%rcx,1),%xmm4
addsd  %xmm5,%xmm4
movsd  0x20(%rbp,%rdx,8),%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm4,%xmm5
movsd  0x28(%rbp,%rdx,8),%xmm4
mulsd  %xmm1,%xmm4
mulsd  0x18(%rbx,%rcx,1),%xmm4
addsd  %xmm5,%xmm4
movsd  0x30(%rbp,%rdx,8),%xmm5
mulsd  %xmm3,%xmm5
mulsd  0x20(%rbx,%rcx,1),%xmm5
addsd  %xmm4,%xmm5
movsd  0x38(%rbp,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
mulsd  0x28(%rbx,%rcx,1),%xmm4
addsd  %xmm5,%xmm4
movsd  0x40(%rbp,%rdx,8),%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm4,%xmm5
movsd  0x48(%rbp,%rdx,8),%xmm4
mulsd  %xmm1,%xmm4
mulsd  0x30(%rbx,%rcx,1),%xmm4
movsd  0x50(%rbp,%rdx,8),%xmm6
mulsd  %xmm3,%xmm6
mulsd  0x38(%rbx,%rcx,1),%xmm6
addsd  %xmm5,%xmm4
addsd  %xmm4,%xmm6
movsd  0x58(%rbp,%rdx,8),%xmm4
mulsd  %xmm0,%xmm4
mulsd  0x40(%rbx,%rcx,1),%xmm4
mulsd  0x60(%rbp,%rdx,8),%xmm2
addsd  %xmm6,%xmm4
addsd  %xmm4,%xmm2
mulsd  0x68(%rbp,%rdx,8),%xmm1
mulsd  0x48(%rbx,%rcx,1),%xmm1
mulsd  0x70(%rbp,%rdx,8),%xmm3
addsd  %xmm2,%xmm1
mulsd  0x50(%rbx,%rcx,1),%xmm3
addsd  %xmm1,%xmm3
mulsd  0x78(%rbp,%rdx,8),%xmm0
mulsd  0x58(%rbx,%rcx,1),%xmm0
addsd  %xmm3,%xmm0
mov    0x28(%rsp),%rax
movslq (%rax,%r12,4),%rcx
mov    0x40(%rsp),%rax
movsd  (%rax,%r8,8),%xmm1
cmp    $0x3,%rcx
jg     15f0 <evaluateGTRGAMMAMULTINVAR_VECTOR+0x4a0>
lea    (%rcx,%r8,4),%rax
mulsd  %xmm0,%xmm1
mov    0x30(%rsp),%rcx
addsd  (%rcx,%rax,8),%xmm1
movsd  %xmm1,0x20(%rsp)
mov    0x18(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%r12,4),%xmm1
movsd  0x843(%rip),%xmm0
mov    %edi,%ebx
call   1070 <pow@plt>
mulsd  0x20(%rsp),%xmm0
call   1060 <log@plt>
mov    %ebx,%edi
jmp    161b <evaluateGTRGAMMAMULTINVAR_VECTOR+0x4cb>
mov    0x38(%rsp),%rdi
call   1030 <free@plt>
mov    0x40(%rsp),%rdi
call   1030 <free@plt>
mov    0x30(%rsp),%rdi
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @evaluateGTRGAMMAMULTINVAR_VECTOR(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, double* nocapture %3, double* nocapture writeonly %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* nocapture %8, double* nocapture %9, double* nocapture %10, i8* nocapture %11, i32 %12, i32 %13, i32 %14, i32 %15) {
%17 = icmp eq i32 %15, 0
br i1 %17, label %18, label %23
18: ; preds = %16
%19 = load double, double* %10
%20 = fcmp olt double %19, 1.000000e-15
%21 = select i1 %20, double 1.000000e-15, double %19
%22 = tail call double @log(double %21)
br label %23
23: ; preds = %18, %16
%24 = phi double [ 0.000000e+00, %16 ], [ %22, %18 ]
%25 = sext i32 %14 to i64
%26 = mul nsw i64 %25, 96
%27 = tail call i8* @malloc(i64 %26)
%28 = bitcast i8* %27 to double*
%29 = shl nsw i32 %14, 2
%30 = sext i32 %29 to i64
%31 = shl nsw i64 %30, 3
%32 = tail call i8* @malloc(i64 %31)
%33 = bitcast i8* %32 to double*
%34 = shl nsw i64 %25, 3
%35 = tail call i8* @malloc(i64 %34)
%36 = bitcast i8* %35 to double*
%37 = icmp sgt i32 %14, 0
br i1 %37, label %38, label %40
38: ; preds = %23
%39 = zext i32 %14 to i64
br label %45
40: ; preds = %54, %23
%41 = icmp slt i32 %12, %13
br i1 %41, label %42, label %303
42: ; preds = %40
%43 = sext i32 %12 to i64
%44 = sext i32 %13 to i64
br label %164
45: ; preds = %38, %54
%46 = phi i64 [ 0, %38 ], [ %162, %54 ]
%47 = phi double [ %24, %38 ], [ %55, %54 ]
br i1 %17, label %54, label %48
48: ; preds = %45
%49 = getelementptr inbounds double, double* %10, i64 %46
%50 = load double, double* %49
%51 = fcmp olt double %50, 1.000000e-15
%52 = select i1 %51, double 1.000000e-15, double %50
%53 = tail call double @log(double %52)
br label %54
54: ; preds = %48, %45
%55 = phi double [ %53, %48 ], [ %47, %45 ]
%56 = getelementptr inbounds double, double* %9, i64 %46
%57 = load double, double* %56
%58 = fsub double 1.000000e+00, %57
%59 = fmul double %58, 2.500000e-01
%60 = getelementptr inbounds double, double* %36, i64 %46
store double %59, double* %60
%61 = trunc i64 %46 to i32
%62 = shl nsw i32 %61, 2
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds double, double* %8, i64 %63
%65 = getelementptr inbounds double, double* %33, i64 %63
%66 = bitcast double* %64 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = insertelement <2 x double> poison, double %57, i64 0
%69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
%70 = fmul <2 x double> %69, %67
%71 = bitcast double* %65 to <2 x double>*
store <2 x double> %70, <2 x double>* %71
%72 = or i32 %62, 2
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds double, double* %8, i64 %73
%75 = getelementptr inbounds double, double* %33, i64 %73
%76 = bitcast double* %74 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = fmul <2 x double> %69, %77
%79 = bitcast double* %75 to <2 x double>*
store <2 x double> %78, <2 x double>* %79
%80 = mul i64 %46, 12
%81 = and i64 %80, 4294967292
%82 = getelementptr inbounds double, double* %28, i64 %81
%83 = mul nsw i32 %61, 3
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds double, double* %5, i64 %84
%86 = add nuw nsw i32 %83, 1
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds double, double* %5, i64 %87
%89 = add nuw nsw i32 %83, 2
%90 = zext i32 %89 to i64
%91 = getelementptr inbounds double, double* %5, i64 %90
%92 = getelementptr inbounds double, double* %6, i64 %63
%93 = load double, double* %92
%94 = load double, double* %85
%95 = fmul double %93, %94
%96 = fmul double %55, %95
%97 = tail call double @exp(double %96)
%98 = getelementptr inbounds double, double* %82, i64 1
store double %97, double* %82
%99 = load double, double* %88
%100 = fmul double %93, %99
%101 = fmul double %55, %100
%102 = tail call double @exp(double %101)
%103 = getelementptr inbounds double, double* %82, i64 2
store double %102, double* %98
%104 = load double, double* %91
%105 = fmul double %93, %104
%106 = fmul double %55, %105
%107 = tail call double @exp(double %106)
%108 = getelementptr inbounds double, double* %82, i64 3
store double %107, double* %103
%109 = or i64 %63, 1
%110 = getelementptr inbounds double, double* %6, i64 %109
%111 = load double, double* %110
%112 = load double, double* %85
%113 = fmul double %111, %112
%114 = fmul double %55, %113
%115 = tail call double @exp(double %114)
%116 = getelementptr inbounds double, double* %108, i64 1
store double %115, double* %108
%117 = load double, double* %88
%118 = fmul double %111, %117
%119 = fmul double %55, %118
%120 = tail call double @exp(double %119)
%121 = getelementptr inbounds double, double* %108, i64 2
store double %120, double* %116
%122 = load double, double* %91
%123 = fmul double %111, %122
%124 = fmul double %55, %123
%125 = tail call double @exp(double %124)
%126 = getelementptr inbounds double, double* %108, i64 3
store double %125, double* %121
%127 = or i64 %63, 2
%128 = getelementptr inbounds double, double* %6, i64 %127
%129 = load double, double* %128
%130 = load double, double* %85
%131 = fmul double %129, %130
%132 = fmul double %55, %131
%133 = tail call double @exp(double %132)
%134 = getelementptr inbounds double, double* %126, i64 1
store double %133, double* %126
%135 = load double, double* %88
%136 = fmul double %129, %135
%137 = fmul double %55, %136
%138 = tail call double @exp(double %137)
%139 = getelementptr inbounds double, double* %126, i64 2
store double %138, double* %134
%140 = load double, double* %91
%141 = fmul double %129, %140
%142 = fmul double %55, %141
%143 = tail call double @exp(double %142)
%144 = getelementptr inbounds double, double* %126, i64 3
store double %143, double* %139
%145 = or i64 %63, 3
%146 = getelementptr inbounds double, double* %6, i64 %145
%147 = load double, double* %146
%148 = load double, double* %85
%149 = fmul double %147, %148
%150 = fmul double %55, %149
%151 = tail call double @exp(double %150)
%152 = getelementptr inbounds double, double* %144, i64 1
store double %151, double* %144
%153 = load double, double* %88
%154 = fmul double %147, %153
%155 = fmul double %55, %154
%156 = tail call double @exp(double %155)
%157 = getelementptr inbounds double, double* %144, i64 2
store double %156, double* %152
%158 = load double, double* %91
%159 = fmul double %147, %158
%160 = fmul double %55, %159
%161 = tail call double @exp(double %160)
store double %161, double* %157
%162 = add nuw nsw i64 %46, 1
%163 = icmp eq i64 %162, %39
br i1 %163, label %40, label %45
164: ; preds = %42, %298
%165 = phi i64 [ %43, %42 ], [ %301, %298 ]
%166 = trunc i64 %165 to i32
%167 = getelementptr inbounds i32, i32* %1, i64 %165
%168 = load i32, i32* %167
%169 = shl nsw i32 %168, 6
%170 = getelementptr inbounds i8, i8* %11, i64 %165
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = shl nsw i32 %172, 2
%174 = add nsw i32 %173, %169
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %7, i64 %175
%177 = shl nsw i32 %166, 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, double* %3, i64 %178
%180 = mul nsw i32 %168, 12
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, double* %28, i64 %181
%183 = load double, double* %176
%184 = load double, double* %179
%185 = fmul double %183, %184
%186 = getelementptr inbounds double, double* %176, i64 1
%187 = load double, double* %186
%188 = getelementptr inbounds double, double* %179, i64 1
%189 = load double, double* %188
%190 = fmul double %187, %189
%191 = getelementptr inbounds double, double* %182, i64 1
%192 = load double, double* %182
%193 = tail call double @llvm.fmuladd.f64(double %190, double %192, double %185)
%194 = getelementptr inbounds double, double* %176, i64 2
%195 = load double, double* %194
%196 = getelementptr inbounds double, double* %179, i64 2
%197 = load double, double* %196
%198 = fmul double %195, %197
%199 = getelementptr inbounds double, double* %191, i64 1
%200 = load double, double* %191
%201 = tail call double @llvm.fmuladd.f64(double %198, double %200, double %193)
%202 = getelementptr inbounds double, double* %176, i64 3
%203 = load double, double* %202
%204 = getelementptr inbounds double, double* %179, i64 3
%205 = load double, double* %204
%206 = fmul double %203, %205
%207 = getelementptr inbounds double, double* %199, i64 1
%208 = load double, double* %199
%209 = tail call double @llvm.fmuladd.f64(double %206, double %208, double %201)
%210 = getelementptr inbounds double, double* %179, i64 4
%211 = load double, double* %210
%212 = tail call double @llvm.fmuladd.f64(double %183, double %211, double %209)
%213 = getelementptr inbounds double, double* %179, i64 5
%214 = load double, double* %213
%215 = fmul double %187, %214
%216 = getelementptr inbounds double, double* %207, i64 1
%217 = load double, double* %207
%218 = tail call double @llvm.fmuladd.f64(double %215, double %217, double %212)
%219 = getelementptr inbounds double, double* %179, i64 6
%220 = load double, double* %219
%221 = fmul double %195, %220
%222 = getelementptr inbounds double, double* %216, i64 1
%223 = load double, double* %216
%224 = tail call double @llvm.fmuladd.f64(double %221, double %223, double %218)
%225 = getelementptr inbounds double, double* %179, i64 7
%226 = load double, double* %225
%227 = fmul double %203, %226
%228 = getelementptr inbounds double, double* %222, i64 1
%229 = load double, double* %222
%230 = tail call double @llvm.fmuladd.f64(double %227, double %229, double %224)
%231 = getelementptr inbounds double, double* %179, i64 8
%232 = load double, double* %231
%233 = tail call double @llvm.fmuladd.f64(double %183, double %232, double %230)
%234 = getelementptr inbounds double, double* %179, i64 9
%235 = load double, double* %234
%236 = fmul double %187, %235
%237 = getelementptr inbounds double, double* %228, i64 1
%238 = load double, double* %228
%239 = tail call double @llvm.fmuladd.f64(double %236, double %238, double %233)
%240 = getelementptr inbounds double, double* %179, i64 10
%241 = load double, double* %240
%242 = fmul double %195, %241
%243 = getelementptr inbounds double, double* %237, i64 1
%244 = load double, double* %237
%245 = tail call double @llvm.fmuladd.f64(double %242, double %244, double %239)
%246 = getelementptr inbounds double, double* %179, i64 11
%247 = load double, double* %246
%248 = fmul double %203, %247
%249 = getelementptr inbounds double, double* %243, i64 1
%250 = load double, double* %243
%251 = tail call double @llvm.fmuladd.f64(double %248, double %250, double %245)
%252 = getelementptr inbounds double, double* %179, i64 12
%253 = load double, double* %252
%254 = tail call double @llvm.fmuladd.f64(double %183, double %253, double %251)
%255 = getelementptr inbounds double, double* %179, i64 13
%256 = load double, double* %255
%257 = fmul double %187, %256
%258 = getelementptr inbounds double, double* %249, i64 1
%259 = load double, double* %249
%260 = tail call double @llvm.fmuladd.f64(double %257, double %259, double %254)
%261 = getelementptr inbounds double, double* %179, i64 14
%262 = load double, double* %261
%263 = fmul double %195, %262
%264 = getelementptr inbounds double, double* %258, i64 1
%265 = load double, double* %258
%266 = tail call double @llvm.fmuladd.f64(double %263, double %265, double %260)
%267 = getelementptr inbounds double, double* %179, i64 15
%268 = load double, double* %267
%269 = fmul double %203, %268
%270 = load double, double* %264
%271 = tail call double @llvm.fmuladd.f64(double %269, double %270, double %266)
%272 = getelementptr inbounds i32, i32* %2, i64 %165
%273 = load i32, i32* %272
%274 = icmp slt i32 %273, 4
%275 = sext i32 %168 to i64
%276 = getelementptr inbounds double, double* %36, i64 %275
%277 = load double, double* %276
br i1 %274, label %278, label %291
278: ; preds = %164
%279 = shl nsw i32 %168, 2
%280 = add nsw i32 %273, %279
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds double, double* %33, i64 %281
%283 = load double, double* %282
%284 = tail call double @llvm.fmuladd.f64(double %277, double %271, double %283)
%285 = getelementptr inbounds i32, i32* %0, i64 %165
%286 = load i32, i32* %285
%287 = sitofp i32 %286 to double
%288 = tail call double @pow(double 0x2FF0000000000000, double %287)
%289 = fmul double %284, %288
%290 = tail call double @log(double %289)
br label %298
291: ; preds = %164
%292 = fmul double %271, %277
%293 = tail call double @log(double %292)
%294 = getelementptr inbounds i32, i32* %0, i64 %165
%295 = load i32, i32* %294
%296 = sitofp i32 %295 to double
%297 = tail call double @llvm.fmuladd.f64(double %296, double 0xC0662E42FEFA39EF, double %293)
br label %298
298: ; preds = %291, %278
%299 = phi double [ %290, %278 ], [ %297, %291 ]
%300 = getelementptr inbounds double, double* %4, i64 %165
store double %299, double* %300
%301 = add nsw i64 %165, 1
%302 = icmp eq i64 %301, %44
br i1 %302, label %303, label %164
303: ; preds = %298, %40
tail call void @free(i8* %27)
tail call void @free(i8* %35)
tail call void @free(i8* %32)
ret void
}