#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 */
int /*<<< orphan*/ isnan(double);
double sqrt(double);
double changeerror(int N, double *t, double *mag, double *sig, double *aveval,
                   int *ngood) {
  double avesum1, avesum2, avesum3, ave, rmsval, n;
  int i;
  *aveval = -1.;
  if (N > 0) {
    avesum1 = 0.;
    avesum2 = 0.;
    avesum3 = 0.;
    n = 0;
    for (i = 0; i < N; i++) {
      if (!isnan(mag[i]) && sig[i] > 0.) {
        avesum1 += mag[i];
        avesum2 += mag[i] * mag[i];
        avesum3 += sig[i] * sig[i];
        n++;
      }
    }
    if (n > 0.) {
      ave = (avesum1 / (double)n);
      *aveval = ave;
      *ngood = n;
      rmsval = sqrt((avesum2 / (double)n) - (ave * ave));
      for (i = 0; i < N; i++) {
        sig[i] = rmsval;
      }
    } else {
      *ngood = 0;
      rmsval = -1.;
    }
  } else {
    *ngood = 0;
    rmsval = -1.;
  }
  return (rmsval);
}


x86 assembly (clang, -O0):
<changeerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x28(%rbp),%rax
movsd  0xeb5(%rip),%xmm0
movsd  %xmm0,(%rax)
cmpl   $0x0,-0x4(%rbp)
jle    131f <changeerror+0x1ff>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1255 <changeerror+0x135>
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <isnan@plt>
cmp    $0x0,%eax
jne    1242 <changeerror+0x122>
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1242 <changeerror+0x122>
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdd0(%rip),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1247 <changeerror+0x127>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1180 <changeerror+0x60>
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1303 <changeerror+0x1e3>
movsd  -0x38(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
cvttsd2si -0x60(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x40(%rbp),%xmm1
divsd  -0x60(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12fe <changeerror+0x1de>
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    12d2 <changeerror+0x1b2>
jmp    131a <changeerror+0x1fa>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
movsd  0xceb(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1336 <changeerror+0x216>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
movsd  0xccf(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<changeerror>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movabs $0xbff0000000000000,%rax
mov    %rax,(%r8)
test   %edi,%edi
jle    126a <changeerror+0x14a>
mov    %r8,%r15
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %edi,%r12d
mov    %r9,0x20(%rsp)
mov    %edi,%r13d
xor    %r14d,%r14d
xorpd  %xmm3,%xmm3
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
jmp    118f <changeerror+0x6f>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x18(%rsp),%xmm3
add    $0x1,%r14
cmp    %r14,%r13
je     11f0 <changeerror+0xd0>
movsd  %xmm3,0x18(%rsp)
movsd  0x0(%rbp,%r14,8),%xmm0
call   1030 <isnan@plt>
test   %eax,%eax
jne    1180 <changeerror+0x60>
movsd  (%rbx,%r14,8),%xmm0
ucomisd 0xe5d(%rip),%xmm0
jbe    1180 <changeerror+0x60>
movsd  0x0(%rbp,%r14,8),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x18(%rsp),%xmm3
addsd  0xe12(%rip),%xmm3
jmp    1186 <changeerror+0x66>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm3
mov    0x20(%rsp),%r9
jbe    126a <changeerror+0x14a>
movsd  0x8(%rsp),%xmm2
divsd  %xmm3,%xmm2
movsd  %xmm2,(%r15)
cvttsd2si %xmm3,%eax
mov    %eax,(%r9)
movsd  0x10(%rsp),%xmm1
divsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm2
subsd  %xmm2,%xmm1
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
jb     127e <changeerror+0x15e>
sqrtsd %xmm0,%xmm0
cmp    $0x4,%r12d
jb     1289 <changeerror+0x169>
mov    %r13d,%eax
and    $0xfffffffc,%eax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rsi
jae    1290 <changeerror+0x170>
xor    %esi,%esi
jmp    1325 <changeerror+0x205>
movl   $0x0,(%r9)
movsd  0xd8f(%rip),%xmm0
jmp    136e <changeerror+0x24e>
call   1040 <sqrt@plt>
cmp    $0x4,%r12d
jae    123b <changeerror+0x11b>
xor    %eax,%eax
jmp    1360 <changeerror+0x240>
and    $0xfffffffffffffff8,%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movupd %xmm1,(%rbx,%rsi,8)
movupd %xmm1,0x10(%rbx,%rsi,8)
movupd %xmm1,0x20(%rbx,%rsi,8)
movupd %xmm1,0x30(%rbx,%rsi,8)
movupd %xmm1,0x40(%rbx,%rsi,8)
movupd %xmm1,0x50(%rbx,%rsi,8)
movupd %xmm1,0x60(%rbx,%rsi,8)
movupd %xmm1,0x70(%rbx,%rsi,8)
movupd %xmm1,0x80(%rbx,%rsi,8)
movupd %xmm1,0x90(%rbx,%rsi,8)
movupd %xmm1,0xa0(%rbx,%rsi,8)
movupd %xmm1,0xb0(%rbx,%rsi,8)
movupd %xmm1,0xc0(%rbx,%rsi,8)
movupd %xmm1,0xd0(%rbx,%rsi,8)
movupd %xmm1,0xe0(%rbx,%rsi,8)
movupd %xmm1,0xf0(%rbx,%rsi,8)
add    $0x20,%rsi
add    $0xfffffffffffffff8,%rdx
jne    12a0 <changeerror+0x180>
test   %rcx,%rcx
je     1354 <changeerror+0x234>
lea    (%rbx,%rsi,8),%rdx
add    $0x10,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movupd %xmm1,-0x10(%rdx,%rsi,1)
movupd %xmm1,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    1340 <changeerror+0x220>
cmp    %r13,%rax
je     136e <changeerror+0x24e>
nopl   0x0(%rax)
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    1360 <changeerror+0x240>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define double @changeerror(i32 %0, double* nocapture readnone %1, double* nocapture %2, double* nocapture %3, double* nocapture writeonly %4, i32* nocapture writeonly %5) {
store double -1.000000e+00, double* %4
%7 = icmp sgt i32 %0, 0
br i1 %7, label %8, label %124
8: ; preds = %6
%9 = zext i32 %0 to i64
br label %10
10: ; preds = %8, %28
%11 = phi i64 [ 0, %8 ], [ %32, %28 ]
%12 = phi double [ 0.000000e+00, %8 ], [ %31, %28 ]
%13 = phi double [ 0.000000e+00, %8 ], [ %30, %28 ]
%14 = phi double [ 0.000000e+00, %8 ], [ %29, %28 ]
%15 = getelementptr inbounds double, double* %2, i64 %11
%16 = load double, double* %15
%17 = tail call i32 @isnan(double %16)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %10
%20 = getelementptr inbounds double, double* %3, i64 %11
%21 = load double, double* %20
%22 = fcmp ogt double %21, 0.000000e+00
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = load double, double* %15
%25 = fadd double %13, %24
%26 = tail call double @llvm.fmuladd.f64(double %24, double %24, double %14)
%27 = fadd double %12, 1.000000e+00
br label %28
28: ; preds = %10, %19, %23
%29 = phi double [ %14, %10 ], [ %26, %23 ], [ %14, %19 ]
%30 = phi double [ %13, %10 ], [ %25, %23 ], [ %13, %19 ]
%31 = phi double [ %12, %10 ], [ %27, %23 ], [ %12, %19 ]
%32 = add nuw nsw i64 %11, 1
%33 = icmp eq i64 %32, %9
br i1 %33, label %34, label %10
34: ; preds = %28
%35 = fcmp ogt double %31, 0.000000e+00
br i1 %35, label %36, label %124
36: ; preds = %34
%37 = fdiv double %30, %31
store double %37, double* %4
%38 = fptosi double %31 to i32
store i32 %38, i32* %5
%39 = fdiv double %29, %31
%40 = fneg double %37
%41 = tail call double @llvm.fmuladd.f64(double %40, double %37, double %39)
%42 = tail call double @sqrt(double %41)
%43 = icmp ult i32 %0, 4
br i1 %43, label %117, label %44
44: ; preds = %36
%45 = and i64 %9, 4294967292
%46 = insertelement <2 x double> poison, double %42, i64 0
%47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
%48 = insertelement <2 x double> poison, double %42, i64 0
%49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
%50 = add nsw i64 %45, -4
%51 = lshr exact i64 %50, 2
%52 = add nuw nsw i64 %51, 1
%53 = and i64 %52, 7
%54 = icmp ult i64 %50, 28
br i1 %54, label %102, label %55
55: ; preds = %44
%56 = and i64 %52, 9223372036854775800
br label %57
57: ; preds = %57, %55
%58 = phi i64 [ 0, %55 ], [ %99, %57 ]
%59 = phi i64 [ 0, %55 ], [ %100, %57 ]
%60 = getelementptr inbounds double, double* %3, i64 %58
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %47, <2 x double>* %61
%62 = getelementptr inbounds double, double* %60, i64 2
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> %49, <2 x double>* %63
%64 = or i64 %58, 4
%65 = getelementptr inbounds double, double* %3, i64 %64
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> %47, <2 x double>* %66
%67 = getelementptr inbounds double, double* %65, i64 2
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> %49, <2 x double>* %68
%69 = or i64 %58, 8
%70 = getelementptr inbounds double, double* %3, i64 %69
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> %47, <2 x double>* %71
%72 = getelementptr inbounds double, double* %70, i64 2
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %49, <2 x double>* %73
%74 = or i64 %58, 12
%75 = getelementptr inbounds double, double* %3, i64 %74
%76 = bitcast double* %75 to <2 x double>*
store <2 x double> %47, <2 x double>* %76
%77 = getelementptr inbounds double, double* %75, i64 2
%78 = bitcast double* %77 to <2 x double>*
store <2 x double> %49, <2 x double>* %78
%79 = or i64 %58, 16
%80 = getelementptr inbounds double, double* %3, i64 %79
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> %47, <2 x double>* %81
%82 = getelementptr inbounds double, double* %80, i64 2
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> %49, <2 x double>* %83
%84 = or i64 %58, 20
%85 = getelementptr inbounds double, double* %3, i64 %84
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %47, <2 x double>* %86
%87 = getelementptr inbounds double, double* %85, i64 2
%88 = bitcast double* %87 to <2 x double>*
store <2 x double> %49, <2 x double>* %88
%89 = or i64 %58, 24
%90 = getelementptr inbounds double, double* %3, i64 %89
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> %47, <2 x double>* %91
%92 = getelementptr inbounds double, double* %90, i64 2
%93 = bitcast double* %92 to <2 x double>*
store <2 x double> %49, <2 x double>* %93
%94 = or i64 %58, 28
%95 = getelementptr inbounds double, double* %3, i64 %94
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> %47, <2 x double>* %96
%97 = getelementptr inbounds double, double* %95, i64 2
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> %49, <2 x double>* %98
%99 = add nuw i64 %58, 32
%100 = add i64 %59, 8
%101 = icmp eq i64 %100, %56
br i1 %101, label %102, label %57
102: ; preds = %57, %44
%103 = phi i64 [ 0, %44 ], [ %99, %57 ]
%104 = icmp eq i64 %53, 0
br i1 %104, label %115, label %105
105: ; preds = %102, %105
%106 = phi i64 [ %112, %105 ], [ %103, %102 ]
%107 = phi i64 [ %113, %105 ], [ 0, %102 ]
%108 = getelementptr inbounds double, double* %3, i64 %106
%109 = bitcast double* %108 to <2 x double>*
store <2 x double> %47, <2 x double>* %109
%110 = getelementptr inbounds double, double* %108, i64 2
%111 = bitcast double* %110 to <2 x double>*
store <2 x double> %49, <2 x double>* %111
%112 = add nuw i64 %106, 4
%113 = add i64 %107, 1
%114 = icmp eq i64 %113, %53
br i1 %114, label %115, label %105
115: ; preds = %105, %102
%116 = icmp eq i64 %45, %9
br i1 %116, label %125, label %117
117: ; preds = %36, %115
%118 = phi i64 [ 0, %36 ], [ %45, %115 ]
br label %119
119: ; preds = %117, %119
%120 = phi i64 [ %122, %119 ], [ %118, %117 ]
%121 = getelementptr inbounds double, double* %3, i64 %120
store double %42, double* %121
%122 = add nuw nsw i64 %120, 1
%123 = icmp eq i64 %122, %9
br i1 %123, label %125, label %119
124: ; preds = %6, %34
store i32 0, i32* %5
br label %125
125: ; preds = %119, %115, %124
%126 = phi double [ -1.000000e+00, %124 ], [ %42, %115 ], [ %42, %119 ]
ret double %126
}