; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (arrays)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [25 x i8], align 1
@__func__.array_interpolate_two_arrays_one_column = external hidden unnamed_addr constant [40 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @array_interpolate_two_arrays_one_column(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  %25 = alloca i32, align 4
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  %29 = alloca [2048 x i8], align 16
  %30 = alloca [2048 x i8], align 16
  %31 = alloca [2048 x i8], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store double %5, ptr %15, align 8, !tbaa !11
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store double 1.000000e-09, ptr %22, align 8, !tbaa !11
  store i32 0, ptr %18, align 4, !tbaa !9
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = sub nsw i32 %32, 1
  store i32 %33, ptr %19, align 4, !tbaa !9
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load i32, ptr %18, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %34, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !11
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = load i32, ptr %19, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds double, ptr %39, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = fcmp olt double %38, %43
  br i1 %44, label %45, label %115

45:                                               ; preds = %8
  %46 = load double, ptr %15, align 8, !tbaa !11
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load i32, ptr %18, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %47, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = load double, ptr %22, align 8, !tbaa !11
  %53 = fsub double %51, %52
  %54 = fcmp olt double %46, %53
  br i1 %54, label %55, label %67

55:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #4
  %56 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %57 = load double, ptr %15, align 8, !tbaa !11
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load i32, ptr %18, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %56, ptr noundef @.str.36, double noundef %57, double noundef %62)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #4
  %63 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %64 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %63, ptr noundef @.str.1, ptr noundef @.str.37, ptr noundef %64)
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  %66 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %65, ptr noundef @.str.3, ptr noundef @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2730, ptr noundef %66)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %229

67:                                               ; preds = %45
  %68 = load double, ptr %15, align 8, !tbaa !11
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i32, ptr %19, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %69, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = load double, ptr %22, align 8, !tbaa !11
  %75 = fadd double %73, %74
  %76 = fcmp ogt double %68, %75
  br i1 %76, label %77, label %89

77:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #4
  %78 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %79 = load double, ptr %15, align 8, !tbaa !11
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i32, ptr %19, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.38, double noundef %79, double noundef %84)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #4
  %85 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %86 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %85, ptr noundef @.str.1, ptr noundef @.str.39, ptr noundef %86)
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %87, ptr noundef @.str.3, ptr noundef @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2734, ptr noundef %88)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %229

89:                                               ; preds = %67
  br label %90

90:                                               ; preds = %113, %89
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = sub nsw i32 %91, %92
  %94 = icmp sgt i32 %93, 1
  br i1 %94, label %95, label %114

95:                                               ; preds = %90
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = add nsw i32 %96, %97
  %99 = sitofp i32 %98 to double
  %100 = fmul double 5.000000e-01, %99
  %101 = fptosi double %100 to i32
  store i32 %101, ptr %20, align 4, !tbaa !9
  %102 = load double, ptr %15, align 8, !tbaa !11
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = fcmp olt double %102, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %95
  %110 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %110, ptr %19, align 4, !tbaa !9
  br label %113

111:                                              ; preds = %95
  %112 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %112, ptr %18, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %111, %109
  br label %90, !llvm.loop !13

114:                                              ; preds = %90
  br label %185

115:                                              ; preds = %8
  %116 = load double, ptr %15, align 8, !tbaa !11
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = load double, ptr %22, align 8, !tbaa !11
  %123 = fsub double %121, %122
  %124 = fcmp olt double %116, %123
  br i1 %124, label %125, label %137

125:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #4
  %126 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %127 = load double, ptr %15, align 8, !tbaa !11
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %128, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %126, ptr noundef @.str.36, double noundef %127, double noundef %132)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #4
  %133 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %134 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %133, ptr noundef @.str.1, ptr noundef @.str.40, ptr noundef %134)
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %135, ptr noundef @.str.3, ptr noundef @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2750, ptr noundef %136)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %229

