; LLVM IR from Eukky/TRender :: lib/imgui/imgui.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, %struct.ImVec2, float, float, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImGuiWindowTempData, %class.ImVector.22, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32, float, %struct.ImGuiMenuColumns, %struct.ImGuiStorage, %class.ImVector.23, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i32, i32, i32, i32 }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i8, i8, i32, i32, i32, i32, i8, %struct.ImVec2, %class.ImVector, ptr, i32, i32, i32, float, float, %class.ImVector.20, %class.ImVector.16, %class.ImVector.16, %class.ImVector.21, [6 x i32], float, float, float, ptr }
%class.ImVector = type { i32, i32, ptr }
%class.ImVector.20 = type { i32, i32, ptr }
%class.ImVector.16 = type { i32, i32, ptr }
%class.ImVector.21 = type { i32, i32, ptr }
%class.ImVector.22 = type { i32, i32, ptr }
%struct.ImGuiMenuColumns = type { i32, float, float, float, [4 x float], [4 x float] }
%struct.ImGuiStorage = type { %class.ImVector.0 }
%class.ImVector.0 = type { i32, i32, ptr }
%class.ImVector.23 = type { i32, i32, ptr }
%struct.ImDrawList = type { %class.ImVector.6, %class.ImVector.7, %class.ImVector.8, i32, ptr, ptr, i32, ptr, ptr, %class.ImVector.9, %class.ImVector.10, %class.ImVector.11, i32, i32, %class.ImVector.12 }
%class.ImVector.6 = type { i32, i32, ptr }
%class.ImVector.7 = type { i32, i32, ptr }
%class.ImVector.8 = type { i32, i32, ptr }
%class.ImVector.9 = type { i32, i32, ptr }
%class.ImVector.10 = type { i32, i32, ptr }
%class.ImVector.11 = type { i32, i32, ptr }
%class.ImVector.12 = type { i32, i32, ptr }

@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv = external hidden unnamed_addr constant [27 x i8], align 1
@.str.186 = 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 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) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(float noundef) #3

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

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

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

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

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

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

; 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 #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui10BeginGroupEv() #6

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui12BeginMenuBarEv() #5 {
  %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) #7
  %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 25
  %10 = load i8, ptr %9, align 1, !tbaa !9, !range !34, !noundef !35
  %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 !36
  %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 43
  %23 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %22, i32 0, i32 21
  %24 = load i8, ptr %23, align 8, !tbaa !37, !range !34, !noundef !35
  %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.185, ptr noundef @.str.3, i32 noundef 11721, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv) #8
  unreachable

29:                                               ; No predecessors!
  br label %30

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree 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 = { 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 #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 = { 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 #7 = { nounwind }
attributes #8 = { 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 127}
!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, !12, i64 64, !13, i64 72, !13, i64 76, !11, i64 80, !11, i64 84, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !14, i64 120, !14, i64 121, !14, i64 122, !14, i64 123, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !14, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !12, i64 184, !12, i64 192, !15, i64 200, !21, i64 496, !16, i64 512, !16, i64 528, !16, i64 544, !16, i64 560, !16, i64 576, !11, i64 592, !13, i64 596, !22, i64 600, !23, i64 648, !25, i64 664, !13, i64 680, !11, i64 684, !6, i64 688, !26, i64 696, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !7, i64 912, !7, i64 920, !11, i64 952, !11, i64 956, !11, i64 960, !11, i64 964, !11, i64 968, !11, i64 972}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS19ImGuiWindowTempData", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !16, i64 68, !16, i64 84, !14, i64 100, !14, i64 101, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !14, i64 120, !12, i64 124, !17, i64 136, !6, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !13, i64 172, !13, i64 176, !18, i64 184, !19, i64 200, !19, i64 216, !20, i64 232, !7, i64 248, !13, i64 272, !13, i64 276, !13, i64 280, !6, i64 288}
!16 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!17 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!22 = !{!"_ZTS16ImGuiMenuColumns", !11, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !7, i64 16, !7, i64 32}
!23 = !{!"_ZTS12ImGuiStorage", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI15ImGuiColumnsSetE", !11, i64 0, !11, i64 4, !6, i64 8}
!26 = !{!"_ZTS10ImDrawList", !27, i64 0, !28, i64 16, !29, i64 32, !11, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !30, i64 96, !31, i64 112, !32, i64 128, !11, i64 144, !11, i64 148, !33, i64 152}
!27 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!10, !11, i64 12}
!37 = !{!10, !14, i64 320}
!38 = !{!16, !13, i64 0}
!39 = !{!16, !13, i64 4}
!40 = !{!10, !13, i64 76}
!41 = !{!16, !13, i64 8}
!42 = !{!10, !13, i64 72}
!43 = !{!16, !13, i64 12}
!44 = !{!10, !13, i64 324}
!45 = !{!10, !13, i64 328}
!46 = !{i64 0, i64 4, !47, i64 4, i64 4, !47}
!47 = !{!13, !13, i64 0}
!48 = !{!10, !11, i64 360}
!49 = !{!10, !11, i64 304}
!50 = !{!10, !11, i64 308}


; 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.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv = external hidden unnamed_addr constant [27 x i8], align 1
@.str.186 = 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

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

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

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

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

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

; 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 #4 align 2

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

