; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui_widgets)

; 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, float }

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

; 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(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
  %15 = alloca float, 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
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %36

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

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

35:                                               ; preds = %24, %18
  br label %219

36:                                               ; preds = %3
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  call void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef %37, i64 noundef %39, i64 noundef 12, 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 %40

40:                                               ; preds = %139, %36
  %41 = load float, ptr %6, align 4, !tbaa !11
  %42 = fcmp ogt float %41, 0.000000e+00
  br i1 %42, label %43, label %47

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

47:                                               ; preds = %43, %40
  %48 = phi i1 [ false, %40 ], [ %46, %43 ]
  br i1 %48, label %49, label %140

49:                                               ; preds = %47
  br label %50

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

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

66:                                               ; preds = %54, %50
  %67 = phi i1 [ false, %50 ], [ %65, %54 ]
  br i1 %67, label %68, label %71

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

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

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

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

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

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

105:                                              ; preds = %101
  store i32 3, ptr %9, align 4
  br label %137

106:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %107 = load float, ptr %6, align 4, !tbaa !11
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = sitofp i32 %108 to float
  %110 = fdiv float %107, %109
  %111 = load float, ptr %8, align 4, !tbaa !11
  %112 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %110, float noundef %111)
  store float %112, 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 %113

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

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

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

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

130:                                              ; preds = %117
  %131 = load float, ptr %10, align 4, !tbaa !11
  %132 = load i32, ptr %7, align 4, !tbaa !9
  %133 = sitofp i32 %132 to float
  %134 = load float, ptr %6, align 4, !tbaa !11
  %135 = fneg float %131
  %136 = call float @llvm.fmuladd.f32(float %135, float %133, float %134)
  store float %136, 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 %137

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

139:                                              ; preds = %137
  br label %40, !llvm.loop !18

140:                                              ; preds = %137, %47
  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 %141

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

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

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

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

173:                                              ; preds = %145
  br label %174

174:                                              ; preds = %217, %173
  %175 = load float, ptr %6, align 4, !tbaa !11
  %176 = fcmp ogt float %175, 0.000000e+00
  br i1 %176, label %177, label %218

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

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

182:                                              ; preds = %178
  %183 = load float, ptr %6, align 4, !tbaa !11
  %184 = fcmp ogt float %183, 0.000000e+00
  br label %185

185:                                              ; preds = %182, %178
  %186 = phi i1 [ false, %178 ], [ %184, %182 ]
  br i1 %186, label %188, label %187

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

188:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %189, i64 %191
  %193 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %192, i32 0, i32 2
  %194 = load float, ptr %193, align 4, !tbaa !20
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = load i32, ptr %14, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %195, i64 %197
  %199 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %198, i32 0, i32 1
  %200 = load float, ptr %199, align 4, !tbaa !13
  %201 = fsub float %194, %200
  %202 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %201, float noundef 1.000000e+00)
  store float %202, ptr %15, align 4, !tbaa !11
  %203 = load float, ptr %15, align 4, !tbaa !11
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %204, i64 %206
  %208 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %207, i32 0, i32 1
  %209 = load float, ptr %208, align 4, !tbaa !13
  %210 = fadd float %209, %203
  store float %210, ptr %208, align 4, !tbaa !13
  %211 = load float, ptr %15, align 4, !tbaa !11
  %212 = load float, ptr %6, align 4, !tbaa !11
  %213 = fsub float %212, %211
  store float %213, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %214

214:                                              ; preds = %188
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %14, align 4, !tbaa !9
  br label %178, !llvm.loop !21

217:                                              ; preds = %187
  br label %174, !llvm.loop !22

218:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %219

219:                                              ; preds = %218, %35
  ret void

220:                                              ; preds = %137
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

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

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 = { inlinehint 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 #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, !12, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!14, !12, i64 8}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !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, 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(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 %.loopexit78, 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 %.loopexit78

12:                                               ; preds = %3
  %13 = sext i32 %1 to i64
  tail call void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef %0, i64 noundef %13, i64 noundef 12, 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 %.preheader79.lr.ph, label %.thread

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

.preheader79:                                     ; preds = %.preheader79.lr.ph, %._crit_edge
  %.087 = phi float [ %2, %.preheader79.lr.ph ], [ %57, %._crit_edge ]
  %.06486 = phi i32 [ 1, %.preheader79.lr.ph ], [ %.16581, %._crit_edge ]
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = sext i32 %.06486 to i64
  br label %20

20:                                               ; preds = %.preheader79, %24
  %indvars.iv = phi i64 [ %19, %.preheader79 ], [ %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 %.critedge73.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 %.critedge73, label %28

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

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

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

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

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

.lr.ph.preheader:                                 ; preds = %35
  %wide.trip.count = zext nneg i32 %.16581 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %40 = icmp ult i32 %.16581, 4
  br i1 %40, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv103 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next104.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %41 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv103, i32 1
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fsub float %42, %38
  store float %43, ptr %41, align 4, !tbaa !5
  %indvars.iv.next104 = or disjoint i64 %indvars.iv103, 1
  %44 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv.next104, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fsub float %45, %38
  store float %46, ptr %44, align 4, !tbaa !5
  %indvars.iv.next104.1 = or disjoint i64 %indvars.iv103, 2
  %47 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv.next104.1, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = fsub float %48, %38
  store float %49, ptr %47, align 4, !tbaa !5
  %indvars.iv.next104.2 = or disjoint i64 %indvars.iv103, 3
  %50 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv.next104.2, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = fsub float %51, %38
  store float %52, ptr %50, align 4, !tbaa !5
  %indvars.iv.next104.3 = add nuw nsw i64 %indvars.iv103, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !13

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv103.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next104.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv103.epil = phi i64 [ %indvars.iv.next104.epil, %.lr.ph.epil ], [ %indvars.iv103.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %53 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv103.epil, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fsub float %54, %38
  store float %55, ptr %53, align 4, !tbaa !5
  %indvars.iv.next104.epil = add nuw nsw i64 %indvars.iv103.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %35
  %56 = fneg float %38
  %57 = tail call float @llvm.fmuladd.f32(float %56, float %36, float %.087)
  %58 = fcmp ogt float %57, 0.000000e+00
  %59 = icmp slt i32 %.16581, %1
  %60 = and i1 %59, %58
  br i1 %60, label %.preheader79, label %.thread

.thread:                                          ; preds = %._crit_edge, %32, %12
  %61 = icmp sgt i32 %1, 0
  br i1 %61, label %.lr.ph91.preheader, label %.loopexit78

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

.preheader77:                                     ; preds = %.lr.ph91
  %62 = fcmp ogt float %68, 0.000000e+00
  br i1 %62, label %.preheader.lr.ph, label %.loopexit78

.preheader.lr.ph:                                 ; preds = %.preheader77
  tail call void @llvm.assume(i1 %61)
  br label %.preheader

.lr.ph91:                                         ; preds = %.lr.ph91.preheader, %.lr.ph91
  %indvars.iv106 = phi i64 [ 0, %.lr.ph91.preheader ], [ %indvars.iv.next107, %.lr.ph91 ]
  %.290 = phi float [ 0.000000e+00, %.lr.ph91.preheader ], [ %68, %.lr.ph91 ]
  %63 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv106, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = tail call noundef float @_ZL7ImFloorf(float noundef %64)
  %66 = load float, ptr %63, align 4, !tbaa !5
  %67 = fsub float %66, %65
  %68 = fadd float %.290, %67
  store float %65, ptr %63, align 4, !tbaa !5
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count109
  br i1 %exitcond110.not, label %.preheader77, label %.lr.ph91, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph94, %.preheader
  %.4.lcssa = phi float [ %.396, %.preheader ], [ %80, %.lr.ph94 ]
  %69 = fcmp ogt float %.4.lcssa, 0.000000e+00
  br i1 %69, label %.preheader, label %.loopexit78, !llvm.loop !17

.preheader:                                       ; preds = %.preheader.lr.ph, %.loopexit
  %.396 = phi float [ %.4.lcssa, %.loopexit ], [ %68, %.preheader.lr.ph ]
  %70 = fcmp ogt float %.396, 0.000000e+00
  br i1 %70, label %.lr.ph94, label %.loopexit

.lr.ph94:                                         ; preds = %.preheader, %.lr.ph94
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph94 ], [ 0, %.preheader ]
  %.493 = phi float [ %80, %.lr.ph94 ], [ %.396, %.preheader ]
  %71 = getelementptr inbounds %struct.ImGuiShrinkWidthItem, ptr %0, i64 %indvars.iv111
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load float, ptr %72, align 4, !tbaa !18
  %74 = getelementptr inbounds i8, ptr %71, i64 4
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = fsub float %73, %75
  %77 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %76, float noundef 1.000000e+00)
  %78 = load float, ptr %74, align 4, !tbaa !5
  %79 = fadd float %77, %78
  store float %79, ptr %74, align 4, !tbaa !5
  %80 = fsub float %.493, %77
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %81 = icmp ult i64 %indvars.iv.next112, %13
  %82 = fcmp ogt float %80, 0.000000e+00
  %83 = select i1 %81, i1 %82, i1 false
  br i1 %83, label %.lr.ph94, label %.loopexit, !llvm.loop !19

.loopexit78:                                      ; preds = %.loopexit, %.thread, %.preheader77, %5, %9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #5

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 = { inlinehint 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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }

!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, !10, i64 8}
!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 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!6, !10, i64 8}
!19 = distinct !{!19, !12}


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