137:                                              ; preds = %115
  %138 = load double, ptr %15, align 8, !tbaa !11
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = load double, ptr %22, align 8, !tbaa !11
  %145 = fadd double %143, %144
  %146 = fcmp ogt double %138, %145
  br i1 %146, label %147, label %159

147:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #4
  %148 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %149 = load double, ptr %15, align 8, !tbaa !11
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds double, ptr %150, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %148, ptr noundef @.str.38, double noundef %149, double noundef %154)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %31) #4
  %155 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %156 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %155, ptr noundef @.str.1, ptr noundef @.str.41, ptr noundef %156)
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %157, ptr noundef @.str.3, ptr noundef @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2754, ptr noundef %158)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #4
  store i32 1, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %229

159:                                              ; preds = %137
  br label %160

160:                                              ; preds = %183, %159
  %161 = load i32, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %18, align 4, !tbaa !9
  %163 = sub nsw i32 %161, %162
  %164 = icmp sgt i32 %163, 1
  br i1 %164, label %165, label %184

165:                                              ; preds = %160
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = load i32, ptr %19, align 4, !tbaa !9
  %168 = add nsw i32 %166, %167
  %169 = sitofp i32 %168 to double
  %170 = fmul double 5.000000e-01, %169
  %171 = fptosi double %170 to i32
  store i32 %171, ptr %20, align 4, !tbaa !9
  %172 = load double, ptr %15, align 8, !tbaa !11
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = fcmp ogt double %172, %177
  br i1 %178, label %179, label %181

179:                                              ; preds = %165
  %180 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %180, ptr %19, align 4, !tbaa !9
  br label %183

181:                                              ; preds = %165
  %182 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %182, ptr %18, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %181, %179
  br label %160, !llvm.loop !15

184:                                              ; preds = %160
  br label %185

185:                                              ; preds = %184, %114
  %186 = load double, ptr %15, align 8, !tbaa !11
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = fsub double %186, %191
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !11
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load i32, ptr %18, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds double, ptr %198, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = fsub double %197, %202
  %204 = fdiv double %192, %203
  store double %204, ptr %21, align 8, !tbaa !11
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = mul nsw i32 %206, %207
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = add nsw i32 %208, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %205, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = load double, ptr %21, align 8, !tbaa !11
  %215 = fsub double 1.000000e+00, %214
  %216 = load double, ptr %21, align 8, !tbaa !11
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = mul nsw i32 %218, %219
  %221 = load i32, ptr %19, align 4, !tbaa !9
  %222 = add nsw i32 %220, %221
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %217, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = fmul double %216, %225
  %227 = call double @llvm.fmuladd.f64(double %213, double %215, double %226)
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  store double %227, ptr %228, align 8, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %25, align 4
  br label %229

229:                                              ; preds = %185, %147, %125, %77, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %230 = load i32, ptr %9, align 4
  ret i32 %230
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [25 x i8], align 1
@__func__.array_interpolate_two_arrays_one_column = external hidden unnamed_addr constant [40 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @array_interpolate_two_arrays_one_column(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, ptr nocapture noundef writeonly %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = add nsw i32 %4, -1
  %18 = load double, ptr %0, align 8, !tbaa !5
  %19 = sext i32 %17 to i64
  %20 = getelementptr inbounds double, ptr %0, i64 %19
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = fcmp olt double %18, %21
  br i1 %22, label %23, label %42

23:                                               ; preds = %8
  %24 = fadd double %18, -1.000000e-09
  %25 = fcmp ogt double %24, %5
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.36, double noundef %5, double noundef %18) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.37, ptr noundef nonnull %9) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2730, ptr noundef nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #4
  br label %82

27:                                               ; preds = %23
  %28 = fadd double %21, 1.000000e-09
  %29 = fcmp olt double %28, %5
  br i1 %29, label %31, label %.preheader