; 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() local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui12BeginMenuBarEv() local_unnamed_addr #4 {
  %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 127
  %5 = load i8, ptr %4, align 1, !tbaa !5, !range !33, !noundef !34
  %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 !35
  %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 320
  %13 = load i8, ptr %12, align 8, !tbaa !36, !range !33, !noundef !34
  %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.185, ptr noundef nonnull @.str.3, i32 noundef 11721, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui12BeginMenuBarEv) #6
  unreachable

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %3, i64 200
  tail call void @_ZN5ImGui10BeginGroupEv()
  tail call void @_ZN5ImGui6PushIDEPKc(ptr noundef nonnull @.str.186)
  %18 = tail call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(976) %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) #7
  %.sroa.0.0.vec.extract = extractelement <2 x float> %19, i64 0
  %21 = fadd float %.sroa.0.0.vec.extract, 5.000000e-01
  %22 = tail call noundef float @_ZL7ImFloorf(float noundef %21)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %19, i64 1
  %23 = getelementptr inbounds i8, ptr %3, i64 76
  %24 = load float, ptr %23, align 4, !tbaa !37
  %25 = fadd float %.sroa.0.4.vec.extract, %24
  %26 = fadd float %25, 5.000000e-01
  %27 = tail call noundef float @_ZL7ImFloorf(float noundef %26)
  %.sroa.8.8.vec.extract = extractelement <2 x float> %20, i64 0
  %28 = getelementptr inbounds i8, ptr %3, i64 72
  %29 = load float, ptr %28, align 8, !tbaa !38
  %30 = fsub float %.sroa.8.8.vec.extract, %29
  %31 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %.sroa.0.0.vec.extract, float noundef %30)
  %32 = fadd float %31, 5.000000e-01
  %33 = tail call noundef float @_ZL7ImFloorf(float noundef %32)
  %.sroa.8.12.vec.extract = extractelement <2 x float> %20, i64 1
  %34 = fadd float %.sroa.8.12.vec.extract, 5.000000e-01
  %35 = tail call noundef float @_ZL7ImFloorf(float noundef %34)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %22, float noundef %27, float noundef %33, float noundef %35)
  %36 = getelementptr inbounds i8, ptr %3, i64 528
  call void @_ZN6ImRect8ClipWithERKS_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %36)
  %37 = 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) %37, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %38 = getelementptr inbounds i8, ptr %3, i64 324
  %39 = load float, ptr %38, align 4, !tbaa !39
  %40 = fadd float %.sroa.0.0.vec.extract, %39
  %41 = getelementptr inbounds i8, ptr %3, i64 328
  %42 = load float, ptr %41, align 4, !tbaa !40
  %43 = fadd float %.sroa.0.4.vec.extract, %42
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %40, float noundef %43)
  %44 = load i64, ptr %2, align 8
  store i64 %44, ptr %17, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  %45 = getelementptr inbounds i8, ptr %3, i64 360
  store i32 1, ptr %45, align 8, !tbaa !41
  %46 = getelementptr inbounds i8, ptr %3, i64 304
  %47 = load i32, ptr %46, align 8, !tbaa !42
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 8, !tbaa !42
  %49 = getelementptr inbounds i8, ptr %3, i64 308
  %50 = load i32, ptr %49, align 4, !tbaa !43
  %51 = shl i32 %50, 1
  store i32 %51, ptr %49, align 4, !tbaa !43
  store i8 1, ptr %12, align 8, !tbaa !36
  call void @_ZN5ImGui23AlignTextToFramePaddingEv()
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  br label %52

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 #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 = { 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 = { noreturn nounwind }
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, !13, i64 127}
!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, !11, i64 64, !12, i64 72, !12, i64 76, !10, i64 80, !10, i64 84, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !13, i64 129, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !13, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !11, i64 184, !11, i64 192, !14, i64 200, !20, i64 496, !15, i64 512, !15, i64 528, !15, i64 544, !15, i64 560, !15, i64 576, !10, i64 592, !12, i64 596, !21, i64 600, !22, i64 648, !24, i64 664, !12, i64 680, !10, i64 684, !7, i64 688, !25, i64 696, !7, i64 864, !7, i64 872, !7, i64 880, !7, i64 888, !7, i64 896, !7, i64 904, !8, i64 912, !8, i64 920, !10, i64 952, !10, i64 956, !10, i64 960, !10, i64 964, !10, i64 968, !10, i64 972}
!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 = !{!"_ZTS19ImGuiWindowTempData", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !15, i64 68, !15, i64 84, !13, i64 100, !13, i64 101, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !13, i64 120, !11, i64 124, !16, i64 136, !7, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !12, i64 172, !12, i64 176, !17, i64 184, !18, i64 200, !18, i64 216, !19, i64 232, !8, i64 248, !12, i64 272, !12, i64 276, !12, i64 280, !7, i64 288}
!15 = !{!"_ZTS6ImRect", !11, i64 0, !11, i64 8}
!16 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !7, i64 8}
!17 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !7, i64 8}
!18 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!19 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !7, i64 8}
!20 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !7, i64 8}
!21 = !{!"_ZTS16ImGuiMenuColumns", !10, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !8, i64 16, !8, i64 32}
!22 = !{!"_ZTS12ImGuiStorage", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !10, i64 0, !10, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorI15ImGuiColumnsSetE", !10, i64 0, !10, i64 4, !7, i64 8}
!25 = !{!"_ZTS10ImDrawList", !26, i64 0, !27, i64 16, !28, i64 32, !10, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !7, i64 88, !29, i64 96, !30, i64 112, !31, i64 128, !10, i64 144, !10, i64 148, !32, i64 152}
!26 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !7, i64 8}
!27 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!28 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !7, i64 8}
!29 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !7, i64 8}
!30 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !7, i64 8}
!31 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !7, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !7, i64 8}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!6, !10, i64 12}
!36 = !{!6, !13, i64 320}
!37 = !{!6, !12, i64 76}
!38 = !{!6, !12, i64 72}
!39 = !{!6, !12, i64 324}
!40 = !{!6, !12, i64 328}
!41 = !{!6, !10, i64 360}
!42 = !{!6, !10, i64 304}
!43 = !{!6, !10, i64 308}


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