; LLVM IR from AlgoGenesis/C :: Mathematical Algorithms/Gauss-Jordan elimination (program)

; 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 [72 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @gaussJordan(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %191, %2
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %194

16:                                               ; preds = %12
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds ptr, ptr %17, i64 %19
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds float, ptr %21, i64 %23
  %25 = load float, ptr %24, align 4, !tbaa !11
  %26 = fcmp oeq float %25, 0.000000e+00
  br i1 %26, label %27, label %103

27:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %6, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %91, %27
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %94

34:                                               ; preds = %30
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %35, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds float, ptr %39, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !11
  %44 = fcmp une float %43, 0.000000e+00
  br i1 %44, label %45, label %90

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

46:                                               ; preds = %86, %45
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = icmp sle i32 %47, %48
  br i1 %49, label %50, label %89

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %55, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !11
  store float %59, ptr %10, align 4, !tbaa !11
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %60, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %64, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %69, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %73, i64 %75
  store float %68, ptr %76, align 4, !tbaa !11
  %77 = load float, ptr %10, align 4, !tbaa !11
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %82, i64 %84
  store float %77, ptr %85, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %86

86:                                               ; preds = %50
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %7, align 4, !tbaa !9
  br label %46, !llvm.loop !13

89:                                               ; preds = %46
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %94

90:                                               ; preds = %34
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %6, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %6, align 4, !tbaa !9
  br label %30, !llvm.loop !15

94:                                               ; preds = %89, %30
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %99, label %97

97:                                               ; preds = %94
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %11, align 4
  br label %100

99:                                               ; preds = %94
  store i32 0, ptr %11, align 4
  br label %100

100:                                              ; preds = %99, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %101 = load i32, ptr %11, align 4
  switch i32 %101, label %195 [
    i32 0, label %102
  ]

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102, %16
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !11
  store float %112, ptr %8, align 4, !tbaa !11
  %113 = load float, ptr %8, align 4, !tbaa !11
  %114 = fcmp oeq float %113, 0.000000e+00
  br i1 %114, label %115, label %117

115:                                              ; preds = %103
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 1, ptr %11, align 4
  br label %195

117:                                              ; preds = %103
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %134, %117
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = load i32, ptr %4, align 4, !tbaa !9
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %122, label %137

122:                                              ; preds = %118
  %123 = load float, ptr %8, align 4, !tbaa !11
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds ptr, ptr %124, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = load i32, ptr %6, 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 = fdiv float %132, %123
  store float %133, ptr %131, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %122
  %135 = load i32, ptr %6, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %6, align 4, !tbaa !9
  br label %118, !llvm.loop !16

137:                                              ; preds = %118
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %187, %137
  %139 = load i32, ptr %6, align 4, !tbaa !9
  %140 = load i32, ptr %4, align 4, !tbaa !9
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %142, label %190

142:                                              ; preds = %138
  %143 = load i32, ptr %5, align 4, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = icmp ne i32 %143, %144
  br i1 %145, label %146, label %186

146:                                              ; preds = %142
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load i32, ptr %6, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds ptr, ptr %147, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = load i32, ptr %5, 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
  store float %155, ptr %8, align 4, !tbaa !11
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %182, %146
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = load i32, ptr %4, align 4, !tbaa !9
  %159 = icmp sle i32 %157, %158
  br i1 %159, label %160, label %185

160:                                              ; preds = %156
  %161 = load float, ptr %8, align 4, !tbaa !11
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = load i32, ptr %5, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds ptr, ptr %162, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds float, ptr %166, i64 %168
  %170 = load float, ptr %169, align 4, !tbaa !11
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = load i32, ptr %6, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %171, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds float, ptr %175, i64 %177
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = fneg float %161
  %181 = call float @llvm.fmuladd.f32(float %180, float %170, float %179)
  store float %181, ptr %178, align 4, !tbaa !11
  br label %182

182:                                              ; preds = %160
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %7, align 4, !tbaa !9
  br label %156, !llvm.loop !17

185:                                              ; preds = %156
  br label %186

186:                                              ; preds = %185, %142
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %6, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %6, align 4, !tbaa !9
  br label %138, !llvm.loop !18

190:                                              ; preds = %138
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %5, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %5, align 4, !tbaa !9
  br label %12, !llvm.loop !19

194:                                              ; preds = %12
  store i32 0, ptr %11, align 4
  br label %195

195:                                              ; preds = %194, %115, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %196 = load i32, ptr %11, align 4
  switch i32 %196, label %198 [
    i32 0, label %197
    i32 1, label %197
  ]

197:                                              ; preds = %195, %195
  ret void

198:                                              ; preds = %195
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare i32 @printf(ptr noundef, ...) #2

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

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

@.str = external hidden unnamed_addr constant [72 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @gaussJordan(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = icmp sgt i32 %1, 0
  br i1 %3, label %.lr.ph89, label %.loopexit77

.lr.ph89:                                         ; preds = %2
  %4 = add nsw i32 %1, -1
  %5 = add nuw i32 %1, 1
  %wide.trip.count144 = zext nneg i32 %1 to i64
  %wide.trip.count = zext i32 %4 to i64
  %wide.trip.count126 = zext i32 %5 to i64
  %wide.trip.count131 = zext i32 %5 to i64
  %wide.trip.count136 = zext i32 %5 to i64
  %6 = shl nuw nsw i64 %wide.trip.count126, 2
  %7 = shl nuw nsw i64 %wide.trip.count126, 2
  %8 = zext nneg i32 %1 to i64
  %9 = zext nneg i32 %1 to i64
  %min.iters.check174 = icmp ult i32 %1, 7
  %n.vec177 = and i64 %wide.trip.count126, 4294967288
  %cmp.n186 = icmp eq i64 %n.vec177, %wide.trip.count126
  %xtraiter = and i64 %wide.trip.count126, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check154 = icmp ult i32 %1, 3
  %n.vec157 = and i64 %wide.trip.count126, 4294967292
  %cmp.n165 = icmp eq i64 %n.vec157, %wide.trip.count126
  %min.iters.check = icmp ult i32 %1, 7
  %n.vec = and i64 %wide.trip.count126, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count126
  %xtraiter190 = and i64 %wide.trip.count126, 1
  %lcmp.mod191.not = icmp eq i64 %xtraiter190, 0
  br label %10

10:                                               ; preds = %._crit_edge.split.us, %.lr.ph89
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge.split.us ], [ 0, %.lr.ph89 ]
  %11 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds float, ptr %12, i64 %indvars.iv
  %14 = load float, ptr %13, align 4, !tbaa !9
  %15 = fcmp oeq float %14, 0.000000e+00
  br i1 %15, label %.preheader76.us, label %.critedge72.us

.preheader76.us:                                  ; preds = %10, %16
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %16 ], [ %indvars.iv, %10 ]
  %exitcond.not = icmp eq i64 %indvars.iv120, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit77.sink.split, label %16

16:                                               ; preds = %.preheader76.us
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %17 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv.next121
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds float, ptr %18, i64 %indvars.iv
  %20 = load float, ptr %19, align 4, !tbaa !9
  %21 = fcmp une float %20, 0.000000e+00
  br i1 %21, label %.lr.ph.us.preheader, label %.preheader76.us, !llvm.loop !11

.lr.ph.us:                                        ; preds = %.lr.ph.us.prol.loopexit, %.lr.ph.us
  %indvars.iv123 = phi i64 [ %indvars.iv.next124.1, %.lr.ph.us ], [ %indvars.iv123.unr, %.lr.ph.us.prol.loopexit ]
  %22 = getelementptr inbounds float, ptr %12, i64 %indvars.iv123
  %23 = load float, ptr %22, align 4, !tbaa !9
  %24 = getelementptr inbounds float, ptr %18, i64 %indvars.iv123
  %25 = load float, ptr %24, align 4, !tbaa !9
  store float %25, ptr %22, align 4, !tbaa !9
  store float %23, ptr %24, align 4, !tbaa !9
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %26 = getelementptr inbounds float, ptr %12, i64 %indvars.iv.next124
  %27 = load float, ptr %26, align 4, !tbaa !9
  %28 = getelementptr inbounds float, ptr %18, i64 %indvars.iv.next124
  %29 = load float, ptr %28, align 4, !tbaa !9
  store float %29, ptr %26, align 4, !tbaa !9
  store float %27, ptr %28, align 4, !tbaa !9
  %indvars.iv.next124.1 = add nuw nsw i64 %indvars.iv123, 2
  %exitcond127.not.1 = icmp eq i64 %indvars.iv.next124.1, %wide.trip.count126
  br i1 %exitcond127.not.1, label %.critedge72thread-pre-split.us, label %.lr.ph.us, !llvm.loop !13

.critedge72thread-pre-split.us:                   ; preds = %.lr.ph.us.prol.loopexit, %.lr.ph.us, %middle.block172
  %.pr.us.pre = load float, ptr %13, align 4, !tbaa !9
  br label %.critedge72.us

.critedge72.us:                                   ; preds = %.critedge72thread-pre-split.us, %10
  %30 = phi float [ %.pr.us.pre, %.critedge72thread-pre-split.us ], [ %14, %10 ]
  %31 = fcmp oeq float %30, 0.000000e+00
  br i1 %31, label %.loopexit77.sink.split, label %.lr.ph82.us.preheader

.lr.ph82.us.preheader:                            ; preds = %.critedge72.us
  br i1 %min.iters.check154, label %.lr.ph82.us.preheader187, label %vector.ph155

vector.ph155:                                     ; preds = %.lr.ph82.us.preheader
  %broadcast.splatinsert162 = insertelement <4 x float> poison, float %30, i64 0
  %broadcast.splat163 = shufflevector <4 x float> %broadcast.splatinsert162, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body159

vector.body159:                                   ; preds = %vector.body159, %vector.ph155
  %index160 = phi i64 [ 0, %vector.ph155 ], [ %index.next164, %vector.body159 ]
  %32 = getelementptr inbounds float, ptr %12, i64 %index160
  %wide.load161 = load <4 x float>, ptr %32, align 4, !tbaa !9
  %33 = fdiv <4 x float> %wide.load161, %broadcast.splat163
  store <4 x float> %33, ptr %32, align 4, !tbaa !9
  %index.next164 = add nuw i64 %index160, 4
  %34 = icmp eq i64 %index.next164, %n.vec157
  br i1 %34, label %middle.block152, label %vector.body159, !llvm.loop !15

middle.block152:                                  ; preds = %vector.body159
  br i1 %cmp.n165, label %.preheader.us.preheader, label %.lr.ph82.us.preheader187

.lr.ph82.us.preheader187:                         ; preds = %middle.block152, %.lr.ph82.us.preheader
  %indvars.iv128.ph = phi i64 [ 0, %.lr.ph82.us.preheader ], [ %n.vec157, %middle.block152 ]
  br label %.lr.ph82.us

.lr.ph82.us:                                      ; preds = %.lr.ph82.us.preheader187, %.lr.ph82.us
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %.lr.ph82.us ], [ %indvars.iv128.ph, %.lr.ph82.us.preheader187 ]
  %35 = getelementptr inbounds float, ptr %12, i64 %indvars.iv128
  %36 = load float, ptr %35, align 4, !tbaa !9
  %37 = fdiv float %36, %30
  store float %37, ptr %35, align 4, !tbaa !9
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next129, %wide.trip.count131
  br i1 %exitcond132.not, label %.preheader.us.preheader, label %.lr.ph82.us, !llvm.loop !17

.preheader.us.preheader:                          ; preds = %.lr.ph82.us, %middle.block152
  %scevgep148 = getelementptr i8, ptr %12, i64 %6
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %..loopexit_crit_edge.us
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %..loopexit_crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.not69.us = icmp eq i64 %indvars.iv, %indvars.iv138
  br i1 %.not69.us, label %..loopexit_crit_edge.us, label %.lr.ph85.us

.lr.ph85.us:                                      ; preds = %.preheader.us
  %38 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv138
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds float, ptr %39, i64 %indvars.iv
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = fneg float %41
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph85.us
  %scevgep = getelementptr i8, ptr %39, i64 %6
  %bound0 = icmp ult ptr %39, %scevgep148
  %bound1 = icmp ult ptr %12, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <4 x float> poison, float %42, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %43 = getelementptr inbounds float, ptr %12, i64 %index
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load = load <4 x float>, ptr %43, align 4, !tbaa !9, !alias.scope !18
  %wide.load149 = load <4 x float>, ptr %44, align 4, !tbaa !9, !alias.scope !18
  %45 = getelementptr inbounds float, ptr %39, i64 %index
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load150 = load <4 x float>, ptr %45, align 4, !tbaa !9, !alias.scope !21, !noalias !18
  %wide.load151 = load <4 x float>, ptr %46, align 4, !tbaa !9, !alias.scope !21, !noalias !18
  %47 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load, <4 x float> %wide.load150)
  %48 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load149, <4 x float> %wide.load151)
  store <4 x float> %47, ptr %45, align 4, !tbaa !9, !alias.scope !21, !noalias !18
  store <4 x float> %48, ptr %46, align 4, !tbaa !9, !alias.scope !21, !noalias !18
  %index.next = add nuw i64 %index, 8
  %49 = icmp eq i64 %index.next, %n.vec
  br i1 %49, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit_crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph85.us
  %indvars.iv133.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph85.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod191.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %50 = getelementptr inbounds float, ptr %12, i64 %indvars.iv133.ph
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = getelementptr inbounds float, ptr %39, i64 %indvars.iv133.ph
  %53 = load float, ptr %52, align 4, !tbaa !9
  %54 = tail call float @llvm.fmuladd.f32(float %42, float %51, float %53)
  store float %54, ptr %52, align 4, !tbaa !9
  %indvars.iv.next134.prol = or disjoint i64 %indvars.iv133.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv133.unr = phi i64 [ %indvars.iv133.ph, %scalar.ph.preheader ], [ %indvars.iv.next134.prol, %scalar.ph.prol ]
  %55 = icmp eq i64 %indvars.iv133.ph, %9
  br i1 %55, label %..loopexit_crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv133 = phi i64 [ %indvars.iv.next134.1, %scalar.ph ], [ %indvars.iv133.unr, %scalar.ph.prol.loopexit ]
  %56 = getelementptr inbounds float, ptr %12, i64 %indvars.iv133
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = getelementptr inbounds float, ptr %39, i64 %indvars.iv133
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = tail call float @llvm.fmuladd.f32(float %42, float %57, float %59)
  store float %60, ptr %58, align 4, !tbaa !9
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %61 = getelementptr inbounds float, ptr %12, i64 %indvars.iv.next134
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = getelementptr inbounds float, ptr %39, i64 %indvars.iv.next134
  %64 = load float, ptr %63, align 4, !tbaa !9
  %65 = tail call float @llvm.fmuladd.f32(float %42, float %62, float %64)
  store float %65, ptr %63, align 4, !tbaa !9
  %indvars.iv.next134.1 = add nuw nsw i64 %indvars.iv133, 2
  %exitcond137.not.1 = icmp eq i64 %indvars.iv.next134.1, %wide.trip.count136
  br i1 %exitcond137.not.1, label %..loopexit_crit_edge.us, label %scalar.ph, !llvm.loop !24

..loopexit_crit_edge.us:                          ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader.us
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count144
  br i1 %exitcond142.not, label %._crit_edge.split.us, label %.preheader.us, !llvm.loop !25

.lr.ph.us.preheader:                              ; preds = %16
  br i1 %min.iters.check174, label %.lr.ph.us.preheader188, label %vector.memcheck166

.lr.ph.us.preheader188:                           ; preds = %middle.block172, %vector.memcheck166, %.lr.ph.us.preheader
  %indvars.iv123.ph = phi i64 [ 0, %vector.memcheck166 ], [ 0, %.lr.ph.us.preheader ], [ %n.vec177, %middle.block172 ]
  br i1 %lcmp.mod.not, label %.lr.ph.us.prol.loopexit, label %.lr.ph.us.prol

.lr.ph.us.prol:                                   ; preds = %.lr.ph.us.preheader188
  %66 = getelementptr inbounds float, ptr %12, i64 %indvars.iv123.ph
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = getelementptr inbounds float, ptr %18, i64 %indvars.iv123.ph
  %69 = load float, ptr %68, align 4, !tbaa !9
  store float %69, ptr %66, align 4, !tbaa !9
  store float %67, ptr %68, align 4, !tbaa !9
  %indvars.iv.next124.prol = or disjoint i64 %indvars.iv123.ph, 1
  br label %.lr.ph.us.prol.loopexit