.preheader:                                       ; preds = %27
  %30 = icmp sgt i32 %4, 2
  br i1 %30, label %.lr.ph94, label %.loopexit

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.38, double noundef %5, double noundef %21) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.39, ptr noundef nonnull %11) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2734, ptr noundef nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #4
  br label %82

.lr.ph94:                                         ; preds = %.preheader, %.lr.ph94
  %.07393 = phi i32 [ %.073., %.lr.ph94 ], [ 0, %.preheader ]
  %.07492 = phi i32 [ %..074, %.lr.ph94 ], [ %17, %.preheader ]
  %32 = add nsw i32 %.07393, %.07492
  %33 = sitofp i32 %32 to double
  %34 = fmul double %33, 5.000000e-01
  %35 = fptosi double %34 to i32
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %0, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = fcmp ogt double %38, %5
  %..074 = select i1 %39, i32 %35, i32 %.07492
  %.073. = select i1 %39, i32 %.07393, i32 %35
  %40 = sub nsw i32 %..074, %.073.
  %41 = icmp sgt i32 %40, 1
  br i1 %41, label %.lr.ph94, label %.loopexit, !llvm.loop !9

42:                                               ; preds = %8
  %43 = fadd double %21, -1.000000e-09
  %44 = fcmp ogt double %43, %5
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.36, double noundef %5, double noundef %21) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.40, ptr noundef nonnull %13) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2750, ptr noundef nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #4
  br label %82

46:                                               ; preds = %42
  %47 = fadd double %18, 1.000000e-09
  %48 = fcmp olt double %47, %5
  br i1 %48, label %50, label %.preheader87

.preheader87:                                     ; preds = %46
  %49 = icmp sgt i32 %4, 2
  br i1 %49, label %.lr.ph, label %.loopexit

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.38, double noundef %5, double noundef %18) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.41, ptr noundef nonnull %15) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_interpolate_two_arrays_one_column, i32 noundef 2754, ptr noundef nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #4
  br label %82

.lr.ph:                                           ; preds = %.preheader87, %.lr.ph
  %.290 = phi i32 [ %.2., %.lr.ph ], [ 0, %.preheader87 ]
  %.27689 = phi i32 [ %..276, %.lr.ph ], [ %17, %.preheader87 ]
  %51 = add nsw i32 %.290, %.27689
  %52 = sitofp i32 %51 to double
  %53 = fmul double %52, 5.000000e-01
  %54 = fptosi double %53 to i32
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %0, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !5
  %58 = fcmp olt double %57, %5
  %..276 = select i1 %58, i32 %54, i32 %.27689
  %.2. = select i1 %58, i32 %.290, i32 %54
  %59 = sub nsw i32 %..276, %.2.
  %60 = icmp sgt i32 %59, 1
  br i1 %60, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph94, %.preheader87, %.preheader
  %.478 = phi i32 [ %17, %.preheader ], [ %17, %.preheader87 ], [ %..074, %.lr.ph94 ], [ %..276, %.lr.ph ]
  %.4 = phi i32 [ 0, %.preheader ], [ 0, %.preheader87 ], [ %.073., %.lr.ph94 ], [ %.2., %.lr.ph ]
  %61 = sext i32 %.4 to i64
  %62 = getelementptr inbounds double, ptr %0, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = fsub double %5, %63
  %65 = sext i32 %.478 to i64
  %66 = getelementptr inbounds double, ptr %0, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = fsub double %67, %63
  %69 = fdiv double %64, %68
  %70 = mul nsw i32 %4, %3
  %71 = add nsw i32 %.4, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %1, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !5
  %75 = fsub double 1.000000e+00, %69
  %76 = add nsw i32 %.478, %70
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %1, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = fmul double %69, %79
  %81 = tail call double @llvm.fmuladd.f64(double %74, double %75, double %80)
  store double %81, ptr %6, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %.loopexit, %50, %45, %31, %26
  %.0 = phi i32 [ 1, %26 ], [ 1, %31 ], [ 0, %.loopexit ], [ 1, %45 ], [ 1, %50 ]
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass