; LLVM IR from AllAlgorithms/c :: algorithms (lu_decomposition)

; 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"

; 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 uwtable
define dso_local void @LUDecomposition(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %211, %3
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 5
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %214

19:                                               ; preds = %15
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [5 x double], ptr %20, i64 %22
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [5 x double], ptr %23, i64 0, i64 %25
  store double 1.000000e+00, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %51, %19
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %54

32:                                               ; preds = %27
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [5 x double], ptr %33, i64 %35
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [5 x double], ptr %36, i64 0, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5 x double], ptr %41, i64 %43
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [5 x double], ptr %44, i64 0, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = load double, ptr %9, align 8, !tbaa !11
  %50 = call double @llvm.fmuladd.f64(double %40, double %48, double %49)
  store double %50, ptr %9, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %32
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %10, align 4, !tbaa !9
  br label %27, !llvm.loop !13

54:                                               ; preds = %31
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [5 x double], ptr %55, i64 %57
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [5 x double], ptr %58, i64 0, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = load double, ptr %9, align 8, !tbaa !11
  %64 = fsub double %62, %63
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [5 x double], ptr %65, i64 %67
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [5 x double], ptr %68, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = fdiv double %64, %72
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [5 x double], ptr %74, i64 %76
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [5 x double], ptr %77, i64 0, i64 %79
  store double %73, ptr %80, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %11, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %142, %54
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = icmp slt i32 %84, 5
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %145

87:                                               ; preds = %83
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %112, %87
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %115

93:                                               ; preds = %88
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [5 x double], ptr %94, i64 %96
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [5 x double], ptr %97, i64 0, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [5 x double], ptr %102, i64 %104
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [5 x double], ptr %105, i64 0, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !11
  %110 = load double, ptr %9, align 8, !tbaa !11
  %111 = call double @llvm.fmuladd.f64(double %101, double %109, double %110)
  store double %111, ptr %9, align 8, !tbaa !11
  br label %112

112:                                              ; preds = %93
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %12, align 4, !tbaa !9
  br label %88, !llvm.loop !15

115:                                              ; preds = %92
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [5 x double], ptr %116, i64 %118
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [5 x double], ptr %119, i64 0, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = load double, ptr %9, align 8, !tbaa !11
  %125 = fsub double %123, %124
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [5 x double], ptr %126, i64 %128
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [5 x double], ptr %129, i64 0, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fdiv double %125, %133
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [5 x double], ptr %135, i64 %137
  %139 = load i32, ptr %11, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [5 x double], ptr %138, i64 0, i64 %140
  store double %134, ptr %141, align 8, !tbaa !11
  br label %142

142:                                              ; preds = %115
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %11, align 4, !tbaa !9
  br label %83, !llvm.loop !16

145:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %13, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %207, %145
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = icmp slt i32 %149, 5
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %210

152:                                              ; preds = %148
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %177, %152
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %180

158:                                              ; preds = %153
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [5 x double], ptr %159, i64 %161
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [5 x double], ptr %162, i64 0, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [5 x double], ptr %167, i64 %169
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [5 x double], ptr %170, i64 0, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !11
  %175 = load double, ptr %9, align 8, !tbaa !11
  %176 = call double @llvm.fmuladd.f64(double %166, double %174, double %175)
  store double %176, ptr %9, align 8, !tbaa !11
  br label %177

177:                                              ; preds = %158
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %14, align 4, !tbaa !9
  br label %153, !llvm.loop !17

180:                                              ; preds = %157
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [5 x double], ptr %181, i64 %183
  %185 = load i32, ptr %7, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [5 x double], ptr %184, i64 0, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !11
  %189 = load double, ptr %9, align 8, !tbaa !11
  %190 = fsub double %188, %189
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [5 x double], ptr %191, i64 %193
  %195 = load i32, ptr %7, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [5 x double], ptr %194, i64 0, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = fdiv double %190, %198
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [5 x double], ptr %200, i64 %202
  %204 = load i32, ptr %7, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [5 x double], ptr %203, i64 0, i64 %205
  store double %199, ptr %206, align 8, !tbaa !11
  br label %207

207:                                              ; preds = %180
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %13, align 4, !tbaa !9
  br label %148, !llvm.loop !18

210:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %7, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %7, align 4, !tbaa !9
  br label %15, !llvm.loop !19

214:                                              ; preds = %18
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !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"

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

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @LUDecomposition(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef %2) local_unnamed_addr #1 {
  %scevgep140 = getelementptr i8, ptr %1, i64 168
  %scevgep142 = getelementptr i8, ptr %0, i64 168
  %scevgep143 = getelementptr i8, ptr %2, i64 200
  %scevgep149 = getelementptr i8, ptr %2, i64 40
  %scevgep151 = getelementptr i8, ptr %0, i64 40
  %scevgep152 = getelementptr i8, ptr %1, i64 200
  %bound1157 = icmp ugt ptr %scevgep149, %1
  %bound1145 = icmp ugt ptr %scevgep140, %2
  br label %5

.loopexit:                                        ; preds = %._crit_edge89.us, %.preheader.prol.loopexit, %.preheader, %._crit_edge, %.preheader77
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next129, 5
  br i1 %exitcond131.not, label %4, label %5, !llvm.loop !5

4:                                                ; preds = %.loopexit
  ret void

5:                                                ; preds = %3, %.loopexit
  %indvars.iv128 = phi i64 [ 0, %3 ], [ %indvars.iv.next129, %.loopexit ]
  %indvars.iv105 = phi i64 [ 1, %3 ], [ %indvars.iv.next106, %.loopexit ]
  %6 = sub nsw i64 4, %indvars.iv128
  %7 = shl nuw nsw i64 %indvars.iv128, 3
  %8 = add nuw i64 %7, 8
  %scevgep148 = getelementptr i8, ptr %2, i64 %8
  %scevgep150 = getelementptr i8, ptr %0, i64 %8
  %9 = mul nuw nsw i64 %indvars.iv128, 40
  %10 = add nuw i64 %9, 40
  %scevgep = getelementptr i8, ptr %1, i64 %10
  %scevgep141 = getelementptr i8, ptr %0, i64 %10
  %11 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 %indvars.iv128
  store double 1.000000e+00, ptr %11, align 8, !tbaa !7
  %.not = icmp eq i64 %indvars.iv128, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.1, %.lr.ph.2, %.lr.ph.3, %5
  %.074.lcssa = phi double [ 0.000000e+00, %5 ], [ %55, %.lr.ph ], [ %60, %.lr.ph.1 ], [ %65, %.lr.ph.2 ], [ %70, %.lr.ph.3 ]
  %12 = getelementptr inbounds [5 x double], ptr %0, i64 %indvars.iv128, i64 %indvars.iv128
  %13 = load double, ptr %12, align 8, !tbaa !7
  %14 = fsub double %13, %.074.lcssa
  %15 = getelementptr inbounds [5 x double], ptr %2, i64 %indvars.iv128, i64 %indvars.iv128
  store double %14, ptr %15, align 8, !tbaa !7
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %16 = icmp ult i64 %indvars.iv128, 4
  br i1 %16, label %.preheader76.lr.ph, label %.loopexit

.preheader76.lr.ph:                               ; preds = %._crit_edge
  br i1 %.not, label %.preheader76.preheader, label %.preheader76.us.preheader

.preheader76.us.preheader:                        ; preds = %.preheader76.lr.ph
  %17 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 0
  %exitcond104.not = icmp eq i64 %indvars.iv128, 1
  %18 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 1
  %exitcond104.not.1 = icmp eq i64 %indvars.iv128, 2
  %19 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 2
  %exitcond104.not.2 = icmp eq i64 %indvars.iv128, 3
  %20 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 3
  br label %.preheader76.us

.preheader76.preheader:                           ; preds = %.preheader76.lr.ph
  %min.iters.check162 = icmp ult i64 %6, 2
  br i1 %min.iters.check162, label %.preheader76.preheader175.new, label %vector.memcheck147

.preheader76.preheader175.new:                    ; preds = %vector.memcheck147, %.preheader76.preheader
  br label %.preheader76

vector.memcheck147:                               ; preds = %.preheader76.preheader
  %bound0153 = icmp ult ptr %scevgep148, %scevgep151
  %bound1154 = icmp ult ptr %scevgep150, %scevgep149
  %found.conflict155 = and i1 %bound0153, %bound1154
  %bound0156 = icmp ult ptr %scevgep148, %scevgep152
  %found.conflict158 = and i1 %bound0156, %bound1157
  %conflict.rdx159 = or i1 %found.conflict155, %found.conflict158
  br i1 %conflict.rdx159, label %.preheader76.preheader175.new, label %vector.body168.preheader