.lr.ph.us.prol.loopexit:                          ; preds = %.lr.ph.us.prol, %.lr.ph.us.preheader188
  %indvars.iv123.unr = phi i64 [ %indvars.iv123.ph, %.lr.ph.us.preheader188 ], [ %indvars.iv.next124.prol, %.lr.ph.us.prol ]
  %70 = icmp eq i64 %indvars.iv123.ph, %8
  br i1 %70, label %.critedge72thread-pre-split.us, label %.lr.ph.us

vector.memcheck166:                               ; preds = %.lr.ph.us.preheader
  %scevgep167 = getelementptr i8, ptr %12, i64 %7
  %scevgep168 = getelementptr i8, ptr %18, i64 %7
  %bound0169 = icmp ult ptr %12, %scevgep168
  %bound1170 = icmp ult ptr %18, %scevgep167
  %found.conflict171 = and i1 %bound0169, %bound1170
  br i1 %found.conflict171, label %.lr.ph.us.preheader188, label %vector.body179

vector.body179:                                   ; preds = %vector.memcheck166, %vector.body179
  %index180 = phi i64 [ %index.next185, %vector.body179 ], [ 0, %vector.memcheck166 ]
  %71 = getelementptr inbounds float, ptr %12, i64 %index180
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %wide.load181 = load <4 x float>, ptr %71, align 4, !tbaa !9, !alias.scope !26, !noalias !29
  %wide.load182 = load <4 x float>, ptr %72, align 4, !tbaa !9, !alias.scope !26, !noalias !29
  %73 = getelementptr inbounds float, ptr %18, i64 %index180
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %wide.load183 = load <4 x float>, ptr %73, align 4, !tbaa !9, !alias.scope !29
  %wide.load184 = load <4 x float>, ptr %74, align 4, !tbaa !9, !alias.scope !29
  store <4 x float> %wide.load183, ptr %71, align 4, !tbaa !9, !alias.scope !26, !noalias !29
  store <4 x float> %wide.load184, ptr %72, align 4, !tbaa !9, !alias.scope !26, !noalias !29
  store <4 x float> %wide.load181, ptr %73, align 4, !tbaa !9, !alias.scope !29
  store <4 x float> %wide.load182, ptr %74, align 4, !tbaa !9, !alias.scope !29
  %index.next185 = add nuw i64 %index180, 8
  %75 = icmp eq i64 %index.next185, %n.vec177
  br i1 %75, label %middle.block172, label %vector.body179, !llvm.loop !31

middle.block172:                                  ; preds = %vector.body179
  br i1 %cmp.n186, label %.critedge72thread-pre-split.us, label %.lr.ph.us.preheader188

._crit_edge.split.us:                             ; preds = %..loopexit_crit_edge.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond145.not = icmp eq i64 %indvars.iv.next, %wide.trip.count144
  br i1 %exitcond145.not, label %.loopexit77, label %10, !llvm.loop !32

.loopexit77.sink.split:                           ; preds = %.critedge72.us, %.preheader76.us
  %.str.sink = phi ptr [ @.str, %.preheader76.us ], [ @.str.1, %.critedge72.us ]
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.sink)
  br label %.loopexit77

.loopexit77:                                      ; preds = %._crit_edge.split.us, %.loopexit77.sink.split, %2
  ret void
}

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

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

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

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12, !14}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = distinct !{!15, !12, !14, !16}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !12, !16, !14}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !12, !14, !16}
!24 = distinct !{!24, !12, !14}
!25 = distinct !{!25, !12}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !12, !14, !16}
!32 = distinct !{!32, !12}


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