; LLVM IR from erwincoumans/tiny-differentiable-simulator :: third_party/dear_imgui/imnodes.ll (ZN7imnodes15EndNodeTitleBarEv)

; 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.anon = type <{ ptr, ptr, ptr, %struct.ImGuiStorage, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVec2, %struct.ImRect, i32, [4 x i8], %"struct.imnodes::IO", %"struct.imnodes::Style", %struct.ImVector.1, %struct.ImVector.2, %struct.ImGuiTextBuffer, i32, [4 x i8], %struct.ImVector.0, i32, i32, i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, i32, i8, [3 x i8], %struct.ImVec2, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImGuiStorage = type { %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.imnodes::IO" = type { %"struct.imnodes::IO::EmulateThreeButtonMouse", %"struct.imnodes::IO::LinkDetachWithModifierClick" }
%"struct.imnodes::IO::EmulateThreeButtonMouse" = type { i8, ptr }
%"struct.imnodes::IO::LinkDetachWithModifierClick" = type { ptr }
%"struct.imnodes::Style" = type { float, float, float, float, float, float, float, float, float, float, float, float, float, i32, [16 x i32] }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::OptionalIndex" = type { i32 }
%struct.ImVec2 = type { float, float }
%"struct.imnodes::EditorContext" = type { %"struct.imnodes::(anonymous namespace)::ObjectPool", %"struct.imnodes::(anonymous namespace)::ObjectPool.6", %"struct.imnodes::(anonymous namespace)::ObjectPool.8", %struct.ImVector.0, %struct.ImVec2, %struct.ImVector.0, %struct.ImVector.0, i32, %"struct.imnodes::(anonymous namespace)::ClickInteractionState" }
%"struct.imnodes::(anonymous namespace)::ObjectPool" = type { %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.0, %struct.ImGuiStorage }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::ObjectPool.6" = type { %struct.ImVector.7, %struct.ImVector.5, %struct.ImVector.0, %struct.ImGuiStorage }
%struct.ImVector.7 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::ObjectPool.8" = type { %struct.ImVector.9, %struct.ImVector.5, %struct.ImVector.0, %struct.ImGuiStorage }
%struct.ImVector.9 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::ClickInteractionState" = type { %struct.anon.10, %struct.anon.11 }
%struct.anon.10 = type { i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32 }
%struct.anon.11 = type { %struct.ImRect }
%"struct.imnodes::(anonymous namespace)::NodeData" = type <{ i32, %struct.ImVec2, %struct.ImRect, %struct.ImRect, %struct.anon.12, %struct.anon.13, [4 x i8], %struct.ImVector.0, i8, [7 x i8] }>
%struct.anon.12 = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.anon.13 = type { float, %struct.ImVec2 }

@_ZN7imnodes12_GLOBAL__N_11gE = external hidden global %struct.anon, align 8
@.str.1 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN7imnodes15EndNodeTitleBarEv = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(280) ptr @_ZN7imnodes12_GLOBAL__N_118editor_context_getEv() #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare void @_ZN5ImGui8EndGroupEv() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(105) ptr @_ZN8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #5 align 2

declare void @_ZN5ImGui12SetCursorPosERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_113get_item_rectEv() #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7imnodes15EndNodeTitleBarEv() #7 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca %struct.ImRect, align 4
  %4 = alloca %struct.ImRect, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = load i32, ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 8), align 8, !tbaa !5
  %8 = icmp eq i32 %7, 4
  br i1 %8, label %9, label %10

9:                                                ; preds = %0
  br label %12

10:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 2193, ptr noundef @__PRETTY_FUNCTION__._ZN7imnodes15EndNodeTitleBarEv) #8
  unreachable

11:                                               ; No predecessors!
  br label %12

12:                                               ; preds = %11, %9
  call void @_ZN5ImGui8EndGroupEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #9
  %13 = call noundef nonnull align 8 dereferenceable(280) ptr @_ZN7imnodes12_GLOBAL__N_118editor_context_getEv()
  store ptr %13, ptr %1, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  %14 = load ptr, ptr %1, align 8, !tbaa !28
  %15 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool", ptr %15, i32 0, i32 0
  %17 = load i32, ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 18), align 8, !tbaa !29
  %18 = call noundef nonnull align 8 dereferenceable(105) ptr @_ZN8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef %17)
  store ptr %18, ptr %2, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #9
  %19 = call { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_113get_item_rectEv()
  %20 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %3, i32 0, i32 0
  %21 = extractvalue { <2 x float>, <2 x float> } %19, 0
  store <2 x float> %21, ptr %20, align 4
  %22 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %3, i32 0, i32 1
  %23 = extractvalue { <2 x float>, <2 x float> } %19, 1
  store <2 x float> %23, ptr %22, align 4
  %24 = load ptr, ptr %2, align 8, !tbaa !28
  %25 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::NodeData", ptr %24, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %3, i64 16, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #9
  %26 = load ptr, ptr %2, align 8, !tbaa !28
  %27 = call { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_119get_node_title_rectERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105) %26)
  %28 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %29 = extractvalue { <2 x float>, <2 x float> } %27, 0
  store <2 x float> %29, ptr %28, align 4
  %30 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %31 = extractvalue { <2 x float>, <2 x float> } %27, 1
  store <2 x float> %31, ptr %30, align 4
  %32 = call noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef @.str.8)
  %33 = call noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16) %4, i32 noundef %32, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %34 = load ptr, ptr %2, align 8, !tbaa !28
  %35 = call <2 x float> @_ZN7imnodes12_GLOBAL__N_123get_node_content_originERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105) %34)
  store <2 x float> %35, ptr %6, align 4
  %36 = call <2 x float> @_ZN7imnodes12_GLOBAL__N_126grid_space_to_editor_spaceERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %36, ptr %5, align 4
  call void @_ZN5ImGui12SetCursorPosERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #9
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_119get_node_title_rectERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105)) #6

declare noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef) #4

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

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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = { noreturn nounwind }
attributes #9 = { 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, !8, i64 96}
!6 = !{!"_ZTSN7imnodes12_GLOBAL__N_13$_0E", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !13, i64 40, !13, i64 56, !14, i64 72, !16, i64 80, !8, i64 96, !17, i64 104, !21, i64 128, !23, i64 248, !24, i64 264, !25, i64 280, !12, i64 296, !13, i64 304, !12, i64 320, !12, i64 324, !12, i64 328, !27, i64 332, !27, i64 336, !27, i64 340, !12, i64 344, !27, i64 348, !27, i64 352, !12, i64 356, !12, i64 360, !19, i64 364, !14, i64 368, !19, i64 376, !19, i64 377, !19, i64 378, !19, i64 379, !19, i64 380}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS12ImGuiStorage", !11, i64 0}
!11 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !7, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!17 = !{!"_ZTSN7imnodes2IOE", !18, i64 0, !20, i64 16}
!18 = !{!"_ZTSN7imnodes2IO23EmulateThreeButtonMouseE", !19, i64 0, !7, i64 8}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSN7imnodes2IO27LinkDetachWithModifierClickE", !7, i64 0}
!21 = !{!"_ZTSN7imnodes5StyleE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !22, i64 52, !8, i64 56}
!22 = !{!"_ZTSN7imnodes10StyleFlagsE", !8, i64 0}
!23 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_117ColorStyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_112StyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!25 = !{!"_ZTS15ImGuiTextBuffer", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !7, i64 8}
!27 = !{!"_ZTSN7imnodes12_GLOBAL__N_113OptionalIndexE", !12, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!6, !12, i64 320}
!30 = !{i64 0, i64 4, !31, i64 4, i64 4, !31, i64 8, i64 4, !31, i64 12, i64 4, !31}
!31 = !{!15, !15, i64 0}


; 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.anon = type <{ ptr, ptr, ptr, %struct.ImGuiStorage, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVec2, %struct.ImRect, i32, [4 x i8], %"struct.imnodes::IO", %"struct.imnodes::Style", %struct.ImVector.1, %struct.ImVector.2, %struct.ImGuiTextBuffer, i32, [4 x i8], %struct.ImVector.0, i32, i32, i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, %"struct.imnodes::(anonymous namespace)::OptionalIndex", %"struct.imnodes::(anonymous namespace)::OptionalIndex", i32, i32, i8, [3 x i8], %struct.ImVec2, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImGuiStorage = type { %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.imnodes::IO" = type { %"struct.imnodes::IO::EmulateThreeButtonMouse", %"struct.imnodes::IO::LinkDetachWithModifierClick" }
%"struct.imnodes::IO::EmulateThreeButtonMouse" = type { i8, ptr }
%"struct.imnodes::IO::LinkDetachWithModifierClick" = type { ptr }
%"struct.imnodes::Style" = type { float, float, float, float, float, float, float, float, float, float, float, float, float, i32, [16 x i32] }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%"struct.imnodes::(anonymous namespace)::OptionalIndex" = type { i32 }
%struct.ImVec2 = type { float, float }

@_ZN7imnodes12_GLOBAL__N_11gE = external hidden local_unnamed_addr global %struct.anon, align 8
@.str.1 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__._ZN7imnodes15EndNodeTitleBarEv = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(280) ptr @_ZN7imnodes12_GLOBAL__N_118editor_context_getEv() local_unnamed_addr #1

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

declare void @_ZN5ImGui8EndGroupEv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(105) ptr @_ZN8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4 align 2

declare void @_ZN5ImGui12SetCursorPosERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_113get_item_rectEv() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7imnodes15EndNodeTitleBarEv() local_unnamed_addr #6 {
  %1 = alloca %struct.ImRect, align 8
  %2 = alloca %struct.ImVec2, align 8
  %3 = alloca %struct.ImVec2, align 8
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 96), align 8, !tbaa !5
  %5 = icmp eq i32 %4, 4
  br i1 %5, label %7, label %6

6:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 2193, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7imnodes15EndNodeTitleBarEv) #7
  unreachable

7:                                                ; preds = %0
  tail call void @_ZN5ImGui8EndGroupEv()
  %8 = tail call noundef nonnull align 8 dereferenceable(280) ptr @_ZN7imnodes12_GLOBAL__N_118editor_context_getEv()
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 320), align 8, !tbaa !28
  %10 = tail call noundef nonnull align 8 dereferenceable(105) ptr @_ZN8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %9)
  %11 = tail call { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_113get_item_rectEv()
  %12 = extractvalue { <2 x float>, <2 x float> } %11, 0
  %13 = extractvalue { <2 x float>, <2 x float> } %11, 1
  %14 = getelementptr inbounds i8, ptr %10, i64 12
  store <2 x float> %12, ptr %14, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 20
  store <2 x float> %13, ptr %.sroa.4.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  %15 = tail call { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_119get_node_title_rectERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105) %10)
  %16 = extractvalue { <2 x float>, <2 x float> } %15, 0
  store <2 x float> %16, ptr %1, align 8
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = extractvalue { <2 x float>, <2 x float> } %15, 1
  store <2 x float> %18, ptr %17, align 8
  %19 = tail call noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef nonnull @.str.8)
  %20 = call noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef %19, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %21 = call <2 x float> @_ZN7imnodes12_GLOBAL__N_123get_node_content_originERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105) %10)
  store <2 x float> %21, ptr %3, align 8
  %22 = call <2 x float> @_ZN7imnodes12_GLOBAL__N_126grid_space_to_editor_spaceERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %22, ptr %2, align 8
  call void @_ZN5ImGui12SetCursorPosERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN7imnodes12_GLOBAL__N_119get_node_title_rectERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105)) local_unnamed_addr #5

declare noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZN7imnodes12_GLOBAL__N_123get_node_content_originERKNS0_8NodeDataE(ptr noundef nonnull align 8 dereferenceable(105)) local_unnamed_addr #5

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 = { 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 = { "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 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !8, i64 96}
!6 = !{!"_ZTSN7imnodes12_GLOBAL__N_13$_0E", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !13, i64 40, !13, i64 56, !14, i64 72, !16, i64 80, !8, i64 96, !17, i64 104, !21, i64 128, !23, i64 248, !24, i64 264, !25, i64 280, !12, i64 296, !13, i64 304, !12, i64 320, !12, i64 324, !12, i64 328, !27, i64 332, !27, i64 336, !27, i64 340, !12, i64 344, !27, i64 348, !27, i64 352, !12, i64 356, !12, i64 360, !19, i64 364, !14, i64 368, !19, i64 376, !19, i64 377, !19, i64 378, !19, i64 379, !19, i64 380}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS12ImGuiStorage", !11, i64 0}
!11 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !7, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!17 = !{!"_ZTSN7imnodes2IOE", !18, i64 0, !20, i64 16}
!18 = !{!"_ZTSN7imnodes2IO23EmulateThreeButtonMouseE", !19, i64 0, !7, i64 8}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSN7imnodes2IO27LinkDetachWithModifierClickE", !7, i64 0}
!21 = !{!"_ZTSN7imnodes5StyleE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !22, i64 52, !8, i64 56}
!22 = !{!"_ZTSN7imnodes10StyleFlagsE", !8, i64 0}
!23 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_117ColorStyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_112StyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!25 = !{!"_ZTS15ImGuiTextBuffer", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !7, i64 8}
!27 = !{!"_ZTSN7imnodes12_GLOBAL__N_113OptionalIndexE", !12, i64 0}
!28 = !{!6, !12, i64 320}


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