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

; 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.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.ImVec2 = type { float, float }
%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: 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: mustprogress uwtable
declare dso_local void @_ZN5ImGui13PushItemWidthEf(float noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11PopClipRectv() #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5ImGui15GetColumnOffsetEi(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18PushColumnClipRecti(i32 noundef) #1

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

10:                                               ; preds = %0
  store i32 1, ptr %3, align 4
  br label %110

11:                                               ; preds = %0
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ImGuiWindow, ptr %12, i32 0, i32 20
  %14 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %13, i32 0, i32 19
  %15 = load i32, ptr %14, align 4, !tbaa !27
  %16 = icmp sgt i32 %15, 1
  br i1 %16, label %17, label %109

17:                                               ; preds = %11
  call void @_ZN5ImGui12PopItemWidthEv()
  call void @_ZL11PopClipRectv()
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ImGuiWindow, ptr %18, i32 0, i32 20
  %20 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %19, i32 0, i32 22
  %21 = load float, ptr %20, align 4, !tbaa !28
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiWindow, ptr %22, i32 0, i32 20
  %24 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %23, i32 0, i32 0
  %25 = getelementptr inbounds %struct.ImVec2, ptr %24, i32 0, i32 1
  %26 = load float, ptr %25, align 4, !tbaa !29
  %27 = call noundef float @_ZL5ImMaxff(float noundef %21, float noundef %26)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImGuiWindow, ptr %28, i32 0, i32 20
  %30 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %29, i32 0, i32 22
  store float %27, ptr %30, align 4, !tbaa !28
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiWindow, ptr %31, i32 0, i32 20
  %33 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %32, i32 0, i32 18
  %34 = load i32, ptr %33, align 8, !tbaa !30
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %33, align 8, !tbaa !30
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImGuiWindow, ptr %36, i32 0, i32 20
  %38 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %37, i32 0, i32 19
  %39 = load i32, ptr %38, align 4, !tbaa !27
  %40 = icmp slt i32 %35, %39
  br i1 %40, label %41, label %61

41:                                               ; preds = %17
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImGuiWindow, ptr %42, i32 0, i32 20
  %44 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %43, i32 0, i32 18
  %45 = load i32, ptr %44, align 8, !tbaa !30
  %46 = call noundef float @_ZN5ImGui15GetColumnOffsetEi(i32 noundef %45)
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImGuiWindow, ptr %47, i32 0, i32 20
  %49 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %48, i32 0, i32 16
  %50 = load float, ptr %49, align 8, !tbaa !31
  %51 = fsub float %46, %50
  %52 = load ptr, ptr %1, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImGuiState, ptr %52, i32 0, i32 3
  %54 = getelementptr inbounds %struct.ImGuiStyle, ptr %53, i32 0, i32 7
  %55 = getelementptr inbounds %struct.ImVec2, ptr %54, i32 0, i32 0
  %56 = load float, ptr %55, align 8, !tbaa !32
  %57 = fadd float %51, %56
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ImGuiWindow, ptr %58, i32 0, i32 20
  %60 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %59, i32 0, i32 17
  store float %57, ptr %60, align 4, !tbaa !45
  br label %75

61:                                               ; preds = %17
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ImGuiWindow, ptr %62, i32 0, i32 20
  %64 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %63, i32 0, i32 18
  store i32 0, ptr %64, align 8, !tbaa !30
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGuiWindow, ptr %65, i32 0, i32 20
  %67 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %66, i32 0, i32 17
  store float 0.000000e+00, ptr %67, align 4, !tbaa !45
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImGuiWindow, ptr %68, i32 0, i32 20
  %70 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %69, i32 0, i32 22
  %71 = load float, ptr %70, align 4, !tbaa !28
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImGuiWindow, ptr %72, i32 0, i32 20
  %74 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %73, i32 0, i32 21
  store float %71, ptr %74, align 8, !tbaa !46
  br label %75

75:                                               ; preds = %61, %41
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImGuiWindow, ptr %76, i32 0, i32 4
  %78 = getelementptr inbounds %struct.ImVec2, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 8, !tbaa !47
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImGuiWindow, ptr %80, i32 0, i32 20
  %82 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %81, i32 0, i32 16
  %83 = load float, ptr %82, align 8, !tbaa !31
  %84 = fadd float %79, %83
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiWindow, ptr %85, i32 0, i32 20
  %87 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %86, i32 0, i32 17
  %88 = load float, ptr %87, align 4, !tbaa !45
  %89 = fadd float %84, %88
  %90 = fptosi float %89 to i32
  %91 = sitofp i32 %90 to float
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImGuiWindow, ptr %92, i32 0, i32 20
  %94 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %struct.ImVec2, ptr %94, i32 0, i32 0
  store float %91, ptr %95, align 8, !tbaa !48
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImGuiWindow, ptr %96, i32 0, i32 20
  %98 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %97, i32 0, i32 21
  %99 = load float, ptr %98, align 8, !tbaa !46
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ImGuiWindow, ptr %100, i32 0, i32 20
  %102 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %struct.ImVec2, ptr %102, i32 0, i32 1
  store float %99, ptr %103, align 4, !tbaa !29
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiWindow, ptr %104, i32 0, i32 20
  %106 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %105, i32 0, i32 3
  store float 0.000000e+00, ptr %106, align 8, !tbaa !49
  call void @_ZL18PushColumnClipRecti(i32 noundef -1)
  %107 = call noundef float @_ZN5ImGui14GetColumnWidthEi(i32 noundef -1)
  %108 = fmul float %107, 0x3FE4CCCCC0000000
  call void @_ZN5ImGui13PushItemWidthEf(float noundef %108)
  br label %109

109:                                              ; preds = %75, %11
  store i32 0, ptr %3, align 4
  br label %110

110:                                              ; preds = %109, %10
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  %111 = load i32, ptr %3, align 4
  switch i32 %111, label %113 [
    i32 0, label %112
    i32 1, label %112
  ]

112:                                              ; preds = %110, %110
  ret void

113:                                              ; preds = %110
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5ImGui14GetColumnWidthEi(i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !11, i64 284}
!28 = !{!10, !13, i64 300}
!29 = !{!10, !13, i64 100}
!30 = !{!10, !11, i64 280}
!31 = !{!10, !13, i64 272}
!32 = !{!33, !13, i64 3000}
!33 = !{!"_ZTS10ImGuiState", !14, i64 0, !34, i64 8, !35, 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, !36, i64 3816, !37, i64 3840, !38, i64 3864, !39, 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, !40, i64 3952, !17, i64 3976, !41, 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}
!34 = !{!"_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}
!35 = !{!"_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}
!36 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !18, i64 0, !18, i64 8, !6, i64 16}
!37 = !{!"_ZTS8ImVectorI11ImGuiColModE", !18, i64 0, !18, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !18, i64 0, !18, i64 8, !6, i64 16}
!39 = !{!"_ZTS8ImVectorIP6ImFontE", !18, i64 0, !18, i64 8, !6, i64 16}
!40 = !{!"_ZTS8ImVectorIP10ImDrawListE", !18, i64 0, !18, i64 8, !6, i64 16}
!41 = !{!"_ZTS18ImGuiTextEditState", !11, i64 0, !7, i64 4, !7, i64 2052, !18, i64 5128, !13, i64 5136, !13, i64 5140, !42, i64 5144, !13, i64 8364, !12, i64 8368, !14, i64 8376, !6, i64 8384, !13, i64 8392}
!42 = !{!"_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, !43, i64 24}
!43 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !44, i64 3186, !44, i64 3188, !44, i64 3190, !44, i64 3192}
!44 = !{!"short", !7, i64 0}
!45 = !{!10, !13, i64 276}
!46 = !{!10, !13, i64 296}
!47 = !{!10, !13, i64 24}
!48 = !{!10, !13, i64 96}
!49 = !{!10, !13, i64 120}


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

@_ZL6GImGui = external hidden local_unnamed_addr global ptr, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11PopClipRectv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5ImGui15GetColumnOffsetEi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18PushColumnClipRecti(i32 noundef) local_unnamed_addr #0

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

6:                                                ; preds = %0
  %7 = getelementptr inbounds i8, ptr %2, i64 96
  %8 = getelementptr inbounds i8, ptr %2, i64 284
  %9 = load i32, ptr %8, align 4, !tbaa !27
  %10 = icmp sgt i32 %9, 1
  br i1 %10, label %11, label %45

11:                                               ; preds = %6
  tail call void @_ZN5ImGui12PopItemWidthEv()
  tail call void @_ZL11PopClipRectv()
  %12 = getelementptr inbounds i8, ptr %2, i64 300
  %13 = load float, ptr %12, align 4, !tbaa !28
  %14 = getelementptr inbounds i8, ptr %2, i64 100
  %15 = load float, ptr %14, align 4, !tbaa !29
  %16 = tail call noundef float @_ZL5ImMaxff(float noundef %13, float noundef %15)
  store float %16, ptr %12, align 4, !tbaa !28
  %17 = getelementptr inbounds i8, ptr %2, i64 280
  %18 = load i32, ptr %17, align 8, !tbaa !30
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %17, align 8, !tbaa !30
  %20 = load i32, ptr %8, align 4, !tbaa !27
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %22, label %30

22:                                               ; preds = %11
  %23 = tail call noundef float @_ZN5ImGui15GetColumnOffsetEi(i32 noundef %19)
  %24 = getelementptr inbounds i8, ptr %2, i64 272
  %25 = load float, ptr %24, align 8, !tbaa !31
  %26 = fsub float %23, %25
  %27 = getelementptr inbounds i8, ptr %1, i64 3000
  %28 = load float, ptr %27, align 8, !tbaa !32
  %29 = fadd float %26, %28
  %.phi.trans.insert22 = getelementptr inbounds i8, ptr %2, i64 296
  %.pre23 = load float, ptr %.phi.trans.insert22, align 8, !tbaa !45
  br label %32

30:                                               ; preds = %11
  store i32 0, ptr %17, align 8, !tbaa !30
  %31 = getelementptr inbounds i8, ptr %2, i64 296
  store float %16, ptr %31, align 8, !tbaa !45
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 272
  %.pre = load float, ptr %.phi.trans.insert, align 8, !tbaa !31
  br label %32

32:                                               ; preds = %30, %22
  %33 = phi float [ %.pre23, %22 ], [ %16, %30 ]
  %34 = phi float [ %25, %22 ], [ %.pre, %30 ]
  %.sink = phi float [ %29, %22 ], [ 0.000000e+00, %30 ]
  %35 = getelementptr inbounds i8, ptr %2, i64 276
  store float %.sink, ptr %35, align 4
  %36 = getelementptr inbounds i8, ptr %2, i64 24
  %37 = load float, ptr %36, align 8, !tbaa !46
  %38 = fadd float %37, %34
  %39 = fadd float %38, %.sink
  %40 = fptosi float %39 to i32
  %41 = sitofp i32 %40 to float
  store float %41, ptr %7, align 8, !tbaa !47
  store float %33, ptr %14, align 4, !tbaa !29
  %42 = getelementptr inbounds i8, ptr %2, i64 120
  store float 0.000000e+00, ptr %42, align 8, !tbaa !48
  tail call void @_ZL18PushColumnClipRecti(i32 noundef -1)
  %43 = tail call noundef float @_ZN5ImGui14GetColumnWidthEi(i32 noundef -1)
  %44 = fmul float %43, 0x3FE4CCCCC0000000
  tail call void @_ZN5ImGui13PushItemWidthEf(float noundef %44)
  br label %45

45:                                               ; preds = %6, %32, %0
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN5ImGui14GetColumnWidthEi(i32 noundef) local_unnamed_addr #0

attributes #0 = { 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 #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" }

!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, !11, i64 284}
!28 = !{!10, !13, i64 300}
!29 = !{!10, !13, i64 100}
!30 = !{!10, !11, i64 280}
!31 = !{!10, !13, i64 272}
!32 = !{!33, !13, i64 3000}
!33 = !{!"_ZTS10ImGuiState", !14, i64 0, !34, i64 8, !35, 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, !36, i64 3816, !37, i64 3840, !38, i64 3864, !39, 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, !40, i64 3952, !17, i64 3976, !41, 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}
!34 = !{!"_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}
!35 = !{!"_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}
!36 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !18, i64 0, !18, i64 8, !6, i64 16}
!37 = !{!"_ZTS8ImVectorI11ImGuiColModE", !18, i64 0, !18, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !18, i64 0, !18, i64 8, !6, i64 16}
!39 = !{!"_ZTS8ImVectorIP6ImFontE", !18, i64 0, !18, i64 8, !6, i64 16}
!40 = !{!"_ZTS8ImVectorIP10ImDrawListE", !18, i64 0, !18, i64 8, !6, i64 16}
!41 = !{!"_ZTS18ImGuiTextEditState", !11, i64 0, !7, i64 4, !7, i64 2052, !18, i64 5128, !13, i64 5136, !13, i64 5140, !42, i64 5144, !13, i64 8364, !12, i64 8368, !14, i64 8376, !6, i64 8384, !13, i64 8392}
!42 = !{!"_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, !43, i64 24}
!43 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !44, i64 3186, !44, i64 3188, !44, i64 3190, !44, i64 3192}
!44 = !{!"short", !7, i64 0}
!45 = !{!10, !13, i64 296}
!46 = !{!10, !13, i64 24}
!47 = !{!10, !13, i64 96}
!48 = !{!10, !13, i64 120}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass