; LLVM IR from theolundqvist/parallax-voxel-ray-marcher :: src/external/Dear ImGui/imgui_widgets.ll (ZN5ImGui12ShrinkWidthsEP20ImGuiShrinkWidthItemif)

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

%struct.ImGuiShrinkWidthItem = type { i32, float }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui12ShrinkWidthsEP20ImGuiShrinkWidthItemif(ptr noundef %0, i32 noundef %1, float noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, 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
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !11
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %35

17:                                               ; preds = %3
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %18, i64 0
  %20 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %19, i32 0, i32 1
  %21 = load float, ptr %20, align 4, !tbaa !13
  %22 = fcmp oge float %21, 0.000000e+00
  br i1 %22, label %23, label %34

23:                                               ; preds = %17
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %24, i64 0
  %26 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %25, i32 0, i32 1
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = load float, ptr %6, align 4, !tbaa !11
  %29 = fsub float %27, %28
  %30 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %29, float noundef 1.000000e+00)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %31, i64 0
  %33 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %32, i32 0, i32 1
  store float %30, ptr %33, align 4, !tbaa !13
  br label %34

34:                                               ; preds = %23, %17
  br label %206

35:                                               ; preds = %3
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  call void @qsort(ptr noundef %36, i64 noundef %38, i64 noundef 8, ptr noundef @_ZL23ShrinkWidthItemComparerPKvS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %138, %35
  %40 = load float, ptr %6, align 4, !tbaa !11
  %41 = fcmp ogt float %40, 0.000000e+00
  br i1 %41, label %42, label %46

42:                                               ; preds = %39
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br label %46

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

48:                                               ; preds = %46
  br label %49

49:                                               ; preds = %67, %48
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %53, label %65

53:                                               ; preds = %49
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %54, i64 0
  %56 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !13
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %58, i64 %60
  %62 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !13
  %64 = fcmp ole float %57, %63
  br label %65

65:                                               ; preds = %53, %49
  %66 = phi i1 [ false, %49 ], [ %64, %53 ]
  br i1 %66, label %67, label %70

67:                                               ; preds = %65
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !9
  br label %49, !llvm.loop !15

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %94

74:                                               ; preds = %70
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %75, i64 %77
  %79 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %78, i32 0, i32 1
  %80 = load float, ptr %79, align 4, !tbaa !13
  %81 = fcmp oge float %80, 0.000000e+00
  br i1 %81, label %82, label %94

82:                                               ; preds = %74
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %83, i64 0
  %85 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %84, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !13
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %87, i64 %89
  %91 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !13
  %93 = fsub float %86, %92
  br label %100

94:                                               ; preds = %74, %70
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %95, i64 0
  %97 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %96, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !13
  %99 = fsub float %98, 1.000000e+00
  br label %100

100:                                              ; preds = %94, %82
  %101 = phi float [ %93, %82 ], [ %99, %94 ]
  store float %101, ptr %8, align 4, !tbaa !11
  %102 = load float, ptr %8, align 4, !tbaa !11
  %103 = fcmp ole float %102, 0.000000e+00
  br i1 %103, label %104, label %105

104:                                              ; preds = %100
  store i32 3, ptr %9, align 4
  br label %136

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %106 = load float, ptr %6, align 4, !tbaa !11
  %107 = load i32, ptr %7, align 4, !tbaa !9
  %108 = sitofp i32 %107 to float
  %109 = fdiv float %106, %108
  %110 = load float, ptr %8, align 4, !tbaa !11
  %111 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %109, float noundef %110)
  store float %111, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %126, %105
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  store i32 6, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %129

117:                                              ; preds = %112
  %118 = load float, ptr %10, align 4, !tbaa !11
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %119, i64 %121
  %123 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %122, i32 0, i32 1
  %124 = load float, ptr %123, align 4, !tbaa !13
  %125 = fsub float %124, %118
  store float %125, ptr %123, align 4, !tbaa !13
  br label %126

126:                                              ; preds = %117
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %11, align 4, !tbaa !9
  br label %112, !llvm.loop !17

129:                                              ; preds = %116
  %130 = load float, ptr %10, align 4, !tbaa !11
  %131 = load i32, ptr %7, align 4, !tbaa !9
  %132 = sitofp i32 %131 to float
  %133 = load float, ptr %6, align 4, !tbaa !11
  %134 = fneg float %130
  %135 = call float @llvm.fmuladd.f32(float %134, float %132, float %133)
  store float %135, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  store i32 0, ptr %9, align 4
  br label %136

136:                                              ; preds = %129, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %137 = load i32, ptr %9, align 4
  switch i32 %137, label %207 [
    i32 0, label %138
    i32 3, label %139
  ]

138:                                              ; preds = %136
  br label %39, !llvm.loop !18

139:                                              ; preds = %136, %46
  store float 0.000000e+00, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %169, %139
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %5, align 4, !tbaa !9
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  store i32 9, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %172

145:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %146, i64 %148
  %150 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %149, i32 0, i32 1
  %151 = load float, ptr %150, align 4, !tbaa !13
  %152 = call noundef float @_ZL7ImFloorf(float noundef %151)
  store float %152, ptr %13, align 4, !tbaa !11
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %153, i64 %155
  %157 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %156, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !13
  %159 = load float, ptr %13, align 4, !tbaa !11
  %160 = fsub float %158, %159
  %161 = load float, ptr %6, align 4, !tbaa !11
  %162 = fadd float %161, %160
  store float %162, ptr %6, align 4, !tbaa !11
  %163 = load float, ptr %13, align 4, !tbaa !11
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %164, i64 %166
  %168 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %167, i32 0, i32 1
  store float %163, ptr %168, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %169

169:                                              ; preds = %145
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %12, align 4, !tbaa !9
  br label %140, !llvm.loop !19

172:                                              ; preds = %144
  %173 = load float, ptr %6, align 4, !tbaa !11
  %174 = fcmp ogt float %173, 0.000000e+00
  br i1 %174, label %175, label %205

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %201, %175
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %5, align 4, !tbaa !9
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 12, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %204

181:                                              ; preds = %176
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = load i32, ptr %14, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %182, i64 %184
  %186 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 4, !tbaa !20
  %188 = load float, ptr %6, align 4, !tbaa !11
  %189 = fadd float %188, 0x3F847AE140000000
  %190 = fptosi float %189 to i32
  %191 = icmp slt i32 %187, %190
  br i1 %191, label %192, label %200

192:                                              ; preds = %181
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %193, i64 %195
  %197 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %196, i32 0, i32 1
  %198 = load float, ptr %197, align 4, !tbaa !13
  %199 = fadd float %198, 1.000000e+00
  store float %199, ptr %197, align 4, !tbaa !13
  br label %200

200:                                              ; preds = %192, %181
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %14, align 4, !tbaa !9
  br label %176, !llvm.loop !21

204:                                              ; preds = %180
  br label %205

205:                                              ; preds = %204, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %206

206:                                              ; preds = %205, %34
  ret void

207:                                              ; preds = %136
  unreachable
}

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL23ShrinkWidthItemComparerPKvS0_(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(float noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTS20ImGuiShrinkWidthItem", !10, i64 0, !12, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!14, !10, i64 0}
!21 = distinct !{!21, !16}


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

%struct.ImGuiShrinkWidthItem = type { i32, float }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui12ShrinkWidthsEP20ImGuiShrinkWidthItemif(ptr noundef %0, i32 noundef %1, float noundef %2) local_unnamed_addr #2 {
  %4 = icmp eq i32 %1, 1
  br i1 %4, label %5, label %12

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load float, ptr %6, align 4, !tbaa !5
  %8 = fcmp ult float %7, 0.000000e+00
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %5
  %10 = fsub float %7, %2
  %11 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %10, float noundef 1.000000e+00)
  store float %11, ptr %6, align 4, !tbaa !5
  br label %.loopexit

12:                                               ; preds = %3
  %13 = sext i32 %1 to i64
  tail call void @qsort(ptr noundef %0, i64 noundef %13, i64 noundef 8, ptr noundef nonnull @_ZL23ShrinkWidthItemComparerPKvS0_)
  %14 = fcmp ogt float %2, 0.000000e+00
  %15 = icmp sgt i32 %1, 1
  %16 = and i1 %15, %14
  br i1 %16, label %.preheader72.lr.ph, label %.thread

.preheader72.lr.ph:                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 4
  br label %.preheader72

.preheader72:                                     ; preds = %.preheader72.lr.ph, %._crit_edge
  %.05880 = phi float [ %2, %.preheader72.lr.ph ], [ %59, %._crit_edge ]
  %.06179 = phi i32 [ 1, %.preheader72.lr.ph ], [ %.16274, %._crit_edge ]
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = sext i32 %.06179 to i64
  br label %20

20:                                               ; preds = %.preheader72, %24
  %indvars.iv = phi i64 [ %19, %.preheader72 ], [ %indvars.iv.next, %24 ]
  %21 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv, i32 1
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = fcmp ugt float %18, %22
  br i1 %23, label %.critedge, label %24

24:                                               ; preds = %20
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %25 = icmp slt i64 %indvars.iv.next, %13
  br i1 %25, label %20, label %.critedge68.loopexit, !llvm.loop !11

.critedge:                                        ; preds = %20
  %26 = trunc nsw i64 %indvars.iv to i32
  %27 = fcmp ult float %22, 0.000000e+00
  br i1 %27, label %.critedge68, label %28

28:                                               ; preds = %.critedge
  %29 = fsub float %18, %22
  br label %32

.critedge68.loopexit:                             ; preds = %24
  %30 = trunc nsw i64 %indvars.iv.next to i32
  br label %.critedge68

.critedge68:                                      ; preds = %.critedge68.loopexit, %.critedge
  %.16275 = phi i32 [ %26, %.critedge ], [ %30, %.critedge68.loopexit ]
  %31 = fadd float %18, -1.000000e+00
  br label %32

32:                                               ; preds = %.critedge68, %28
  %.16274 = phi i32 [ %26, %28 ], [ %.16275, %.critedge68 ]
  %33 = phi float [ %29, %28 ], [ %31, %.critedge68 ]
  %34 = fcmp ugt float %33, 0.000000e+00
  br i1 %34, label %35, label %.thread

35:                                               ; preds = %32
  %36 = sitofp i32 %.16274 to float
  %37 = fdiv float %.05880, %36
  %38 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %37, float noundef %33)
  %39 = icmp sgt i32 %.16274, 0
  br i1 %39, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %35
  %wide.trip.count = zext nneg i32 %.16274 to i64
  %min.iters.check = icmp ult i32 %.16274, 5
  br i1 %min.iters.check, label %.lr.ph.preheader114, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.mod.vf = and i64 %wide.trip.count, 3
  %40 = icmp eq i64 %n.mod.vf, 0
  %41 = select i1 %40, i64 4, i64 %n.mod.vf
  %n.vec = sub nsw i64 %wide.trip.count, %41
  %broadcast.splatinsert = insertelement <4 x float> poison, float %38, 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 ]
  %42 = or disjoint i64 %index, 1
  %43 = or disjoint i64 %index, 2
  %44 = or disjoint i64 %index, 3
  %45 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %index, i32 1
  %46 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %42, i32 1
  %47 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %43, i32 1
  %48 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %44, i32 1
  %wide.vec = load <8 x float>, ptr %45, align 4, !tbaa !5
  %strided.vec = shufflevector <8 x float> %wide.vec, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %49 = fsub <4 x float> %strided.vec, %broadcast.splat
  %50 = extractelement <4 x float> %49, i64 0
  store float %50, ptr %45, align 4, !tbaa !5
  %51 = extractelement <4 x float> %49, i64 1
  store float %51, ptr %46, align 4, !tbaa !5
  %52 = extractelement <4 x float> %49, i64 2
  store float %52, ptr %47, align 4, !tbaa !5
  %53 = extractelement <4 x float> %49, i64 3
  store float %53, ptr %48, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %54 = icmp eq i64 %index.next, %n.vec
  br i1 %54, label %.lr.ph.preheader114, label %vector.body, !llvm.loop !13

.lr.ph.preheader114:                              ; preds = %vector.body, %.lr.ph.preheader
  %indvars.iv93.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %vector.body ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader114, %.lr.ph
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %.lr.ph ], [ %indvars.iv93.ph, %.lr.ph.preheader114 ]
  %55 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv93, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fsub float %56, %38
  store float %57, ptr %55, align 4, !tbaa !5
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next94, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %35
  %58 = fneg float %38
  %59 = tail call float @llvm.fmuladd.f32(float %58, float %36, float %.05880)
  %60 = fcmp ogt float %59, 0.000000e+00
  %61 = icmp slt i32 %.16274, %1
  %62 = and i1 %61, %60
  br i1 %62, label %.preheader72, label %.thread

.thread:                                          ; preds = %._crit_edge, %32, %12
  %63 = icmp sgt i32 %1, 0
  br i1 %63, label %.lr.ph84.preheader, label %.loopexit

.lr.ph84.preheader:                               ; preds = %.thread
  %wide.trip.count99 = zext nneg i32 %1 to i64
  br label %.lr.ph84

._crit_edge85:                                    ; preds = %.lr.ph84
  %64 = fcmp ogt float %72, 0.000000e+00
  %or.cond = and i1 %64, %63
  br i1 %or.cond, label %.lr.ph87, label %.loopexit

.lr.ph87:                                         ; preds = %._crit_edge85
  %65 = fadd float %72, 0x3F847AE140000000
  %66 = fptosi float %65 to i32
  %xtraiter = and i64 %wide.trip.count99, 1
  %unroll_iter = and i64 %wide.trip.count99, 2147483646
  br label %73

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %.lr.ph84
  %indvars.iv96 = phi i64 [ 0, %.lr.ph84.preheader ], [ %indvars.iv.next97, %.lr.ph84 ]
  %.283 = phi float [ 0.000000e+00, %.lr.ph84.preheader ], [ %72, %.lr.ph84 ]
  %67 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv96, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = tail call noundef float @_ZL7ImFloorf(float noundef %68)
  %70 = load float, ptr %67, align 4, !tbaa !5
  %71 = fsub float %70, %69
  %72 = fadd float %.283, %71
  store float %69, ptr %67, align 4, !tbaa !5
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next97, %wide.trip.count99
  br i1 %exitcond100.not, label %._crit_edge85, label %.lr.ph84, !llvm.loop !17

73:                                               ; preds = %89, %.lr.ph87
  %indvars.iv101 = phi i64 [ 0, %.lr.ph87 ], [ %indvars.iv.next102.1, %89 ]
  %niter = phi i64 [ 0, %.lr.ph87 ], [ %niter.next.1, %89 ]
  %74 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv101
  %75 = load i32, ptr %74, align 4, !tbaa !18
  %76 = icmp slt i32 %75, %66
  br i1 %76, label %77, label %81

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %74, i64 4
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fadd float %79, 1.000000e+00
  store float %80, ptr %78, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %73, %77
  %indvars.iv.next102 = or disjoint i64 %indvars.iv101, 1
  %82 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv.next102
  %83 = load i32, ptr %82, align 4, !tbaa !18
  %84 = icmp slt i32 %83, %66
  br i1 %84, label %85, label %89

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %82, i64 4
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = fadd float %87, 1.000000e+00
  store float %88, ptr %86, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %85, %81
  %indvars.iv.next102.1 = add nuw nsw i64 %indvars.iv101, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %73, !llvm.loop !19

.loopexit.loopexit.unr-lcssa:                     ; preds = %89
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa
  %90 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv.next102.1
  %91 = load i32, ptr %90, align 4, !tbaa !18
  %92 = icmp slt i32 %91, %66
  br i1 %92, label %93, label %.loopexit

93:                                               ; preds = %.epil.preheader
  %94 = getelementptr inbounds i8, ptr %90, i64 4
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = fadd float %95, 1.000000e+00
  store float %96, ptr %94, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %93, %.epil.preheader, %.thread, %._crit_edge85, %5, %9
  ret void
}

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL23ShrinkWidthItemComparerPKvS0_(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(float noundef) local_unnamed_addr #0

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

!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, !10, i64 4}
!6 = !{!"_ZTS20ImGuiShrinkWidthItem", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !12, !15, !14}
!17 = distinct !{!17, !12}
!18 = !{!6, !7, i64 0}
!19 = distinct !{!19, !12}


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