; 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.6 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@__func__.array_derive_spline_table_line_to_line = external hidden unnamed_addr constant [39 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 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
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @array_derive_spline_table_line_to_line(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #4 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = icmp eq i32 %27, %28
  br i1 %29, label %30, label %38

30:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %31 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %31, ptr noundef @.str.6, i32 noundef %32, i32 noundef %33)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %34 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %35 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %34, ptr noundef @.str.1, ptr noundef @.str.11, ptr noundef %35)
  %36 = load ptr, ptr %17, align 8, !tbaa !5
  %37 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %36, ptr noundef @.str.3, ptr noundef @__func__.array_derive_spline_table_line_to_line, i32 noundef 119, ptr noundef %37)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %211

38:                                               ; preds = %8
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %42, label %50

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #5
  %43 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = load i32, ptr %16, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %43, ptr noundef @.str.6, i32 noundef %44, i32 noundef %45)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %46 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %47 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %46, ptr noundef @.str.1, ptr noundef @.str.12, ptr noundef %47)
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %48, ptr noundef @.str.3, ptr noundef @__func__.array_derive_spline_table_line_to_line, i32 noundef 125, ptr noundef %49)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %211

50:                                               ; preds = %38
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = icmp slt i32 %51, 2
  br i1 %52, label %53, label %59

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %54 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %54, ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #5
  %55 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %56 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %55, ptr noundef @.str.1, ptr noundef @.str.9, ptr noundef %56)
  %57 = load ptr, ptr %17, align 8, !tbaa !5
  %58 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %57, ptr noundef @.str.3, ptr noundef @__func__.array_derive_spline_table_line_to_line, i32 noundef 129, ptr noundef %58)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %211

59:                                               ; preds = %50
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %138, %59
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  %64 = icmp slt i32 %61, %63
  br i1 %64, label %65, label %141

65:                                               ; preds = %60
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i32, ptr %18, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %66, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = fsub double %71, %76
  store double %77, ptr %19, align 8, !tbaa !11
  %78 = load double, ptr %19, align 8, !tbaa !11
  %79 = fcmp oeq double %78, 0.000000e+00
  br i1 %79, label %80, label %83

80:                                               ; preds = %65
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %81, ptr noundef @.str.10, ptr noundef @__func__.array_derive_spline_table_line_to_line, i32 noundef 135) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %211

83:                                               ; preds = %65
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = mul nsw i32 %86, %87
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = add nsw i32 %88, %89
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %84, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = mul nsw i32 %95, %96
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = add nsw i32 %97, %98
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %94, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = fsub double %93, %102
  %104 = load double, ptr %19, align 8, !tbaa !11
  %105 = fdiv double %103, %104
  %106 = load double, ptr %19, align 8, !tbaa !11
  %107 = fdiv double %106, 6.000000e+00
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = mul nsw i32 %110, %111
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = add nsw i32 %112, %113
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %108, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !11
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = mul nsw i32 %119, %120
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = add nsw i32 %121, %122
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %118, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %126, double %117)
  %128 = fneg double %107
  %129 = call double @llvm.fmuladd.f64(double %128, double %127, double %105)
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = mul nsw i32 %131, %132
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = add nsw i32 %133, %134
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %130, i64 %136
  store double %129, ptr %137, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %83
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %18, align 4, !tbaa !9
  br label %60, !llvm.loop !13

141:                                              ; preds = %60
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = sub nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %142, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = sub nsw i32 %149, 2
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %148, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !11
  %154 = fsub double %147, %153
  store double %154, ptr %19, align 8, !tbaa !11
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = sub nsw i32 %156, 1
  %158 = load i32, ptr %13, align 4, !tbaa !9
  %159 = mul nsw i32 %157, %158
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = add nsw i32 %159, %160
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds double, ptr %155, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = sub nsw i32 %166, 2
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = mul nsw i32 %167, %168
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = add nsw i32 %169, %170
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds double, ptr %165, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !11
  %175 = fsub double %164, %174
  %176 = load double, ptr %19, align 8, !tbaa !11
  %177 = fdiv double %175, %176
  %178 = load double, ptr %19, align 8, !tbaa !11
  %179 = fdiv double %178, 6.000000e+00
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = sub nsw i32 %181, 1
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = mul nsw i32 %182, %183
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = add nsw i32 %184, %185
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds double, ptr %180, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load i32, ptr %11, align 4, !tbaa !9
  %192 = sub nsw i32 %191, 2
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = mul nsw i32 %192, %193
  %195 = load i32, ptr %15, align 4, !tbaa !9
  %196 = add nsw i32 %194, %195
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %190, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %189, double %199)
  %201 = call double @llvm.fmuladd.f64(double %179, double %200, double %177)
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = sub nsw i32 %203, 1
  %205 = load i32, ptr %13, align 4, !tbaa !9
  %206 = mul nsw i32 %204, %205
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = add nsw i32 %206, %207
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds double, ptr %202, i64 %209
  store double %201, ptr %210, align 8, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %211

