#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 fmax(double, double);
double sqrt(double);
void calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau(
    int nElements_global, int nQuadraturePoints_element, int nSpace,
    double *inverseJ, double *dmt, double *dm, double *f, double *a, double *dr,
    double *tau0, double *tau1, double *cfl) {
  int eN, k, nSpace2 = nSpace * nSpace, I, J, K;
  double h, density, viscosity, Re_max = 0.0, CFL_max = 0.0, nrm_v, G_IJ,
                                v_dot_Gv, CI_nu2_G_ddot_G, Gv_I, CI = 36.0, g_I,
                                g_dot_g, den;
  for (eN = 0; eN < nElements_global; eN++) {
    for (k = 0; k < nQuadraturePoints_element; k++) {
      v_dot_Gv = 0.0;
      CI_nu2_G_ddot_G = 0.0;
      g_dot_g = 0.0;
      for (I = 0; I < nSpace; I++) {
        Gv_I = 0.0;
        g_I = 0.0;
        for (J = 0; J < nSpace; J++) {
          G_IJ = 0.0;
          for (K = 0; K < nSpace; K++)
            G_IJ += inverseJ[eN * nQuadraturePoints_element * nSpace2 +
                             k * nSpace2 + K * nSpace + I] *
                    inverseJ[eN * nQuadraturePoints_element * nSpace2 +
                             k * nSpace2 + K * nSpace + J];
          Gv_I += G_IJ *
                  f[eN * nQuadraturePoints_element * nSpace + k * nSpace + J];
          CI_nu2_G_ddot_G += G_IJ * G_IJ;
          g_I += inverseJ[eN * nQuadraturePoints_element * nSpace2 +
                          k * nSpace2 + J * nSpace + I];
        }
        g_dot_g += g_I * g_I;
        v_dot_Gv +=
            f[eN * nQuadraturePoints_element * nSpace + k * nSpace + I] * Gv_I;
      }
      density = dm[eN * nQuadraturePoints_element + k];
      viscosity =
          0.5 * a[eN * nQuadraturePoints_element * nSpace2 + k * nSpace2];
      CI_nu2_G_ddot_G *= CI * viscosity * viscosity;
      nrm_v = sqrt(v_dot_Gv);
      Re_max = fmax(nrm_v / (viscosity / density), Re_max);
      CFL_max = fmax(nrm_v, CFL_max);
      cfl[eN * nQuadraturePoints_element + k] = nrm_v / h;
      den = sqrt(4.0 * dmt[eN * nQuadraturePoints_element + k] *
                     dmt[eN * nQuadraturePoints_element + k] +
                 4.0 * dr[eN * nQuadraturePoints_element + k] *
                     dr[eN * nQuadraturePoints_element + k] +
                 v_dot_Gv + CI_nu2_G_ddot_G + 1.0e-8);
      if (den > 1.0e-8) {
        tau0[eN * nQuadraturePoints_element + k] = 1.0 / den;
        tau1[eN * nQuadraturePoints_element + k] =
            1.0 / (tau0[eN * nQuadraturePoints_element + k] * g_dot_g);
      } else {
        tau0[eN * nQuadraturePoints_element + k] = 0.0;
        tau1[eN * nQuadraturePoints_element + k] = 0.0;
      }
    }
  }
}


