; LLVM IR from Dragons-Lake/REI :: sources/REI_Integration/3rdParty/imgui/imgui_widgets.ll (ZN5ImGui12BeginMenuBarEv)

; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiWindow = type <{ ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, [2 x i8], i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32, float, float, %struct.ImGuiMenuColumns, %struct.ImGuiStorage, %struct.ImVector.5, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i8, [3 x i8], i32, i32, [4 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, i32, i8, i8, i8, %struct.ImVec2, %struct.ImVector.0, ptr, i32, i32, i32, i32, i32, float, float, %struct.ImVector.1, %struct.ImVector.2, %struct.ImVector.2, %struct.ImVector.3, [6 x i16], %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type { float, float, float, [3 x float], [3 x float] }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawList = type { %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, i32, ptr, ptr, i32, i32, ptr, ptr, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImDrawListSplitter }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.12 }
%struct.ImVector.12 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv = external hidden unnamed_addr constant [27 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [10 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; 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) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui23AlignTextToFramePaddingEv() #5

declare void @_ZN5ImGui10BeginGroupEv() #6

declare void @_ZN5ImGui6PushIDEPKc(ptr noundef) #6

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

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

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

13:                                               ; preds = %0
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 2
  %16 = load i32, ptr %15, align 4, !tbaa !40
  %17 = and i32 %16, 1024
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %13
  store i1 false, ptr %1, align 1
  store i32 1, ptr %3, align 4
  br label %110

20:                                               ; preds = %13
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ImGuiWindow, ptr %21, i32 0, i32 49
  %23 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %22, i32 0, i32 20
  %24 = load i8, ptr %23, align 2, !tbaa !41, !range !38, !noundef !39
  %25 = trunc i8 %24 to i1
  %26 = xor i1 %25, true
  br i1 %26, label %27, label %28

27:                                               ; preds = %20
  br label %30

28:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.1, i32 noundef 6010, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv) #9
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  call void @_ZN5ImGui10BeginGroupEv()
  call void @_ZN5ImGui6PushIDEPKc(ptr noundef @.str.145)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(948) %31)
  %33 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %34 = extractvalue { <2 x float>, <2 x float> } %32, 0
  store <2 x float> %34, ptr %33, align 4
  %35 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %36 = extractvalue { <2 x float>, <2 x float> } %32, 1
  store <2 x float> %36, ptr %35, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  %37 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 0
  %38 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 0
  %39 = load float, ptr %38, align 4, !tbaa !42
  %40 = fadd float %39, 5.000000e-01
  %41 = fptosi float %40 to i32
  %42 = sitofp i32 %41 to float
  %43 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 0
  %44 = getelementptr inbounds %struct.ImVec2, ptr %43, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !43
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImGuiWindow, ptr %46, i32 0, i32 10
  %48 = load float, ptr %47, align 4, !tbaa !44
  %49 = fadd float %45, %48
  %50 = fadd float %49, 5.000000e-01
  %51 = fptosi float %50 to i32
  %52 = sitofp i32 %51 to float
  %53 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 0
  %54 = getelementptr inbounds %struct.ImVec2, ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !42
  %56 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 1
  %57 = getelementptr inbounds %struct.ImVec2, ptr %56, i32 0, i32 0
  %58 = load float, ptr %57, align 4, !tbaa !45
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImGuiWindow, ptr %59, i32 0, i32 9
  %61 = load float, ptr %60, align 8, !tbaa !46
  %62 = fsub float %58, %61
  %63 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %55, float noundef %62)
  %64 = fadd float %63, 5.000000e-01
  %65 = fptosi float %64 to i32
  %66 = sitofp i32 %65 to float
  %67 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 1
  %68 = getelementptr inbounds %struct.ImVec2, ptr %67, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !47
  %70 = fadd float %69, 5.000000e-01
  %71 = fptosi float %70 to i32
  %72 = sitofp i32 %71 to float
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef %42, float noundef %52, float noundef %66, float noundef %72)
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImGuiWindow, ptr %73, i32 0, i32 50
  call void @_ZN6ImRect8ClipWithERKS_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %74)
  %75 = getelementptr inbounds %struct.ImRect, ptr %5, i32 0, i32 0
  %76 = getelementptr inbounds %struct.ImRect, ptr %5, i32 0, i32 1
  call void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %75, ptr noundef nonnull align 4 dereferenceable(8) %76, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %77 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 0
  %78 = getelementptr inbounds %struct.ImVec2, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !42
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImGuiWindow, ptr %80, i32 0, i32 49
  %82 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %81, i32 0, i32 21
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !48
  %85 = fadd float %79, %84
  %86 = getelementptr inbounds %struct.ImRect, ptr %4, i32 0, i32 0
  %87 = getelementptr inbounds %struct.ImVec2, ptr %86, i32 0, i32 1
  %88 = load float, ptr %87, align 4, !tbaa !43
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGuiWindow, ptr %89, i32 0, i32 49
  %91 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %90, i32 0, i32 21
  %92 = getelementptr inbounds %struct.ImVec2, ptr %91, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !49
  %94 = fadd float %88, %93
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %85, float noundef %94)
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGuiWindow, ptr %95, i32 0, i32 49
  %97 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %96, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGuiWindow, ptr %98, i32 0, i32 49
  %100 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %99, i32 0, i32 24
  store i32 0, ptr %100, align 8, !tbaa !52
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ImGuiWindow, ptr %101, i32 0, i32 49
  %103 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %102, i32 0, i32 14
  store i32 1, ptr %103, align 8, !tbaa !53
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiWindow, ptr %104, i32 0, i32 49
  %106 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %105, i32 0, i32 15
  store i32 2, ptr %106, align 4, !tbaa !54
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ImGuiWindow, ptr %107, i32 0, i32 49
  %109 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %108, i32 0, i32 20
  store i8 1, ptr %109, align 2, !tbaa !41
  call void @_ZN5ImGui23AlignTextToFramePaddingEv()
  store i1 true, ptr %1, align 1
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  br label %110

110:                                              ; preds = %30, %19, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %111 = load i1, ptr %1, align 1
  ret i1 %111
}

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(948)) #5 align 2

declare void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { "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 = { 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 }
attributes #9 = { noreturn 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 131}
!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, !12, i64 56, !13, i64 64, !13, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !12, i64 84, !12, i64 92, !12, i64 100, !12, i64 108, !12, i64 116, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !14, i64 130, !14, i64 131, !14, i64 132, !14, i64 133, !14, i64 134, !7, i64 135, !15, i64 136, !15, i64 138, !15, i64 140, !11, i64 144, !7, i64 148, !7, i64 149, !7, i64 150, !14, i64 151, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !12, i64 176, !12, i64 184, !16, i64 192, !17, i64 208, !18, i64 496, !18, i64 512, !18, i64 528, !18, i64 544, !18, i64 560, !18, i64 576, !11, i64 592, !13, i64 596, !13, i64 600, !25, i64 604, !26, i64 640, !28, i64 656, !13, i64 672, !11, i64 676, !6, i64 680, !29, i64 688, !6, i64 856, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !7, i64 896, !7, i64 904, !14, i64 936, !11, i64 940, !11, i64 944}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = !{!"_ZTS19ImGuiWindowTempData", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !13, i64 48, !13, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !18, i64 72, !18, i64 88, !19, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !14, i64 120, !14, i64 121, !14, i64 122, !12, i64 124, !20, i64 136, !6, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !13, i64 180, !13, i64 184, !21, i64 192, !22, i64 208, !22, i64 224, !23, i64 240, !7, i64 256, !24, i64 268, !24, i64 272, !24, i64 276, !6, i64 280}
!18 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!19 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!20 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!22 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!24 = !{!"_ZTS6ImVec1", !13, i64 0}
!25 = !{!"_ZTS16ImGuiMenuColumns", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !7, i64 24}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !11, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !6, i64 80, !6, i64 88, !33, i64 96, !34, i64 112, !35, i64 128, !36, i64 144}
!30 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!36 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !37, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!10, !11, i64 12}
!41 = !{!10, !14, i64 330}
!42 = !{!18, !13, i64 0}
!43 = !{!18, !13, i64 4}
!44 = !{!10, !13, i64 68}
!45 = !{!18, !13, i64 8}
!46 = !{!10, !13, i64 64}
!47 = !{!18, !13, i64 12}
!48 = !{!10, !13, i64 332}
!49 = !{!10, !13, i64 336}
!50 = !{i64 0, i64 4, !51, i64 4, i64 4, !51}
!51 = !{!13, !13, i64 0}
!52 = !{!10, !11, i64 368}
!53 = !{!10, !19, i64 312}
!54 = !{!10, !11, i64 316}


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

