; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN5ImGui10InputFloatEPKcPfffii)

; 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.ImVec2 = type { float, float }
%struct.ImGuiAabb = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiWindow = type { ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, i8, i8, i32, i8, i32, i32, i32, %struct.ImGuiDrawContext, %class.ImVector.11, %class.ImVector.12, %struct.ImGuiAabb, i32, float, %struct.ImGuiStorage, float, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.ImGuiDrawContext = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, i32, i32, %struct.ImGuiAabb, i8, %class.ImVector.1, %class.ImVector.9, %class.ImVector.10, %class.ImVector.10, i32, ptr, float, float, i32, i32, %struct.ImVec2, float, float, i8, i32, %class.ImVector.10 }
%class.ImVector.1 = type { i64, i64, ptr }
%class.ImVector.9 = type { i64, i64, ptr }
%class.ImVector.10 = type { i64, i64, ptr }
%class.ImVector.11 = type { i64, i64, ptr }
%class.ImVector.12 = type { i64, i64, ptr }
%struct.ImGuiStorage = type { %class.ImVector.6 }
%class.ImVector.6 = type { i64, i64, ptr }
%struct.ImGuiState = type { i8, [7 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, %struct.ImVec2, float, i32, i32, %class.ImVector.1, ptr, %class.ImVector.1, ptr, ptr, ptr, i32, i32, i32, i8, i8, ptr, float, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, %class.ImVector, %struct.ImVec2, i32, %struct.ImVec2, i32, i8, i32, i8, i8, i32, %class.ImVector.5, %class.ImVector.1, %struct.ImGuiTextEditState, i32, %struct.ImGuiStorage, i32, [1024 x i8], ptr, i8, ptr, ptr, i32, i32, [120 x float], i32, float }
%struct.ImGuiIO = type <{ %struct.ImVec2, float, float, ptr, ptr, float, float, [17 x i32], [4 x i8], ptr, ptr, float, i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], [3 x i8], float, i8, i8, i8, [512 x i8], i8, [17 x i16], i8, i8, float, %struct.ImVec2, %struct.ImVec2, [5 x i8], [3 x i8], [5 x %struct.ImVec2], [5 x float], [5 x i8], [5 x i8], [2 x i8], [5 x float], [512 x float], [4 x i8] }>
%struct.ImGuiStyle = type { float, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, [39 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%class.ImVector.2 = type { i64, i64, ptr }
%class.ImVector.3 = type { i64, i64, ptr }
%class.ImVector.4 = type { i64, i64, ptr }
%class.ImVector = type { i64, i64, ptr }
%class.ImVector.5 = type { i64, i64, ptr }
%struct.ImGuiTextEditState = type <{ i32, [1024 x i16], [3073 x i8], [3 x i8], i64, float, float, %struct.STB_TexteditState, float, %struct.ImVec2, i8, [7 x i8], ptr, float, [4 x i8] }>
%struct.STB_TexteditState = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %struct.StbUndoState }
%struct.StbUndoState = type { [99 x %struct.StbUndoRecord], [999 x i16], i16, i16, i16, i16 }
%struct.StbUndoRecord = type { i32, i16, i16, i16 }

@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZL6GImGui = external hidden global ptr, align 8
@.str.91 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13PushItemWidthEf(float noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP25ImGuiTextEditCallbackDataEPv(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui12PopItemWidthEv() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK11ImGuiWindow8FontSizeEv(ptr noundef nonnull align 8 dereferenceable(480)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #7

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef, ptr noundef, i1 noundef zeroext, float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9ImGuiAabbC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxff(float noundef, float noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8ItemSize6ImVec2PS_(<2 x float>, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5ImGui13CalcItemWidthEv() #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10RenderText6ImVec2PKcS1_b(<2 x float>, ptr noundef, ptr noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui8SameLineEii(i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2b(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui5PopIDEv() #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui6PushIDEPKc(ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui10InputFloatEPKcPfffii(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, i32 noundef %4, i32 noundef %5) #5 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImGuiAabb, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  %25 = alloca float, align 4
  %26 = alloca [64 x i8], align 16
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  %29 = alloca %struct.ImVec2, align 4
  %30 = alloca %struct.ImVec2, align 4
  %31 = alloca %struct.ImVec2, align 4
  %32 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store float %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %33 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  store ptr %33, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %34 = call noundef ptr @_ZL16GetCurrentWindowv()
  store ptr %34, ptr %15, align 8, !tbaa !5
  %35 = load ptr, ptr %15, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiWindow, ptr %35, i32 0, i32 14
  %37 = load i8, ptr %36, align 4, !tbaa !13, !range !27, !noundef !28
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %40

39:                                               ; preds = %6
  store i1 false, ptr %7, align 1
  store i32 1, ptr %16, align 4
  br label %196

40:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImGuiState, ptr %41, i32 0, i32 3
  store ptr %42, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %43 = call noundef float @_ZN5ImGui13CalcItemWidthEv()
  store float %43, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = call <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef %44, ptr noundef null, i1 noundef zeroext true, float noundef -1.000000e+00)
  store <2 x float> %45, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImGuiWindow, ptr %46, i32 0, i32 20
  %48 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %47, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %49 = load ptr, ptr %15, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiWindow, ptr %49, i32 0, i32 20
  %51 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %50, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %52 = load float, ptr %18, align 4, !tbaa !9
  %53 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %52, float noundef %54)
  %55 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %55, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %56 = load ptr, ptr %17, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImGuiStyle, ptr %56, i32 0, i32 5
  %58 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %57, float noundef 2.000000e+00)
  store <2 x float> %58, ptr %24, align 4
  %59 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %59, ptr %21, align 4
  call void @_ZN9ImGuiAabbC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKc(ptr noundef %60)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = call noundef float @_ZNK11ImGuiWindow8FontSizeEv(ptr noundef nonnull align 8 dereferenceable(480) %61)
  store float %62, ptr %25, align 4, !tbaa !9
  %63 = load float, ptr %10, align 4, !tbaa !9
  %64 = fcmp ogt float %63, 0.000000e+00
  br i1 %64, label %65, label %81

65:                                               ; preds = %40
  %66 = load float, ptr %18, align 4, !tbaa !9
  %67 = load float, ptr %25, align 4, !tbaa !9
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImGuiStyle, ptr %68, i32 0, i32 5
  %70 = getelementptr inbounds %struct.ImVec2, ptr %69, i32 0, i32 0
  %71 = load float, ptr %70, align 4, !tbaa !30
  %72 = call float @llvm.fmuladd.f32(float %71, float 2.000000e+00, float %67)
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImGuiStyle, ptr %73, i32 0, i32 8
  %75 = getelementptr inbounds %struct.ImVec2, ptr %74, i32 0, i32 0
  %76 = load float, ptr %75, align 4, !tbaa !32
  %77 = fadd float %72, %76
  %78 = fneg float %77
  %79 = call float @llvm.fmuladd.f32(float %78, float 2.000000e+00, float %66)
  %80 = call noundef float @_ZL5ImMaxff(float noundef 1.000000e+00, float noundef %79)
  call void @_ZN5ImGui13PushItemWidthEf(float noundef %80)
  br label %81

81:                                               ; preds = %65, %40
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #8
  %82 = load i32, ptr %12, align 4, !tbaa !11
  %83 = icmp slt i32 %82, 0
  br i1 %83, label %84, label %90

84:                                               ; preds = %81
  %85 = getelementptr inbounds [64 x i8], ptr %26, i64 0, i64 0
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load float, ptr %86, align 4, !tbaa !9
  %88 = fpext float %87 to double
  %89 = call noundef i64 (ptr, i64, ptr, ...) @_ZL14ImFormatStringPcmPKcz(ptr noundef %85, i64 noundef 64, ptr noundef @.str.100, double noundef %88)
  br label %97

90:                                               ; preds = %81
  %91 = getelementptr inbounds [64 x i8], ptr %26, i64 0, i64 0
  %92 = load i32, ptr %12, align 4, !tbaa !11
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = fpext float %94 to double
  %96 = call noundef i64 (ptr, i64, ptr, ...) @_ZL14ImFormatStringPcmPKcz(ptr noundef %91, i64 noundef 64, ptr noundef @.str.91, i32 noundef %92, double noundef %95)
  br label %97

97:                                               ; preds = %90, %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  store i8 0, ptr %27, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %98 = load i32, ptr %13, align 4, !tbaa !11
  %99 = or i32 %98, 17
  store i32 %99, ptr %28, align 4, !tbaa !11
  %100 = getelementptr inbounds [64 x i8], ptr %26, i64 0, i64 0
  %101 = load i32, ptr %28, align 4, !tbaa !11
  %102 = call noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP25ImGuiTextEditCallbackDataEPv(ptr noundef @.str.8, ptr noundef %100, i64 noundef 64, i32 noundef %101, ptr noundef null, ptr noundef null)
  br i1 %102, label %103, label %106

103:                                              ; preds = %97
  %104 = getelementptr inbounds [64 x i8], ptr %26, i64 0, i64 0
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL23ApplyNumericalTextInputPKcPf(ptr noundef %104, ptr noundef %105)
  store i8 1, ptr %27, align 1, !tbaa !33
  br label %106

106:                                              ; preds = %103, %97
  %107 = load float, ptr %10, align 4, !tbaa !9
  %108 = fcmp ogt float %107, 0.000000e+00
  br i1 %108, label %109, label %164

109:                                              ; preds = %106
  call void @_ZN5ImGui12PopItemWidthEv()
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ImGuiStyle, ptr %110, i32 0, i32 8
  %112 = getelementptr inbounds %struct.ImVec2, ptr %111, i32 0, i32 0
  %113 = load float, ptr %112, align 4, !tbaa !32
  %114 = fptosi float %113 to i32
  call void @_ZN5ImGui8SameLineEii(i32 noundef 0, i32 noundef %114)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %115 = load float, ptr %25, align 4, !tbaa !9
  %116 = load float, ptr %25, align 4, !tbaa !9
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %115, float noundef %116)
  %117 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2b(ptr noundef @.str.101, ptr noundef nonnull align 4 dereferenceable(8) %29, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br i1 %117, label %118, label %136

118:                                              ; preds = %109
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ImGuiState, ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds %struct.ImGuiIO, ptr %120, i32 0, i32 28
  %122 = load i8, ptr %121, align 1, !tbaa !34, !range !27, !noundef !28
  %123 = trunc i8 %122 to i1
  br i1 %123, label %124, label %129

124:                                              ; preds = %118
  %125 = load float, ptr %11, align 4, !tbaa !9
  %126 = fcmp ogt float %125, 0.000000e+00
  br i1 %126, label %127, label %129

127:                                              ; preds = %124
  %128 = load float, ptr %11, align 4, !tbaa !9
  br label %131

129:                                              ; preds = %124, %118
  %130 = load float, ptr %10, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %129, %127
  %132 = phi float [ %128, %127 ], [ %130, %129 ]
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = fsub float %134, %132
  store float %135, ptr %133, align 4, !tbaa !9
  store i8 1, ptr %27, align 1, !tbaa !33
  br label %136

136:                                              ; preds = %131, %109
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImGuiStyle, ptr %137, i32 0, i32 8
  %139 = getelementptr inbounds %struct.ImVec2, ptr %138, i32 0, i32 0
  %140 = load float, ptr %139, align 4, !tbaa !32
  %141 = fptosi float %140 to i32
  call void @_ZN5ImGui8SameLineEii(i32 noundef 0, i32 noundef %141)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %142 = load float, ptr %25, align 4, !tbaa !9
  %143 = load float, ptr %25, align 4, !tbaa !9
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %30, float noundef %142, float noundef %143)
  %144 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2b(ptr noundef @.str.102, ptr noundef nonnull align 4 dereferenceable(8) %30, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br i1 %144, label %145, label %163

145:                                              ; preds = %136
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImGuiState, ptr %146, i32 0, i32 2
  %148 = getelementptr inbounds %struct.ImGuiIO, ptr %147, i32 0, i32 28
  %149 = load i8, ptr %148, align 1, !tbaa !34, !range !27, !noundef !28
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %156

151:                                              ; preds = %145
  %152 = load float, ptr %11, align 4, !tbaa !9
  %153 = fcmp ogt float %152, 0.000000e+00
  br i1 %153, label %154, label %156

154:                                              ; preds = %151
  %155 = load float, ptr %11, align 4, !tbaa !9
  br label %158

156:                                              ; preds = %151, %145
  %157 = load float, ptr %10, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %156, %154
  %159 = phi float [ %155, %154 ], [ %157, %156 ]
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load float, ptr %160, align 4, !tbaa !9
  %162 = fadd float %161, %159
  store float %162, ptr %160, align 4, !tbaa !9
  store i8 1, ptr %27, align 1, !tbaa !33
  br label %163

163:                                              ; preds = %158, %136
  br label %164

164:                                              ; preds = %163, %106
  call void @_ZN5ImGui5PopIDEv()
  %165 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  %166 = load float, ptr %165, align 4, !tbaa !46
  %167 = fcmp ogt float %166, 0.000000e+00
  br i1 %167, label %168, label %193

168:                                              ; preds = %164
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ImGuiStyle, ptr %169, i32 0, i32 8
  %171 = getelementptr inbounds %struct.ImVec2, ptr %170, i32 0, i32 0
  %172 = load float, ptr %171, align 4, !tbaa !32
  %173 = fptosi float %172 to i32
  call void @_ZN5ImGui8SameLineEii(i32 noundef 0, i32 noundef %173)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !47
  %174 = load <2 x float>, ptr %31, align 4
  call void @_ZL8ItemSize6ImVec2PS_(<2 x float> %174, ptr noundef null)
  %175 = getelementptr inbounds %struct.ImGuiAabb, ptr %20, i32 0, i32 1
  %176 = getelementptr inbounds %struct.ImVec2, ptr %175, i32 0, i32 0
  %177 = load float, ptr %176, align 4, !tbaa !48
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImGuiStyle, ptr %178, i32 0, i32 8
  %180 = getelementptr inbounds %struct.ImVec2, ptr %179, i32 0, i32 0
  %181 = load float, ptr %180, align 4, !tbaa !32
  %182 = fadd float %177, %181
  %183 = getelementptr inbounds %struct.ImGuiAabb, ptr %20, i32 0, i32 0
  %184 = getelementptr inbounds %struct.ImVec2, ptr %183, i32 0, i32 1
  %185 = load float, ptr %184, align 4, !tbaa !49
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ImGuiStyle, ptr %186, i32 0, i32 5
  %188 = getelementptr inbounds %struct.ImVec2, ptr %187, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !50
  %190 = fadd float %185, %189
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %182, float noundef %190)
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = load <2 x float>, ptr %32, align 4
  call void @_ZL10RenderText6ImVec2PKcS1_b(<2 x float> %192, ptr noundef %191, ptr noundef null, i1 noundef zeroext true)
  br label %193

193:                                              ; preds = %168, %164
  %194 = load i8, ptr %27, align 1, !tbaa !33, !range !27, !noundef !28
  %195 = trunc i8 %194 to i1
  store i1 %195, ptr %7, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %196

196:                                              ; preds = %193, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %197 = load i1, ptr %7, align 1
  ret i1 %197
}

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 uwtable "min-legal-vector-width"="64" "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 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !16, i64 68}
!14 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !12, i64 8, !12, i64 12, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !10, i64 56, !10, i64 60, !16, i64 64, !16, i64 65, !16, i64 66, !16, i64 67, !16, i64 68, !12, i64 72, !16, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !17, i64 96, !23, i64 336, !24, i64 360, !18, i64 384, !12, i64 400, !10, i64 404, !25, i64 408, !10, i64 432, !6, i64 440, !6, i64 448, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476}
!15 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS16ImGuiDrawContext", !15, i64 0, !15, i64 8, !15, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !12, i64 36, !12, i64 40, !18, i64 44, !16, i64 60, !19, i64 64, !21, i64 88, !22, i64 112, !22, i64 136, !12, i64 160, !6, i64 168, !10, i64 176, !10, i64 180, !12, i64 184, !12, i64 188, !15, i64 192, !10, i64 200, !10, i64 204, !16, i64 208, !12, i64 212, !22, i64 216}
!18 = !{!"_ZTS9ImGuiAabb", !15, i64 0, !15, i64 8}
!19 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !20, i64 0, !20, i64 8, !6, i64 16}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTS8ImVectorIbE", !20, i64 0, !20, i64 8, !6, i64 16}
!22 = !{!"_ZTS8ImVectorIfE", !20, i64 0, !20, i64 8, !6, i64 16}
!23 = !{!"_ZTS8ImVectorIjE", !20, i64 0, !20, i64 8, !6, i64 16}
!24 = !{!"_ZTS8ImVectorI6ImVec4E", !20, i64 0, !20, i64 8, !6, i64 16}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !20, i64 0, !20, i64 8, !6, i64 16}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!15, !10, i64 4}
!30 = !{!31, !10, i64 28}
!31 = !{!"_ZTS10ImGuiStyle", !10, i64 0, !15, i64 4, !15, i64 12, !10, i64 20, !10, i64 24, !15, i64 28, !10, i64 36, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !7, i64 88}
!32 = !{!31, !10, i64 48}
!33 = !{!16, !16, i64 0}
!34 = !{!35, !16, i64 237}
!35 = !{!"_ZTS10ImGuiState", !16, i64 0, !36, i64 8, !31, i64 2960, !6, i64 3672, !10, i64 3680, !15, i64 3684, !10, i64 3692, !12, i64 3696, !12, i64 3700, !19, i64 3704, !6, i64 3728, !19, i64 3736, !6, i64 3760, !6, i64 3768, !6, i64 3776, !12, i64 3784, !12, i64 3788, !12, i64 3792, !16, i64 3796, !16, i64 3797, !6, i64 3800, !10, i64 3808, !37, i64 3816, !38, i64 3840, !39, i64 3864, !40, i64 3888, !15, i64 3912, !12, i64 3920, !15, i64 3924, !12, i64 3932, !16, i64 3936, !12, i64 3940, !16, i64 3944, !16, i64 3945, !12, i64 3948, !41, i64 3952, !19, i64 3976, !42, i64 4000, !12, i64 12400, !25, i64 12408, !12, i64 12432, !7, i64 12436, !6, i64 13464, !16, i64 13472, !6, i64 13480, !6, i64 13488, !12, i64 13496, !12, i64 13500, !7, i64 13504, !12, i64 13984, !10, i64 13988}
!36 = !{!"_ZTS7ImGuiIO", !15, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !6, i64 112, !6, i64 120, !10, i64 128, !16, i64 132, !15, i64 136, !15, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !15, i64 208, !7, i64 216, !10, i64 224, !16, i64 228, !16, i64 229, !16, i64 230, !7, i64 231, !7, i64 744, !16, i64 778, !16, i64 779, !10, i64 780, !15, i64 784, !15, i64 792, !7, i64 800, !7, i64 808, !7, i64 848, !7, i64 868, !7, i64 873, !7, i64 880, !7, i64 900}
!37 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !20, i64 0, !20, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorI11ImGuiColModE", !20, i64 0, !20, i64 8, !6, i64 16}
!39 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !20, i64 0, !20, i64 8, !6, i64 16}
!40 = !{!"_ZTS8ImVectorIP6ImFontE", !20, i64 0, !20, i64 8, !6, i64 16}
!41 = !{!"_ZTS8ImVectorIP10ImDrawListE", !20, i64 0, !20, i64 8, !6, i64 16}
!42 = !{!"_ZTS18ImGuiTextEditState", !12, i64 0, !7, i64 4, !7, i64 2052, !20, i64 5128, !10, i64 5136, !10, i64 5140, !43, i64 5144, !10, i64 8364, !15, i64 8368, !16, i64 8376, !6, i64 8384, !10, i64 8392}
!43 = !{!"_ZTS17STB_TexteditState", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !10, i64 20, !44, i64 24}
!44 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !45, i64 3186, !45, i64 3188, !45, i64 3190, !45, i64 3192}
!45 = !{!"short", !7, i64 0}
!46 = !{!15, !10, i64 0}
!47 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!48 = !{!18, !10, i64 8}
!49 = !{!18, !10, i64 4}
!50 = !{!31, !10, i64 32}


; 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.ImGuiAabb = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }

@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZL6GImGui = external hidden local_unnamed_addr global ptr, align 8
@.str.91 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13PushItemWidthEf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP25ImGuiTextEditCallbackDataEPv(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui12PopItemWidthEv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK11ImGuiWindow8FontSizeEv(ptr noundef nonnull align 8 dereferenceable(480)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef, ptr noundef, i1 noundef zeroext, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9ImGuiAabbC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxff(float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8ItemSize6ImVec2PS_(<2 x float>, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5ImGui13CalcItemWidthEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10RenderText6ImVec2PKcS1_b(<2 x float>, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui8SameLineEii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2b(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui5PopIDEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui6PushIDEPKc(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui10InputFloatEPKcPfffii(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #4 {
  %7 = alloca %struct.ImGuiAabb, align 4
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 8
  %12 = alloca [64 x i8], align 16
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 8
  %16 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  %17 = tail call noundef ptr @_ZL16GetCurrentWindowv()
  %18 = getelementptr inbounds i8, ptr %17, i64 68
  %19 = load i8, ptr %18, align 4, !tbaa !9, !range !25, !noundef !26
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %95, label %21

21:                                               ; preds = %6
  %22 = tail call noundef float @_ZN5ImGui13CalcItemWidthEv()
  %23 = tail call <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef %0, ptr noundef null, i1 noundef zeroext true, float noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %24 = getelementptr inbounds i8, ptr %17, i64 96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %.sroa.09.4.vec.extract = extractelement <2 x float> %23, i64 1
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %22, float noundef %.sroa.09.4.vec.extract)
  %25 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %25, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %26 = getelementptr inbounds i8, ptr %16, i64 2988
  %27 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %26, float noundef 2.000000e+00)
  store <2 x float> %27, ptr %11, align 8
  %28 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %28, ptr %8, align 8
  call void @_ZN9ImGuiAabbC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN5ImGui6PushIDEPKc(ptr noundef %0)
  %29 = call noundef float @_ZNK11ImGuiWindow8FontSizeEv(ptr noundef nonnull align 8 dereferenceable(480) %17)
  %30 = fcmp ogt float %2, 0.000000e+00
  br i1 %30, label %31, label %40

31:                                               ; preds = %21
  %32 = load float, ptr %26, align 4, !tbaa !27
  %33 = call float @llvm.fmuladd.f32(float %32, float 2.000000e+00, float %29)
  %34 = getelementptr inbounds i8, ptr %16, i64 3008
  %35 = load float, ptr %34, align 4, !tbaa !29
  %36 = fadd float %33, %35
  %37 = fneg float %36
  %38 = call float @llvm.fmuladd.f32(float %37, float 2.000000e+00, float %22)
  %39 = call noundef float @_ZL5ImMaxff(float noundef 1.000000e+00, float noundef %38)
  call void @_ZN5ImGui13PushItemWidthEf(float noundef %39)
  br label %40

40:                                               ; preds = %31, %21
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  %41 = icmp slt i32 %4, 0
  %42 = load float, ptr %1, align 4, !tbaa !30
  %43 = fpext float %42 to double
  br i1 %41, label %44, label %46

44:                                               ; preds = %40
  %45 = call noundef i64 (ptr, i64, ptr, ...) @_ZL14ImFormatStringPcmPKcz(ptr noundef nonnull %12, i64 noundef 64, ptr noundef nonnull @.str.100, double noundef %43)
  br label %48

46:                                               ; preds = %40
  %47 = call noundef i64 (ptr, i64, ptr, ...) @_ZL14ImFormatStringPcmPKcz(ptr noundef nonnull %12, i64 noundef 64, ptr noundef nonnull @.str.91, i32 noundef %4, double noundef %43)
  br label %48

48:                                               ; preds = %46, %44
  %49 = or i32 %5, 17
  %50 = call noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP25ImGuiTextEditCallbackDataEPv(ptr noundef nonnull @.str.8, ptr noundef nonnull %12, i64 noundef 64, i32 noundef %49, ptr noundef null, ptr noundef null)
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  call void @_ZL23ApplyNumericalTextInputPKcPf(ptr noundef nonnull %12, ptr noundef nonnull %1)
  br label %52

52:                                               ; preds = %51, %48
  br i1 %30, label %53, label %78

53:                                               ; preds = %52
  call void @_ZN5ImGui12PopItemWidthEv()
  %54 = getelementptr inbounds i8, ptr %16, i64 3008
  %55 = load float, ptr %54, align 4, !tbaa !29
  %56 = fptosi float %55 to i32
  call void @_ZN5ImGui8SameLineEii(i32 noundef 0, i32 noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %29, float noundef %29)
  %57 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2b(ptr noundef nonnull @.str.101, ptr noundef nonnull align 4 dereferenceable(8) %13, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br i1 %57, label %58, label %66

58:                                               ; preds = %53
  %59 = getelementptr inbounds i8, ptr %16, i64 237
  %60 = load i8, ptr %59, align 1, !tbaa !31, !range !25, !noundef !26
  %61 = trunc nuw i8 %60 to i1
  %62 = fcmp ogt float %3, 0.000000e+00
  %or.cond = and i1 %62, %61
  %63 = select i1 %or.cond, float %3, float %2
  %64 = load float, ptr %1, align 4, !tbaa !30
  %65 = fsub float %64, %63
  store float %65, ptr %1, align 4, !tbaa !30
  br label %66

66:                                               ; preds = %58, %53
  %.1 = phi i1 [ true, %58 ], [ %50, %53 ]
  %67 = load float, ptr %54, align 4, !tbaa !29
  %68 = fptosi float %67 to i32
  call void @_ZN5ImGui8SameLineEii(i32 noundef 0, i32 noundef %68)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %29, float noundef %29)
  %69 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2b(ptr noundef nonnull @.str.102, ptr noundef nonnull align 4 dereferenceable(8) %14, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br i1 %69, label %70, label %78

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %16, i64 237
  %72 = load i8, ptr %71, align 1, !tbaa !31, !range !25, !noundef !26
  %73 = trunc nuw i8 %72 to i1
  %74 = fcmp ogt float %3, 0.000000e+00
  %or.cond3 = and i1 %74, %73
  %75 = select i1 %or.cond3, float %3, float %2
  %76 = load float, ptr %1, align 4, !tbaa !30
  %77 = fadd float %76, %75
  store float %77, ptr %1, align 4, !tbaa !30
  br label %78

78:                                               ; preds = %66, %70, %52
  %.2 = phi i1 [ true, %70 ], [ %.1, %66 ], [ %50, %52 ]
  call void @_ZN5ImGui5PopIDEv()
  %.sroa.09.0.vec.extract = extractelement <2 x float> %23, i64 0
  %79 = fcmp ogt float %.sroa.09.0.vec.extract, 0.000000e+00
  br i1 %79, label %80, label %94

80:                                               ; preds = %78
  %81 = getelementptr inbounds i8, ptr %16, i64 3008
  %82 = load float, ptr %81, align 4, !tbaa !29
  %83 = fptosi float %82 to i32
  call void @_ZN5ImGui8SameLineEii(i32 noundef 0, i32 noundef %83)
  call void @_ZL8ItemSize6ImVec2PS_(<2 x float> %23, ptr noundef null)
  %84 = getelementptr inbounds i8, ptr %7, i64 8
  %85 = load float, ptr %84, align 4, !tbaa !43
  %86 = load float, ptr %81, align 4, !tbaa !29
  %87 = fadd float %85, %86
  %88 = getelementptr inbounds i8, ptr %7, i64 4
  %89 = load float, ptr %88, align 4, !tbaa !44
  %90 = getelementptr inbounds i8, ptr %16, i64 2992
  %91 = load float, ptr %90, align 4, !tbaa !45
  %92 = fadd float %89, %91
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %87, float noundef %92)
  %93 = load <2 x float>, ptr %15, align 8
  call void @_ZL10RenderText6ImVec2PKcS1_b(<2 x float> %93, ptr noundef %0, ptr noundef null, i1 noundef zeroext true)
  br label %94

94:                                               ; preds = %80, %78
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %95

95:                                               ; preds = %6, %94
  %.0 = phi i1 [ %.2, %94 ], [ false, %6 ]
  ret i1 %.0
}

attributes #0 = { 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 willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { 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, !14, i64 68}
!10 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !14, i64 64, !14, i64 65, !14, i64 66, !14, i64 67, !14, i64 68, !11, i64 72, !14, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !15, i64 96, !21, i64 336, !22, i64 360, !16, i64 384, !11, i64 400, !13, i64 404, !23, i64 408, !13, i64 432, !6, i64 440, !6, i64 448, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS16ImGuiDrawContext", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !11, i64 36, !11, i64 40, !16, i64 44, !14, i64 60, !17, i64 64, !19, i64 88, !20, i64 112, !20, i64 136, !11, i64 160, !6, i64 168, !13, i64 176, !13, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !13, i64 200, !13, i64 204, !14, i64 208, !11, i64 212, !20, i64 216}
!16 = !{!"_ZTS9ImGuiAabb", !12, i64 0, !12, i64 8}
!17 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !18, i64 0, !18, i64 8, !6, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTS8ImVectorIbE", !18, i64 0, !18, i64 8, !6, i64 16}
!20 = !{!"_ZTS8ImVectorIfE", !18, i64 0, !18, i64 8, !6, i64 16}
!21 = !{!"_ZTS8ImVectorIjE", !18, i64 0, !18, i64 8, !6, i64 16}
!22 = !{!"_ZTS8ImVectorI6ImVec4E", !18, i64 0, !18, i64 8, !6, i64 16}
!23 = !{!"_ZTS12ImGuiStorage", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !18, i64 0, !18, i64 8, !6, i64 16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !13, i64 28}
!28 = !{!"_ZTS10ImGuiStyle", !13, i64 0, !12, i64 4, !12, i64 12, !13, i64 20, !13, i64 24, !12, i64 28, !13, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !7, i64 88}
!29 = !{!28, !13, i64 48}
!30 = !{!13, !13, i64 0}
!31 = !{!32, !14, i64 237}
!32 = !{!"_ZTS10ImGuiState", !14, i64 0, !33, i64 8, !28, i64 2960, !6, i64 3672, !13, i64 3680, !12, i64 3684, !13, i64 3692, !11, i64 3696, !11, i64 3700, !17, i64 3704, !6, i64 3728, !17, i64 3736, !6, i64 3760, !6, i64 3768, !6, i64 3776, !11, i64 3784, !11, i64 3788, !11, i64 3792, !14, i64 3796, !14, i64 3797, !6, i64 3800, !13, i64 3808, !34, i64 3816, !35, i64 3840, !36, i64 3864, !37, i64 3888, !12, i64 3912, !11, i64 3920, !12, i64 3924, !11, i64 3932, !14, i64 3936, !11, i64 3940, !14, i64 3944, !14, i64 3945, !11, i64 3948, !38, i64 3952, !17, i64 3976, !39, i64 4000, !11, i64 12400, !23, i64 12408, !11, i64 12432, !7, i64 12436, !6, i64 13464, !14, i64 13472, !6, i64 13480, !6, i64 13488, !11, i64 13496, !11, i64 13500, !7, i64 13504, !11, i64 13984, !13, i64 13988}
!33 = !{!"_ZTS7ImGuiIO", !12, i64 0, !13, i64 8, !13, i64 12, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !7, i64 40, !6, i64 112, !6, i64 120, !13, i64 128, !14, i64 132, !12, i64 136, !12, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !12, i64 208, !7, i64 216, !13, i64 224, !14, i64 228, !14, i64 229, !14, i64 230, !7, i64 231, !7, i64 744, !14, i64 778, !14, i64 779, !13, i64 780, !12, i64 784, !12, i64 792, !7, i64 800, !7, i64 808, !7, i64 848, !7, i64 868, !7, i64 873, !7, i64 880, !7, i64 900}
!34 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !18, i64 0, !18, i64 8, !6, i64 16}
!35 = !{!"_ZTS8ImVectorI11ImGuiColModE", !18, i64 0, !18, i64 8, !6, i64 16}
!36 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !18, i64 0, !18, i64 8, !6, i64 16}
!37 = !{!"_ZTS8ImVectorIP6ImFontE", !18, i64 0, !18, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorIP10ImDrawListE", !18, i64 0, !18, i64 8, !6, i64 16}
!39 = !{!"_ZTS18ImGuiTextEditState", !11, i64 0, !7, i64 4, !7, i64 2052, !18, i64 5128, !13, i64 5136, !13, i64 5140, !40, i64 5144, !13, i64 8364, !12, i64 8368, !14, i64 8376, !6, i64 8384, !13, i64 8392}
!40 = !{!"_ZTS17STB_TexteditState", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !13, i64 20, !41, i64 24}
!41 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !42, i64 3186, !42, i64 3188, !42, i64 3190, !42, i64 3192}
!42 = !{!"short", !7, i64 0}
!43 = !{!16, !13, i64 8}
!44 = !{!16, !13, i64 4}
!45 = !{!28, !13, i64 32}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass