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

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

@_ZL6GImGui = external hidden global ptr, align 8

; 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui8SameLineEii(i32 noundef %0, i32 noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca %struct.ImVec2, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %11 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !9
  store ptr %11, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %12 = call noundef ptr @_ZL16GetCurrentWindowv()
  store ptr %12, ptr %6, align 8, !tbaa !9
  %13 = load ptr, ptr %6, align 8, !tbaa !9
  %14 = getelementptr inbounds %struct.ImGuiWindow, ptr %13, i32 0, i32 14
  %15 = load i8, ptr %14, align 4, !tbaa !11, !range !26, !noundef !27
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i32 1, ptr %7, align 4
  br label %78

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %41

21:                                               ; preds = %18
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %24, %21
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.ImGuiWindow, ptr %26, i32 0, i32 4
  %28 = getelementptr inbounds %struct.ImVec2, ptr %27, i32 0, i32 0
  %29 = load float, ptr %28, align 8, !tbaa !28
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sitofp i32 %30 to float
  %32 = fadd float %29, %31
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = sitofp i32 %33 to float
  %35 = fadd float %32, %34
  store float %35, ptr %8, align 4, !tbaa !29
  %36 = load ptr, ptr %6, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.ImGuiWindow, ptr %36, i32 0, i32 20
  %38 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 1
  %40 = load float, ptr %39, align 4, !tbaa !30
  store float %40, ptr %9, align 4, !tbaa !29
  br label %65

41:                                               ; preds = %18
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 0
  br i1 %43, label %44, label %51

44:                                               ; preds = %41
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.ImGuiState, ptr %45, i32 0, i32 3
  %47 = getelementptr inbounds %struct.ImGuiStyle, ptr %46, i32 0, i32 7
  %48 = getelementptr inbounds %struct.ImVec2, ptr %47, i32 0, i32 0
  %49 = load float, ptr %48, align 8, !tbaa !31
  %50 = fptosi float %49 to i32
  store i32 %50, ptr %4, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %44, %41
  %52 = load ptr, ptr %6, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.ImGuiWindow, ptr %52, i32 0, i32 20
  %54 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds %struct.ImVec2, ptr %54, i32 0, i32 0
  %56 = load float, ptr %55, align 8, !tbaa !44
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sitofp i32 %57 to float
  %59 = fadd float %56, %58
  store float %59, ptr %8, align 4, !tbaa !29
  %60 = load ptr, ptr %6, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.ImGuiWindow, ptr %60, i32 0, i32 20
  %62 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %struct.ImVec2, ptr %62, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !30
  store float %64, ptr %9, align 4, !tbaa !29
  br label %65

65:                                               ; preds = %51, %25
  %66 = load ptr, ptr %6, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct.ImGuiWindow, ptr %66, i32 0, i32 20
  %68 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %67, i32 0, i32 4
  %69 = load float, ptr %68, align 4, !tbaa !45
  %70 = load ptr, ptr %6, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.ImGuiWindow, ptr %70, i32 0, i32 20
  %72 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %71, i32 0, i32 3
  store float %69, ptr %72, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %73 = load float, ptr %8, align 4, !tbaa !29
  %74 = load float, ptr %9, align 4, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %73, float noundef %74)
  %75 = load ptr, ptr %6, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.ImGuiWindow, ptr %75, i32 0, i32 20
  %77 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %76, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %77, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  store i32 0, ptr %7, align 4
  br label %78

78:                                               ; preds = %65, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %79 = load i32, ptr %7, align 4
  switch i32 %79, label %81 [
    i32 0, label %80
    i32 1, label %80
  ]

80:                                               ; preds = %78, %78
  ret void

81:                                               ; preds = %78
  unreachable
}

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


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

@_ZL6GImGui = external hidden local_unnamed_addr global ptr, align 8

; 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5ImGui8SameLineEii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.ImVec2, align 8
  %4 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  %5 = tail call noundef ptr @_ZL16GetCurrentWindowv()
  %6 = getelementptr inbounds i8, ptr %5, i64 68
  %7 = load i8, ptr %6, align 4, !tbaa !9, !range !25, !noundef !26
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %34, label %9

9:                                                ; preds = %2
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %17, label %10

10:                                               ; preds = %9
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %1, i32 0)
  %11 = getelementptr inbounds i8, ptr %5, i64 24
  %12 = load float, ptr %11, align 8, !tbaa !27
  %13 = sitofp i32 %0 to float
  %14 = fadd float %12, %13
  %15 = uitofp nneg i32 %spec.store.select to float
  %16 = fadd float %14, %15
  br label %28

17:                                               ; preds = %9
  %18 = icmp slt i32 %1, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %4, i64 3000
  %21 = load float, ptr %20, align 8, !tbaa !28
  %22 = fptosi float %21 to i32
  br label %23

23:                                               ; preds = %19, %17
  %.017 = phi i32 [ %22, %19 ], [ %1, %17 ]
  %24 = getelementptr inbounds i8, ptr %5, i64 104
  %25 = load float, ptr %24, align 8, !tbaa !41
  %26 = sitofp i32 %.017 to float
  %27 = fadd float %25, %26
  br label %28

28:                                               ; preds = %23, %10
  %.016 = phi float [ %16, %10 ], [ %27, %23 ]
  %.0.in = getelementptr inbounds i8, ptr %5, i64 108
  %.0 = load float, ptr %.0.in, align 4, !tbaa !42
  %29 = getelementptr inbounds i8, ptr %5, i64 96
  %30 = getelementptr inbounds i8, ptr %5, i64 124
  %31 = load float, ptr %30, align 4, !tbaa !43
  %32 = getelementptr inbounds i8, ptr %5, i64 120
  store float %31, ptr %32, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %.016, float noundef %.0)
  %33 = load i64, ptr %3, align 8
  store i64 %33, ptr %29, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %34

34:                                               ; preds = %2, %28
  ret void
}

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ 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 = !{!10, !13, i64 24}
!28 = !{!29, !13, i64 3000}
!29 = !{!"_ZTS10ImGuiState", !14, i64 0, !30, i64 8, !31, 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, !32, i64 3816, !33, i64 3840, !34, i64 3864, !35, 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, !36, i64 3952, !17, i64 3976, !37, 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}
!30 = !{!"_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}
!31 = !{!"_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}
!32 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !18, i64 0, !18, i64 8, !6, i64 16}
!33 = !{!"_ZTS8ImVectorI11ImGuiColModE", !18, i64 0, !18, i64 8, !6, i64 16}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !18, i64 0, !18, i64 8, !6, i64 16}
!35 = !{!"_ZTS8ImVectorIP6ImFontE", !18, i64 0, !18, i64 8, !6, i64 16}
!36 = !{!"_ZTS8ImVectorIP10ImDrawListE", !18, i64 0, !18, i64 8, !6, i64 16}
!37 = !{!"_ZTS18ImGuiTextEditState", !11, i64 0, !7, i64 4, !7, i64 2052, !18, i64 5128, !13, i64 5136, !13, i64 5140, !38, i64 5144, !13, i64 8364, !12, i64 8368, !14, i64 8376, !6, i64 8384, !13, i64 8392}
!38 = !{!"_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, !39, i64 24}
!39 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !40, i64 3186, !40, i64 3188, !40, i64 3190, !40, i64 3192}
!40 = !{!"short", !7, i64 0}
!41 = !{!10, !13, i64 104}
!42 = !{!10, !13, i64 108}
!43 = !{!10, !13, i64 124}
!44 = !{!10, !13, i64 120}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass