#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 twophaseSignedDistanceCoefficientsEvaluate(int nPoints, int nSpace,
                                                double *S, double *u,
                                                double *grad_u, double *m,
                                                double *dm, double *h,
                                                double *dh, double *rh) {
  int i, I;
  for (i = 0; i < nPoints; i++) {
    m[i] = u[i];
    dm[i] = 1.0;
    rh[i] = -1.0;
    h[i] = 0.0;
    for (I = 0; I < nSpace; I++)
      h[i] += grad_u[i * nSpace + I] * grad_u[i * nSpace + I];
    h[i] = sqrt(h[i]);
    for (I = 0; I < nSpace; I++)
      if (h[i] >= fabs(S[i] * grad_u[i * nSpace + I]) * 1.0e-8)
        dh[i * nSpace + I] = (S[i] * grad_u[i * nSpace + I]) / h[i];
      else
        dh[i * nSpace + I] = (S[i] * grad_u[i * nSpace + I]) / 1.0e-8;
    h[i] += rh[i];
    h[i] *= S[i];
    rh[i] *= S[i];
  }
}


x86 assembly (clang, -O0):
<twophaseSignedDistanceCoefficientsEvaluate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
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    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    139d <twophaseSignedDistanceCoefficientsEvaluate+0x28d>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  0xe8d(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  0xe70(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    120c <twophaseSignedDistanceCoefficientsEvaluate+0xfc>
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
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11ac <twophaseSignedDistanceCoefficientsEvaluate+0x9c>
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <sqrt@plt>
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1332 <twophaseSignedDistanceCoefficientsEvaluate+0x222>
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
movaps 0xdab(%rip),%xmm2
pand   %xmm2,%xmm1
movsd  0xd8f(%rip),%xmm2
mulsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jb     12da <twophaseSignedDistanceCoefficientsEvaluate+0x1ca>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%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
mulsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    131f <twophaseSignedDistanceCoefficientsEvaluate+0x20f>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%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
mulsd  (%rax,%rcx,8),%xmm0
movsd  0xd0b(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1324 <twophaseSignedDistanceCoefficientsEvaluate+0x214>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1232 <twophaseSignedDistanceCoefficientsEvaluate+0x122>
mov    0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1145 <twophaseSignedDistanceCoefficientsEvaluate+0x35>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<twophaseSignedDistanceCoefficientsEvaluate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8,0x8(%rsp)
test   %edi,%edi
jle    136b <twophaseSignedDistanceCoefficientsEvaluate+0x25b>
mov    %rcx,%r8
mov    %rdx,%rbx
mov    0x98(%rsp),%rdx
mov    0x90(%rsp),%r14
mov    0x88(%rsp),%r15
mov    0x80(%rsp),%r10
movslq %esi,%rax
mov    %edi,%r11d
mov    %eax,%edi
mov    %edi,%ecx
and    $0xfffffffe,%ecx
mov    0x8(%rsp),%r12
lea    0x8(%r12),%rbp
mov    %rax,0x28(%rsp)
lea    0x0(,%rax,8),%rax
mov    %rax,0x40(%rsp)
xor    %r13d,%r13d
xorpd  %xmm4,%xmm4
movapd 0xe77(%rip),%xmm5
movsd  0xe7f(%rip),%xmm6
mov    %rcx,0x10(%rsp)
mov    %r9,0x38(%rsp)
mov    %r8,0x30(%rsp)
mov    %esi,0x4(%rsp)
mov    %r11,0x20(%rsp)
mov    %rdi,0x18(%rsp)
jmp    1201 <twophaseSignedDistanceCoefficientsEvaluate+0xf1>
movq   $0x0,(%r15,%r13,8)
xorpd  %xmm0,%xmm0
addsd  (%rdx,%r13,8),%xmm0
movsd  %xmm0,(%r15,%r13,8)
mulsd  (%rbx,%r13,8),%xmm0
movsd  %xmm0,(%r15,%r13,8)
movsd  (%rbx,%r13,8),%xmm0
mulsd  (%rdx,%r13,8),%xmm0
movsd  %xmm0,(%rdx,%r13,8)
add    $0x1,%r13
mov    0x40(%rsp),%rax
add    %rax,%rbp
add    %rax,%r14
add    %rax,%r12
cmp    %r11,%r13
je     136b <twophaseSignedDistanceCoefficientsEvaluate+0x25b>
movsd  (%r8,%r13,8),%xmm0
movsd  %xmm0,(%r9,%r13,8)
movabs $0x3ff0000000000000,%rax
mov    %rax,(%r10,%r13,8)
movabs $0xbff0000000000000,%rax
mov    %rax,(%rdx,%r13,8)
movq   $0x0,(%r15,%r13,8)
test   %esi,%esi
jle    11b0 <twophaseSignedDistanceCoefficientsEvaluate+0xa0>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
cmp    $0x1,%esi
je     1281 <twophaseSignedDistanceCoefficientsEvaluate+0x171>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x8(%rbp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%r13,8)
movsd  0x0(%rbp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r15,%r13,8)
add    $0x2,%rax
cmp    %rax,%rcx
jne    1250 <twophaseSignedDistanceCoefficientsEvaluate+0x140>
test   $0x1,%dil
je     12b0 <twophaseSignedDistanceCoefficientsEvaluate+0x1a0>
mov    %r13,%rcx
imul   0x28(%rsp),%rcx
add    %rcx,%rax
mov    0x8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm1
mov    0x10(%rsp),%rcx
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r15,%r13,8)
ucomisd %xmm4,%xmm0
jb     12c0 <twophaseSignedDistanceCoefficientsEvaluate+0x1b0>
sqrtsd %xmm0,%xmm0
jmp    1306 <twophaseSignedDistanceCoefficientsEvaluate+0x1f6>
nopl   0x0(%rax)
call   1030 <sqrt@plt>
movsd  0xd43(%rip),%xmm6
movapd 0xd2b(%rip),%xmm5
xorpd  %xmm4,%xmm4
mov    0x10(%rsp),%rcx
mov    0x18(%rsp),%rdi
mov    0x20(%rsp),%r11
mov    0x80(%rsp),%r10
mov    0x98(%rsp),%rdx
mov    0x4(%rsp),%esi
mov    0x30(%rsp),%r8
mov    0x38(%rsp),%r9
movsd  %xmm0,(%r15,%r13,8)
test   %esi,%esi
jle    11bc <twophaseSignedDistanceCoefficientsEvaluate+0xac>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%r13,8),%xmm1
mulsd  (%r12,%rax,8),%xmm1
movapd %xmm1,%xmm2
andpd  %xmm5,%xmm2
mulsd  %xmm6,%xmm2
cmpnlesd %xmm0,%xmm2
movapd %xmm2,%xmm3
andpd  %xmm6,%xmm3
andnpd %xmm0,%xmm2
orpd   %xmm3,%xmm2
divsd  %xmm2,%xmm1
movsd  %xmm1,(%r14,%rax,8)
add    $0x1,%rax
movsd  (%r15,%r13,8),%xmm0
cmp    %rax,%rdi
jne    1320 <twophaseSignedDistanceCoefficientsEvaluate+0x210>
jmp    11bc <twophaseSignedDistanceCoefficientsEvaluate+0xac>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @twophaseSignedDistanceCoefficientsEvaluate(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
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 %23
23: ; preds = %213, %10
%24 = load i32, i32* %21
%25 = load i32, i32* %11
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %216
27: ; preds = %23
%28 = load double*, double** %14
%29 = load i32, i32* %21
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %28, i64 %30
%32 = load double, double* %31
%33 = load double*, double** %16
%34 = load i32, i32* %21
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
store double %32, double* %36
%37 = load double*, double** %17
%38 = load i32, i32* %21
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %37, i64 %39
store double 1.000000e+00, double* %40
%41 = load double*, double** %20
%42 = load i32, i32* %21
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, double* %41, i64 %43
store double -1.000000e+00, double* %44
%45 = load double*, double** %18
%46 = load i32, i32* %21
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %45, i64 %47
store double 0.000000e+00, double* %48
store i32 0, i32* %22
br label %49
49: ; preds = %78, %27
%50 = load i32, i32* %22
%51 = load i32, i32* %12
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %81
53: ; preds = %49
%54 = load double*, double** %15
%55 = load i32, i32* %21
%56 = load i32, i32* %12
%57 = mul nsw i32 %55, %56
%58 = load i32, i32* %22
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %54, i64 %60
%62 = load double, double* %61
%63 = load double*, double** %15
%64 = load i32, i32* %21
%65 = load i32, i32* %12
%66 = mul nsw i32 %64, %65
%67 = load i32, i32* %22
%68 = add nsw i32 %66, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %63, i64 %69
%71 = load double, double* %70
%72 = load double*, double** %18
%73 = load i32, i32* %21
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = call double @llvm.fmuladd.f64(double %62, double %71, double %76)
store double %77, double* %75
br label %78
78: ; preds = %53
%79 = load i32, i32* %22
%80 = add nsw i32 %79, 1
store i32 %80, i32* %22
br label %49
81: ; preds = %49
%82 = load double*, double** %18
%83 = load i32, i32* %21
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %82, i64 %84
%86 = load double, double* %85
%87 = call double @sqrt(double %86)
%88 = load double*, double** %18
%89 = load i32, i32* %21
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, double* %88, i64 %90
store double %87, double* %91
store i32 0, i32* %22
br label %92
92: ; preds = %176, %81
%93 = load i32, i32* %22
%94 = load i32, i32* %12
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %179
96: ; preds = %92
%97 = load double*, double** %18
%98 = load i32, i32* %21
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %97, i64 %99
%101 = load double, double* %100
%102 = load double*, double** %13
%103 = load i32, i32* %21
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %102, i64 %104
%106 = load double, double* %105
%107 = load double*, double** %15
%108 = load i32, i32* %21
%109 = load i32, i32* %12
%110 = mul nsw i32 %108, %109
%111 = load i32, i32* %22
%112 = add nsw i32 %110, %111
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, double* %107, i64 %113
%115 = load double, double* %114
%116 = fmul double %106, %115
%117 = call double @llvm.fabs.f64(double %116)
%118 = fmul double %117, 1.000000e-08
%119 = fcmp oge double %101, %118
br i1 %119, label %120, label %150
120: ; preds = %96
%121 = load double*, double** %13
%122 = load i32, i32* %21
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %121, i64 %123
%125 = load double, double* %124
%126 = load double*, double** %15
%127 = load i32, i32* %21
%128 = load i32, i32* %12
%129 = mul nsw i32 %127, %128
%130 = load i32, i32* %22
%131 = add nsw i32 %129, %130
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %126, i64 %132
%134 = load double, double* %133
%135 = fmul double %125, %134
%136 = load double*, double** %18
%137 = load i32, i32* %21
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %136, i64 %138
%140 = load double, double* %139
%141 = fdiv double %135, %140
%142 = load double*, double** %19
%143 = load i32, i32* %21
%144 = load i32, i32* %12
%145 = mul nsw i32 %143, %144
%146 = load i32, i32* %22
%147 = add nsw i32 %145, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %142, i64 %148
store double %141, double* %149
br label %175
150: ; preds = %96
%151 = load double*, double** %13
%152 = load i32, i32* %21
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %151, i64 %153
%155 = load double, double* %154
%156 = load double*, double** %15
%157 = load i32, i32* %21
%158 = load i32, i32* %12
%159 = mul nsw i32 %157, %158
%160 = load i32, i32* %22
%161 = add nsw i32 %159, %160
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %156, i64 %162
%164 = load double, double* %163
%165 = fmul double %155, %164
%166 = fdiv double %165, 1.000000e-08
%167 = load double*, double** %19
%168 = load i32, i32* %21
%169 = load i32, i32* %12
%170 = mul nsw i32 %168, %169
%171 = load i32, i32* %22
%172 = add nsw i32 %170, %171
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %167, i64 %173
store double %166, double* %174
br label %175
175: ; preds = %150, %120
br label %176
176: ; preds = %175
%177 = load i32, i32* %22
%178 = add nsw i32 %177, 1
store i32 %178, i32* %22
br label %92
179: ; preds = %92
%180 = load double*, double** %20
%181 = load i32, i32* %21
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %180, i64 %182
%184 = load double, double* %183
%185 = load double*, double** %18
%186 = load i32, i32* %21
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, double* %185, i64 %187
%189 = load double, double* %188
%190 = fadd double %189, %184
store double %190, double* %188
%191 = load double*, double** %13
%192 = load i32, i32* %21
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, double* %191, i64 %193
%195 = load double, double* %194
%196 = load double*, double** %18
%197 = load i32, i32* %21
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, double* %196, i64 %198
%200 = load double, double* %199
%201 = fmul double %200, %195
store double %201, double* %199
%202 = load double*, double** %13
%203 = load i32, i32* %21
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double, double* %202, i64 %204
%206 = load double, double* %205
%207 = load double*, double** %20
%208 = load i32, i32* %21
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds double, double* %207, i64 %209
%211 = load double, double* %210
%212 = fmul double %211, %206
store double %212, double* %210
br label %213
213: ; preds = %179
%214 = load i32, i32* %21
%215 = add nsw i32 %214, 1
store i32 %215, i32* %21
br label %23
216: ; preds = %23
ret void
}

LLVM IR (-O2):
define void @twophaseSignedDistanceCoefficientsEvaluate(i32 %0, i32 %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture writeonly %5, double* nocapture writeonly %6, double* nocapture %7, double* nocapture writeonly %8, double* nocapture %9) {
%11 = icmp sgt i32 %0, 0
br i1 %11, label %12, label %92
12: ; preds = %10
%13 = icmp sgt i32 %1, 0
%14 = sext i32 %1 to i64
%15 = zext i32 %0 to i64
%16 = zext i32 %1 to i64
%17 = and i64 %16, 1
%18 = icmp eq i32 %1, 1
%19 = and i64 %16, 4294967294
%20 = icmp eq i64 %17, 0
br label %21
21: ; preds = %12, %80
%22 = phi i64 [ 0, %12 ], [ %90, %80 ]
%23 = getelementptr inbounds double, double* %3, i64 %22
%24 = load double, double* %23
%25 = getelementptr inbounds double, double* %5, i64 %22
store double %24, double* %25
%26 = getelementptr inbounds double, double* %6, i64 %22
store double 1.000000e+00, double* %26
%27 = getelementptr inbounds double, double* %9, i64 %22
store double -1.000000e+00, double* %27
%28 = getelementptr inbounds double, double* %7, i64 %22
store double 0.000000e+00, double* %28
br i1 %13, label %30, label %29
29: ; preds = %21
store double 0.000000e+00, double* %28
br label %80
30: ; preds = %21
%31 = mul nsw i64 %22, %14
br i1 %18, label %48, label %32
32: ; preds = %30, %32
%33 = phi double [ %44, %32 ], [ 0.000000e+00, %30 ]
%34 = phi i64 [ %45, %32 ], [ 0, %30 ]
%35 = phi i64 [ %46, %32 ], [ 0, %30 ]
%36 = add nsw i64 %34, %31
%37 = getelementptr inbounds double, double* %4, i64 %36
%38 = load double, double* %37
%39 = tail call double @llvm.fmuladd.f64(double %38, double %38, double %33)
store double %39, double* %28
%40 = or i64 %34, 1
%41 = add nsw i64 %40, %31
%42 = getelementptr inbounds double, double* %4, i64 %41
%43 = load double, double* %42
%44 = tail call double @llvm.fmuladd.f64(double %43, double %43, double %39)
store double %44, double* %28
%45 = add nuw nsw i64 %34, 2
%46 = add i64 %35, 2
%47 = icmp eq i64 %46, %19
br i1 %47, label %48, label %32
48: ; preds = %32, %30
%49 = phi double [ undef, %30 ], [ %44, %32 ]
%50 = phi double [ 0.000000e+00, %30 ], [ %44, %32 ]
%51 = phi i64 [ 0, %30 ], [ %45, %32 ]
br i1 %20, label %57, label %52
52: ; preds = %48
%53 = add nsw i64 %51, %31
%54 = getelementptr inbounds double, double* %4, i64 %53
%55 = load double, double* %54
%56 = tail call double @llvm.fmuladd.f64(double %55, double %55, double %50)
store double %56, double* %28
br label %57
57: ; preds = %48, %52
%58 = phi double [ %49, %48 ], [ %56, %52 ]
%59 = tail call double @sqrt(double %58)
store double %59, double* %28
br i1 %13, label %60, label %80
60: ; preds = %57
%61 = getelementptr inbounds double, double* %2, i64 %22
%62 = mul nsw i64 %22, %14
br label %63
63: ; preds = %63, %60
%64 = phi double [ %59, %60 ], [ %79, %63 ]
%65 = phi i64 [ 0, %60 ], [ %77, %63 ]
%66 = load double, double* %61
%67 = add nsw i64 %65, %62
%68 = getelementptr inbounds double, double* %4, i64 %67
%69 = load double, double* %68
%70 = fmul double %66, %69
%71 = tail call double @llvm.fabs.f64(double %70)
%72 = fmul double %71, 1.000000e-08
%73 = fcmp ult double %64, %72
%74 = select i1 %73, double 1.000000e-08, double %64
%75 = fdiv double %70, %74
%76 = getelementptr inbounds double, double* %8, i64 %67
store double %75, double* %76
%77 = add nuw nsw i64 %65, 1
%78 = icmp eq i64 %77, %16
%79 = load double, double* %28
br i1 %78, label %80, label %63
80: ; preds = %63, %29, %57
%81 = phi double [ %59, %57 ], [ 0.000000e+00, %29 ], [ %79, %63 ]
%82 = load double, double* %27
%83 = fadd double %82, %81
store double %83, double* %28
%84 = getelementptr inbounds double, double* %2, i64 %22
%85 = load double, double* %84
%86 = fmul double %83, %85
store double %86, double* %28
%87 = load double, double* %84
%88 = load double, double* %27
%89 = fmul double %87, %88
store double %89, double* %27
%90 = add nuw nsw i64 %22, 1
%91 = icmp eq i64 %90, %15
br i1 %91, label %92, label %21
92: ; preds = %80, %10
ret void
}