x86 assembly (clang, -O0):
<calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
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)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x34(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe96(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1618 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x508>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1605 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x4f5>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13a4 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x294>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1331 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x221>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1285 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x175>
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x34(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x34(%rbp),%edx
add    %edx,%ecx
mov    -0x40(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x34(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x34(%rbp),%edx
add    %edx,%ecx
mov    -0x40(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1201 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0xf1>
movsd  -0x78(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x34(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x34(%rbp),%edx
add    %edx,%ecx
mov    -0x3c(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11e6 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0xd6>
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11bd <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0xad>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x34(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x34(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  0xc36(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm3
movsd  -0x58(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
divsd  %xmm0,%xmm3
movsd  -0x60(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x70(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x70(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x38(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xb52(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xb1e(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
mov    0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x80(%rbp),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  0xade(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  0xabd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    15c0 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x4b0>
movsd  0xac3(%rip),%xmm0
divsd  -0xb0(%rbp),%xmm0
ff
mov    0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  -0xa8(%rbp),%xmm1
ff
movsd  0xa7f(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    0x30(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    15f2 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x4e2>
mov    0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x30(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    15f7 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x4e7>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    118c <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x7c>
jmp    160a <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x4fa>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1179 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x69>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r8,0x80(%rsp)
mov    %esi,0x4(%rsp)
test   %edi,%edi
jle    1560 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x450>
mov    %rcx,%r12
mov    %edx,%ebp
mov    %edx,%r8d
imul   %ebp,%r8d
movslq %edx,%rcx
mov    0x4(%rsp),%eax
movslq %eax,%rdx
mov    %edi,%esi
mov    %rsi,0x68(%rsp)
mov    %rdx,0x60(%rsp)
mov    %edx,%edx
mov    %rdx,0x78(%rsp)
mov    %ecx,%r14d
mov    %r14,0x90(%rsp)
and    $0xfffffffe,%r14d
mov    %r8d,%edx
imul   %eax,%edx
mov    %edx,0x38(%rsp)
mov    %rcx,%r13
shl    $0x4,%r13
xorpd  %xmm8,%xmm8
movsd  0xe8d(%rip),%xmm6
mov    %rcx,0x88(%rsp)
lea    0x0(,%rcx,8),%rax
mov    %rax,0x70(%rsp)
xor    %eax,%eax
mov    %rax,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    %ebp,0x3c(%rsp)
mov    %r8d,0x8(%rsp)
jmp    11ea <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0xda>
nopl   0x0(%rax)
mov    0x10(%rsp),%rcx
add    $0x1,%rcx
mov    0x18(%rsp),%rax
add    0x38(%rsp),%eax
mov    %rax,0x18(%rsp)
mov    %rcx,%rax
mov    %rcx,0x10(%rsp)
cmp    0x68(%rsp),%rcx
je     1560 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x450>
cmpl   $0x0,0x4(%rsp)
jle    11c0 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0xb0>
mov    0x10(%rsp),%rax
imul   0x60(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    0x18(%rsp),%rax
mov    %eax,%ecx
xor    %edx,%edx
jmp    1238 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x128>
nopl   0x0(%rax)
mov    0xe8(%rsp),%rax
movsd  %xmm1,(%rax,%rsi,8)
mov    0xf0(%rsp),%rax
movsd  %xmm2,(%rax,%rsi,8)
add    $0x1,%rdx
add    %r8d,%ecx
cmp    0x78(%rsp),%rdx
je     11c0 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0xb0>
test   %ebp,%ebp
mov    %ecx,0xc(%rsp)
mov    %rdx,0x48(%rsp)
jle    13f0 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x2e0>
movslq %ecx,%rcx
mov    0x70(%rsp),%rax
lea    (%rax,%rcx,8),%rsi
shl    $0x3,%rcx
mov    0x40(%rsp),%rax
add    %edx,%eax
mov    %eax,%edx
imul   %r8d,%edx
imul   %ebp,%eax
mov    %rdx,0x20(%rsp)
movslq %edx,%rdx
mov    %rdx,0x50(%rsp)
movslq %eax,%rdi
xorpd  %xmm1,%xmm1
xorpd  %xmm4,%xmm4
mov    %rcx,0x30(%rsp)
mov    %rcx,%rax
mov    %rsi,0x28(%rsp)
mov    %rsi,%rcx
xor    %edx,%edx
jmp    12da <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x1ca>
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%rdx,%rdi,1),%rsi
mov    0xd0(%rsp),%rbx
movsd  (%rbx,%rsi,8),%xmm2
unpcklpd %xmm1,%xmm2
unpcklpd %xmm1,%xmm7
mulpd  %xmm2,%xmm7
movapd %xmm7,%xmm1
addpd  %xmm0,%xmm1
add    $0x1,%rdx
add    $0x8,%rcx
add    $0x8,%rax
cmp    %r11,%rdx
je     13e0 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x2d0>
movapd %xmm1,%xmm0
mov    0x20(%rsp),%rsi
add    %edx,%esi
mov    0x30(%rsp),%r9
mov    0x28(%rsp),%r8
xor    %r10d,%r10d
xorpd  %xmm1,%xmm1
xorpd  %xmm7,%xmm7
jmp    134c <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x23c>
nopl   0x0(%rax)
lea    (%r10,%rdi,1),%rbx
mov    0xd0(%rsp),%rbp
movsd  0x0(%rbp,%rbx,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm3,%xmm7
mulsd  %xmm2,%xmm2
addsd  %xmm2,%xmm4
mov    %r10d,%ebx
mov    0x3c(%rsp),%ebp
imul   %ebp,%ebx
add    %esi,%ebx
movslq %ebx,%rbx
addsd  (%r12,%rbx,8),%xmm1
add    $0x1,%r10
add    $0x8,%r8
add    $0x8,%r9
cmp    %r11,%r10
je     12a0 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x190>
xorpd  %xmm2,%xmm2
cmp    $0x1,%ebp
jne    1360 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x250>
xor    %r15d,%r15d
jmp    139a <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x28a>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rbx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%rax,1),%xmm3
mulsd  (%rbx,%r9,1),%xmm3
addsd  %xmm2,%xmm3
movsd  (%rbx,%rcx,1),%xmm2
mulsd  (%rbx,%r8,1),%xmm2
addsd  %xmm3,%xmm2
add    $0x2,%r15
add    %r13,%rbx
cmp    %r15,%r14
jne    1370 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x260>
mov    0x90(%rsp),%r11
test   $0x1,%r11b
je     1300 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x1f0>
imul   0x88(%rsp),%r15
add    0x50(%rsp),%r15
lea    (%r15,%rdx,1),%rbx
movsd  (%r12,%rbx,8),%xmm3
add    %r10,%r15
mulsd  (%r12,%r15,8),%xmm3
addsd  %xmm3,%xmm2
jmp    1300 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x1f0>
cs nopw 0x0(%rax,%rax,1)
addpd  %xmm0,%xmm7
mov    0x8(%rsp),%r8d
mov    0x48(%rsp),%rdx
jmp    13f8 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x2e8>
xorpd  %xmm7,%xmm7
xorpd  %xmm4,%xmm4
mov    0x40(%rsp),%rax
lea    (%rdx,%rax,1),%rsi
mov    %r8d,%eax
imul   %esi,%eax
cltq
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
mulsd  0xbe2(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  0xbde(%rip),%xmm1
ucomisd %xmm8,%xmm7
movapd %xmm7,0x50(%rsp)
jae    1488 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x378>
movsd  %xmm0,0x28(%rsp)
movapd %xmm7,%xmm0
mov    %rdx,%r15
movsd  %xmm4,0x30(%rsp)
mov    %rsi,%rbx
movsd  %xmm1,0x20(%rsp)
call   1030 <sqrt@plt>
movsd  0x20(%rsp),%xmm1
movsd  0x28(%rsp),%xmm0
mov    0x8(%rsp),%r8d
mov    %rbx,%rsi
movsd  0x30(%rsp),%xmm4
movapd 0x50(%rsp),%xmm7
mov    %r15,%rdx
movsd  0xb95(%rip),%xmm6
xorpd  %xmm8,%xmm8
mulsd  %xmm1,%xmm0
mulsd  %xmm0,%xmm4
mov    0xf8(%rsp),%rax
movabs $0x7ff8000000000000,%rcx
mov    %rcx,(%rax,%rsi,8)
mov    0x80(%rsp),%rax
movsd  (%rax,%rsi,8),%xmm1
movapd %xmm1,%xmm0
movsd  0xb51(%rip),%xmm5
mulsd  %xmm5,%xmm0
mov    0xe0(%rsp),%rax
movsd  (%rax,%rsi,8),%xmm2
movapd %xmm2,%xmm3
mulsd  %xmm5,%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
addsd  %xmm7,%xmm0
addsd  %xmm4,%xmm0
addsd  %xmm6,%xmm0
ucomisd %xmm8,%xmm0
jb     1500 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x3f0>
sqrtsd %xmm0,%xmm0
jmp    1529 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x419>
nopl   (%rax)
mov    %rsi,%r15
mov    %r8d,%ebx
call   1030 <sqrt@plt>
mov    %ebx,%r8d
mov    %r15,%rsi
movapd 0x50(%rsp),%xmm7
mov    0x48(%rsp),%rdx
movsd  0xaf4(%rip),%xmm6
xorpd  %xmm8,%xmm8
mov    0xc(%rsp),%ecx
xorpd  %xmm1,%xmm1
ucomisd %xmm6,%xmm0
xorpd  %xmm2,%xmm2
jbe    1210 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x100>
movsd  0xad9(%rip),%xmm2
movapd %xmm2,%xmm1
divsd  %xmm0,%xmm1
unpckhpd %xmm7,%xmm7
mulsd  %xmm1,%xmm7
divsd  %xmm7,%xmm2
jmp    1210 <calculateSubgridErrorNavierStokes2D_generic_withBodyForce_tau+0x100>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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