; 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.30 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 x i8], align 1
@__func__.array_interpolate_growing_closeby = external hidden unnamed_addr constant [34 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

; 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) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @array_interpolate_growing_closeby(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) #3 {
  %10 = alloca i32, align 4
  %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 ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store i32 %2, ptr %13, align 4, !tbaa !9
  store i32 %3, ptr %14, align 4, !tbaa !9
  store double %4, ptr %15, align 8, !tbaa !11
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store i32 %7, ptr %18, align 4, !tbaa !9
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %25 = load ptr, ptr %16, align 8, !tbaa !5
  %26 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %26, ptr %20, align 4, !tbaa !9
  %27 = load ptr, ptr %16, align 8, !tbaa !5
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %21, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %57, %9
  %31 = load double, ptr %15, align 8, !tbaa !11
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = load i32, ptr %20, align 4, !tbaa !9
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = mul nsw i32 %33, %34
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %32, i64 %36
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %37, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = fcmp olt double %31, %41
  br i1 %42, label %43, label %58

43:                                               ; preds = %30
  %44 = load i32, ptr %20, align 4, !tbaa !9
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %20, align 4, !tbaa !9
  %46 = load i32, ptr %20, align 4, !tbaa !9
  %47 = icmp slt i32 %46, 0
  br i1 %47, label %48, label %57

48:                                               ; preds = %43
  %49 = load ptr, ptr %19, align 8, !tbaa !5
  %50 = load double, ptr %15, align 8, !tbaa !11
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %51, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %49, ptr noundef @.str.30, ptr noundef @__func__.array_interpolate_growing_closeby, i32 noundef 2309, double noundef %50, double noundef %55) #4
  store i32 1, ptr %10, align 4
  store i32 1, ptr %24, align 4
  br label %178

57:                                               ; preds = %43
  br label %30, !llvm.loop !13

58:                                               ; preds = %30
  %59 = load i32, ptr %20, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %21, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %95, %58
  %62 = load double, ptr %15, align 8, !tbaa !11
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = load i32, ptr %21, align 4, !tbaa !9
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = mul nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %63, i64 %67
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %68, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = fcmp ogt double %62, %72
  br i1 %73, label %74, label %96

74:                                               ; preds = %61
  %75 = load i32, ptr %21, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %21, align 4, !tbaa !9
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = sub nsw i32 %78, 1
  %80 = icmp sgt i32 %77, %79
  br i1 %80, label %81, label %95

81:                                               ; preds = %74
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  %83 = load double, ptr %15, align 8, !tbaa !11
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = sub nsw i32 %85, 1
  %87 = load i32, ptr %12, 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 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %82, ptr noundef @.str.31, ptr noundef @__func__.array_interpolate_growing_closeby, i32 noundef 2318, double noundef %83, double noundef %93) #4
  store i32 1, ptr %10, align 4
  store i32 1, ptr %24, align 4
  br label %178

95:                                               ; preds = %74
  br label %61, !llvm.loop !15

96:                                               ; preds = %61
  %97 = load i32, ptr %21, align 4, !tbaa !9
  %98 = sub nsw i32 %97, 1
  store i32 %98, ptr %20, align 4, !tbaa !9
  %99 = load i32, ptr %20, align 4, !tbaa !9
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %99, ptr %100, align 4, !tbaa !9
  %101 = load double, ptr %15, align 8, !tbaa !11
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load i32, ptr %20, align 4, !tbaa !9
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = mul nsw i32 %103, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %102, i64 %106
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds double, ptr %107, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !11
  %112 = fsub double %101, %111
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i32, ptr %21, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = mul nsw i32 %114, %115
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %113, i64 %117
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !11
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = mul nsw i32 %124, %125
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %123, i64 %127
  %129 = load i32, ptr %14, 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
  %133 = fsub double %122, %132
  %134 = fdiv double %112, %133
  store double %134, ptr %23, align 8, !tbaa !11
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %169, %96
  %136 = load i32, ptr %22, align 4, !tbaa !9
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %139, label %172

139:                                              ; preds = %135
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = mul nsw i32 %141, %142
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %140, i64 %144
  %146 = load i32, ptr %22, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load double, ptr %23, align 8, !tbaa !11
  %151 = fsub double 1.000000e+00, %150
  %152 = load double, ptr %23, align 8, !tbaa !11
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = load i32, ptr %21, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = mul nsw i32 %154, %155
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %153, i64 %157
  %159 = load i32, ptr %22, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !11
  %163 = fmul double %152, %162
  %164 = call double @llvm.fmuladd.f64(double %149, double %151, double %163)
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds double, ptr %165, i64 %167
  store double %164, ptr %168, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %139
  %170 = load i32, ptr %22, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %22, align 4, !tbaa !9
  br label %135, !llvm.loop !16

172:                                              ; preds = %135
  %173 = load double, ptr %15, align 8, !tbaa !11
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  store double %173, ptr %177, align 8, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %24, align 4
  br label %178

178:                                              ; preds = %172, %81, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %179 = load i32, ptr %10, align 4
  ret i32 %179
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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}
!16 = distinct !{!16, !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.30 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 x i8], align 1
@__func__.array_interpolate_growing_closeby = external hidden unnamed_addr constant [34 x i8], align 1

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

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

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 2) i32 @array_interpolate_growing_closeby(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6, i32 noundef %7, ptr nocapture noundef writeonly %8) local_unnamed_addr #2 {
  %10 = ptrtoint ptr %0 to i64
  %11 = ptrtoint ptr %6 to i64
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = sext i32 %3 to i64
  %invariant.gep = getelementptr double, ptr %0, i64 %13
  %14 = sext i32 %12 to i64
  %15 = sext i32 %1 to i64
  br label %16

16:                                               ; preds = %22, %9
  %indvar = phi i64 [ %indvar.next, %22 ], [ 0, %9 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ %14, %9 ]
  %17 = mul nsw i64 %indvars.iv, %15
  %gep = getelementptr double, ptr %invariant.gep, i64 %17
  %18 = load double, ptr %gep, align 8, !tbaa !9
  %19 = fcmp ogt double %18, %4
  br i1 %19, label %22, label %.preheader

.preheader:                                       ; preds = %16
  %20 = add nsw i32 %2, -1
  %21 = sext i32 %20 to i64
  br label %27

22:                                               ; preds = %16
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %23 = icmp slt i64 %indvars.iv, 1
  %indvar.next = add i64 %indvar, 1
  br i1 %23, label %24, label %16, !llvm.loop !11

24:                                               ; preds = %22
  %25 = load double, ptr %invariant.gep, align 8, !tbaa !9
  %26 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @__func__.array_interpolate_growing_closeby, i32 noundef 2309, double noundef %4, double noundef %25) #4
  br label %99

27:                                               ; preds = %.preheader, %33
  %indvar102 = phi i64 [ 0, %.preheader ], [ %indvar.next103, %33 ]
  %indvars.iv85 = phi i64 [ %indvars.iv, %.preheader ], [ %indvars.iv.next86, %33 ]
  %indvars.iv.next86 = add nsw i64 %indvars.iv85, 1
  %28 = mul nsw i64 %indvars.iv.next86, %15
  %29 = getelementptr inbounds double, ptr %0, i64 %28
  %30 = getelementptr inbounds double, ptr %29, i64 %13
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = fcmp olt double %31, %4
  br i1 %32, label %33, label %41

33:                                               ; preds = %27
  %.not = icmp slt i64 %indvars.iv.next86, %21
  %indvar.next103 = add i64 %indvar102, 1
  br i1 %.not, label %27, label %34, !llvm.loop !13

34:                                               ; preds = %33
  %35 = mul nsw i32 %20, %1
  %36 = add nsw i32 %35, %3
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds double, ptr %0, i64 %37
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.31, ptr noundef nonnull @__func__.array_interpolate_growing_closeby, i32 noundef 2318, double noundef %4, double noundef %39) #4
  br label %99

41:                                               ; preds = %27
  %42 = trunc nsw i64 %indvars.iv85 to i32
  store i32 %42, ptr %5, align 4, !tbaa !5
  %43 = mul nsw i32 %42, %1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %0, i64 %44
  %46 = getelementptr inbounds double, ptr %45, i64 %13
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = fsub double %4, %47
  %49 = fsub double %31, %47
  %50 = fdiv double %48, %49
  %51 = icmp sgt i32 %7, 0
  br i1 %51, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %41
  %52 = fsub double 1.000000e+00, %50
  %wide.trip.count = zext nneg i32 %7 to i64
  %min.iters.check = icmp ult i32 %7, 20
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %.neg = xor i64 %14, -1
  %.neg111 = mul nsw i64 %.neg, %15
  %.neg112 = shl i64 %.neg111, 3
  %53 = add i64 %.neg112, %11
  %54 = sub i64 %53, %10
  %55 = shl nsw i64 %15, 3
  %56 = mul i64 %55, %indvar
  %57 = add i64 %56, %54
  %58 = mul nsw i64 %15, -8
  %59 = mul i64 %58, %indvar102
  %60 = add i64 %59, %57
  %diff.check = icmp ult i64 %60, 32
  %61 = shl nsw i64 %44, 3
  %62 = add i64 %61, %10
  %63 = sub i64 %11, %62
  %diff.check105 = icmp ult i64 %63, 32
  %conflict.rdx = or i1 %diff.check, %diff.check105
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %50, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert109 = insertelement <2 x double> poison, double %52, i64 0
  %broadcast.splat110 = shufflevector <2 x double> %broadcast.splatinsert109, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %64 = getelementptr inbounds double, ptr %45, i64 %index
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %wide.load = load <2 x double>, ptr %64, align 8, !tbaa !9
  %wide.load106 = load <2 x double>, ptr %65, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %29, i64 %index
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load107 = load <2 x double>, ptr %66, align 8, !tbaa !9
  %wide.load108 = load <2 x double>, ptr %67, align 8, !tbaa !9
  %68 = fmul <2 x double> %broadcast.splat, %wide.load107
  %69 = fmul <2 x double> %broadcast.splat, %wide.load108
  %70 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %broadcast.splat110, <2 x double> %68)
  %71 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load106, <2 x double> %broadcast.splat110, <2 x double> %69)
  %72 = getelementptr inbounds double, ptr %6, i64 %index
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  store <2 x double> %70, ptr %72, align 8, !tbaa !9
  store <2 x double> %71, ptr %73, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %74 = icmp eq i64 %index.next, %n.vec
  br i1 %74, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv88.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %75 = getelementptr inbounds double, ptr %45, i64 %indvars.iv88.ph
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds double, ptr %29, i64 %indvars.iv88.ph
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fmul double %50, %78
  %80 = tail call double @llvm.fmuladd.f64(double %76, double %52, double %79)
  %81 = getelementptr inbounds double, ptr %6, i64 %indvars.iv88.ph
  store double %80, ptr %81, align 8, !tbaa !9
  %indvars.iv.next89.prol = or disjoint i64 %indvars.iv88.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv88.unr = phi i64 [ %indvars.iv88.ph, %scalar.ph.preheader ], [ %indvars.iv.next89.prol, %scalar.ph.prol ]
  %82 = add nsw i64 %wide.trip.count, -1
  %83 = icmp eq i64 %indvars.iv88.ph, %82
  br i1 %83, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv88 = phi i64 [ %indvars.iv.next89.1, %scalar.ph ], [ %indvars.iv88.unr, %scalar.ph.prol.loopexit ]
  %84 = getelementptr inbounds double, ptr %45, i64 %indvars.iv88
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %29, i64 %indvars.iv88
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = fmul double %50, %87
  %89 = tail call double @llvm.fmuladd.f64(double %85, double %52, double %88)
  %90 = getelementptr inbounds double, ptr %6, i64 %indvars.iv88
  store double %89, ptr %90, align 8, !tbaa !9
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %91 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next89
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds double, ptr %29, i64 %indvars.iv.next89
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = fmul double %50, %94
  %96 = tail call double @llvm.fmuladd.f64(double %92, double %52, double %95)
  %97 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next89
  store double %96, ptr %97, align 8, !tbaa !9
  %indvars.iv.next89.1 = add nuw nsw i64 %indvars.iv88, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next89.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %41
  %98 = getelementptr inbounds double, ptr %6, i64 %13
  store double %4, ptr %98, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %._crit_edge, %34, %24
  %.0 = phi i32 [ 1, %24 ], [ 1, %34 ], [ 0, %._crit_edge ]
  ret i32 %.0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { nofree 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !12, !15}


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