vector.body168.preheader:                         ; preds = %vector.memcheck147
  %21 = load double, ptr %11, align 8, !tbaa !7, !alias.scope !11
  %broadcast.splatinsert171 = insertelement <2 x double> poison, double %21, i64 0
  %broadcast.splat172 = shufflevector <2 x double> %broadcast.splatinsert171, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body168

vector.body168:                                   ; preds = %vector.body168.preheader, %vector.body168
  %index169 = phi i64 [ %index.next173, %vector.body168 ], [ 0, %vector.body168.preheader ]
  %offset.idx170 = add i64 %indvars.iv105, %index169
  %22 = getelementptr inbounds [5 x double], ptr %0, i64 0, i64 %offset.idx170
  %wide.load = load <2 x double>, ptr %22, align 8, !tbaa !7, !alias.scope !14
  %23 = fdiv <2 x double> %wide.load, %broadcast.splat172
  %24 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %offset.idx170
  store <2 x double> %23, ptr %24, align 8, !tbaa !7, !alias.scope !16, !noalias !18
  %index.next173 = add nuw i64 %index169, 2
  %25 = icmp eq i64 %index.next173, %6
  br i1 %25, label %.preheader77, label %vector.body168, !llvm.loop !19

.preheader76.us:                                  ; preds = %.preheader76.us.preheader, %._crit_edge83.us
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %._crit_edge83.us ], [ %indvars.iv105, %.preheader76.us.preheader ]
  %26 = load double, ptr %17, align 8, !tbaa !7
  %27 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv107
  %28 = load double, ptr %27, align 8, !tbaa !7
  %29 = tail call double @llvm.fmuladd.f64(double %26, double %28, double 0.000000e+00)
  br i1 %exitcond104.not, label %._crit_edge83.us, label %30, !llvm.loop !22

30:                                               ; preds = %.preheader76.us
  %31 = load double, ptr %18, align 8, !tbaa !7
  %32 = getelementptr inbounds [5 x double], ptr %2, i64 1, i64 %indvars.iv107
  %33 = load double, ptr %32, align 8, !tbaa !7
  %34 = tail call double @llvm.fmuladd.f64(double %31, double %33, double %29)
  br i1 %exitcond104.not.1, label %._crit_edge83.us, label %35, !llvm.loop !22

35:                                               ; preds = %30
  %36 = load double, ptr %19, align 8, !tbaa !7
  %37 = getelementptr inbounds [5 x double], ptr %2, i64 2, i64 %indvars.iv107
  %38 = load double, ptr %37, align 8, !tbaa !7
  %39 = tail call double @llvm.fmuladd.f64(double %36, double %38, double %34)
  br i1 %exitcond104.not.2, label %._crit_edge83.us, label %40, !llvm.loop !22

40:                                               ; preds = %35
  %41 = load double, ptr %20, align 8, !tbaa !7
  %42 = getelementptr inbounds [5 x double], ptr %2, i64 3, i64 %indvars.iv107
  %43 = load double, ptr %42, align 8, !tbaa !7
  %44 = tail call double @llvm.fmuladd.f64(double %41, double %43, double %39)
  br label %._crit_edge83.us

._crit_edge83.us:                                 ; preds = %40, %35, %30, %.preheader76.us
  %.lcssa178 = phi double [ %29, %.preheader76.us ], [ %34, %30 ], [ %39, %35 ], [ %44, %40 ]
  %45 = getelementptr inbounds [5 x double], ptr %0, i64 %indvars.iv128, i64 %indvars.iv107
  %46 = load double, ptr %45, align 8, !tbaa !7
  %47 = fsub double %46, %.lcssa178
  %48 = load double, ptr %11, align 8, !tbaa !7
  %49 = fdiv double %47, %48
  %50 = getelementptr inbounds [5 x double], ptr %2, i64 %indvars.iv128, i64 %indvars.iv107
  store double %49, ptr %50, align 8, !tbaa !7
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next108, 5
  br i1 %exitcond110.not, label %.preheader77, label %.preheader76.us, !llvm.loop !23