211:                                              ; preds = %141, %80, %53, %42, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %212 = load i32, ptr %9, align 4
  ret i32 %212
}

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 "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 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 #5 = { 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"}


; 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.6 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@__func__.array_derive_spline_table_line_to_line = external hidden unnamed_addr constant [39 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 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: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @array_derive_spline_table_line_to_line(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) local_unnamed_addr #4 {
  %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 = icmp eq i32 %5, %4
  br i1 %15, label %16, label %17

16:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.6, i32 noundef %5, i32 noundef %5) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11, ptr noundef nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_derive_spline_table_line_to_line, i32 noundef 119, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %79

17:                                               ; preds = %8
  %18 = icmp eq i32 %5, %6
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.6, i32 noundef %5, i32 noundef %5) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.12, ptr noundef nonnull %11) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_derive_spline_table_line_to_line, i32 noundef 125, ptr noundef nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  br label %79

20:                                               ; preds = %17
  %21 = icmp slt i32 %1, 2
  br i1 %21, label %27, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %20
  %22 = add nsw i32 %1, -1
  %23 = sext i32 %3 to i64
  %24 = sext i32 %4 to i64
  %25 = sext i32 %5 to i64
  %26 = sext i32 %6 to i64
  %wide.trip.count = zext nneg i32 %22 to i64
  %invariant.gep = getelementptr double, ptr %2, i64 %24
  %invariant.gep82 = getelementptr double, ptr %2, i64 %24
  %invariant.gep84 = getelementptr double, ptr %2, i64 %25
  %invariant.gep86 = getelementptr double, ptr %2, i64 %25
  %invariant.gep88 = getelementptr double, ptr %2, i64 %26
  br label %.lr.ph

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.8) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.9, ptr noundef nonnull %13) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.array_derive_spline_table_line_to_line, i32 noundef 129, ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #5
  br label %79

.lr.ph:                                           ; preds = %.lr.ph.preheader, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %36 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = fsub double %29, %31
  %33 = fcmp oeq double %32, 0.000000e+00
  br i1 %33, label %34, label %36

34:                                               ; preds = %.lr.ph
  %35 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull @__func__.array_derive_spline_table_line_to_line, i32 noundef 135) #5
  br label %79

36:                                               ; preds = %.lr.ph
  %37 = mul nsw i64 %indvars.iv.next, %23
  %gep = getelementptr double, ptr %invariant.gep, i64 %37
  %38 = load double, ptr %gep, align 8, !tbaa !5
  %39 = mul nsw i64 %indvars.iv, %23
  %gep83 = getelementptr double, ptr %invariant.gep82, i64 %39
  %40 = load double, ptr %gep83, align 8, !tbaa !5
  %41 = fsub double %38, %40
  %42 = fdiv double %41, %32
  %gep85 = getelementptr double, ptr %invariant.gep84, i64 %37
  %43 = load double, ptr %gep85, align 8, !tbaa !5
  %gep87 = getelementptr double, ptr %invariant.gep86, i64 %39
  %44 = load double, ptr %gep87, align 8, !tbaa !5
  %45 = tail call double @llvm.fmuladd.f64(double %44, double 2.000000e+00, double %43)
  %46 = fdiv double %32, -6.000000e+00
  %47 = tail call double @llvm.fmuladd.f64(double %46, double %45, double %42)
  %gep89 = getelementptr double, ptr %invariant.gep88, i64 %39
  store double %47, ptr %gep89, align 8, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %36
  %.phi.trans.insert = getelementptr inbounds double, ptr %0, i64 %wide.trip.count
  %.pre81 = load double, ptr %.phi.trans.insert, align 8, !tbaa !5
  %48 = add nsw i32 %1, -2
  %49 = zext nneg i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %0, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = fsub double %.pre81, %51
  %53 = mul nsw i32 %22, %3
  %54 = add nsw i32 %53, %4
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %2, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !5
  %58 = mul nsw i32 %48, %3
  %59 = add nsw i32 %58, %4
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %2, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = fsub double %57, %62
  %64 = fdiv double %63, %52
  %65 = fdiv double %52, 6.000000e+00
  %66 = add nsw i32 %53, %5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %2, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = add nsw i32 %58, %5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %2, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = tail call double @llvm.fmuladd.f64(double %69, double 2.000000e+00, double %73)
  %75 = tail call double @llvm.fmuladd.f64(double %65, double %74, double %64)
  %76 = add nsw i32 %53, %6
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %2, i64 %77
  store double %75, ptr %78, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %._crit_edge, %34, %27, %19, %16
  %.069 = phi i32 [ 1, %16 ], [ 1, %19 ], [ 1, %27 ], [ 1, %34 ], [ 0, %._crit_edge ]
  ret i32 %.069
}

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 = { nofree nounwind "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 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 #5 = { 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"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass