; 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.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__func__.array_derive_spline = external hidden unnamed_addr constant [20 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

; 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_derive_spline(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #3 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %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
  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 ptr %3, ptr %13, align 8, !tbaa !5
  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
  %25 = load i32, ptr %16, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %36

28:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %29 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %30 = load i32, ptr %16, align 4, !tbaa !9
  %31 = load i32, ptr %15, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %29, ptr noundef @.str.6, i32 noundef %30, i32 noundef %31)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %32 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %33 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %32, ptr noundef @.str.1, ptr noundef @.str.7, ptr noundef %33)
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  %35 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %34, ptr noundef @.str.3, ptr noundef @__func__.array_derive_spline, i32 noundef 72, ptr noundef %35)
  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 %197

36:                                               ; preds = %8
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = icmp slt i32 %37, 2
  br i1 %38, label %39, label %45

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #5
  %40 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %40, ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %41 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %42 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %41, ptr noundef @.str.1, ptr noundef @.str.9, ptr noundef %42)
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  %44 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %43, ptr noundef @.str.3, ptr noundef @__func__.array_derive_spline, i32 noundef 76, ptr noundef %44)
  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 %197

45:                                               ; preds = %36
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %124, %45
  %47 = load i32, ptr %18, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = sub nsw i32 %48, 1
  %50 = icmp slt i32 %47, %49
  br i1 %50, label %51, label %127

51:                                               ; preds = %46
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i32, ptr %18, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %52, i64 %55
  %57 = load double, ptr %56, 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
  %63 = fsub double %57, %62
  store double %63, ptr %19, align 8, !tbaa !11
  %64 = load double, ptr %19, align 8, !tbaa !11
  %65 = fcmp oeq double %64, 0.000000e+00
  br i1 %65, label %66, label %69

66:                                               ; preds = %51
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %67, ptr noundef @.str.10, ptr noundef @__func__.array_derive_spline, i32 noundef 82) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %197

69:                                               ; preds = %51
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = mul nsw i32 %72, %73
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = add nsw i32 %74, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %70, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = mul nsw i32 %81, %82
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = add nsw i32 %83, %84
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %80, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = fsub double %79, %88
  %90 = load double, ptr %19, align 8, !tbaa !11
  %91 = fdiv double %89, %90
  %92 = load double, ptr %19, align 8, !tbaa !11
  %93 = fdiv double %92, 6.000000e+00
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = mul nsw i32 %96, %97
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = add nsw i32 %98, %99
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %94, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = mul nsw i32 %105, %106
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = add nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %104, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !11
  %113 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %112, double %103)
  %114 = fneg double %93
  %115 = call double @llvm.fmuladd.f64(double %114, double %113, double %91)
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = mul nsw i32 %117, %118
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = add nsw i32 %119, %120
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %116, i64 %122
  store double %115, ptr %123, align 8, !tbaa !11
  br label %124

124:                                              ; preds = %69
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %18, align 4, !tbaa !9
  br label %46, !llvm.loop !13

127:                                              ; preds = %46
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = sub nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %128, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 2
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %134, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fsub double %133, %139
  store double %140, ptr %19, align 8, !tbaa !11
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = sub nsw i32 %142, 1
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = mul nsw i32 %143, %144
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %141, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !11
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = sub nsw i32 %152, 2
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = mul nsw i32 %153, %154
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = add nsw i32 %155, %156
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %151, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = fsub double %150, %160
  %162 = load double, ptr %19, align 8, !tbaa !11
  %163 = fdiv double %161, %162
  %164 = load double, ptr %19, align 8, !tbaa !11
  %165 = fdiv double %164, 6.000000e+00
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = sub nsw i32 %167, 1
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = mul nsw i32 %168, %169
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = add nsw i32 %170, %171
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %166, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !11
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = sub nsw i32 %177, 2
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = mul nsw i32 %178, %179
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = add nsw i32 %180, %181
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %176, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %175, double %185)
  %187 = call double @llvm.fmuladd.f64(double %165, double %186, double %163)
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = sub nsw i32 %189, 1
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = mul nsw i32 %190, %191
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = add nsw i32 %192, %193
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %188, i64 %195
  store double %187, ptr %196, align 8, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %197

197:                                              ; preds = %127, %66, %39, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %198 = load i32, ptr %9, align 4
  ret i32 %198
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

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 "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.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__func__.array_derive_spline = external hidden unnamed_addr constant [20 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

; 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_derive_spline(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, i32 noundef %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 = icmp eq i32 %6, %5
  br i1 %13, label %14, label %15

14:                                               ; 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 %6, i32 noundef %6) #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.7, 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, i32 noundef 72, 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 %75

15:                                               ; preds = %8
  %16 = icmp slt i32 %1, 2
  br i1 %16, label %21, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %15
  %17 = add nsw i32 %1, -1
  %18 = sext i32 %4 to i64
  %19 = sext i32 %5 to i64
  %20 = sext i32 %6 to i64
  %wide.trip.count = zext nneg i32 %17 to i64
  %invariant.gep = getelementptr double, ptr %2, i64 %20
  br label %.lr.ph

21:                                               ; preds = %15
  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.8) #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.9, 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, i32 noundef 76, 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 %75

.lr.ph:                                           ; preds = %.lr.ph.preheader, %30
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %30 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next
  %23 = load double, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = fsub double %23, %25
  %27 = fcmp oeq double %26, 0.000000e+00
  br i1 %27, label %28, label %30

28:                                               ; preds = %.lr.ph
  %29 = 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, i32 noundef 82) #5
  br label %75

30:                                               ; preds = %.lr.ph
  %31 = mul nsw i64 %indvars.iv.next, %18
  %32 = add nsw i64 %31, %19
  %33 = getelementptr inbounds double, ptr %2, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = mul nsw i64 %indvars.iv, %18
  %36 = add nsw i64 %35, %19
  %37 = getelementptr inbounds double, ptr %2, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = fsub double %34, %38
  %40 = fdiv double %39, %26
  %41 = getelementptr inbounds double, ptr %3, i64 %32
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %3, i64 %36
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = tail call double @llvm.fmuladd.f64(double %44, double 2.000000e+00, double %42)
  %46 = fdiv double %26, -6.000000e+00
  %47 = tail call double @llvm.fmuladd.f64(double %46, double %45, double %40)
  %gep = getelementptr double, ptr %invariant.gep, i64 %35
  store double %47, ptr %gep, 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 = %30
  %.phi.trans.insert = getelementptr inbounds double, ptr %0, i64 %wide.trip.count
  %.pre74 = 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 %.pre74, %51
  %53 = mul nsw i32 %17, %4
  %54 = add nsw i32 %53, %5
  %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, %4
  %59 = add nsw i32 %58, %5
  %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 = getelementptr inbounds double, ptr %3, i64 %55
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %3, i64 %60
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = tail call double @llvm.fmuladd.f64(double %67, double 2.000000e+00, double %69)
  %71 = tail call double @llvm.fmuladd.f64(double %65, double %70, double %64)
  %72 = add nsw i32 %53, %6
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %2, i64 %73
  store double %71, ptr %74, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %._crit_edge, %28, %21, %14
  %.064 = phi i32 [ 1, %14 ], [ 1, %21 ], [ 1, %28 ], [ 0, %._crit_edge ]
  ret i32 %.064
}

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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 = { 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 #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