.lr.ph:                                           ; preds = %5
  %51 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 0
  %52 = load double, ptr %51, align 8, !tbaa !7
  %53 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv128
  %54 = load double, ptr %53, align 8, !tbaa !7
  %55 = tail call double @llvm.fmuladd.f64(double %52, double %54, double 0.000000e+00)
  %exitcond.not = icmp eq i64 %indvars.iv128, 1
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.1, !llvm.loop !24

.lr.ph.1:                                         ; preds = %.lr.ph
  %56 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 1
  %57 = load double, ptr %56, align 8, !tbaa !7
  %58 = getelementptr inbounds [5 x double], ptr %2, i64 1, i64 %indvars.iv128
  %59 = load double, ptr %58, align 8, !tbaa !7
  %60 = tail call double @llvm.fmuladd.f64(double %57, double %59, double %55)
  %exitcond.not.1 = icmp eq i64 %indvars.iv128, 2
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph.2, !llvm.loop !24

.lr.ph.2:                                         ; preds = %.lr.ph.1
  %61 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 2
  %62 = load double, ptr %61, align 8, !tbaa !7
  %63 = getelementptr inbounds [5 x double], ptr %2, i64 2, i64 %indvars.iv128
  %64 = load double, ptr %63, align 8, !tbaa !7
  %65 = tail call double @llvm.fmuladd.f64(double %62, double %64, double %60)
  %exitcond.not.2 = icmp eq i64 %indvars.iv128, 3
  br i1 %exitcond.not.2, label %._crit_edge, label %.lr.ph.3, !llvm.loop !24

.lr.ph.3:                                         ; preds = %.lr.ph.2
  %66 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv128, i64 3
  %67 = load double, ptr %66, align 8, !tbaa !7
  %68 = getelementptr inbounds [5 x double], ptr %2, i64 3, i64 %indvars.iv128
  %69 = load double, ptr %68, align 8, !tbaa !7
  %70 = tail call double @llvm.fmuladd.f64(double %67, double %69, double %65)
  br label %._crit_edge

.preheader77:                                     ; preds = %._crit_edge83.us, %vector.body168, %.preheader76
  br i1 %16, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader77
  br i1 %.not, label %vector.memcheck, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %71 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv128
  %exitcond119.not = icmp eq i64 %indvars.iv128, 1
  %72 = getelementptr inbounds [5 x double], ptr %2, i64 1, i64 %indvars.iv128
  %exitcond119.not.1 = icmp eq i64 %indvars.iv128, 2
  %73 = getelementptr inbounds [5 x double], ptr %2, i64 2, i64 %indvars.iv128
  %exitcond119.not.2 = icmp eq i64 %indvars.iv128, 3
  %74 = getelementptr inbounds [5 x double], ptr %2, i64 3, i64 %indvars.iv128
  br label %.preheader.us

vector.memcheck:                                  ; preds = %.preheader.lr.ph
  %bound0 = icmp ult ptr %scevgep, %scevgep142
  %bound1 = icmp ult ptr %scevgep141, %scevgep140
  %found.conflict = and i1 %bound0, %bound1
  %bound0144 = icmp ult ptr %scevgep, %scevgep143
  %found.conflict146 = and i1 %bound0144, %bound1145
  %conflict.rdx = or i1 %found.conflict, %found.conflict146
  br i1 %conflict.rdx, label %.preheader.preheader, label %vector.ph

.preheader.preheader:                             ; preds = %vector.body, %vector.memcheck
  %indvars.iv124.ph = phi i64 [ %indvars.iv105, %vector.memcheck ], [ %ind.end, %vector.body ]
  %75 = sub i64 1, %indvars.iv124.ph
  %xtraiter180 = and i64 %75, 1
  %lcmp.mod181.not = icmp eq i64 %xtraiter180, 0
  br i1 %lcmp.mod181.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader
  %76 = getelementptr inbounds [5 x double], ptr %0, i64 %indvars.iv124.ph, i64 0
  %77 = load double, ptr %76, align 8, !tbaa !7
  %78 = load double, ptr %15, align 8, !tbaa !7
  %79 = fdiv double %77, %78
  %80 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv124.ph, i64 0
  store double %79, ptr %80, align 8, !tbaa !7
  %indvars.iv.next125.prol = add nuw nsw i64 %indvars.iv124.ph, 1
  br label %.preheader.prol.loopexit

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader
  %indvars.iv124.unr = phi i64 [ %indvars.iv124.ph, %.preheader.preheader ], [ %indvars.iv.next125.prol, %.preheader.prol ]
  %81 = icmp eq i64 %indvars.iv124.ph, 4
  br i1 %81, label %.loopexit, label %.preheader

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = sub nuw nsw i64 2, %indvars.iv128
  %ind.end = add nuw i64 %indvars.iv105, %n.vec
  %82 = load double, ptr %15, align 8, !tbaa !7, !alias.scope !25
  %broadcast.splatinsert = insertelement <2 x double> poison, double %82, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <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 ]
  %offset.idx = add i64 %indvars.iv105, %index
  %83 = add i64 %offset.idx, 1
  %84 = getelementptr inbounds [5 x double], ptr %0, i64 %offset.idx, i64 0
  %85 = getelementptr inbounds [5 x double], ptr %0, i64 %83, i64 0
  %86 = load double, ptr %84, align 8, !tbaa !7, !alias.scope !28
  %87 = load double, ptr %85, align 8, !tbaa !7, !alias.scope !28
  %88 = insertelement <2 x double> poison, double %86, i64 0
  %89 = insertelement <2 x double> %88, double %87, i64 1
  %90 = fdiv <2 x double> %89, %broadcast.splat
  %91 = getelementptr inbounds [5 x double], ptr %1, i64 %offset.idx, i64 0
  %92 = getelementptr inbounds [5 x double], ptr %1, i64 %83, i64 0
  %93 = extractelement <2 x double> %90, i64 0
  store double %93, ptr %91, align 8, !tbaa !7, !alias.scope !30, !noalias !32
  %94 = extractelement <2 x double> %90, i64 1
  store double %94, ptr %92, align 8, !tbaa !7, !alias.scope !30, !noalias !32
  %index.next = add nuw i64 %index, 2
  %95 = icmp eq i64 %index.next, %n.vec
  br i1 %95, label %.preheader.preheader, label %vector.body, !llvm.loop !33

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge89.us
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %._crit_edge89.us ], [ %indvars.iv105, %.preheader.us.preheader ]
  %96 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv120, i64 0
  %97 = load double, ptr %96, align 8, !tbaa !7
  %98 = load double, ptr %71, align 8, !tbaa !7
  %99 = tail call double @llvm.fmuladd.f64(double %97, double %98, double 0.000000e+00)
  br i1 %exitcond119.not, label %._crit_edge89.us, label %100, !llvm.loop !34

100:                                              ; preds = %.preheader.us
  %101 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv120, i64 1
  %102 = load double, ptr %101, align 8, !tbaa !7
  %103 = load double, ptr %72, align 8, !tbaa !7
  %104 = tail call double @llvm.fmuladd.f64(double %102, double %103, double %99)
  br i1 %exitcond119.not.1, label %._crit_edge89.us, label %105, !llvm.loop !34

105:                                              ; preds = %100
  %106 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv120, i64 2
  %107 = load double, ptr %106, align 8, !tbaa !7
  %108 = load double, ptr %73, align 8, !tbaa !7
  %109 = tail call double @llvm.fmuladd.f64(double %107, double %108, double %104)
  br i1 %exitcond119.not.2, label %._crit_edge89.us, label %110, !llvm.loop !34

110:                                              ; preds = %105
  %111 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv120, i64 3
  %112 = load double, ptr %111, align 8, !tbaa !7
  %113 = load double, ptr %74, align 8, !tbaa !7
  %114 = tail call double @llvm.fmuladd.f64(double %112, double %113, double %109)
  br label %._crit_edge89.us

._crit_edge89.us:                                 ; preds = %110, %105, %100, %.preheader.us
  %.lcssa179 = phi double [ %99, %.preheader.us ], [ %104, %100 ], [ %109, %105 ], [ %114, %110 ]
  %115 = getelementptr inbounds [5 x double], ptr %0, i64 %indvars.iv120, i64 %indvars.iv128
  %116 = load double, ptr %115, align 8, !tbaa !7
  %117 = fsub double %116, %.lcssa179
  %118 = load double, ptr %15, align 8, !tbaa !7
  %119 = fdiv double %117, %118
  %120 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv120, i64 %indvars.iv128
  store double %119, ptr %120, align 8, !tbaa !7
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next121, 5
  br i1 %exitcond123.not, label %.loopexit, label %.preheader.us, !llvm.loop !35

.preheader76:                                     ; preds = %.preheader76, %.preheader76.preheader175.new
  %indvars.iv111 = phi i64 [ %indvars.iv105, %.preheader76.preheader175.new ], [ %indvars.iv.next112.3, %.preheader76 ]
  %121 = getelementptr inbounds [5 x double], ptr %0, i64 0, i64 %indvars.iv111
  %122 = load double, ptr %121, align 8, !tbaa !7
  %123 = load double, ptr %11, align 8, !tbaa !7
  %124 = fdiv double %122, %123
  %125 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv111
  store double %124, ptr %125, align 8, !tbaa !7
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %126 = getelementptr inbounds [5 x double], ptr %0, i64 0, i64 %indvars.iv.next112
  %127 = load double, ptr %126, align 8, !tbaa !7
  %128 = load double, ptr %11, align 8, !tbaa !7
  %129 = fdiv double %127, %128
  %130 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv.next112
  store double %129, ptr %130, align 8, !tbaa !7
  %indvars.iv.next112.1 = add nuw nsw i64 %indvars.iv111, 2
  %131 = getelementptr inbounds [5 x double], ptr %0, i64 0, i64 %indvars.iv.next112.1
  %132 = load double, ptr %131, align 8, !tbaa !7
  %133 = load double, ptr %11, align 8, !tbaa !7
  %134 = fdiv double %132, %133
  %135 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv.next112.1
  store double %134, ptr %135, align 8, !tbaa !7
  %indvars.iv.next112.2 = add nuw nsw i64 %indvars.iv111, 3
  %136 = getelementptr inbounds [5 x double], ptr %0, i64 0, i64 %indvars.iv.next112.2
  %137 = load double, ptr %136, align 8, !tbaa !7
  %138 = load double, ptr %11, align 8, !tbaa !7
  %139 = fdiv double %137, %138
  %140 = getelementptr inbounds [5 x double], ptr %2, i64 0, i64 %indvars.iv.next112.2
  store double %139, ptr %140, align 8, !tbaa !7
  %indvars.iv.next112.3 = add nuw nsw i64 %indvars.iv111, 4
  %exitcond114.not.3 = icmp eq i64 %indvars.iv.next112.3, 5
  br i1 %exitcond114.not.3, label %.preheader77, label %.preheader76, !llvm.loop !36

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %indvars.iv124 = phi i64 [ %indvars.iv.next125.1, %.preheader ], [ %indvars.iv124.unr, %.preheader.prol.loopexit ]
  %141 = getelementptr inbounds [5 x double], ptr %0, i64 %indvars.iv124, i64 0
  %142 = load double, ptr %141, align 8, !tbaa !7
  %143 = load double, ptr %15, align 8, !tbaa !7
  %144 = fdiv double %142, %143
  %145 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv124, i64 0
  store double %144, ptr %145, align 8, !tbaa !7
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %146 = getelementptr inbounds [5 x double], ptr %0, i64 %indvars.iv.next125, i64 0
  %147 = load double, ptr %146, align 8, !tbaa !7
  %148 = load double, ptr %15, align 8, !tbaa !7
  %149 = fdiv double %147, %148
  %150 = getelementptr inbounds [5 x double], ptr %1, i64 %indvars.iv.next125, i64 0
  store double %149, ptr %150, align 8, !tbaa !7
  %indvars.iv.next125.1 = add nuw nsw i64 %indvars.iv124, 2
  %exitcond127.not.1 = icmp eq i64 %indvars.iv.next125.1, 5
  br i1 %exitcond127.not.1, label %.loopexit, label %.preheader, !llvm.loop !37
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nofree norecurse nosync nounwind memory(argmem: readwrite) 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" }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15}
!15 = distinct !{!15, !13}
!16 = !{!17}
!17 = distinct !{!17, !13}
!18 = !{!15, !12}
!19 = distinct !{!19, !6, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}
!25 = !{!26}
!26 = distinct !{!26, !27}
!27 = distinct !{!27, !"LVerDomain"}
!28 = !{!29}
!29 = distinct !{!29, !27}
!30 = !{!31}
!31 = distinct !{!31, !27}
!32 = !{!29, !26}
!33 = distinct !{!33, !6, !20, !21}
!34 = distinct !{!34, !6}
!35 = distinct !{!35, !6}
!36 = distinct !{!36, !6, !20}
!37 = distinct !{!37, !6, !20}


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