#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 fabs(double);
double sqrt(double);
void calculateSubgridError_ADR_tau_1(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], tauMax;
  for (eN = 0; eN < nElements_global; eN++) {
    h = elementDiameter[eN];
    tauMax = 0.0;
    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;
      pe[eN * nQuadraturePoints_element + k] = num / den;
      tau[eN * nQuadraturePoints_element + k] =
          1.0 / ((2.0 * Vlin / h) + (4.0 * Alin / (h * h)) +
                 fabs(dr[eN * nQuadraturePoints_element + k]) +
                 fabs(dmt[eN * nQuadraturePoints_element + k]) + 1.0e-8);
    }
  }
}


x86 assembly (clang, -O0):
<calculateSubgridError_ADR_tau_1>:
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    153d <calculateSubgridError_ADR_tau_1+0x42d>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    152a <calculateSubgridError_ADR_tau_1+0x41a>
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    1291 <calculateSubgridError_ADR_tau_1+0x181>
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    127e <calculateSubgridError_ADR_tau_1+0x16e>
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
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    11f7 <calculateSubgridError_ADR_tau_1+0xe7>
jmp    1283 <calculateSubgridError_ADR_tau_1+0x173>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11b4 <calculateSubgridError_ADR_tau_1+0xa4>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12de <calculateSubgridError_ADR_tau_1+0x1ce>
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    1298 <calculateSubgridError_ADR_tau_1+0x188>
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    137b <calculateSubgridError_ADR_tau_1+0x26b>
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    1353 <calculateSubgridError_ADR_tau_1+0x243>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
jmp    1360 <calculateSubgridError_ADR_tau_1+0x250>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x58(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12f4 <calculateSubgridError_ADR_tau_1+0x1e4>
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    13f2 <calculateSubgridError_ADR_tau_1+0x2e2>
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    140d <calculateSubgridError_ADR_tau_1+0x2fd>
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  0xc0b(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbdd(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  0xbc2(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
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)
movsd  0xb9d(%rip),%xmm1
mulsd  -0x50(%rbp),%xmm1
divsd  -0x48(%rbp),%xmm1
movsd  0xb83(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  -0x48(%rbp),%xmm2
divsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
mov    0x30(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xb6f(%rip),%xmm2
pand   %xmm2,%xmm0
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
movaps 0xb4a(%rip),%xmm2
pand   %xmm2,%xmm0
addsd  %xmm0,%xmm1
movsd  0xb12(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xafe(%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)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1191 <calculateSubgridError_ADR_tau_1+0x81>
jmp    152f <calculateSubgridError_ADR_tau_1+0x41f>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1161 <calculateSubgridError_ADR_tau_1+0x51>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculateSubgridError_ADR_tau_1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %r8,0xb0(%rsp)
mov    %rcx,0x70(%rsp)
mov    %edx,0x8(%rsp)
mov    %esi,0x14(%rsp)
test   %edi,%edi
jle    16a9 <calculateSubgridError_ADR_tau_1+0x599>
mov    0x140(%rsp),%rcx
mov    0x8(%rsp),%edx
mov    %edx,%r10d
imul   %edx,%r10d
movslq %edx,%rsi
mov    %edi,%eax
mov    %rax,0x78(%rsp)
mov    %esi,%r13d
mov    %r13d,%r14d
and    $0xfffffffe,%r14d
mov    %r13d,%edi
and    $0x3,%edi
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x80(%rsp)
mov    %r10d,%ebx
mov    0x14(%rsp),%eax
imul   %eax,%ebx
mov    %ebx,0x4c(%rsp)
mov    %edx,%ebx
imul   %eax,%ebx
mov    %ebx,0x48(%rsp)
xorpd  %xmm8,%xmm8
movsd  0xe63(%rip),%xmm5
movsd  0xe63(%rip),%xmm6
movsd  0xe63(%rip),%xmm7
movapd 0xe6b(%rip),%xmm4
movsd  0xe5a(%rip),%xmm9
mov    0x138(%rsp),%rbp
mov    0x130(%rsp),%rbx
cltq
mov    %rax,0x68(%rsp)
mov    %eax,%eax
mov    %rax,0xa8(%rsp)
lea    -0x1(%r13),%r12
lea    0x8(%rbp),%rax
mov    %rax,0x98(%rsp)
mov    %rbx,%rbp
lea    0x0(,%rsi,8),%r15
lea    0x8(%rcx),%rax
mov    %rax,0x90(%rsp)
lea    0x1(%rsi),%eax
mov    %eax,0x1c(%rsp)
mov    %rsi,0xb8(%rsp)
lea    (%rsi,%rsi,1),%ebx
add    $0x2,%ebx
xor    %eax,%eax
mov    %rax,0x38(%rsp)
movl   $0x0,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x30(%rsp)
mov    %r9,0x88(%rsp)
mov    %r10d,0x20(%rsp)
mov    %rdi,0xa0(%rsp)
jmp    1286 <calculateSubgridError_ADR_tau_1+0x176>
nopl   0x0(%rax,%rax,1)
mov    0x30(%rsp),%rdx
add    $0x1,%rdx
mov    0x4c(%rsp),%eax
add    %eax,0x18(%rsp)
mov    0x38(%rsp),%rcx
add    0x48(%rsp),%ecx
mov    %rcx,0x38(%rsp)
add    %eax,0x1c(%rsp)
mov    %rdx,%rax
mov    %rdx,0x30(%rsp)
cmp    0x78(%rsp),%rdx
je     16a9 <calculateSubgridError_ADR_tau_1+0x599>
cmpl   $0x0,0x14(%rsp)
jle    1250 <calculateSubgridError_ADR_tau_1+0x140>
mov    0x70(%rsp),%rax
mov    0x30(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm10
imul   0x68(%rsp),%rcx
mov    %rcx,0x40(%rsp)
movapd %xmm10,%xmm11
mulsd  %xmm10,%xmm11
movapd %xmm10,%xmm12
unpcklpd %xmm11,%xmm12
mov    0x1c(%rsp),%r8d
mov    0x38(%rsp),%rax
mov    %eax,%esi
mov    0x18(%rsp),%eax
xor    %ecx,%ecx
mov    %rcx,0x28(%rsp)
movapd %xmm10,0xe0(%rsp)
movapd %xmm11,0xd0(%rsp)
movapd %xmm12,0xc0(%rsp)
jmp    13f4 <calculateSubgridError_ADR_tau_1+0x2e4>
cs nopw 0x0(%rax,%rax,1)
xorpd  %xmm1,%xmm1
mov    0x40(%rsp),%rax
mov    0x28(%rsp),%rdx
add    %rdx,%rax
mov    0x148(%rsp),%rcx
mulsd  (%rcx,%rax,8),%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm1,%xmm2
divpd  %xmm12,%xmm2
movapd %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
maxsd  %xmm3,%xmm2
mov    0x160(%rsp),%rcx
movsd  %xmm2,(%rcx,%rax,8)
movapd %xmm0,%xmm2
mulsd  %xmm5,%xmm2
mulsd  %xmm10,%xmm2
addsd  %xmm6,%xmm2
movapd %xmm2,%xmm3
mulsd  %xmm6,%xmm3
addsd  %xmm1,%xmm3
divsd  %xmm3,%xmm2
mov    0x158(%rsp),%rcx
movsd  %xmm2,(%rcx,%rax,8)
addsd  %xmm0,%xmm0
divsd  %xmm10,%xmm0
mulsd  %xmm7,%xmm1
divsd  %xmm11,%xmm1
addsd  %xmm0,%xmm1
mov    0x150(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
andpd  %xmm4,%xmm0
addsd  %xmm1,%xmm0
mov    0xb0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm1
andpd  %xmm4,%xmm1
addsd  %xmm0,%xmm1
addsd  %xmm6,%xmm1
movapd %xmm9,%xmm0
divsd  %xmm1,%xmm0
mov    0x168(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%rdx
mov    0x10(%rsp),%eax
add    %r10d,%eax
add    0x8(%rsp),%esi
add    %r10d,%r8d
mov    %rdx,%rcx
mov    %rdx,0x28(%rsp)
cmp    0xa8(%rsp),%rdx
je     1250 <calculateSubgridError_ADR_tau_1+0x140>
xorpd  %xmm0,%xmm0
cmpl   $0x0,0x8(%rsp)
mov    %eax,0x10(%rsp)
jle    1300 <calculateSubgridError_ADR_tau_1+0x1f0>
mov    %r8d,0x24(%rsp)
mov    %ebx,%edx
mov    %rbp,%r8
cltq
mov    0x98(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %esi,0xc(%rsp)
movslq %esi,%rcx
mov    0x90(%rsp),%rsi
lea    (%rsi,%rcx,8),%rcx
mov    0x40(%rsp),%rsi
mov    0x28(%rsp),%rdi
lea    (%rdi,%rsi,1),%ebp
mov    %ebp,%edi
imul   0x8(%rsp),%edi
imul   %r10d,%ebp
movslq %edi,%rsi
movslq %ebp,%r10
xor    %ebp,%ebp
jmp    1476 <calculateSubgridError_ADR_tau_1+0x366>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm1,0x50(%rsp,%rbp,8)
add    $0x1,%rbp
add    %r15,%rax
cmp    %r13,%rbp
je     1500 <calculateSubgridError_ADR_tau_1+0x3f0>
lea    (%rsi,%rbp,1),%rbx
movsd  (%r9,%rbx,8),%xmm1
xor    %ebx,%ebx
test   %r12,%r12
je     14bb <calculateSubgridError_ADR_tau_1+0x3ab>
movapd %xmm1,%xmm2
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rax,%rbx,8),%xmm3
movsd  (%rax,%rbx,8),%xmm1
mulsd  -0x8(%rcx,%rbx,8),%xmm3
mulsd  (%rcx,%rbx,8),%xmm1
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm1
add    $0x2,%rbx
movapd %xmm1,%xmm2
cmp    %rbx,%r14
jne    1490 <calculateSubgridError_ADR_tau_1+0x380>
test   $0x1,%r13b
je     1460 <calculateSubgridError_ADR_tau_1+0x350>
mov    %rbp,%rdi
imul   0xb8(%rsp),%rdi
add    %r10,%rdi
add    %rbx,%rdi
mov    0x138(%rsp),%r11
movsd  (%r11,%rdi,8),%xmm2
add    %rsi,%rbx
mov    0x140(%rsp),%rdi
mulsd  (%rdi,%rbx,8),%xmm2
addsd  %xmm2,%xmm1
jmp    1460 <calculateSubgridError_ADR_tau_1+0x350>
nopw   0x0(%rax,%rax,1)
xorpd  %xmm1,%xmm1
cmpl   $0x0,0x8(%rsp)
mov    0x20(%rsp),%r10d
mov    0xa0(%rsp),%rdi
mov    %r8,%rbp
mov    %edx,%ebx
mov    0x24(%rsp),%r8d
mov    0xc(%rsp),%esi
jle    1304 <calculateSubgridError_ADR_tau_1+0x1f4>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
cmp    $0x3,%r12
jb     1581 <calculateSubgridError_ADR_tau_1+0x471>
mov    0x80(%rsp),%rcx
xchg   %ax,%ax
movsd  0x50(%rsp,%rax,8),%xmm1
movsd  0x58(%rsp,%rax,8),%xmm2
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0x60(%rsp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0x68(%rsp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x4,%rax
cmp    %rax,%rcx
jne    1540 <calculateSubgridError_ADR_tau_1+0x430>
test   %rdi,%rdi
je     15a6 <calculateSubgridError_ADR_tau_1+0x496>
lea    (%rsp,%rax,8),%rax
add    $0x50,%rax
xor    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rcx
cmp    %rcx,%rdi
jne    1590 <calculateSubgridError_ADR_tau_1+0x480>
ucomisd %xmm8,%xmm0
jb     15b3 <calculateSubgridError_ADR_tau_1+0x4a3>
sqrtsd %xmm0,%xmm0
jmp    161a <calculateSubgridError_ADR_tau_1+0x50a>
call   1030 <sqrt@plt>
mov    0xc(%rsp),%esi
mov    0x24(%rsp),%r8d
movapd 0xc0(%rsp),%xmm12
movapd 0xd0(%rsp),%xmm11
movapd 0xe0(%rsp),%xmm10
movsd  0xa30(%rip),%xmm9
movapd 0xa30(%rip),%xmm4
movsd  0xa18(%rip),%xmm7
movsd  0xa08(%rip),%xmm6
movsd  0x9f8(%rip),%xmm5
xorpd  %xmm8,%xmm8
mov    0x20(%rsp),%r10d
mov    0x88(%rsp),%r9
mov    0x10(%rsp),%eax
cmpl   $0x0,0x8(%rsp)
jle    1300 <calculateSubgridError_ADR_tau_1+0x1f0>
xorpd  %xmm1,%xmm1
test   %r12,%r12
je     169f <calculateSubgridError_ADR_tau_1+0x58f>
mov    %eax,%ecx
mov    %r8d,%esi
xor    %eax,%eax
nopl   0x0(%rax)
movslq %ecx,%rcx
movsd  0x0(%rbp,%rcx,8),%xmm2
maxsd  %xmm1,%xmm2
movslq %esi,%rsi
movsd  0x0(%rbp,%rsi,8),%xmm1
maxsd  %xmm2,%xmm1
add    $0x2,%rax
add    %ebx,%esi
add    %ebx,%ecx
cmp    %rax,%r14
jne    1640 <calculateSubgridError_ADR_tau_1+0x530>
test   $0x1,%r13b
je     1696 <calculateSubgridError_ADR_tau_1+0x586>
mov    0x40(%rsp),%rcx
mov    0x28(%rsp),%rdx
add    %edx,%ecx
imul   %r10d,%ecx
add    %eax,%ecx
imul   0x8(%rsp),%eax
add    %ecx,%eax
cltq
movsd  0x0(%rbp,%rax,8),%xmm2
maxsd  %xmm1,%xmm2
movapd %xmm2,%xmm1
mov    0xc(%rsp),%esi
jmp    1304 <calculateSubgridError_ADR_tau_1+0x1f4>
xor    %eax,%eax
test   $0x1,%r13b
jne    166d <calculateSubgridError_ADR_tau_1+0x55d>
jmp    1696 <calculateSubgridError_ADR_tau_1+0x586>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @calculateSubgridError_ADR_tau_1(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]
%43 = alloca 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
%44 = load i32, i32* %17
%45 = load i32, i32* %17
%46 = mul nsw i32 %44, %45
store i32 %46, i32* %33
store i32 0, i32* %29
br label %47
47: ; preds = %303, %14
%48 = load i32, i32* %29
%49 = load i32, i32* %15
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %306
51: ; preds = %47
%52 = load double*, double** %18
%53 = load i32, i32* %29
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
store double %56, double* %34
store double 0.000000e+00, double* %43
store i32 0, i32* %30
br label %57
57: ; preds = %299, %51
%58 = load i32, i32* %30
%59 = load i32, i32* %16
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %302
61: ; preds = %57
store double 0.000000e+00, double* %35
store double 0.000000e+00, double* %36
store i32 0, i32* %31
br label %62
62: ; preds = %133, %61
%63 = load i32, i32* %31
%64 = load i32, i32* %17
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %136
66: ; preds = %62
%67 = load double*, double** %20
%68 = load i32, i32* %29
%69 = load i32, i32* %16
%70 = mul nsw i32 %68, %69
%71 = load i32, i32* %17
%72 = mul nsw i32 %70, %71
%73 = load i32, i32* %30
%74 = load i32, i32* %17
%75 = mul nsw i32 %73, %74
%76 = add nsw i32 %72, %75
%77 = load i32, i32* %31
%78 = add nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %67, i64 %79
%81 = load double, double* %80
%82 = load i32, i32* %31
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [3 x double], [3 x double]* %42, i64 0, i64 %83
store double %81, double* %84
store i32 0, i32* %32
br label %85
85: ; preds = %129, %66
%86 = load i32, i32* %32
%87 = load i32, i32* %17
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %132
89: ; preds = %85
%90 = load double*, double** %22
%91 = load i32, i32* %29
%92 = load i32, i32* %16
%93 = mul nsw i32 %91, %92
%94 = load i32, i32* %33
%95 = mul nsw i32 %93, %94
%96 = load i32, i32* %30
%97 = load i32, i32* %33
%98 = mul nsw i32 %96, %97
%99 = add nsw i32 %95, %98
%100 = load i32, i32* %31
%101 = load i32, i32* %17
%102 = mul nsw i32 %100, %101
%103 = add nsw i32 %99, %102
%104 = load i32, i32* %32
%105 = add nsw i32 %103, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %90, i64 %106
%108 = load double, double* %107
%109 = load double*, double** %23
%110 = load i32, i32* %29
%111 = load i32, i32* %16
%112 = mul nsw i32 %110, %111
%113 = load i32, i32* %17
%114 = mul nsw i32 %112, %113
%115 = load i32, i32* %30
%116 = load i32, i32* %17
%117 = mul nsw i32 %115, %116
%118 = add nsw i32 %114, %117
%119 = load i32, i32* %32
%120 = add nsw i32 %118, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %109, i64 %121
%123 = load double, double* %122
%124 = load i32, i32* %31
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [3 x double], [3 x double]* %42, i64 0, i64 %125
%127 = load double, double* %126
%128 = call double @llvm.fmuladd.f64(double %108, double %123, double %127)
store double %128, double* %126
br label %129
129: ; preds = %89
%130 = load i32, i32* %32
%131 = add nsw i32 %130, 1
store i32 %131, i32* %32
br label %85
132: ; preds = %85
br label %133
133: ; preds = %132
%134 = load i32, i32* %31
%135 = add nsw i32 %134, 1
store i32 %135, i32* %31
br label %62
136: ; preds = %62
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* %38
%246 = load double, double* %39
%247 = fdiv double %245, %246
%248 = load double*, double** %26
%249 = load i32, i32* %29
%250 = load i32, i32* %16
%251 = mul nsw i32 %249, %250
%252 = load i32, i32* %30
%253 = add nsw i32 %251, %252
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds double, double* %248, i64 %254
store double %247, double* %255
%256 = load double, double* %35
%257 = fmul double 2.000000e+00, %256
%258 = load double, double* %34
%259 = fdiv double %257, %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 = fadd double %259, %265
%267 = load double*, double** %25
%268 = load i32, i32* %29
%269 = load i32, i32* %16
%270 = mul nsw i32 %268, %269
%271 = load i32, i32* %30
%272 = add nsw i32 %270, %271
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds double, double* %267, i64 %273
%275 = load double, double* %274
%276 = call double @llvm.fabs.f64(double %275)
%277 = fadd double %266, %276
%278 = load double*, double** %19
%279 = load i32, i32* %29
%280 = load i32, i32* %16
%281 = mul nsw i32 %279, %280
%282 = load i32, i32* %30
%283 = add nsw i32 %281, %282
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, double* %278, i64 %284
%286 = load double, double* %285
%287 = call double @llvm.fabs.f64(double %286)
%288 = fadd double %277, %287
%289 = fadd double %288, 1.000000e-08
%290 = fdiv double 1.000000e+00, %289
%291 = load double*, double** %28
%292 = load i32, i32* %29
%293 = load i32, i32* %16
%294 = mul nsw i32 %292, %293
%295 = load i32, i32* %30
%296 = add nsw i32 %294, %295
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds double, double* %291, i64 %297
store double %290, double* %298
br label %299
299: ; preds = %237
%300 = load i32, i32* %30
%301 = add nsw i32 %300, 1
store i32 %301, i32* %30
br label %57
302: ; preds = %57
br label %303
303: ; preds = %302
%304 = load i32, i32* %29
%305 = add nsw i32 %304, 1
store i32 %305, i32* %29
br label %47
306: ; preds = %47
ret void
}

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