; LLVM IR from yangfengzzz/DigitalVox4 :: editor/imgui_node_editor.ll (ZN3vox10NodeEditor6Detail13EditorContext10FindNodeAtERK6ImVec2)

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

%"class.__gnu_cxx::__normal_iterator.69" = type { ptr }
%"struct.vox::NodeEditor::Detail::ObjectWrapper.70" = type { %"struct.vox::NodeEditor::NodeId", ptr }
%"struct.vox::NodeEditor::NodeId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.6" }
%"struct.vox::NodeEditor::Details::SafePointerType.6" = type { %"struct.vox::NodeEditor::Details::SafeType.7" }
%"struct.vox::NodeEditor::Details::SafeType.7" = type { i64 }
%"struct.vox::NodeEditor::Detail::EditorContext" = type { i8, i8, i8, %"struct.vox::NodeEditor::Detail::Style", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23", %"class.std::vector.28", %"class.std::vector.28", i64, ptr, %"class.std::vector.33", %"class.std::vector.33", %"struct.ImGuiEx::Canvas", i8, %"struct.vox::NodeEditor::Detail::NodeBuilder", %"struct.vox::NodeEditor::Detail::HintBuilder", ptr, %"struct.vox::NodeEditor::Detail::NavigateAction", %"struct.vox::NodeEditor::Detail::SizeAction", %"struct.vox::NodeEditor::Detail::DragAction", %"struct.vox::NodeEditor::Detail::SelectAction", %"struct.vox::NodeEditor::Detail::ContextMenuAction", %"struct.vox::NodeEditor::Detail::ShortcutAction", %"struct.vox::NodeEditor::Detail::CreateItemAction", %"struct.vox::NodeEditor::Detail::DeleteItemsAction", %"class.std::vector.40", %"struct.vox::NodeEditor::Detail::FlowAnimationController", %"struct.vox::NodeEditor::NodeId", %"struct.vox::NodeEditor::PinId", %"struct.vox::NodeEditor::LinkId", i8, i8, i8, [5 x i8], %"struct.vox::NodeEditor::Detail::Settings", %"struct.vox::NodeEditor::Detail::Config", i32, %struct.ImDrawListSplitter }
%"struct.vox::NodeEditor::Detail::Style" = type { %"struct.vox::NodeEditor::Style", %"class.std::vector", %"class.std::vector.8" }
%"struct.vox::NodeEditor::Style" = type { %struct.ImVec4, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, [18 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVec2 = type { float, float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::ColorModifier, std::allocator<vox::NodeEditor::Detail::Style::ColorModifier>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Style::VarModifier, std::allocator<vox::NodeEditor::Detail::Style::VarModifier>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Pin>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>, std::allocator<vox::NodeEditor::Detail::ObjectWrapper<vox::NodeEditor::Detail::Link>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Object *, std::allocator<vox::NodeEditor::Detail::Object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::Animation *, std::allocator<vox::NodeEditor::Detail::Animation *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ImGuiEx::Canvas" = type <{ i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, %struct.ImRect, [4 x i8], ptr, i32, i32, i32, %"struct.ImGuiEx::CanvasView", %struct.ImRect, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], %struct.ImVec2, [4 x i8] }>
%"struct.ImGuiEx::CanvasView" = type { %struct.ImVec2, float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::Detail::NodeBuilder" = type { ptr, ptr, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, i8, %struct.ImDrawListSplitter, %struct.ImDrawListSplitter }
%"struct.vox::NodeEditor::Detail::HintBuilder" = type { ptr, i8, ptr, float, i32 }
%"struct.vox::NodeEditor::Detail::NavigateAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, [3 x i8], float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr, %struct.ImVec2, %struct.ImVec2, %"struct.vox::NodeEditor::Detail::NavigateAnimation", i32, [4 x i8], i64, ptr, i8, [3 x i8], %struct.ImVec2, [4 x i8] }>
%"struct.vox::NodeEditor::Detail::EditorAction" = type { ptr, ptr }
%"struct.vox::NodeEditor::Detail::NavigateAnimation" = type { %"struct.vox::NodeEditor::Detail::Animation.base", ptr, %struct.ImRect, %struct.ImRect }
%"struct.vox::NodeEditor::Detail::Animation.base" = type <{ ptr, ptr, i32, float, float }>
%"struct.vox::NodeEditor::Detail::SizeAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i32 }
%"struct.vox::NodeEditor::Detail::DragAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, ptr, %"class.std::vector.28" }
%"struct.vox::NodeEditor::Detail::SelectAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, i8, i8, %struct.ImVec2, %struct.ImVec2, %"class.std::vector.28", %"class.std::vector.28", %"struct.vox::NodeEditor::Detail::Animation" }
%"struct.vox::NodeEditor::Detail::Animation" = type <{ ptr, ptr, i32, float, float, [4 x i8] }>
%"struct.vox::NodeEditor::Detail::ContextMenuAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i32, i32, %"struct.vox::NodeEditor::Detail::ObjectId" }
%"struct.vox::NodeEditor::Detail::ObjectId" = type <{ %"struct.vox::NodeEditor::Details::SafePointerType.38", i32, [4 x i8] }>
%"struct.vox::NodeEditor::Details::SafePointerType.38" = type { %"struct.vox::NodeEditor::Details::SafeType.39" }
%"struct.vox::NodeEditor::Details::SafeType.39" = type { i64 }
%"struct.vox::NodeEditor::Detail::ShortcutAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, i32, %"class.std::vector.28" }
%"struct.vox::NodeEditor::Detail::CreateItemAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, [3 x i8], i32, i32, i32, i32, i32, float, [4 x i8], ptr, ptr, i8, [7 x i8], ptr, i32, i8, [3 x i8] }>
%"struct.vox::NodeEditor::Detail::DeleteItemsAction" = type <{ %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, [6 x i8], %"class.std::vector.28", i32, i32, %"class.std::vector.28", i32, [4 x i8] }>
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::AnimationController *, std::allocator<vox::NodeEditor::Detail::AnimationController *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::Detail::FlowAnimationController" = type { %"struct.vox::NodeEditor::Detail::AnimationController", %"class.std::vector.45", %"class.std::vector.45" }
%"struct.vox::NodeEditor::Detail::AnimationController" = type { ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation *, std::allocator<vox::NodeEditor::Detail::FlowAnimation *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::PinId" = type { %"struct.vox::NodeEditor::Details::SafePointerType" }
%"struct.vox::NodeEditor::Details::SafePointerType" = type { %"struct.vox::NodeEditor::Details::SafeType" }
%"struct.vox::NodeEditor::Details::SafeType" = type { i64 }
%"struct.vox::NodeEditor::LinkId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.50" }
%"struct.vox::NodeEditor::Details::SafePointerType.50" = type { %"struct.vox::NodeEditor::Details::SafeType.51" }
%"struct.vox::NodeEditor::Details::SafeType.51" = type { i64 }
%"struct.vox::NodeEditor::Detail::Settings" = type <{ i8, [3 x i8], i32, %"class.std::vector.52", %"class.std::vector.57", %struct.ImVec2, float, [4 x i8] }>
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::NodeSettings, std::allocator<vox::NodeEditor::Detail::NodeSettings>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::ObjectId, std::allocator<vox::NodeEditor::Detail::ObjectId>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::Detail::Config" = type { %"struct.vox::NodeEditor::Config" }
%"struct.vox::NodeEditor::Config" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }

; 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: 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) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEptEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindNodeAtERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(2040) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.69", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.69", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.vox::NodeEditor::Detail::ObjectWrapper.70", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %12 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %11, i32 0, i32 4
  store ptr %12, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %15 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.69", ptr %7, i32 0, i32 0
  store ptr %14, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %18 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.69", ptr %8, i32 0, i32 0
  store ptr %17, ptr %18, align 8
  br label %19

19:                                               ; preds = %33, %2
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %20, label %22, label %21

21:                                               ; preds = %19
  store i32 2, ptr %9, align 4
  br label %35

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %23, i64 16, i1 false)
  %24 = call noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail6Object7TestHitERK6ImVec2f(ptr noundef nonnull align 8 dereferenceable(17) %24, ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef 0.000000e+00)
  br i1 %26, label %27, label %29

27:                                               ; preds = %22
  %28 = call noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEcvPS3_Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  store ptr %28, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %30

29:                                               ; preds = %22
  store i32 0, ptr %9, align 4
  br label %30

30:                                               ; preds = %29, %27
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  %31 = load i32, ptr %9, align 4
  switch i32 %31, label %35 [
    i32 0, label %32
  ]

32:                                               ; preds = %30
  br label %33

33:                                               ; preds = %32
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %19

35:                                               ; preds = %30, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %36 = load i32, ptr %9, align 4
  switch i32 %36, label %40 [
    i32 2, label %37
    i32 1, label %38
  ]

37:                                               ; preds = %35
  store ptr null, ptr %3, align 8
  br label %38

38:                                               ; preds = %37, %35
  %39 = load ptr, ptr %3, align 8
  ret ptr %39

40:                                               ; preds = %35
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail6Object7TestHitERK6ImVec2f(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEcvPS3_Ev(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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"}


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

%"class.__gnu_cxx::__normal_iterator.69" = type { ptr }
%"struct.vox::NodeEditor::Detail::ObjectWrapper.70" = type { %"struct.vox::NodeEditor::NodeId", ptr }
%"struct.vox::NodeEditor::NodeId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.6" }
%"struct.vox::NodeEditor::Details::SafePointerType.6" = type { %"struct.vox::NodeEditor::Details::SafeType.7" }
%"struct.vox::NodeEditor::Details::SafeType.7" = type { i64 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEptEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindNodeAtERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(2040) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.69", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.69", align 8
  %5 = alloca %"struct.vox::NodeEditor::Detail::ObjectWrapper.70", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 472
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %7 = tail call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %7, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %8 = tail call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_4NodeENS1_6NodeIdEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  store ptr %8, ptr %4, align 8
  %9 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %9, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %2, %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %10, i64 16, i1 false)
  %11 = call noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %12 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail6Object7TestHitERK6ImVec2f(ptr noundef nonnull align 8 dereferenceable(17) %11, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef 0.000000e+00)
  br i1 %12, label %.thread, label %14

.thread:                                          ; preds = %.lr.ph
  %13 = call noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEcvPS3_Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %.loopexit

14:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN3vox10NodeEditor6Detail13ObjectWrapperINS3_4NodeENS2_6NodeIdEEESt6vectorIS7_SaIS7_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %16, label %.lr.ph, label %.loopexit

.loopexit:                                        ; preds = %14, %2, %.thread
  %spec.select = phi ptr [ %13, %.thread ], [ null, %2 ], [ null, %14 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret ptr %spec.select
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail6Object7TestHitERK6ImVec2f(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13ObjectWrapperINS1_4NodeENS0_6NodeIdEEcvPS3_Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass