#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);
int /*<<< orphan*/ printf(char *);
double polint(double *time, double *vec, double seek_time) {
  int i, m, ns;
  double dy, den, dif, dift, ho, hp, w;
  double c[10], d[10];
  double retval;
  ns = 1;
  dif = fabs(seek_time - time[0]);
  for (i = 0; i < 3; i++) {
    dift = fabs(seek_time - time[i]);
    if (dift < dif) {
      ns = i;
      dif = dift;
    }
    c[i] = vec[i];
    d[i] = vec[i];
  }
  retval = vec[ns];
  ns = ns - 1;
  for (m = 1; m < 3; m++) {
    for (i = 0; i < 3 - m; i++) {
      ho = time[i] - seek_time;
      hp = time[i + m] - seek_time;
      w = c[i + 1] - d[i];
      den = ho - hp;
      if (den == 0) {
        printf("failure in polint!\n");
      }
      den = w / den;
      d[i] = hp * den;
      c[i] = ho * den;
    }
    if (2 * (ns + 1) < 3 - m) {
      dy = c[ns + 1];
    } else {
      dy = d[ns];
      ns = ns - 1;
    }
    retval = retval + dy;
  }
  return (retval);
}


x86 assembly (clang, -O0):
<polint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
movl   $0x1,-0x24(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm0
movaps 0xebd(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    11e5 <polint+0xd5>
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movaps 0xe8a(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11a3 <polint+0x93>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x1c(%rbp),%rax
movsd  %xmm0,-0xb0(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x1c(%rbp),%rax
movsd  %xmm0,-0x100(%rbp,%rax,8)
ff ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1153 <polint+0x43>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
movl   $0x1,-0x20(%rbp)
cmpl   $0x3,-0x20(%rbp)
jge    1374 <polint+0x264>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
sub    -0x20(%rbp),%ecx
cmp    %ecx,%eax
jge    1302 <polint+0x1f2>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x1c(%rbp),%rax
subsd  -0x100(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12b7 <polint+0x1a7>
jp     12b7 <polint+0x1a7>
lea    0xd5e(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x60(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movslq -0x1c(%rbp),%rax
movsd  %xmm0,-0x100(%rbp,%rax,8)
ff ff
movsd  -0x50(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movslq -0x1c(%rbp),%rax
movsd  %xmm0,-0xb0(%rbp,%rax,8)
ff ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    121b <polint+0x10b>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
shl    $0x1,%eax
mov    $0x3,%ecx
sub    -0x20(%rbp),%ecx
cmp    %ecx,%eax
jge    1336 <polint+0x226>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x30(%rbp)
jmp    1351 <polint+0x241>
movslq -0x24(%rbp),%rax
movsd  -0x100(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x30(%rbp)
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
movsd  -0x108(%rbp),%xmm0
ff
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    120a <polint+0xfa>
movsd  -0x108(%rbp),%xmm0
ff
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<polint>:
push   %r15
push   %r14
push   %rbx
sub    $0xf0,%rsp
movapd %xmm0,%xmm3
mov    %rdi,%rbx
movsd  (%rdi),%xmm5
mov    0x10(%rsi),%rax
mov    %rax,0xb0(%rsp)
movups (%rsi),%xmm0
movaps %xmm0,0xa0(%rsp)
mov    0x10(%rsi),%rax
mov    %rax,0x60(%rsp)
movups (%rsi),%xmm0
movaps %xmm0,0x50(%rsp)
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
movsd  0x8(%rdi),%xmm6
movsd  0x10(%rdi),%xmm4
movapd %xmm6,%xmm1
unpcklpd %xmm5,%xmm1
subpd  %xmm1,%xmm0
movapd 0xe8b(%rip),%xmm1
andpd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm2
minsd  %xmm2,%xmm0
movapd %xmm3,%xmm2
subsd  %xmm4,%xmm2
andpd  %xmm1,%xmm2
xor    %r15d,%r15d
ucomisd %xmm2,%xmm0
seta   %r15b
lea    0x1(%r15),%r14d
movsd  (%rsi,%r14,8),%xmm0
movsd  %xmm0,0x48(%rsp)
subsd  %xmm3,%xmm5
subsd  %xmm3,%xmm6
movsd  0xa8(%rsp),%xmm2
subsd  0x50(%rsp),%xmm2
subsd  %xmm6,%xmm5
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm5
movapd %xmm6,%xmm1
movapd %xmm3,0x30(%rsp)
jne    1220 <polint+0x110>
jp     1220 <polint+0x110>
lea    0xe2f(%rip),%rdi
movapd %xmm5,0x20(%rsp)
movapd %xmm6,0x10(%rsp)
movsd  %xmm2,(%rsp)
call   1030 <puts@plt>
movsd  (%rsp),%xmm2
xorpd  %xmm0,%xmm0
movapd 0x10(%rsp),%xmm6
movapd 0x20(%rsp),%xmm5
movapd 0x30(%rsp),%xmm3
movsd  0x8(%rbx),%xmm1
movsd  0x10(%rbx),%xmm4
subsd  %xmm3,%xmm1
divsd  %xmm5,%xmm2
mulsd  %xmm2,%xmm6
movsd  %xmm6,0x50(%rsp)
movsd  0xb0(%rsp),%xmm2
subsd  0x58(%rsp),%xmm2
subsd  %xmm3,%xmm4
movapd %xmm1,%xmm5
subsd  %xmm4,%xmm5
ucomisd %xmm0,%xmm5
jne    1291 <polint+0x181>
jp     1291 <polint+0x181>
lea    0xdb8(%rip),%rdi
movsd  %xmm1,0x20(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm2,(%rsp)
movsd  %xmm5,0x8(%rsp)
call   1030 <puts@plt>
movsd  0x8(%rsp),%xmm5
movsd  (%rsp),%xmm2
movsd  0x10(%rsp),%xmm4
movsd  0x20(%rsp),%xmm1
movapd 0x30(%rsp),%xmm3
divsd  %xmm5,%xmm2
mulsd  %xmm2,%xmm4
movsd  %xmm4,0x58(%rsp)
mulsd  %xmm2,%xmm1
movsd  %xmm1,0xa8(%rsp)
mov    %r15d,%eax
movsd  0x50(%rsp,%rax,8),%xmm2
movsd  (%rbx),%xmm4
movsd  0x10(%rbx),%xmm5
subsd  %xmm3,%xmm4
subsd  %xmm3,%xmm5
movsd  0x50(%rsp),%xmm6
movapd %xmm4,%xmm3
subsd  %xmm5,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm3
jne    1332 <polint+0x222>
jp     1332 <polint+0x222>
lea    0xd29(%rip),%rdi
movsd  %xmm1,0x20(%rsp)
movsd  %xmm2,0x30(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm5,(%rsp)
movsd  %xmm3,0x8(%rsp)
movsd  %xmm6,0x40(%rsp)
call   1030 <puts@plt>
movsd  0x40(%rsp),%xmm6
movsd  0x8(%rsp),%xmm3
movsd  (%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
movsd  0x30(%rsp),%xmm2
movsd  0x20(%rsp),%xmm1
subsd  %xmm6,%xmm1
divsd  %xmm3,%xmm1
mulsd  %xmm1,%xmm5
movsd  %xmm5,0x50(%rsp)
mulsd  %xmm1,%xmm4
movsd  %xmm4,0xa0(%rsp)
movsd  0x48(%rsp),%xmm0
addsd  %xmm2,%xmm0
mov    %r14d,%eax
add    $0xffffffff,%r14d
lea    0xa0(%rsp,%r14,8),%rcx
lea    0x40(%rsp,%rax,8),%rax
cmove  %rcx,%rax
addsd  (%rax),%xmm0
add    $0xf0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [20 x i8] c"failure in polint!\0A\00"
define double @polint(double* %0, double* %1, double %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca [10 x double]
%18 = alloca [10 x double]
%19 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store double %2, double* %6
store i32 1, i32* %9
%20 = load double, double* %6
%21 = load double*, double** %4
%22 = getelementptr inbounds double, double* %21, i64 0
%23 = load double, double* %22
%24 = fsub double %20, %23
%25 = call double @llvm.fabs.f64(double %24)
store double %25, double* %12
store i32 0, i32* %7
br label %26
26: ; preds = %61, %3
%27 = load i32, i32* %7
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %64
29: ; preds = %26
%30 = load double, double* %6
%31 = load double*, double** %4
%32 = load i32, i32* %7
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %31, i64 %33
%35 = load double, double* %34
%36 = fsub double %30, %35
%37 = call double @llvm.fabs.f64(double %36)
store double %37, double* %13
%38 = load double, double* %13
%39 = load double, double* %12
%40 = fcmp olt double %38, %39
br i1 %40, label %41, label %44
41: ; preds = %29
%42 = load i32, i32* %7
store i32 %42, i32* %9
%43 = load double, double* %13
store double %43, double* %12
br label %44
44: ; preds = %41, %29
%45 = load double*, double** %5
%46 = load i32, i32* %7
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %45, i64 %47
%49 = load double, double* %48
%50 = load i32, i32* %7
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x double], [10 x double]* %17, i64 0, i64 %51
store double %49, double* %52
%53 = load double*, double** %5
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %53, i64 %55
%57 = load double, double* %56
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x double], [10 x double]* %18, i64 0, i64 %59
store double %57, double* %60
br label %61
61: ; preds = %44
%62 = load i32, i32* %7
%63 = add nsw i32 %62, 1
store i32 %63, i32* %7
br label %26
64: ; preds = %26
%65 = load double*, double** %5
%66 = load i32, i32* %9
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
%69 = load double, double* %68
store double %69, double* %19
%70 = load i32, i32* %9
%71 = sub nsw i32 %70, 1
store i32 %71, i32* %9
store i32 1, i32* %8
br label %72
72: ; preds = %158, %64
%73 = load i32, i32* %8
%74 = icmp slt i32 %73, 3
br i1 %74, label %75, label %161
75: ; preds = %72
store i32 0, i32* %7
br label %76
76: ; preds = %131, %75
%77 = load i32, i32* %7
%78 = load i32, i32* %8
%79 = sub nsw i32 3, %78
%80 = icmp slt i32 %77, %79
br i1 %80, label %81, label %134
81: ; preds = %76
%82 = load double*, double** %4
%83 = load i32, i32* %7
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %82, i64 %84
%86 = load double, double* %85
%87 = load double, double* %6
%88 = fsub double %86, %87
store double %88, double* %14
%89 = load double*, double** %4
%90 = load i32, i32* %7
%91 = load i32, i32* %8
%92 = add nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %89, i64 %93
%95 = load double, double* %94
%96 = load double, double* %6
%97 = fsub double %95, %96
store double %97, double* %15
%98 = load i32, i32* %7
%99 = add nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [10 x double], [10 x double]* %17, i64 0, i64 %100
%102 = load double, double* %101
%103 = load i32, i32* %7
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [10 x double], [10 x double]* %18, i64 0, i64 %104
%106 = load double, double* %105
%107 = fsub double %102, %106
store double %107, double* %16
%108 = load double, double* %14
%109 = load double, double* %15
%110 = fsub double %108, %109
store double %110, double* %11
%111 = load double, double* %11
%112 = fcmp oeq double %111, 0.000000e+00
br i1 %112, label %113, label %115
113: ; preds = %81
%114 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %115
115: ; preds = %113, %81
%116 = load double, double* %16
%117 = load double, double* %11
%118 = fdiv double %116, %117
store double %118, double* %11
%119 = load double, double* %15
%120 = load double, double* %11
%121 = fmul double %119, %120
%122 = load i32, i32* %7
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [10 x double], [10 x double]* %18, i64 0, i64 %123
store double %121, double* %124
%125 = load double, double* %14
%126 = load double, double* %11
%127 = fmul double %125, %126
%128 = load i32, i32* %7
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [10 x double], [10 x double]* %17, i64 0, i64 %129
store double %127, double* %130
br label %131
131: ; preds = %115
%132 = load i32, i32* %7
%133 = add nsw i32 %132, 1
store i32 %133, i32* %7
br label %76
134: ; preds = %76
%135 = load i32, i32* %9
%136 = add nsw i32 %135, 1
%137 = mul nsw i32 2, %136
%138 = load i32, i32* %8
%139 = sub nsw i32 3, %138
%140 = icmp slt i32 %137, %139
br i1 %140, label %141, label %147
141: ; preds = %134
%142 = load i32, i32* %9
%143 = add nsw i32 %142, 1
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [10 x double], [10 x double]* %17, i64 0, i64 %144
%146 = load double, double* %145
store double %146, double* %10
br label %154
147: ; preds = %134
%148 = load i32, i32* %9
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [10 x double], [10 x double]* %18, i64 0, i64 %149
%151 = load double, double* %150
store double %151, double* %10
%152 = load i32, i32* %9
%153 = sub nsw i32 %152, 1
store i32 %153, i32* %9
br label %154
154: ; preds = %147, %141
%155 = load double, double* %19
%156 = load double, double* %10
%157 = fadd double %155, %156
store double %157, double* %19
br label %158
158: ; preds = %154
%159 = load i32, i32* %8
%160 = add nsw i32 %159, 1
store i32 %160, i32* %8
br label %72
161: ; preds = %72
%162 = load double, double* %19
ret double %162
}

LLVM IR (-O2):
@str = [19 x i8] c"failure in polint!\00"
define double @polint(double* nocapture %0, double* nocapture %1, double %2) {
%4 = bitcast double* %1 to i8*
%5 = alloca [10 x double]
%6 = bitcast [10 x double]* %5 to i8*
%7 = alloca [10 x double]
%8 = bitcast [10 x double]* %7 to i8*
%9 = load double, double* %0
%10 = getelementptr inbounds double, double* %0, i64 1
%11 = load double, double* %10
%12 = insertelement <2 x double> poison, double %2, i64 0
%13 = shufflevector <2 x double> %12, <2 x double> poison, <2 x i32> zeroinitializer
%14 = insertelement <2 x double> poison, double %11, i64 0
%15 = insertelement <2 x double> %14, double %9, i64 1
%16 = fsub <2 x double> %13, %15
%17 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %16)
%18 = extractelement <2 x double> %17, i64 0
%19 = extractelement <2 x double> %17, i64 1
%20 = fcmp olt double %18, %19
%21 = select i1 %20, double %18, double %19
%22 = getelementptr inbounds double, double* %0, i64 2
%23 = load double, double* %22
%24 = fsub double %2, %23
%25 = tail call double @llvm.fabs.f64(double %24)
%26 = fcmp olt double %25, %21
%27 = select i1 %26, i32 2, i32 1
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds double, double* %1, i64 %28
%30 = load double, double* %29
%31 = add nsw i32 %27, -1
%32 = fsub double %9, %2
%33 = fsub double %11, %2
%34 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 1
%35 = load double, double* %34
%36 = getelementptr inbounds [10 x double], [10 x double]* %7, i64 0, i64 0
%37 = load double, double* %36
%38 = fsub double %35, %37
%39 = fsub double %32, %33
%40 = fcmp oeq double %39, 0.000000e+00
br i1 %40, label %41, label %46
41: ; preds = %3
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%43 = load double, double* %10
%44 = load double, double* %22
%45 = fsub double %43, %2
br label %46
46: ; preds = %41, %3
%47 = phi double [ %45, %41 ], [ %33, %3 ]
%48 = phi double [ %44, %41 ], [ %23, %3 ]
%49 = fdiv double %38, %39
%50 = fmul double %33, %49
store double %50, double* %36
%51 = fsub double %48, %2
%52 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 2
%53 = load double, double* %52
%54 = getelementptr inbounds [10 x double], [10 x double]* %7, i64 0, i64 1
%55 = load double, double* %54
%56 = fsub double %53, %55
%57 = fsub double %47, %51
%58 = fcmp oeq double %57, 0.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %46
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
br label %61
61: ; preds = %59, %46
%62 = fdiv double %56, %57
%63 = fmul double %51, %62
store double %63, double* %54
%64 = fmul double %47, %62
store double %64, double* %34
%65 = zext i32 %31 to i64
%66 = getelementptr inbounds [10 x double], [10 x double]* %7, i64 0, i64 %65
%67 = load double, double* %66
%68 = load double, double* %0
%69 = fsub double %68, %2
%70 = load double, double* %22
%71 = fsub double %70, %2
%72 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 1
%73 = load double, double* %72
%74 = getelementptr inbounds [10 x double], [10 x double]* %7, i64 0, i64 0
%75 = load double, double* %74
%76 = fsub double %69, %71
%77 = fcmp oeq double %76, 0.000000e+00
br i1 %77, label %78, label %80
78: ; preds = %61
%79 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
br label %80
80: ; preds = %61, %78
%81 = fsub double %73, %75
%82 = fdiv double %81, %76
%83 = fmul double %71, %82
store double %83, double* %74
%84 = fmul double %69, %82
%85 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 0
store double %84, double* %85
%86 = add nsw i32 %27, -2
%87 = fadd double %30, %67
%88 = add nsw i32 %27, -1
%89 = icmp eq i32 %88, 0
%90 = zext i32 %88 to i64
%91 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %90
%92 = sext i32 %86 to i64
%93 = getelementptr inbounds [10 x double], [10 x double]* %7, i64 0, i64 %92
%94 = select i1 %89, double* %91, double* %93
%95 = load double, double* %94
%96 = fadd double %87, %95
ret double %96
}