#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 sqrt(double);
void calculateSubgridError_ADR_tau_2(int nElements_global,
                                     int nQuadraturePoints_element, int nSpace,
                                     double *elementDiameter, double *dmt,
                                     double *df, double *a, double *da,
                                     double *grad_phi, double *dphi, double *dr,
                                     double *pe, double *cfl, double *tau) {
  int eN, k, I, J, nSpace2 = nSpace * nSpace;
  double h, Vlin, Alin, A_II, num, den, cfl1, cfl2, vlin[3];
  for (eN = 0; eN < nElements_global; eN++) {
    h = elementDiameter[eN];
    for (k = 0; k < nQuadraturePoints_element; k++) {
      Vlin = 0.0;
      Alin = 0.0;
      for (I = 0; I < nSpace; I++) {
        vlin[I] = df[eN * nQuadraturePoints_element * nSpace + k * nSpace + I];
        for (J = 0; J < nSpace; J++) {
          vlin[I] -= da[eN * nQuadraturePoints_element * nSpace2 + k * nSpace2 +
                        I * nSpace + J] *
                     grad_phi[eN * nQuadraturePoints_element * nSpace +
                              k * nSpace + J];
        }
      }
      for (I = 0; I < nSpace; I++)
        Vlin += vlin[I] * vlin[I];
      Vlin = sqrt(Vlin);
      for (I = 0; I < nSpace; I++) {
        A_II = a[eN * nQuadraturePoints_element * nSpace2 + k * nSpace2 +
                 I * nSpace + I];
        Alin = (A_II > Alin) ? A_II : Alin;
      }
      Alin *= dphi[eN * nQuadraturePoints_element + k];
      cfl1 = Vlin / h;
      cfl2 = Alin / (h * h);
      if (cfl1 > cfl2)
        cfl[eN * nQuadraturePoints_element + k] = cfl1;
      else
        cfl[eN * nQuadraturePoints_element + k] = cfl2;
      num = 0.5 * Vlin * h + 1.0e-8;
      den = Alin + num * 1.0e-8;
      tau[eN * nQuadraturePoints_element + k] =
          1.0 / sqrt((2.0 * Vlin / h) * (2.0 * Vlin / h) +
                     9.0 * (4.0 * Alin / (h * h)) * (4.0 * Alin / (h * h)) +
                     dr[eN * nQuadraturePoints_element + k] *
                         dr[eN * nQuadraturePoints_element + k] +
                     dmt[eN * nQuadraturePoints_element + k] *
                         dmt[eN * nQuadraturePoints_element + k] +
                     1.0e-8);
      pe[eN * nQuadraturePoints_element + k] = num / den;
    }
  }
}


x86 assembly (clang, -O0):
<calculateSubgridError_ADR_tau_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
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)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    15b0 <calculateSubgridError_ADR_tau_2+0x4a0>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    159d <calculateSubgridError_ADR_tau_2+0x48d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    129d <calculateSubgridError_ADR_tau_2+0x18d>
mov    -0x28(%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    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x34(%rbp),%rax
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    128a <calculateSubgridError_ADR_tau_2+0x17a>
mov    0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x3c(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x3c(%rbp),%edx
add    %edx,%ecx
mov    -0x34(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%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),%xmm2
movslq -0x34(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm1
ff ff
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11ec <calculateSubgridError_ADR_tau_2+0xdc>
jmp    128f <calculateSubgridError_ADR_tau_2+0x17f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a9 <calculateSubgridError_ADR_tau_2+0x99>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12ea <calculateSubgridError_ADR_tau_2+0x1da>
movslq -0x34(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x34(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12a4 <calculateSubgridError_ADR_tau_2+0x194>
movsd  -0x50(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1387 <calculateSubgridError_ADR_tau_2+0x277>
mov    0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
imul   -0x3c(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x3c(%rbp),%edx
add    %edx,%ecx
mov    -0x34(%rbp),%edx
imul   -0xc(%rbp),%edx
add    %edx,%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    135f <calculateSubgridError_ADR_tau_2+0x24f>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    136c <calculateSubgridError_ADR_tau_2+0x25c>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x58(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1300 <calculateSubgridError_ADR_tau_2+0x1f0>
mov    0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
ucomisd -0x80(%rbp),%xmm0
jbe    13fe <calculateSubgridError_ADR_tau_2+0x2ee>
movsd  -0x78(%rbp),%xmm0
mov    0x40(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1419 <calculateSubgridError_ADR_tau_2+0x309>
movsd  -0x80(%rbp),%xmm0
mov    0x40(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xc07(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbd1(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  0xbb6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xbb9(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
movsd  0xba7(%rip),%xmm2
mulsd  -0x50(%rbp),%xmm2
divsd  -0x48(%rbp),%xmm2
movsd  0xb85(%rip),%xmm3
mulsd  -0x58(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
divsd  %xmm1,%xmm3
movsd  0xb72(%rip),%xmm1
mulsd  %xmm3,%xmm1
movsd  0xb5e(%rip),%xmm3
mulsd  -0x58(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm4
mulsd  -0x48(%rbp),%xmm4
divsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x30(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x30(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%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
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xac7(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xaab(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
divsd  -0x70(%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    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1186 <calculateSubgridError_ADR_tau_2+0x76>
jmp    15a2 <calculateSubgridError_ADR_tau_2+0x492>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1161 <calculateSubgridError_ADR_tau_2+0x51>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculateSubgridError_ADR_tau_2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %r8,0xc0(%rsp)
mov    %rcx,0x80(%rsp)
mov    %esi,0x8(%rsp)
test   %edi,%edi
jle    16e7 <calculateSubgridError_ADR_tau_2+0x5d7>
mov    %edx,%r8d
mov    0x160(%rsp),%r10
mov    %edx,%ebx
imul   %r8d,%ebx
movslq %edx,%rcx
mov    %edi,%eax
mov    %rax,0x88(%rsp)
mov    %ecx,%r13d
mov    %r13d,%r14d
and    $0xfffffffe,%r14d
mov    %r13d,%eax
and    $0x3,%eax
mov    %rax,0xa8(%rsp)
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0xa0(%rsp)
mov    %ebx,%edx
mov    0x8(%rsp),%eax
imul   %eax,%edx
mov    %edx,0x3c(%rsp)
mov    %r8d,%edx
imul   %eax,%edx
mov    %edx,0x38(%rsp)
xorpd  %xmm4,%xmm4
movsd  0xe64(%rip),%xmm5
mov    0x158(%rsp),%rdx
cltq
mov    %rax,0x78(%rsp)
mov    %eax,%eax
mov    %rax,0xb8(%rsp)
lea    -0x1(%r13),%r12
lea    0x8(%rdx),%rax
mov    %rax,0x98(%rsp)
lea    0x0(,%rcx,8),%rax
mov    %rax,0xc8(%rsp)
lea    0x8(%r10),%rax
mov    %rax,0x90(%rsp)
lea    0x1(%rcx),%eax
mov    %eax,0x10(%rsp)
mov    %rcx,0xb0(%rsp)
lea    (%rcx,%rcx,1),%eax
add    $0x2,%eax
mov    %eax,0x14(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
mov    %r9,0x48(%rsp)
mov    %r8d,0x44(%rsp)
mov    %ebx,0x40(%rsp)
jmp    1269 <calculateSubgridError_ADR_tau_2+0x159>
nopl   0x0(%rax,%rax,1)
mov    0x20(%rsp),%rdx
add    $0x1,%rdx
mov    0x3c(%rsp),%eax
add    %eax,0xc(%rsp)
mov    0x28(%rsp),%rcx
add    0x38(%rsp),%ecx
mov    %rcx,0x28(%rsp)
add    %eax,0x10(%rsp)
mov    %rdx,%rax
mov    %rdx,0x20(%rsp)
cmp    0x88(%rsp),%rdx
je     16e7 <calculateSubgridError_ADR_tau_2+0x5d7>
cmpl   $0x0,0x8(%rsp)
jle    1230 <calculateSubgridError_ADR_tau_2+0x120>
mov    0x80(%rsp),%rax
mov    0x20(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm6
imul   0x78(%rsp),%rcx
mov    %rcx,0x30(%rsp)
movapd %xmm6,%xmm0
mulsd  %xmm6,%xmm0
movapd %xmm6,%xmm1
movapd %xmm0,0x100(%rsp)
unpcklpd %xmm0,%xmm1
movapd %xmm1,0xf0(%rsp)
mov    0x10(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x28(%rsp),%rax
mov    %eax,%edx
mov    0xc(%rsp),%ecx
xor    %ebp,%ebp
movapd %xmm6,0xd0(%rsp)
jmp    1392 <calculateSubgridError_ADR_tau_2+0x282>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r8d,%ebx
movapd %xmm3,0x50(%rsp)
movapd %xmm7,0xe0(%rsp)
call   1030 <sqrt@plt>
movapd 0xe0(%rsp),%xmm7
movapd 0x50(%rsp),%xmm3
mov    %ebx,%r8d
mov    0x40(%rsp),%ebx
movapd 0xd0(%rsp),%xmm6
movsd  0xcea(%rip),%xmm5
xorpd  %xmm4,%xmm4
mov    0x160(%rsp),%r10
mov    0x48(%rsp),%r9
mov    0x1c(%rsp),%edx
mov    0x4(%rsp),%ecx
movsd  0xce1(%rip),%xmm1
divsd  %xmm0,%xmm1
mulsd  %xmm6,%xmm7
addsd  %xmm5,%xmm7
movapd %xmm7,%xmm0
mulsd  %xmm5,%xmm0
addsd  %xmm3,%xmm0
mov    0x188(%rsp),%rax
movsd  %xmm1,(%rax,%r15,8)
divsd  %xmm0,%xmm7
mov    0x178(%rsp),%rax
movsd  %xmm7,(%rax,%r15,8)
add    $0x1,%rbp
add    %ebx,%ecx
add    %r8d,%edx
add    %ebx,0x18(%rsp)
cmp    0xb8(%rsp),%rbp
je     1230 <calculateSubgridError_ADR_tau_2+0x120>
xorpd  %xmm0,%xmm0
test   %r8d,%r8d
mov    %edx,0x1c(%rsp)
mov    %ecx,0x4(%rsp)
jle    1550 <calculateSubgridError_ADR_tau_2+0x440>
movslq %ecx,%rax
mov    0x98(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
movslq %edx,%rcx
mov    0x90(%rsp),%rdx
lea    (%rdx,%rcx,8),%rcx
mov    0x30(%rsp),%rdx
mov    %rbp,0x50(%rsp)
lea    (%rdx,%rbp,1),%esi
mov    %esi,%edx
imul   %r8d,%edx
mov    %ebx,%r11d
imul   %ebx,%esi
movslq %edx,%rdx
movslq %esi,%r15
xor    %ebp,%ebp
mov    0xb0(%rsp),%rsi
jmp    1407 <calculateSubgridError_ADR_tau_2+0x2f7>
movsd  %xmm1,0x60(%rsp,%rbp,8)
add    $0x1,%rbp
add    0xc8(%rsp),%rax
cmp    %r13,%rbp
je     1480 <calculateSubgridError_ADR_tau_2+0x370>
lea    (%rdx,%rbp,1),%rbx
movsd  (%r9,%rbx,8),%xmm1
xor    %ebx,%ebx
test   %r12,%r12
je     1447 <calculateSubgridError_ADR_tau_2+0x337>
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rax,%rbx,8),%xmm2
movsd  (%rax,%rbx,8),%xmm3
mulsd  -0x8(%rcx,%rbx,8),%xmm2
mulsd  (%rcx,%rbx,8),%xmm3
subsd  %xmm2,%xmm1
subsd  %xmm3,%xmm1
add    $0x2,%rbx
cmp    %rbx,%r14
jne    1420 <calculateSubgridError_ADR_tau_2+0x310>
test   $0x1,%r13b
je     13f0 <calculateSubgridError_ADR_tau_2+0x2e0>
mov    %rbp,%rdi
imul   %rsi,%rdi
add    %r15,%rdi
add    %rbx,%rdi
mov    0x158(%rsp),%r8
movsd  (%r8,%rdi,8),%xmm2
add    %rdx,%rbx
mulsd  (%r10,%rbx,8),%xmm2
subsd  %xmm2,%xmm1
jmp    13f0 <calculateSubgridError_ADR_tau_2+0x2e0>
nopw   0x0(%rax,%rax,1)
xorpd  %xmm3,%xmm3
mov    0x44(%rsp),%r8d
test   %r8d,%r8d
mov    %r11d,%ebx
mov    0xa8(%rsp),%rdx
mov    0xa0(%rsp),%rcx
mov    0x150(%rsp),%rsi
mov    0x14(%rsp),%edi
mov    0x50(%rsp),%rbp
jle    1610 <calculateSubgridError_ADR_tau_2+0x500>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
cmp    $0x3,%r12
jb     1511 <calculateSubgridError_ADR_tau_2+0x401>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x60(%rsp,%rax,8),%xmm1
movsd  0x68(%rsp,%rax,8),%xmm2
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0x70(%rsp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0x78(%rsp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x4,%rax
cmp    %rax,%rcx
jne    14d0 <calculateSubgridError_ADR_tau_2+0x3c0>
test   %rdx,%rdx
je     1536 <calculateSubgridError_ADR_tau_2+0x426>
lea    (%rsp,%rax,8),%rax
add    $0x60,%rax
xor    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rcx
cmp    %rcx,%rdx
jne    1520 <calculateSubgridError_ADR_tau_2+0x410>
ucomisd %xmm4,%xmm0
jb     1559 <calculateSubgridError_ADR_tau_2+0x449>
sqrtsd %xmm0,%xmm0
jmp    1597 <calculateSubgridError_ADR_tau_2+0x487>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorpd  %xmm3,%xmm3
jmp    1610 <calculateSubgridError_ADR_tau_2+0x500>
mov    %r8d,%ebp
call   1030 <sqrt@plt>
mov    %ebp,%r8d
mov    0x50(%rsp),%rbp
movapd 0xd0(%rsp),%xmm6
mov    0x14(%rsp),%edi
mov    0x150(%rsp),%rsi
movsd  0xa82(%rip),%xmm5
xorpd  %xmm4,%xmm4
mov    0x160(%rsp),%r10
mov    0x48(%rsp),%r9
xorpd  %xmm3,%xmm3
test   %r8d,%r8d
jle    1610 <calculateSubgridError_ADR_tau_2+0x500>
test   %r12,%r12
je     16d6 <calculateSubgridError_ADR_tau_2+0x5c6>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
mov    0x18(%rsp),%eax
mov    %eax,%edx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movslq %ecx,%rcx
movsd  (%rsi,%rcx,8),%xmm1
maxsd  %xmm3,%xmm1
movslq %edx,%rdx
movsd  (%rsi,%rdx,8),%xmm3
maxsd  %xmm1,%xmm3
add    $0x2,%rax
add    %edi,%edx
add    %edi,%ecx
cmp    %rax,%r14
jne    15c0 <calculateSubgridError_ADR_tau_2+0x4b0>
test   $0x1,%r13b
je     1610 <calculateSubgridError_ADR_tau_2+0x500>
mov    0x30(%rsp),%rcx
add    %ebp,%ecx
imul   %ebx,%ecx
add    %eax,%ecx
imul   %r8d,%eax
add    %ecx,%eax
cltq
movsd  (%rsi,%rax,8),%xmm1
maxsd  %xmm3,%xmm1
movapd %xmm1,%xmm3
nopl   0x0(%rax)
mov    0x30(%rsp),%rax
lea    (%rax,%rbp,1),%r15
mov    0x168(%rsp),%rax
mulsd  (%rax,%r15,8),%xmm3
movapd %xmm0,%xmm1
unpcklpd %xmm3,%xmm1
divpd  0xf0(%rsp),%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
maxsd  %xmm2,%xmm1
mov    0x180(%rsp),%rax
movsd  %xmm1,(%rax,%r15,8)
movapd %xmm0,%xmm7
mulsd  0x9a2(%rip),%xmm7
addsd  %xmm0,%xmm0
divsd  %xmm6,%xmm0
movapd %xmm3,%xmm1
mulsd  0x99e(%rip),%xmm1
divsd  0x100(%rsp),%xmm1
movapd %xmm1,%xmm2
mulsd  0x991(%rip),%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
mov    0x170(%rsp),%rax
movsd  (%rax,%r15,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mov    0xc0(%rsp),%rax
movsd  (%rax,%r15,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
addsd  %xmm5,%xmm0
ucomisd %xmm4,%xmm0
jb     12e0 <calculateSubgridError_ADR_tau_2+0x1d0>
sqrtsd %xmm0,%xmm0
jmp    132f <calculateSubgridError_ADR_tau_2+0x21f>
xor    %eax,%eax
test   $0x1,%r13b
jne    15eb <calculateSubgridError_ADR_tau_2+0x4db>
jmp    1610 <calculateSubgridError_ADR_tau_2+0x500>
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @calculateSubgridError_ADR_tau_2(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 %9, double* nocapture %10, double* nocapture writeonly %11, double* nocapture writeonly %12, double* nocapture writeonly %13) {
%15 = alloca [3 x double]
%16 = mul nsw i32 %2, %2
%17 = bitcast [3 x double]* %15 to i8*
%18 = icmp sgt i32 %0, 0
br i1 %18, label %19, label %239
19: ; preds = %14
%20 = icmp sgt i32 %1, 0
%21 = icmp sgt i32 %2, 0
%22 = sext i32 %2 to i64
%23 = sext i32 %1 to i64
%24 = zext i32 %0 to i64
%25 = zext i32 %1 to i64
%26 = zext i32 %2 to i64
%27 = add nsw i64 %26, -1
%28 = and i64 %26, 1
%29 = icmp eq i64 %27, 0
%30 = and i64 %26, 4294967294
%31 = icmp eq i64 %28, 0
%32 = and i64 %26, 3
%33 = icmp ult i64 %27, 3
%34 = and i64 %26, 4294967292
%35 = icmp eq i64 %32, 0
%36 = and i64 %26, 1
%37 = icmp eq i64 %27, 0
%38 = and i64 %26, 4294967294
%39 = icmp eq i64 %36, 0
br label %40
40: ; preds = %19, %236
%41 = phi i64 [ 0, %19 ], [ %237, %236 ]
%42 = getelementptr inbounds double, double* %3, i64 %41
%43 = load double, double* %42
br i1 %20, label %44, label %236
44: ; preds = %40
%45 = mul nsw i64 %41, %23
%46 = fmul double %43, %43
%47 = trunc i64 %45 to i32
%48 = trunc i64 %45 to i32
%49 = insertelement <2 x double> poison, double %43, i64 0
%50 = insertelement <2 x double> %49, double %46, i64 1
br label %51
51: ; preds = %44, %197
%52 = phi i64 [ 0, %44 ], [ %234, %197 ]
br i1 %21, label %53, label %197
53: ; preds = %51
%54 = trunc i64 %52 to i32
%55 = add i32 %54, %47
%56 = mul i32 %55, %2
%57 = mul i32 %55, %16
%58 = sext i32 %56 to i64
%59 = sext i32 %57 to i64
br label %62
60: ; preds = %107
br i1 %21, label %61, label %197
61: ; preds = %60
br i1 %33, label %133, label %111
62: ; preds = %107, %53
%63 = phi i64 [ 0, %53 ], [ %109, %107 ]
%64 = add nsw i64 %63, %58
%65 = getelementptr inbounds double, double* %5, i64 %64
%66 = load double, double* %65
%67 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %63
%68 = mul nsw i64 %63, %22
%69 = add nsw i64 %68, %59
br i1 %29, label %94, label %70
70: ; preds = %62, %70
%71 = phi i64 [ %91, %70 ], [ 0, %62 ]
%72 = phi double [ %90, %70 ], [ %66, %62 ]
%73 = phi i64 [ %92, %70 ], [ 0, %62 ]
%74 = add nsw i64 %69, %71
%75 = getelementptr inbounds double, double* %7, i64 %74
%76 = load double, double* %75
%77 = add nsw i64 %71, %58
%78 = getelementptr inbounds double, double* %8, i64 %77
%79 = load double, double* %78
%80 = fneg double %76
%81 = tail call double @llvm.fmuladd.f64(double %80, double %79, double %72)
%82 = or i64 %71, 1
%83 = add nsw i64 %69, %82
%84 = getelementptr inbounds double, double* %7, i64 %83
%85 = load double, double* %84
%86 = add nsw i64 %82, %58
%87 = getelementptr inbounds double, double* %8, i64 %86
%88 = load double, double* %87
%89 = fneg double %85
%90 = tail call double @llvm.fmuladd.f64(double %89, double %88, double %81)
%91 = add nuw nsw i64 %71, 2
%92 = add i64 %73, 2
%93 = icmp eq i64 %92, %30
br i1 %93, label %94, label %70
94: ; preds = %70, %62
%95 = phi double [ undef, %62 ], [ %90, %70 ]
%96 = phi i64 [ 0, %62 ], [ %91, %70 ]
%97 = phi double [ %66, %62 ], [ %90, %70 ]
br i1 %31, label %107, label %98
98: ; preds = %94
%99 = add nsw i64 %69, %96
%100 = getelementptr inbounds double, double* %7, i64 %99
%101 = load double, double* %100
%102 = add nsw i64 %96, %58
%103 = getelementptr inbounds double, double* %8, i64 %102
%104 = load double, double* %103
%105 = fneg double %101
%106 = tail call double @llvm.fmuladd.f64(double %105, double %104, double %97)
br label %107
107: ; preds = %94, %98
%108 = phi double [ %95, %94 ], [ %106, %98 ]
store double %108, double* %67
%109 = add nuw nsw i64 %63, 1
%110 = icmp eq i64 %109, %26
br i1 %110, label %60, label %62
111: ; preds = %61, %111
%112 = phi i64 [ %130, %111 ], [ 0, %61 ]
%113 = phi double [ %129, %111 ], [ 0.000000e+00, %61 ]
%114 = phi i64 [ %131, %111 ], [ 0, %61 ]
%115 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %112
%116 = load double, double* %115
%117 = tail call double @llvm.fmuladd.f64(double %116, double %116, double %113)
%118 = or i64 %112, 1
%119 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %118
%120 = load double, double* %119
%121 = tail call double @llvm.fmuladd.f64(double %120, double %120, double %117)
%122 = or i64 %112, 2
%123 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %122
%124 = load double, double* %123
%125 = tail call double @llvm.fmuladd.f64(double %124, double %124, double %121)
%126 = or i64 %112, 3
%127 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %126
%128 = load double, double* %127
%129 = tail call double @llvm.fmuladd.f64(double %128, double %128, double %125)
%130 = add nuw nsw i64 %112, 4
%131 = add i64 %114, 4
%132 = icmp eq i64 %131, %34
br i1 %132, label %133, label %111
133: ; preds = %111, %61
%134 = phi double [ undef, %61 ], [ %129, %111 ]
%135 = phi i64 [ 0, %61 ], [ %130, %111 ]
%136 = phi double [ 0.000000e+00, %61 ], [ %129, %111 ]
br i1 %35, label %147, label %137
137: ; preds = %133, %137
%138 = phi i64 [ %144, %137 ], [ %135, %133 ]
%139 = phi double [ %143, %137 ], [ %136, %133 ]
%140 = phi i64 [ %145, %137 ], [ 0, %133 ]
%141 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %138
%142 = load double, double* %141
%143 = tail call double @llvm.fmuladd.f64(double %142, double %142, double %139)
%144 = add nuw nsw i64 %138, 1
%145 = add i64 %140, 1
%146 = icmp eq i64 %145, %32
br i1 %146, label %147, label %137
147: ; preds = %137, %133
%148 = phi double [ %134, %133 ], [ %143, %137 ]
%149 = tail call double @sqrt(double %148)
br i1 %21, label %150, label %197
150: ; preds = %147
%151 = trunc i64 %52 to i32
%152 = add i32 %151, %48
%153 = mul i32 %152, %16
br i1 %37, label %182, label %154
154: ; preds = %150, %154
%155 = phi i64 [ %179, %154 ], [ 0, %150 ]
%156 = phi double [ %178, %154 ], [ 0.000000e+00, %150 ]
%157 = phi i64 [ %180, %154 ], [ 0, %150 ]
%158 = trunc i64 %155 to i32
%159 = add i32 %153, %158
%160 = trunc i64 %155 to i32
%161 = mul i32 %160, %2
%162 = add i32 %159, %161
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, double* %6, i64 %163
%165 = load double, double* %164
%166 = fcmp ogt double %165, %156
%167 = select i1 %166, double %165, double %156
%168 = or i64 %155, 1
%169 = trunc i64 %168 to i32
%170 = add i32 %153, %169
%171 = trunc i64 %168 to i32
%172 = mul i32 %171, %2
%173 = add i32 %170, %172
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, double* %6, i64 %174
%176 = load double, double* %175
%177 = fcmp ogt double %176, %167
%178 = select i1 %177, double %176, double %167
%179 = add nuw nsw i64 %155, 2
%180 = add i64 %157, 2
%181 = icmp eq i64 %180, %38
br i1 %181, label %182, label %154
182: ; preds = %154, %150
%183 = phi double [ undef, %150 ], [ %178, %154 ]
%184 = phi i64 [ 0, %150 ], [ %179, %154 ]
%185 = phi double [ 0.000000e+00, %150 ], [ %178, %154 ]
br i1 %39, label %197, label %186
186: ; preds = %182
%187 = trunc i64 %184 to i32
%188 = add i32 %153, %187
%189 = trunc i64 %184 to i32
%190 = mul i32 %189, %2
%191 = add i32 %188, %190
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %6, i64 %192
%194 = load double, double* %193
%195 = fcmp ogt double %194, %185
%196 = select i1 %195, double %194, double %185
br label %197
197: ; preds = %186, %182, %51, %60, %147
%198 = phi double [ %149, %147 ], [ 0.000000e+00, %60 ], [ 0.000000e+00, %51 ], [ %149, %182 ], [ %149, %186 ]
%199 = phi double [ 0.000000e+00, %147 ], [ 0.000000e+00, %60 ], [ 0.000000e+00, %51 ], [ %183, %182 ], [ %196, %186 ]
%200 = add nsw i64 %52, %45
%201 = getelementptr inbounds double, double* %9, i64 %200
%202 = load double, double* %201
%203 = fmul double %199, %202
%204 = insertelement <2 x double> poison, double %198, i64 0
%205 = insertelement <2 x double> %204, double %203, i64 1
%206 = fdiv <2 x double> %205, %50
%207 = extractelement <2 x double> %206, i64 0
%208 = extractelement <2 x double> %206, i64 1
%209 = fcmp ogt double %207, %208
%210 = select i1 %209, double %207, double %208
%211 = getelementptr inbounds double, double* %12, i64 %200
store double %210, double* %211
%212 = fmul double %198, 5.000000e-01
%213 = tail call double @llvm.fmuladd.f64(double %212, double %43, double 1.000000e-08)
%214 = tail call double @llvm.fmuladd.f64(double %213, double 1.000000e-08, double %203)
%215 = fmul double %198, 2.000000e+00
%216 = fdiv double %215, %43
%217 = fmul double %203, 4.000000e+00
%218 = fdiv double %217, %46
%219 = fmul double %218, 9.000000e+00
%220 = fmul double %218, %219
%221 = tail call double @llvm.fmuladd.f64(double %216, double %216, double %220)
%222 = getelementptr inbounds double, double* %10, i64 %200
%223 = load double, double* %222
%224 = tail call double @llvm.fmuladd.f64(double %223, double %223, double %221)
%225 = getelementptr inbounds double, double* %4, i64 %200
%226 = load double, double* %225
%227 = tail call double @llvm.fmuladd.f64(double %226, double %226, double %224)
%228 = fadd double %227, 1.000000e-08
%229 = tail call double @sqrt(double %228)
%230 = fdiv double 1.000000e+00, %229
%231 = getelementptr inbounds double, double* %13, i64 %200
store double %230, double* %231
%232 = fdiv double %213, %214
%233 = getelementptr inbounds double, double* %11, i64 %200
store double %232, double* %233
%234 = add nuw nsw i64 %52, 1
%235 = icmp eq i64 %234, %25
br i1 %235, label %236, label %51
236: ; preds = %197, %40
%237 = add nuw nsw i64 %41, 1
%238 = icmp eq i64 %237, %24
br i1 %238, label %239, label %40
239: ; preds = %236, %14
ret void
}