; LLVM IR from jingweizhanghuai/Morn :: src/math (morn_fit_LSM)

; 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 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@__FUNCTION__.mLinearFitWeight = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 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 @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, 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 float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind uwtable
define dso_local void @mLinearFitWeight(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  br label %21

21:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 2
  %24 = zext i1 %23 to i32
  store i32 %24, ptr %17, align 4, !tbaa !9
  %25 = load i32, ptr %17, align 4, !tbaa !9
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %21
  %28 = load i32, ptr %17, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %28, i32 noundef -1, ptr noundef @.str, i32 noundef 374, ptr noundef @__FUNCTION__.mLinearFitWeight, ptr noundef @.str.1)
  br label %29

29:                                               ; preds = %27, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %48, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = ptrtoint ptr %36 to i64
  %38 = icmp eq i64 %37, -1
  br i1 %38, label %48, label %39

39:                                               ; preds = %35
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %46, label %42

42:                                               ; preds = %39
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = ptrtoint ptr %43 to i64
  %45 = icmp eq i64 %44, -1
  br label %46

46:                                               ; preds = %42, %39
  %47 = phi i1 [ true, %39 ], [ %45, %42 ]
  br label %48

48:                                               ; preds = %46, %35, %32
  %49 = phi i1 [ true, %35 ], [ true, %32 ], [ %47, %46 ]
  %50 = zext i1 %49 to i32
  store i32 %50, ptr %18, align 4, !tbaa !9
  %51 = load i32, ptr %18, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %48
  %54 = load i32, ptr %18, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %54, i32 noundef -1, ptr noundef @.str, i32 noundef 375, ptr noundef @__FUNCTION__.mLinearFitWeight, ptr noundef @.str.2)
  br label %55

55:                                               ; preds = %53, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = icmp eq ptr %59, null
  br i1 %60, label %65, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = ptrtoint ptr %62 to i64
  %64 = icmp eq i64 %63, -1
  br label %65

65:                                               ; preds = %61, %58
  %66 = phi i1 [ true, %58 ], [ %64, %61 ]
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %19, align 4, !tbaa !9
  %68 = load i32, ptr %19, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %65
  %71 = load i32, ptr %19, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %71, i32 noundef -1, ptr noundef @.str, i32 noundef 376, ptr noundef @__FUNCTION__.mLinearFitWeight, ptr noundef @.str.3)
  br label %72

72:                                               ; preds = %70, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = icmp eq ptr %75, null
  br i1 %76, label %81, label %77

77:                                               ; preds = %74
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = ptrtoint ptr %78 to i64
  %80 = icmp eq i64 %79, -1
  br i1 %80, label %81, label %90

81:                                               ; preds = %77, %74
  br label %82

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 -1, ptr %20, align 4, !tbaa !9
  %83 = load i32, ptr %20, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = load i32, ptr %20, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %86, i32 noundef -1, ptr noundef @.str, i32 noundef 378, ptr noundef @__FUNCTION__.mLinearFitWeight, ptr noundef @.str.11)
  br label %87

87:                                               ; preds = %85, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89, %77
  store float 0.000000e+00, ptr %13, align 4, !tbaa !11
  store float 0.000000e+00, ptr %14, align 4, !tbaa !11
  store float 0.000000e+00, ptr %15, align 4, !tbaa !11
  store float 0.000000e+00, ptr %16, align 4, !tbaa !11
  store float 0.000000e+00, ptr %12, align 4, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %163, %90
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %166

95:                                               ; preds = %91
  %96 = load float, ptr %12, align 4, !tbaa !11
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %97, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !11
  %102 = fadd float %96, %101
  store float %102, ptr %12, align 4, !tbaa !11
  %103 = load float, ptr %13, align 4, !tbaa !11
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %104, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds float, ptr %109, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = call float @llvm.fmuladd.f32(float %108, float %113, float %103)
  store float %114, ptr %13, align 4, !tbaa !11
  %115 = load float, ptr %14, align 4, !tbaa !11
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %116, i64 %118
  %120 = load float, ptr %119, align 4, !tbaa !11
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %121, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !11
  %126 = call float @llvm.fmuladd.f32(float %120, float %125, float %115)
  store float %126, ptr %14, align 4, !tbaa !11
  %127 = load float, ptr %15, align 4, !tbaa !11
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %128, i64 %130
  %132 = load float, ptr %131, align 4, !tbaa !11
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %133, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fmul float %132, %137
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %139, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !11
  %144 = call float @llvm.fmuladd.f32(float %138, float %143, float %127)
  store float %144, ptr %15, align 4, !tbaa !11
  %145 = load float, ptr %16, align 4, !tbaa !11
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %146, i64 %148
  %150 = load float, ptr %149, align 4, !tbaa !11
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  %155 = load float, ptr %154, align 4, !tbaa !11
  %156 = fmul float %150, %155
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds float, ptr %157, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !11
  %162 = call float @llvm.fmuladd.f32(float %156, float %161, float %145)
  store float %162, ptr %16, align 4, !tbaa !11
  br label %163

163:                                              ; preds = %95
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %11, align 4, !tbaa !9
  br label %91, !llvm.loop !13

166:                                              ; preds = %91
  %167 = load float, ptr %12, align 4, !tbaa !11
  %168 = load float, ptr %15, align 4, !tbaa !11
  %169 = load float, ptr %13, align 4, !tbaa !11
  %170 = load float, ptr %14, align 4, !tbaa !11
  %171 = fmul float %169, %170
  %172 = fneg float %171
  %173 = call float @llvm.fmuladd.f32(float %167, float %168, float %172)
  %174 = load float, ptr %12, align 4, !tbaa !11
  %175 = load float, ptr %16, align 4, !tbaa !11
  %176 = load float, ptr %13, align 4, !tbaa !11
  %177 = load float, ptr %13, align 4, !tbaa !11
  %178 = fmul float %176, %177
  %179 = fneg float %178
  %180 = call float @llvm.fmuladd.f32(float %174, float %175, float %179)
  %181 = fdiv float %173, %180
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  %183 = getelementptr inbounds float, ptr %182, i64 0
  store float %181, ptr %183, align 4, !tbaa !11
  %184 = load float, ptr %16, align 4, !tbaa !11
  %185 = load float, ptr %14, align 4, !tbaa !11
  %186 = load float, ptr %13, align 4, !tbaa !11
  %187 = load float, ptr %15, align 4, !tbaa !11
  %188 = fmul float %186, %187
  %189 = fneg float %188
  %190 = call float @llvm.fmuladd.f32(float %184, float %185, float %189)
  %191 = load float, ptr %12, align 4, !tbaa !11
  %192 = load float, ptr %16, align 4, !tbaa !11
  %193 = load float, ptr %13, align 4, !tbaa !11
  %194 = load float, ptr %13, align 4, !tbaa !11
  %195 = fmul float %193, %194
  %196 = fneg float %195
  %197 = call float @llvm.fmuladd.f32(float %191, float %192, float %196)
  %198 = fdiv float %190, %197
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = getelementptr inbounds float, ptr %199, i64 1
  store float %198, ptr %200, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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 = !{!"float", !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 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@__FUNCTION__.mLinearFitWeight = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nounwind uwtable
define dso_local void @mLinearFitWeight(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = icmp slt i32 %3, 2
  br i1 %6, label %7, label %8

7:                                                ; preds = %5
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 374, ptr noundef nonnull @__FUNCTION__.mLinearFitWeight, ptr noundef nonnull @.str.1) #4
  br label %8

8:                                                ; preds = %7, %5
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %9 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

9:                                                ; preds = %8
  %magicptr76 = ptrtoint ptr %1 to i64
  switch i64 %magicptr76, label %10 [
    i64 -1, label %.thread
    i64 0, label %.thread
  ]

.thread:                                          ; preds = %9, %9, %8, %8
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 375, ptr noundef nonnull @__FUNCTION__.mLinearFitWeight, ptr noundef nonnull @.str.2) #4
  br label %10

10:                                               ; preds = %9, %.thread
  %magicptr74 = ptrtoint ptr %4 to i64
  switch i64 %magicptr74, label %16 [
    i64 -1, label %11
    i64 0, label %11
  ]

11:                                               ; preds = %10, %10
  %12 = icmp eq ptr %4, null
  %13 = icmp eq ptr %4, inttoptr (i64 -1 to ptr)
  %14 = or i1 %12, %13
  %15 = zext i1 %14 to i32
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %15, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 376, ptr noundef nonnull @__FUNCTION__.mLinearFitWeight, ptr noundef nonnull @.str.3) #4
  br label %16

16:                                               ; preds = %10, %11
  %magicptr75 = ptrtoint ptr %2 to i64
  switch i64 %magicptr75, label %18 [
    i64 -1, label %17
    i64 0, label %17
  ]

17:                                               ; preds = %16, %16
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef -1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 378, ptr noundef nonnull @__FUNCTION__.mLinearFitWeight, ptr noundef nonnull @.str.11) #4
  br label %18

18:                                               ; preds = %16, %17
  %19 = icmp sgt i32 %3, 0
  br i1 %19, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %18
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.06981 = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %24, %.lr.ph ]
  %20 = phi <2 x float> [ zeroinitializer, %.lr.ph.preheader ], [ %39, %.lr.ph ]
  %21 = phi <2 x float> [ zeroinitializer, %.lr.ph.preheader ], [ %33, %.lr.ph ]
  %22 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = fadd float %.06981, %23
  %25 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = insertelement <2 x float> poison, float %23, i64 0
  %30 = shufflevector <2 x float> %29, <2 x float> poison, <2 x i32> zeroinitializer
  %31 = insertelement <2 x float> poison, float %26, i64 0
  %32 = insertelement <2 x float> %31, float %28, i64 1
  %33 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %30, <2 x float> %32, <2 x float> %21)
  %34 = fmul float %23, %26
  %35 = insertelement <2 x float> poison, float %34, i64 0
  %36 = shufflevector <2 x float> %35, <2 x float> poison, <2 x i32> zeroinitializer
  %37 = insertelement <2 x float> poison, float %28, i64 0
  %38 = insertelement <2 x float> %37, float %26, i64 1
  %39 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %36, <2 x float> %38, <2 x float> %20)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !9

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %40 = extractelement <2 x float> %33, i64 0
  %41 = insertelement <2 x float> %33, float %24, i64 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %18
  %.070.lcssa = phi float [ 0.000000e+00, %18 ], [ %40, %._crit_edge.loopexit ]
  %42 = phi <2 x float> [ zeroinitializer, %18 ], [ %39, %._crit_edge.loopexit ]
  %43 = phi <2 x float> [ zeroinitializer, %18 ], [ %41, %._crit_edge.loopexit ]
  %44 = fneg float %.070.lcssa
  %45 = fmul float %.070.lcssa, %44
  %46 = extractelement <2 x float> %42, i64 1
  %47 = extractelement <2 x float> %43, i64 0
  %48 = tail call float @llvm.fmuladd.f32(float %47, float %46, float %45)
  %49 = shufflevector <2 x float> %43, <2 x float> %42, <2 x i32> <i32 1, i32 2>
  %50 = insertelement <2 x float> poison, float %44, i64 0
  %51 = shufflevector <2 x float> %50, <2 x float> poison, <2 x i32> zeroinitializer
  %52 = fmul <2 x float> %49, %51
  %53 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %42, <2 x float> %43, <2 x float> %52)
  %54 = insertelement <2 x float> poison, float %48, i64 0
  %55 = shufflevector <2 x float> %54, <2 x float> poison, <2 x i32> zeroinitializer
  %56 = fdiv <2 x float> %53, %55
  store <2 x float> %56, ptr %4, align 4, !tbaa !5
  ret void
}

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

attributes #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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 = !{!"float", !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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass