#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 eikonalEquationEvaluate(int nPoints, int nSpace, double rhs, double *u,
                             double *grad_u, double *m, double *dm, double *H,
                             double *dH, double *r) {
  int i, I;
  double normGradU;
  for (i = 0; i < nPoints; i++) {
    m[i] = u[i];
    dm[i] = 1.0;
    H[i] = 0.0;
    r[i] = -rhs;
    normGradU = 0.0;
    for (I = 0; I < nSpace; I++)
      normGradU += grad_u[i * nSpace + I] * grad_u[i * nSpace + I];
    normGradU = sqrt(normGradU);
    H[i] = normGradU;
    for (I = 0; I < nSpace; I++) {
      dH[i * nSpace + I] = grad_u[i * nSpace + I] / (normGradU + 1.0e-12);
    }
  }
}


x86 assembly (clang, -O0):
<eikonalEquationEvaluate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12b3 <eikonalEquationEvaluate+0x1a3>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  0xe84(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1221 <eikonalEquationEvaluate+0x111>
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11c9 <eikonalEquationEvaluate+0xb9>
movsd  -0x40(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a0 <eikonalEquationEvaluate+0x190>
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd95(%rip),%xmm1
addsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1249 <eikonalEquationEvaluate+0x139>
jmp    12a5 <eikonalEquationEvaluate+0x195>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1146 <eikonalEquationEvaluate+0x36>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eikonalEquationEvaluate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r9,0x78(%rsp)
mov    %r8,0x70(%rsp)
mov    %rcx,0x8(%rsp)
test   %edi,%edi
jle    14fa <eikonalEquationEvaluate+0x3ea>
movapd %xmm0,%xmm3
mov    0xe0(%rsp),%r8
mov    0xd8(%rsp),%r10
mov    0xd0(%rsp),%r9
xorpd  0xea4(%rip),%xmm3
movslq %esi,%rbp
mov    %edi,%edi
mov    %rdi,0x68(%rsp)
mov    %ebp,%ecx
lea    -0x1(%rcx),%rbx
mov    %rbx,0x58(%rsp)
mov    %ecx,%ebx
and    $0xfffffffe,%ebx
mov    %rbx,0x30(%rsp)
add    $0xfffffffffffffffe,%rbx
mov    %rbx,0x28(%rsp)
mov    %rbx,%rax
shr    %rax
add    $0x1,%rax
mov    %ecx,%r13d
and    $0x3,%r13d
mov    %ecx,%edi
and    $0xfffffffc,%edi
mov    %rdi,0x38(%rsp)
mov    %rax,%rbx
mov    %rax,0x20(%rsp)
and    $0xfffffffffffffffe,%rax
mov    %rax,0x18(%rsp)
mov    %rcx,%rax
neg    %rax
mov    %rax,0x48(%rsp)
mov    0x8(%rsp),%r14
lea    0x18(%r14),%rbx
xorpd  %xmm4,%xmm4
mov    %rbp,0x50(%rsp)
lea    0x0(,%rbp,8),%rax
mov    %rax,0x60(%rsp)
lea    0x10(%r10),%rbp
lea    0x8(%r10),%r15
xor    %r12d,%r12d
mov    %rcx,%rax
mov    %rcx,(%rsp)
mov    %rdx,0x40(%rsp)
movapd %xmm3,0x80(%rsp)
mov    %esi,0x14(%rsp)
jmp    122e <eikonalEquationEvaluate+0x11e>
movq   $0x0,(%r9,%r12,8)
mov    %rcx,%r10
add    $0x1,%r12
mov    0x60(%rsp),%rax
add    %rax,%rbx
add    %rax,%r14
add    %rax,%rbp
add    %rax,%r15
cmp    0x68(%rsp),%r12
mov    %r10,%rcx
je     14fa <eikonalEquationEvaluate+0x3ea>
movsd  (%rdx,%r12,8),%xmm0
mov    0x70(%rsp),%rax
movsd  %xmm0,(%rax,%r12,8)
mov    0x78(%rsp),%rax
movabs $0x3ff0000000000000,%rdi
mov    %rdi,(%rax,%r12,8)
movq   $0x0,(%r9,%r12,8)
movsd  %xmm3,(%r8,%r12,8)
test   %esi,%esi
jle    1200 <eikonalEquationEvaluate+0xf0>
cmpq   $0x3,0x58(%rsp)
jae    1280 <eikonalEquationEvaluate+0x170>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
jmp    12d0 <eikonalEquationEvaluate+0x1c0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorpd  %xmm0,%xmm0
xor    %eax,%eax
mov    0x38(%rsp),%rcx
nopl   0x0(%rax,%rax,1)
movsd  -0x18(%rbx,%rax,8),%xmm1
movsd  -0x10(%rbx,%rax,8),%xmm2
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x8(%rbx,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x4,%rax
cmp    %rax,%rcx
jne    1290 <eikonalEquationEvaluate+0x180>
test   %r13,%r13
je     12f6 <eikonalEquationEvaluate+0x1e6>
lea    (%r14,%rax,8),%rax
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rdi,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rdi
cmp    %rdi,%r13
jne    12e0 <eikonalEquationEvaluate+0x1d0>
ucomisd %xmm4,%xmm0
jb     1310 <eikonalEquationEvaluate+0x200>
sqrtsd %xmm0,%xmm0
jmp    133b <eikonalEquationEvaluate+0x22b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
call   1030 <sqrt@plt>
xorpd  %xmm4,%xmm4
mov    0xd0(%rsp),%r9
mov    0xe0(%rsp),%r8
mov    0x14(%rsp),%esi
movapd 0x80(%rsp),%xmm3
mov    0x40(%rsp),%rdx
movsd  %xmm0,(%r9,%r12,8)
test   %esi,%esi
mov    (%rsp),%r10
jle    120b <eikonalEquationEvaluate+0xfb>
mov    %r12,%r11
imul   0x50(%rsp),%r11
addsd  0xcb2(%rip),%xmm0
cmp    $0x1,%esi
jne    136e <eikonalEquationEvaluate+0x25e>
xor    %eax,%eax
mov    (%rsp),%r10
jmp    1460 <eikonalEquationEvaluate+0x350>
mov    (%rsp),%rax
lea    (%r11,%rax,1),%rdi
mov    0xd8(%rsp),%rcx
lea    (%rcx,%r11,8),%r10
mov    0x8(%rsp),%rax
lea    (%rax,%rdi,8),%rax
cmp    %rax,%r10
jae    13bd <eikonalEquationEvaluate+0x2ad>
lea    (%rcx,%rdi,8),%rax
mov    0x8(%rsp),%rcx
lea    (%rcx,%r11,8),%rdi
cmp    %rax,%rdi
jae    13bd <eikonalEquationEvaluate+0x2ad>
xor    %eax,%eax
mov    0xe0(%rsp),%r8
mov    0xd0(%rsp),%r9
mov    (%rsp),%r10
jmp    1460 <eikonalEquationEvaluate+0x350>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x0,0x28(%rsp)
mov    0xe0(%rsp),%r8
je     14e0 <eikonalEquationEvaluate+0x3d0>
mov    0x18(%rsp),%rdi
xor    %eax,%eax
mov    0xd0(%rsp),%r9
nopl   0x0(%rax,%rax,1)
movupd (%r14,%rax,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,-0x10(%rbp,%rax,8)
movupd 0x10(%r14,%rax,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,0x0(%rbp,%rax,8)
add    $0x4,%rax
add    $0xfffffffffffffffe,%rdi
jne    13f0 <eikonalEquationEvaluate+0x2e0>
testb  $0x1,0x20(%rsp)
je     1448 <eikonalEquationEvaluate+0x338>
add    %r11,%rax
mov    0x8(%rsp),%rcx
movupd (%rcx,%rax,8),%xmm2
divpd  %xmm1,%xmm2
mov    0xd8(%rsp),%rcx
movupd %xmm2,(%rcx,%rax,8)
mov    0xd0(%rsp),%r9
mov    0x30(%rsp),%rdi
mov    %rdi,%rax
mov    (%rsp),%r10
cmp    %r10,%rdi
je     120b <eikonalEquationEvaluate+0xfb>
nopl   (%rax)
mov    %rax,%rdi
test   $0x1,%r10b
je     1498 <eikonalEquationEvaluate+0x388>
add    %rax,%r11
mov    0x8(%rsp),%rcx
movsd  (%rcx,%r11,8),%xmm1
divsd  %xmm0,%xmm1
mov    0xd8(%rsp),%rcx
movsd  %xmm1,(%rcx,%r11,8)
mov    0xd0(%rsp),%r9
mov    %rax,%rdi
or     $0x1,%rdi
not    %rax
cmp    0x48(%rsp),%rax
mov    (%rsp),%r10
je     120b <eikonalEquationEvaluate+0xfb>
nopw   0x0(%rax,%rax,1)
movsd  (%r14,%rdi,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,-0x8(%r15,%rdi,8)
movsd  0x8(%r14,%rdi,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r10
jne    14b0 <eikonalEquationEvaluate+0x3a0>
jmp    120b <eikonalEquationEvaluate+0xfb>
xor    %eax,%eax
mov    0xd0(%rsp),%r9
testb  $0x1,0x20(%rsp)
jne    1422 <eikonalEquationEvaluate+0x312>
jmp    1448 <eikonalEquationEvaluate+0x338>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @eikonalEquationEvaluate(i32 %0, i32 %1, double %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca double
store i32 %0, i32* %11
store i32 %1, i32* %12
store double %2, double* %13
store double* %3, double** %14
store double* %4, double** %15
store double* %5, double** %16
store double* %6, double** %17
store double* %7, double** %18
store double* %8, double** %19
store double* %9, double** %20
store i32 0, i32* %21
br label %24
24: ; preds = %117, %10
%25 = load i32, i32* %21
%26 = load i32, i32* %11
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %120
28: ; preds = %24
%29 = load double*, double** %14
%30 = load i32, i32* %21
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, double* %29, i64 %31
%33 = load double, double* %32
%34 = load double*, double** %16
%35 = load i32, i32* %21
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
store double %33, double* %37
%38 = load double*, double** %17
%39 = load i32, i32* %21
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %38, i64 %40
store double 1.000000e+00, double* %41
%42 = load double*, double** %18
%43 = load i32, i32* %21
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %42, i64 %44
store double 0.000000e+00, double* %45
%46 = load double, double* %13
%47 = fneg double %46
%48 = load double*, double** %20
%49 = load i32, i32* %21
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
store double %47, double* %51
store double 0.000000e+00, double* %23
store i32 0, i32* %22
br label %52
52: ; preds = %77, %28
%53 = load i32, i32* %22
%54 = load i32, i32* %12
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %80
56: ; preds = %52
%57 = load double*, double** %15
%58 = load i32, i32* %21
%59 = load i32, i32* %12
%60 = mul nsw i32 %58, %59
%61 = load i32, i32* %22
%62 = add nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %57, i64 %63
%65 = load double, double* %64
%66 = load double*, double** %15
%67 = load i32, i32* %21
%68 = load i32, i32* %12
%69 = mul nsw i32 %67, %68
%70 = load i32, i32* %22
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %66, i64 %72
%74 = load double, double* %73
%75 = load double, double* %23
%76 = call double @llvm.fmuladd.f64(double %65, double %74, double %75)
store double %76, double* %23
br label %77
77: ; preds = %56
%78 = load i32, i32* %22
%79 = add nsw i32 %78, 1
store i32 %79, i32* %22
br label %52
80: ; preds = %52
%81 = load double, double* %23
%82 = call double @sqrt(double %81)
store double %82, double* %23
%83 = load double, double* %23
%84 = load double*, double** %18
%85 = load i32, i32* %21
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %84, i64 %86
store double %83, double* %87
store i32 0, i32* %22
br label %88
88: ; preds = %113, %80
%89 = load i32, i32* %22
%90 = load i32, i32* %12
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %116
92: ; preds = %88
%93 = load double*, double** %15
%94 = load i32, i32* %21
%95 = load i32, i32* %12
%96 = mul nsw i32 %94, %95
%97 = load i32, i32* %22
%98 = add nsw i32 %96, %97
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %93, i64 %99
%101 = load double, double* %100
%102 = load double, double* %23
%103 = fadd double %102, 0x3D719799812DEA11
%104 = fdiv double %101, %103
%105 = load double*, double** %19
%106 = load i32, i32* %21
%107 = load i32, i32* %12
%108 = mul nsw i32 %106, %107
%109 = load i32, i32* %22
%110 = add nsw i32 %108, %109
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %105, i64 %111
store double %104, double* %112
br label %113
113: ; preds = %92
%114 = load i32, i32* %22
%115 = add nsw i32 %114, 1
store i32 %115, i32* %22
br label %88
116: ; preds = %88
br label %117
117: ; preds = %116
%118 = load i32, i32* %21
%119 = add nsw i32 %118, 1
store i32 %119, i32* %21
br label %24
120: ; preds = %24
ret void
}

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