@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv = external hidden unnamed_addr constant [27 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress 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 @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

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

declare void @_ZN5ImGui10BeginGroupEv() local_unnamed_addr #5

declare void @_ZN5ImGui6PushIDEPKc(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImRect8ClipWithERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui12BeginMenuBarEv() local_unnamed_addr #6 {
  %1 = alloca %struct.ImRect, align 4
  %2 = alloca %struct.ImVec2, align 8
  %3 = tail call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %4 = getelementptr inbounds i8, ptr %3, i64 131
  %5 = load i8, ptr %4, align 1, !tbaa !5, !range !37, !noundef !38
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %52, label %7

7:                                                ; preds = %0
  %8 = getelementptr inbounds i8, ptr %3, i64 12
  %9 = load i32, ptr %8, align 4, !tbaa !39
  %10 = and i32 %9, 1024
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %52, label %11

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %3, i64 330
  %13 = load i8, ptr %12, align 2, !tbaa !40, !range !37, !noundef !38
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %15, label %16

15:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.1, i32 noundef 6010, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv) #7
  unreachable

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %3, i64 208
  tail call void @_ZN5ImGui10BeginGroupEv()
  tail call void @_ZN5ImGui6PushIDEPKc(ptr noundef nonnull @.str.145)
  %18 = tail call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(948) %3)
  %19 = extractvalue { <2 x float>, <2 x float> } %18, 0
  %20 = extractvalue { <2 x float>, <2 x float> } %18, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  %.sroa.0.0.vec.extract = extractelement <2 x float> %19, i64 0
  %21 = fadd float %.sroa.0.0.vec.extract, 5.000000e-01
  %22 = fptosi float %21 to i32
  %23 = sitofp i32 %22 to float
  %.sroa.0.4.vec.extract = extractelement <2 x float> %19, i64 1
  %24 = getelementptr inbounds i8, ptr %3, i64 68
  %25 = load float, ptr %24, align 4, !tbaa !41
  %26 = fadd float %.sroa.0.4.vec.extract, %25
  %27 = fadd float %26, 5.000000e-01
  %28 = fptosi float %27 to i32
  %29 = sitofp i32 %28 to float
  %.sroa.8.8.vec.extract = extractelement <2 x float> %20, i64 0
  %30 = getelementptr inbounds i8, ptr %3, i64 64
  %31 = load float, ptr %30, align 8, !tbaa !42
  %32 = fsub float %.sroa.8.8.vec.extract, %31
  %33 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %.sroa.0.0.vec.extract, float noundef %32)
  %34 = fadd float %33, 5.000000e-01
  %35 = fptosi float %34 to i32
  %36 = sitofp i32 %35 to float
  %.sroa.8.12.vec.extract = extractelement <2 x float> %20, i64 1
  %37 = fadd float %.sroa.8.12.vec.extract, 5.000000e-01
  %38 = fptosi float %37 to i32
  %39 = sitofp i32 %38 to float
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %23, float noundef %29, float noundef %36, float noundef %39)
  %40 = getelementptr inbounds i8, ptr %3, i64 496
  call void @_ZN6ImRect8ClipWithERKS_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %40)
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %41, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %42 = getelementptr inbounds i8, ptr %3, i64 332
  %43 = load float, ptr %42, align 4, !tbaa !43
  %44 = fadd float %.sroa.0.0.vec.extract, %43
  %45 = getelementptr inbounds i8, ptr %3, i64 336
  %46 = load float, ptr %45, align 4, !tbaa !44
  %47 = fadd float %.sroa.0.4.vec.extract, %46
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %44, float noundef %47)
  %48 = load i64, ptr %2, align 8
  store i64 %48, ptr %17, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %49 = getelementptr inbounds i8, ptr %3, i64 368
  store i32 0, ptr %49, align 8, !tbaa !45
  %50 = getelementptr inbounds i8, ptr %3, i64 312
  store i32 1, ptr %50, align 8, !tbaa !46
  %51 = getelementptr inbounds i8, ptr %3, i64 316
  store i32 2, ptr %51, align 4, !tbaa !47
  store i8 1, ptr %12, align 2, !tbaa !40
  call void @_ZN5ImGui23AlignTextToFramePaddingEv()
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  br label %52

52:                                               ; preds = %7, %0, %16
  %.0 = phi i1 [ true, %16 ], [ false, %0 ], [ false, %7 ]
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(948)) local_unnamed_addr #4 align 2

declare void @_ZN5ImGui12PushClipRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "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 = { 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 = { "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 = { 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 = { noreturn nounwind }
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, !13, i64 131}
!6 = !{!"_ZTS11ImGuiWindow", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !12, i64 64, !12, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !11, i64 84, !11, i64 92, !11, i64 100, !11, i64 108, !11, i64 116, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !13, i64 129, !13, i64 130, !13, i64 131, !13, i64 132, !13, i64 133, !13, i64 134, !8, i64 135, !14, i64 136, !14, i64 138, !14, i64 140, !10, i64 144, !8, i64 148, !8, i64 149, !8, i64 150, !13, i64 151, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !11, i64 176, !11, i64 184, !15, i64 192, !16, i64 208, !17, i64 496, !17, i64 512, !17, i64 528, !17, i64 544, !17, i64 560, !17, i64 576, !10, i64 592, !12, i64 596, !12, i64 600, !24, i64 604, !25, i64 640, !27, i64 656, !12, i64 672, !10, i64 676, !7, i64 680, !28, i64 688, !7, i64 856, !7, i64 864, !7, i64 872, !7, i64 880, !7, i64 888, !8, i64 896, !8, i64 904, !13, i64 936, !10, i64 940, !10, i64 944}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !7, i64 8}
!16 = !{!"_ZTS19ImGuiWindowTempData", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !17, i64 72, !17, i64 88, !18, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !13, i64 120, !13, i64 121, !13, i64 122, !11, i64 124, !19, i64 136, !7, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !12, i64 180, !12, i64 184, !20, i64 192, !21, i64 208, !21, i64 224, !22, i64 240, !8, i64 256, !23, i64 268, !23, i64 272, !23, i64 276, !7, i64 280}
!17 = !{!"_ZTS6ImRect", !11, i64 0, !11, i64 8}
!18 = !{!"_ZTS13ImGuiNavLayer", !8, i64 0}
!19 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !7, i64 8}
!20 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !7, i64 8}
!21 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!22 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !7, i64 8}
!23 = !{!"_ZTS6ImVec1", !12, i64 0}
!24 = !{!"_ZTS16ImGuiMenuColumns", !12, i64 0, !12, i64 4, !12, i64 8, !8, i64 12, !8, i64 24}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !7, i64 8}
!27 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !10, i64 0, !10, i64 4, !7, i64 8}
!28 = !{!"_ZTS10ImDrawList", !29, i64 0, !30, i64 16, !31, i64 32, !10, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !10, i64 76, !7, i64 80, !7, i64 88, !32, i64 96, !33, i64 112, !34, i64 128, !35, i64 144}
!29 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !7, i64 8}
!30 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!31 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !7, i64 8}
!32 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !7, i64 8}
!33 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !7, i64 8}
!34 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !7, i64 8}
!35 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !36, i64 8}
!36 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !7, i64 8}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!6, !10, i64 12}
!40 = !{!6, !13, i64 330}
!41 = !{!6, !12, i64 68}
!42 = !{!6, !12, i64 64}
!43 = !{!6, !12, i64 332}
!44 = !{!6, !12, i64 336}
!45 = !{!6, !10, i64 368}
!46 = !{!6, !18, i64 312}
!47 = !{!6, !10, i64 316}


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