#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double const exp(double const);
double pow(double, double const);
double sqrt(double);
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(
    const int nSimplex, const int nPointsPerSimplex, const int nSpace,
    const int *materialTypes, const double rho, const double beta,
    const double *gravity, const double *alpha, const double *n,
    const double *thetaR, const double *thetaSR, const double *KWs, double *u,
    double *mass, double *dmass, double *f, double *df, double *a, double *da) {
  int i, j, k, I, matID;
  const int nSpace2 = nSpace * nSpace;
  register double psiC, pcBar, pcBar_n, pcBar_nM1, pcBar_nM2, onePlus_pcBar_n,
      sBar, sqrt_sBar, DsBar_DpsiC, thetaW, DthetaW_DpsiC, vBar, vBar2,
      DvBar_DpsiC, KW, DKW_DpsiC, rho2 = rho * rho, thetaS, rhom, drhom, m;
  for (i = 0; i < nSimplex; i++) {
    matID = materialTypes[i];
    for (j = 0; j < nPointsPerSimplex; j++) {
      k = i * nPointsPerSimplex + j;
      psiC = -u[k];
      m = 1.0 - 1.0 / n[matID];
      thetaS = thetaR[matID] + thetaSR[matID];
      if (psiC > 0.0) {
        pcBar = alpha[matID] * psiC;
        pcBar_nM2 = pow(pcBar, n[matID] - 2);
        pcBar_nM1 = pcBar_nM2 * pcBar;
        pcBar_n = pcBar_nM1 * pcBar;
        onePlus_pcBar_n = 1.0 + pcBar_n;
        sBar = pow(onePlus_pcBar_n, -m);
        DsBar_DpsiC = alpha[matID] * (1.0 - n[matID]) *
                      (sBar / onePlus_pcBar_n) * pcBar_nM1;
        vBar = 1.0 - pcBar_nM1 * sBar;
        vBar2 = vBar * vBar;
        DvBar_DpsiC = -alpha[matID] * (n[matID] - 1.0) * pcBar_nM2 * sBar -
                      pcBar_nM1 * DsBar_DpsiC;
        thetaW = thetaSR[matID] * sBar + thetaR[matID];
        DthetaW_DpsiC = thetaSR[matID] * DsBar_DpsiC;
        sqrt_sBar = sqrt(sBar);
        KW = KWs[matID] * sqrt_sBar * vBar2;
        DKW_DpsiC = KWs[matID] * ((0.5 / sqrt_sBar) * DsBar_DpsiC * vBar2 +
                                  2.0 * sqrt_sBar * vBar * DvBar_DpsiC);
      } else {
        thetaW = thetaS;
        DthetaW_DpsiC = 0.0;
        KW = KWs[matID];
        DKW_DpsiC = 0.0;
      }
      rhom = rho * exp(beta * u[k]);
      drhom = beta * rhom;
      mass[k] = rhom * thetaW;
      dmass[k] = -rhom * DthetaW_DpsiC + drhom * thetaW;
      for (I = 0; I < nSpace; I++) {
        f[k * nSpace + I] = rho2 * KW * gravity[I];
        df[k * nSpace + I] = -rho2 * DKW_DpsiC * gravity[I];
        a[k * nSpace2 + I * nSpace + I] = rho * KW;
        da[k * nSpace2 + I * nSpace + I] = -rho * DKW_DpsiC;
      }
    }
  }
}


x86 assembly (clang, -O0):
<conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
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    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1739 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x609>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x4c(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1726 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x5f6>
mov    -0x3c(%rbp),%eax
imul   -0x8(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  0xde4(%rip),%xmm1
divsd  (%rax,%rcx,8),%xmm1
movsd  0xdd7(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x4c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1512 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x3e2>
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xd6e(%rip),%xmm2
subsd  %xmm2,%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xd32(%rip),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  -0xf8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  0xcda(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x88(%rbp),%xmm1
ff
divsd  -0x80(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc83(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xc26(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x70(%rbp),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    0x20(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
mov    0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x20(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
call   1050 <sqrt@plt>
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
mov    0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xb4f(%rip),%xmm1
divsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
movsd  -0xb8(%rbp),%xmm3
ff
movsd  0xb27(%rip),%xmm2
mulsd  -0x90(%rbp),%xmm2
ff
mulsd  -0xb0(%rbp),%xmm2
ff
mulsd  -0xc0(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
jmp    154d <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x41d>
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
mov    0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
mulsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  -0xa0(%rbp),%xmm0
ff
mov    0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xe8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xa8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1713 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x5e3>
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  -0xc8(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x48(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xd8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0xd0(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x50(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
mov    0x58(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x50(%rbp),%ecx
mov    -0x48(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0xd0(%rbp),%xmm0
ff
mov    0x60(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x50(%rbp),%ecx
mov    -0x48(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    160d <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x4dd>
jmp    1718 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x5e8>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11ca <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x9a>
jmp    172b <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x5fb>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11a9 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x79>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    %r9,0x88(%rsp)
movsd  %xmm1,0x98(%rsp)
movapd %xmm0,0xa0(%rsp)
mov    %rcx,0xb8(%rsp)
mov    %edx,0xc(%rsp)
mov    %esi,0x8(%rsp)
test   %edi,%edi
jle    16db <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x5ab>
mov    %r8,%rbx
mov    0x1c0(%rsp),%rax
mov    %rax,0x70(%rsp)
mov    0x1b8(%rsp),%rax
mov    %rax,0x68(%rsp)
movapd 0xa0(%rsp),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd 0xe57(%rip),%xmm2
movapd %xmm1,0x130(%rsp)
xorpd  %xmm2,%xmm1
movapd %xmm1,0x120(%rsp)
xorpd  %xmm2,%xmm0
movapd %xmm0,0x110(%rsp)
movslq 0xc(%rsp),%rcx
mov    0x8(%rsp),%eax
movslq %eax,%rdx
mov    %edi,%esi
mov    %rsi,0xc8(%rsp)
mov    %ecx,%r14d
mov    %ecx,%esi
imul   %ecx,%esi
mov    %esi,0x48(%rsp)
imul   %eax,%esi
mov    %esi,0x44(%rsp)
lea    0x1(%rcx),%r13d
mov    %rcx,%rax
imul   %rdx,%rax
shl    $0x3,%rax
mov    %rax,0xc0(%rsp)
shl    $0x3,%rcx
mov    %rcx,0xe8(%rsp)
xorpd  %xmm0,%xmm0
mov    %rdx,0xb0(%rsp)
mov    %edx,%eax
mov    %rax,0xe0(%rsp)
xor    %eax,%eax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
jmp    127f <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x14f>
xchg   %ax,%ax
mov    0x28(%rsp),%rcx
add    $0x1,%rcx
mov    0x30(%rsp),%rax
add    0x44(%rsp),%eax
mov    %rax,0x30(%rsp)
mov    0xc0(%rsp),%rax
add    %rax,0x68(%rsp)
add    %rax,0x70(%rsp)
mov    %rcx,%rax
mov    %rcx,0x28(%rsp)
cmp    0xc8(%rsp),%rcx
je     16db <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x5ab>
cmpl   $0x0,0x8(%rsp)
jle    1240 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x110>
mov    0xb8(%rsp),%rax
mov    0x28(%rsp),%rcx
movslq (%rax,%rcx,4),%rax
mov    %rax,0x38(%rsp)
imul   0xb0(%rsp),%rcx
mov    %rcx,0xf0(%rsp)
mov    0x70(%rsp),%r12
mov    0x68(%rsp),%rbp
mov    0x30(%rsp),%rax
mov    %eax,%edi
xor    %ecx,%ecx
jmp    1300 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x1d0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0xf8(%rsp),%rcx
add    $0x1,%rcx
add    0x48(%rsp),%edi
mov    0xe8(%rsp),%rax
add    %rax,%rbp
add    %rax,%r12
cmp    0xe0(%rsp),%rcx
xorpd  %xmm0,%xmm0
je     1240 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x110>
mov    0xf0(%rsp),%rax
lea    (%rcx,%rax,1),%r15
mov    0x1a0(%rsp),%rax
movsd  (%rax,%r15,8),%xmm2
ucomisd %xmm2,%xmm0
mov    %edi,0x4c(%rsp)
mov    %rcx,0xf8(%rsp)
jbe    1440 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x310>
mov    %r15,(%rsp)
mov    0x180(%rsp),%rax
mov    0x38(%rsp),%r15
movsd  (%rax,%r15,8),%xmm1
movapd 0xcb1(%rip),%xmm0
xorpd  %xmm0,%xmm2
movsd  0xcb5(%rip),%xmm3
divsd  %xmm1,%xmm3
movsd  0xcb1(%rip),%xmm0
addsd  %xmm0,%xmm3
movapd %xmm3,0x50(%rsp)
mov    0x88(%rsp),%rax
mulsd  (%rax,%r15,8),%xmm2
movapd %xmm2,0x10(%rsp)
addsd  0xc93(%rip),%xmm1
movapd %xmm2,%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x80(%rsp)
movapd 0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x78(%rsp)
mulsd  %xmm0,%xmm2
addsd  0xc5d(%rip),%xmm2
movaps 0x50(%rsp),%xmm1
xorps  0xc39(%rip),%xmm1
movapd %xmm2,0x10(%rsp)
movapd %xmm2,%xmm0
call   1040 <pow@plt>
movapd %xmm0,%xmm10
xorpd  %xmm0,%xmm0
mov    0x88(%rsp),%rax
movsd  (%rax,%r15,8),%xmm9
mov    0x180(%rsp),%rax
movsd  (%rax,%r15,8),%xmm4
mov    0x190(%rsp),%rax
movsd  (%rax,%r15,8),%xmm8
movapd %xmm8,%xmm1
mulsd  %xmm10,%xmm1
mov    0x188(%rsp),%rax
addsd  (%rax,%r15,8),%xmm1
ucomisd %xmm0,%xmm10
movsd  %xmm1,0x90(%rsp)
jb     14a0 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x370>
xorps  %xmm0,%xmm0
sqrtsd %xmm10,%xmm0
jmp    14f2 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x3c2>
xchg   %ax,%ax
mov    0x188(%rsp),%rax
mov    0x38(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x190(%rsp),%rax
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x90(%rsp)
mov    0x198(%rsp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x50(%rsp)
jmp    15d4 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x4a4>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd %xmm10,%xmm0
movsd  %xmm8,0x50(%rsp)
movsd  %xmm10,0xd8(%rsp)
movapd %xmm9,0x100(%rsp)
movsd  %xmm4,0xd0(%rsp)
call   1050 <sqrt@plt>
movsd  0xd0(%rsp),%xmm4
movapd 0x100(%rsp),%xmm9
movsd  0xd8(%rsp),%xmm10
movsd  0x50(%rsp),%xmm8
mov    (%rsp),%r15
movapd 0x10(%rsp),%xmm5
movsd  0x80(%rsp),%xmm6
movsd  0x78(%rsp),%xmm7
movsd  0xb05(%rip),%xmm3
movapd %xmm3,%xmm2
subsd  %xmm4,%xmm2
mulsd  %xmm9,%xmm2
movapd %xmm10,%xmm1
divsd  %xmm5,%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm7,%xmm1
mulsd  %xmm1,%xmm8
movsd  %xmm8,0x50(%rsp)
movsd  0xae3(%rip),%xmm5
divsd  %xmm0,%xmm5
mulsd  %xmm1,%xmm5
mulsd  %xmm7,%xmm1
mulsd  %xmm10,%xmm7
movapd %xmm3,%xmm2
subsd  %xmm7,%xmm2
movapd %xmm0,%xmm3
addsd  %xmm0,%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm2
xorpd  0xa89(%rip),%xmm9
addsd  0xa91(%rip),%xmm4
mulsd  %xmm9,%xmm4
mulsd  %xmm4,%xmm6
mulsd  %xmm10,%xmm6
subsd  %xmm1,%xmm6
mov    0x198(%rsp),%rax
mov    0x38(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm3
mulsd  %xmm2,%xmm3
movsd  %xmm3,(%rsp)
mulsd  %xmm6,%xmm0
mulsd  %xmm2,%xmm5
addsd  %xmm0,%xmm5
mulsd  %xmm1,%xmm5
movsd  %xmm5,0x10(%rsp)
mov    0x1a0(%rsp),%rax
movsd  (%rax,%r15,8),%xmm2
mulsd  0x98(%rsp),%xmm2
movapd %xmm2,%xmm0
call   1030 <exp@plt>
mulsd  0xa0(%rsp),%xmm0
movapd %xmm0,%xmm1
mulsd  0x98(%rsp),%xmm1
movsd  0x90(%rsp),%xmm3
movapd %xmm3,%xmm2
mulsd  %xmm0,%xmm2
mov    0x1a8(%rsp),%rax
movsd  %xmm2,(%rax,%r15,8)
mulsd  %xmm3,%xmm1
mulsd  0x50(%rsp),%xmm0
subsd  %xmm0,%xmm1
mov    0x1b0(%rsp),%rax
movsd  %xmm1,(%rax,%r15,8)
cmpl   $0x0,0xc(%rsp)
mov    0x1d0(%rsp),%rdx
mov    0x1c8(%rsp),%rsi
mov    0x4c(%rsp),%edi
movsd  0x10(%rsp),%xmm3
movsd  (%rsp),%xmm4
jle    12d0 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x1a0>
movapd 0x130(%rsp),%xmm0
mulsd  %xmm4,%xmm0
movapd %xmm3,%xmm1
mulsd  0x120(%rsp),%xmm1
mulsd  0xa0(%rsp),%xmm4
mulsd  0x110(%rsp),%xmm3
mov    %edi,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rcx,8),%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x0(%rbp,%rcx,8)
movsd  (%rbx,%rcx,8),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,(%r12,%rcx,8)
cltq
movsd  %xmm4,(%rsi,%rax,8)
movsd  %xmm3,(%rdx,%rax,8)
add    $0x1,%rcx
add    %r13d,%eax
cmp    %rcx,%r14
jne    16a0 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x570>
jmp    12d0 <conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2+0x1a0>
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(i32 %0, i32 %1, i32 %2, i32* %3, double %4, double %5, double* %6, double* %7, double* %8, double* %9, double* %10, double* %11, double* %12, double* %13, double* %14, double* %15, double* %16, double* %17, double* %18) {
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32*
%24 = alloca double
%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 double*
%34 = alloca double*
%35 = alloca double*
%36 = alloca double*
%37 = alloca double*
%38 = alloca double*
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
%42 = alloca i32
%43 = alloca i32
%44 = alloca i32
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
%49 = alloca double
%50 = alloca double
%51 = alloca double
%52 = alloca double
%53 = alloca double
%54 = alloca double
%55 = alloca double
%56 = alloca double
%57 = alloca double
%58 = alloca double
%59 = alloca double
%60 = alloca double
%61 = alloca double
%62 = alloca double
%63 = alloca double
%64 = alloca double
%65 = alloca double
store i32 %0, i32* %20
store i32 %1, i32* %21
store i32 %2, i32* %22
store i32* %3, i32** %23
store double %4, double* %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 double* %13, double** %33
store double* %14, double** %34
store double* %15, double** %35
store double* %16, double** %36
store double* %17, double** %37
store double* %18, double** %38
%66 = load i32, i32* %22
%67 = load i32, i32* %22
%68 = mul nsw i32 %66, %67
store i32 %68, i32* %44
%69 = load double, double* %24
%70 = load double, double* %24
%71 = fmul double %69, %70
store double %71, double* %61
store i32 0, i32* %39
br label %72
72: ; preds = %358, %19
%73 = load i32, i32* %39
%74 = load i32, i32* %20
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %361
76: ; preds = %72
%77 = load i32*, i32** %23
%78 = load i32, i32* %39
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, i32* %77, i64 %79
%81 = load i32, i32* %80
store i32 %81, i32* %43
store i32 0, i32* %40
br label %82
82: ; preds = %354, %76
%83 = load i32, i32* %40
%84 = load i32, i32* %21
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %357
86: ; preds = %82
%87 = load i32, i32* %39
%88 = load i32, i32* %21
%89 = mul nsw i32 %87, %88
%90 = load i32, i32* %40
%91 = add nsw i32 %89, %90
store i32 %91, i32* %41
%92 = load double*, double** %32
%93 = load i32, i32* %41
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
%97 = fneg double %96
store double %97, double* %45
%98 = load double*, double** %28
%99 = load i32, i32* %43
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, double* %98, i64 %100
%102 = load double, double* %101
%103 = fdiv double 1.000000e+00, %102
%104 = fsub double 1.000000e+00, %103
store double %104, double* %65
%105 = load double*, double** %29
%106 = load i32, i32* %43
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
%109 = load double, double* %108
%110 = load double*, double** %30
%111 = load i32, i32* %43
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %110, i64 %112
%114 = load double, double* %113
%115 = fadd double %109, %114
store double %115, double* %62
%116 = load double, double* %45
%117 = fcmp ogt double %116, 0.000000e+00
br i1 %117, label %118, label %240
118: ; preds = %86
%119 = load double*, double** %27
%120 = load i32, i32* %43
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = load double, double* %122
%124 = load double, double* %45
%125 = fmul double %123, %124
store double %125, double* %46
%126 = load double, double* %46
%127 = load double*, double** %28
%128 = load i32, i32* %43
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, double* %127, i64 %129
%131 = load double, double* %130
%132 = fsub double %131, 2.000000e+00
%133 = call double @pow(double %126, double %132)
store double %133, double* %49
%134 = load double, double* %49
%135 = load double, double* %46
%136 = fmul double %134, %135
store double %136, double* %48
%137 = load double, double* %48
%138 = load double, double* %46
%139 = fmul double %137, %138
store double %139, double* %47
%140 = load double, double* %47
%141 = fadd double 1.000000e+00, %140
store double %141, double* %50
%142 = load double, double* %50
%143 = load double, double* %65
%144 = fneg double %143
%145 = call double @pow(double %142, double %144)
store double %145, double* %51
%146 = load double*, double** %27
%147 = load i32, i32* %43
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %146, i64 %148
%150 = load double, double* %149
%151 = load double*, double** %28
%152 = load i32, i32* %43
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %151, i64 %153
%155 = load double, double* %154
%156 = fsub double 1.000000e+00, %155
%157 = fmul double %150, %156
%158 = load double, double* %51
%159 = load double, double* %50
%160 = fdiv double %158, %159
%161 = fmul double %157, %160
%162 = load double, double* %48
%163 = fmul double %161, %162
store double %163, double* %53
%164 = load double, double* %48
%165 = load double, double* %51
%166 = fneg double %164
%167 = call double @llvm.fmuladd.f64(double %166, double %165, double 1.000000e+00)
store double %167, double* %56
%168 = load double, double* %56
%169 = load double, double* %56
%170 = fmul double %168, %169
store double %170, double* %57
%171 = load double*, double** %27
%172 = load i32, i32* %43
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %171, i64 %173
%175 = load double, double* %174
%176 = fneg double %175
%177 = load double*, double** %28
%178 = load i32, i32* %43
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds double, double* %177, i64 %179
%181 = load double, double* %180
%182 = fsub double %181, 1.000000e+00
%183 = fmul double %176, %182
%184 = load double, double* %49
%185 = fmul double %183, %184
%186 = load double, double* %51
%187 = load double, double* %48
%188 = load double, double* %53
%189 = fmul double %187, %188
%190 = fneg double %189
%191 = call double @llvm.fmuladd.f64(double %185, double %186, double %190)
store double %191, double* %58
%192 = load double*, double** %30
%193 = load i32, i32* %43
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double, double* %192, i64 %194
%196 = load double, double* %195
%197 = load double, double* %51
%198 = load double*, double** %29
%199 = load i32, i32* %43
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %198, i64 %200
%202 = load double, double* %201
%203 = call double @llvm.fmuladd.f64(double %196, double %197, double %202)
store double %203, double* %54
%204 = load double*, double** %30
%205 = load i32, i32* %43
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %204, i64 %206
%208 = load double, double* %207
%209 = load double, double* %53
%210 = fmul double %208, %209
store double %210, double* %55
%211 = load double, double* %51
%212 = call double @sqrt(double %211)
store double %212, double* %52
%213 = load double*, double** %31
%214 = load i32, i32* %43
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, double* %213, i64 %215
%217 = load double, double* %216
%218 = load double, double* %52
%219 = fmul double %217, %218
%220 = load double, double* %57
%221 = fmul double %219, %220
store double %221, double* %59
%222 = load double*, double** %31
%223 = load i32, i32* %43
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds double, double* %222, i64 %224
%226 = load double, double* %225
%227 = load double, double* %52
%228 = fdiv double 5.000000e-01, %227
%229 = load double, double* %53
%230 = fmul double %228, %229
%231 = load double, double* %57
%232 = load double, double* %52
%233 = fmul double 2.000000e+00, %232
%234 = load double, double* %56
%235 = fmul double %233, %234
%236 = load double, double* %58
%237 = fmul double %235, %236
%238 = call double @llvm.fmuladd.f64(double %230, double %231, double %237)
%239 = fmul double %226, %238
store double %239, double* %60
br label %247
240: ; preds = %86
%241 = load double, double* %62
store double %241, double* %54
store double 0.000000e+00, double* %55
%242 = load double*, double** %31
%243 = load i32, i32* %43
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, double* %242, i64 %244
%246 = load double, double* %245
store double %246, double* %59
store double 0.000000e+00, double* %60
br label %247
247: ; preds = %240, %118
%248 = load double, double* %24
%249 = load double, double* %25
%250 = load double*, double** %32
%251 = load i32, i32* %41
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, double* %250, i64 %252
%254 = load double, double* %253
%255 = fmul double %249, %254
%256 = call double @exp(double %255)
%257 = fmul double %248, %256
store double %257, double* %63
%258 = load double, double* %25
%259 = load double, double* %63
%260 = fmul double %258, %259
store double %260, double* %64
%261 = load double, double* %63
%262 = load double, double* %54
%263 = fmul double %261, %262
%264 = load double*, double** %33
%265 = load i32, i32* %41
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds double, double* %264, i64 %266
store double %263, double* %267
%268 = load double, double* %63
%269 = fneg double %268
%270 = load double, double* %55
%271 = load double, double* %64
%272 = load double, double* %54
%273 = fmul double %271, %272
%274 = call double @llvm.fmuladd.f64(double %269, double %270, double %273)
%275 = load double*, double** %34
%276 = load i32, i32* %41
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds double, double* %275, i64 %277
store double %274, double* %278
store i32 0, i32* %42
br label %279
279: ; preds = %350, %247
%280 = load i32, i32* %42
%281 = load i32, i32* %22
%282 = icmp slt i32 %280, %281
br i1 %282, label %283, label %353
283: ; preds = %279
%284 = load double, double* %61
%285 = load double, double* %59
%286 = fmul double %284, %285
%287 = load double*, double** %26
%288 = load i32, i32* %42
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds double, double* %287, i64 %289
%291 = load double, double* %290
%292 = fmul double %286, %291
%293 = load double*, double** %35
%294 = load i32, i32* %41
%295 = load i32, i32* %22
%296 = mul nsw i32 %294, %295
%297 = load i32, i32* %42
%298 = add nsw i32 %296, %297
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds double, double* %293, i64 %299
store double %292, double* %300
%301 = load double, double* %61
%302 = fneg double %301
%303 = load double, double* %60
%304 = fmul double %302, %303
%305 = load double*, double** %26
%306 = load i32, i32* %42
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds double, double* %305, i64 %307
%309 = load double, double* %308
%310 = fmul double %304, %309
%311 = load double*, double** %36
%312 = load i32, i32* %41
%313 = load i32, i32* %22
%314 = mul nsw i32 %312, %313
%315 = load i32, i32* %42
%316 = add nsw i32 %314, %315
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds double, double* %311, i64 %317
store double %310, double* %318
%319 = load double, double* %24
%320 = load double, double* %59
%321 = fmul double %319, %320
%322 = load double*, double** %37
%323 = load i32, i32* %41
%324 = load i32, i32* %44
%325 = mul nsw i32 %323, %324
%326 = load i32, i32* %42
%327 = load i32, i32* %22
%328 = mul nsw i32 %326, %327
%329 = add nsw i32 %325, %328
%330 = load i32, i32* %42
%331 = add nsw i32 %329, %330
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds double, double* %322, i64 %332
store double %321, double* %333
%334 = load double, double* %24
%335 = fneg double %334
%336 = load double, double* %60
%337 = fmul double %335, %336
%338 = load double*, double** %38
%339 = load i32, i32* %41
%340 = load i32, i32* %44
%341 = mul nsw i32 %339, %340
%342 = load i32, i32* %42
%343 = load i32, i32* %22
%344 = mul nsw i32 %342, %343
%345 = add nsw i32 %341, %344
%346 = load i32, i32* %42
%347 = add nsw i32 %345, %346
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds double, double* %338, i64 %348
store double %337, double* %349
br label %350
350: ; preds = %283
%351 = load i32, i32* %42
%352 = add nsw i32 %351, 1
store i32 %352, i32* %42
br label %279
353: ; preds = %279
br label %354
354: ; preds = %353
%355 = load i32, i32* %40
%356 = add nsw i32 %355, 1
store i32 %356, i32* %40
br label %82
357: ; preds = %82
br label %358
358: ; preds = %357
%359 = load i32, i32* %39
%360 = add nsw i32 %359, 1
store i32 %360, i32* %39
br label %72
361: ; preds = %72
ret void
}

LLVM IR (-O2):
define void @conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2(i32 %0, i32 %1, i32 %2, i32* nocapture %3, double %4, double %5, double* nocapture %6, double* nocapture %7, double* nocapture %8, double* nocapture %9, double* nocapture %10, double* nocapture %11, double* nocapture %12, double* nocapture writeonly %13, double* nocapture writeonly %14, double* nocapture writeonly %15, double* nocapture writeonly %16, double* nocapture writeonly %17, double* nocapture writeonly %18) {
%20 = fmul double %4, %4
%21 = icmp sgt i32 %0, 0
br i1 %21, label %22, label %151
22: ; preds = %19
%23 = icmp sgt i32 %1, 0
%24 = icmp sgt i32 %2, 0
%25 = fneg double %20
%26 = fneg double %4
%27 = sext i32 %2 to i64
%28 = sext i32 %1 to i64
%29 = zext i32 %0 to i64
%30 = zext i32 %1 to i64
%31 = zext i32 %2 to i64
br label %32
32: ; preds = %22, %148
%33 = phi i64 [ 0, %22 ], [ %149, %148 ]
br i1 %23, label %34, label %148
34: ; preds = %32
%35 = getelementptr inbounds i32, i32* %3, i64 %33
%36 = load i32, i32* %35
%37 = mul nsw i64 %33, %28
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds double, double* %8, i64 %38
%40 = getelementptr inbounds double, double* %9, i64 %38
%41 = getelementptr inbounds double, double* %10, i64 %38
%42 = getelementptr inbounds double, double* %11, i64 %38
%43 = getelementptr inbounds double, double* %7, i64 %38
br label %44
44: ; preds = %34, %145
%45 = phi i64 [ 0, %34 ], [ %146, %145 ]
%46 = add nsw i64 %45, %37
%47 = getelementptr inbounds double, double* %12, i64 %46
%48 = load double, double* %47
%49 = load double, double* %39
%50 = fcmp olt double %48, 0.000000e+00
br i1 %50, label %51, label %96
51: ; preds = %44
%52 = fneg double %48
%53 = fdiv double 1.000000e+00, %49
%54 = fsub double 1.000000e+00, %53
%55 = load double, double* %43
%56 = fmul double %55, %52
%57 = fadd double %49, -2.000000e+00
%58 = tail call double @pow(double %56, double %57)
%59 = fmul double %58, %56
%60 = fmul double %56, %59
%61 = fadd double %60, 1.000000e+00
%62 = fneg double %54
%63 = tail call double @pow(double %61, double %62)
%64 = load double, double* %43
%65 = load double, double* %39
%66 = fsub double 1.000000e+00, %65
%67 = fmul double %64, %66
%68 = fdiv double %63, %61
%69 = fmul double %68, %67
%70 = fmul double %59, %69
%71 = fneg double %59
%72 = tail call double @llvm.fmuladd.f64(double %71, double %63, double 1.000000e+00)
%73 = fmul double %72, %72
%74 = fneg double %64
%75 = fadd double %65, -1.000000e+00
%76 = fmul double %75, %74
%77 = fmul double %58, %76
%78 = fmul double %70, %71
%79 = tail call double @llvm.fmuladd.f64(double %77, double %63, double %78)
%80 = load double, double* %41
%81 = load double, double* %40
%82 = tail call double @llvm.fmuladd.f64(double %80, double %63, double %81)
%83 = fmul double %80, %70
%84 = tail call double @sqrt(double %63)
%85 = load double, double* %42
%86 = fmul double %84, %85
%87 = fmul double %73, %86
%88 = fdiv double 5.000000e-01, %84
%89 = fmul double %88, %70
%90 = fmul double %84, 2.000000e+00
%91 = fmul double %72, %90
%92 = fmul double %91, %79
%93 = tail call double @llvm.fmuladd.f64(double %89, double %73, double %92)
%94 = fmul double %85, %93
%95 = load double, double* %47
br label %101
96: ; preds = %44
%97 = load double, double* %40
%98 = load double, double* %41
%99 = fadd double %97, %98
%100 = load double, double* %42
br label %101
101: ; preds = %96, %51
%102 = phi double [ %95, %51 ], [ %48, %96 ]
%103 = phi double [ %87, %51 ], [ %100, %96 ]
%104 = phi double [ %94, %51 ], [ 0.000000e+00, %96 ]
%105 = phi double [ %83, %51 ], [ 0.000000e+00, %96 ]
%106 = phi double [ %82, %51 ], [ %99, %96 ]
%107 = fmul double %102, %5
%108 = tail call double @exp(double %107)
%109 = fmul double %108, %4
%110 = fmul double %109, %5
%111 = fmul double %106, %109
%112 = getelementptr inbounds double, double* %13, i64 %46
store double %111, double* %112
%113 = fneg double %109
%114 = fmul double %106, %110
%115 = tail call double @llvm.fmuladd.f64(double %113, double %105, double %114)
%116 = getelementptr inbounds double, double* %14, i64 %46
store double %115, double* %116
br i1 %24, label %117, label %145
117: ; preds = %101
%118 = fmul double %20, %103
%119 = mul nsw i64 %46, %27
%120 = fmul double %104, %25
%121 = fmul double %103, %4
%122 = trunc i64 %46 to i32
%123 = mul i32 %122, %2
%124 = fmul double %104, %26
br label %125
125: ; preds = %117, %125
%126 = phi i64 [ 0, %117 ], [ %143, %125 ]
%127 = getelementptr inbounds double, double* %6, i64 %126
%128 = load double, double* %127
%129 = fmul double %118, %128
%130 = add nsw i64 %126, %119
%131 = getelementptr inbounds double, double* %15, i64 %130
store double %129, double* %131
%132 = load double, double* %127
%133 = fmul double %120, %132
%134 = getelementptr inbounds double, double* %16, i64 %130
store double %133, double* %134
%135 = trunc i64 %126 to i32
%136 = add i32 %123, %135
%137 = mul i32 %136, %2
%138 = trunc i64 %126 to i32
%139 = add i32 %137, %138
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %17, i64 %140
store double %121, double* %141
%142 = getelementptr inbounds double, double* %18, i64 %140
store double %124, double* %142
%143 = add nuw nsw i64 %126, 1
%144 = icmp eq i64 %143, %31
br i1 %144, label %145, label %125
145: ; preds = %125, %101
%146 = add nuw nsw i64 %45, 1
%147 = icmp eq i64 %146, %30
br i1 %147, label %148, label %44
148: ; preds = %145, %32
%149 = add nuw nsw i64 %33, 1
%150 = icmp eq i64 %149, %29
br i1 %150, label %151, label %32
151: ; preds = %148, %19
ret void
}