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

; 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.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::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::ObjectWrapper.68" = type { %"struct.vox::NodeEditor::PinId", ptr }
%"class.__gnu_cxx::__normal_iterator.67" = type { ptr }
%"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::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::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::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 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext9CreatePinENS0_5PinIdENS0_7PinKindE = external hidden unnamed_addr constant [75 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

declare i32 @__gxx_personality_v0(...)

; 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040), i64, i32) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext9CreatePinENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(2040) %0, i64 %1, i32 noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %8 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.vox::NodeEditor::Detail::ObjectWrapper.68", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.67", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.67", align 8
  %16 = getelementptr inbounds %"struct.vox::NodeEditor::PinId", ptr %4, i32 0, i32 0
  %17 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType", ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType", ptr %17, i32 0, i32 0
  store i64 %1, ptr %18, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %19 = load ptr, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %4, i64 8, i1 false)
  %20 = getelementptr inbounds %"struct.vox::NodeEditor::PinId", ptr %8, i32 0, i32 0
  %21 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType", ptr %20, i32 0, i32 0
  %22 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_5PinIdE(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 %23)
  %24 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 0
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds { i64, i32 }, ptr %7, i32 0, i32 1
  %27 = load i32, ptr %26, align 8
  %28 = call noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040) %19, i64 %25, i32 %27)
  %29 = icmp eq ptr null, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %3
  br label %33

31:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1559, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext9CreatePinENS0_5PinIdENS0_7PinKindE) #8
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %34 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 136) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %4, i64 8, i1 false)
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = getelementptr inbounds %"struct.vox::NodeEditor::PinId", ptr %10, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType", ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8
  invoke void @_ZN3vox10NodeEditor6Detail3PinC2EPNS1_13EditorContextENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(136) %34, ptr noundef %19, i64 %39, i32 noundef %35)
          to label %40 unwind label %56

40:                                               ; preds = %33
  store ptr %34, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %19, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  %42 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ObjectWrapper.68", ptr %13, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %4, i64 8, i1 false)
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::ObjectWrapper.68", ptr %13, i32 0, i32 1
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %44, ptr %43, align 8, !tbaa !11
  call void @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  %45 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %19, i32 0, i32 5
  %46 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.67", ptr %14, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  %48 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorContext", ptr %19, i32 0, i32 5
  %49 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.67", ptr %15, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.67", ptr %14, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.67", ptr %15, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS4_3PinENS3_5PinIdEEESt6vectorIS8_SaIS8_EEEEEvT_SE_(ptr %52, ptr %54)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  ret ptr %55

56:                                               ; preds = %33
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %34, i64 noundef 136) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr %11, align 8
  %62 = load i32, ptr %12, align 4
  %63 = insertvalue { ptr, i32 } poison, ptr %61, 0
  %64 = insertvalue { ptr, i32 } %63, i32 %62, 1
  resume { ptr, i32 } %64
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_5PinIdE(ptr noundef nonnull align 8 dereferenceable(16), i64) unnamed_addr #4 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail3PinC2EPNS1_13EditorContextENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef, i64, i32 noundef) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS4_3PinENS3_5PinIdEEESt6vectorIS8_SaIS8_EEEEEvT_SE_(ptr, ptr) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin 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 = { 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 #6 = { nobuiltin allocsize(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 = { inlinehint 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 #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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, !10, i64 0}
!10 = !{!"_ZTSN3vox10NodeEditor7PinKindE", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN3vox10NodeEditor6Detail13ObjectWrapperINS1_3PinENS0_5PinIdEEE", !13, i64 0, !6, i64 8}
!13 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !14, i64 0}
!14 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !15, i64 0}
!15 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !16, i64 0}
!16 = !{!"long", !7, 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.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::ObjectWrapper.68" = type { %"struct.vox::NodeEditor::PinId", 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 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext9CreatePinENS0_5PinIdENS0_7PinKindE = external hidden unnamed_addr constant [75 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040), i64, i32) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN3vox10NodeEditor6Detail13EditorContext9CreatePinENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(2040) %0, i64 %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %5 = alloca %"struct.vox::NodeEditor::Detail::ObjectWrapper.68", align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_5PinIdE(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 %1)
  %6 = load i64, ptr %4, align 8
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  %8 = load i32, ptr %7, align 8
  %9 = call noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext10FindObjectENS1_8ObjectIdE(ptr noundef nonnull align 8 dereferenceable(2040) %0, i64 %6, i32 %8)
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1559, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail13EditorContext9CreatePinENS0_5PinIdENS0_7PinKindE) #7
  unreachable

12:                                               ; preds = %3
  %13 = call noalias noundef nonnull dereferenceable(136) ptr @_Znwm(i64 noundef 136) #8
  invoke void @_ZN3vox10NodeEditor6Detail3PinC2EPNS1_13EditorContextENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(136) %13, ptr noundef nonnull %0, i64 %1, i32 noundef %2)
          to label %14 unwind label %19

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 496
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  store i64 %1, ptr %5, align 8
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %13, ptr %16, align 8, !tbaa !5
  call void @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  %17 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %18 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS4_3PinENS3_5PinIdEEESt6vectorIS8_SaIS8_EEEEEvT_SE_(ptr %17, ptr %18)
  ret ptr %13

19:                                               ; preds = %12
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 136) #10
  resume { ptr, i32 } %20
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_5PinIdE(ptr noundef nonnull align 8 dereferenceable(16), i64) unnamed_addr #3 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail3PinC2EPNS1_13EditorContextENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef, i64, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3vox10NodeEditor6Detail13ObjectWrapperINS2_3PinENS1_5PinIdEEESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13ObjectWrapperINS4_3PinENS3_5PinIdEEESt6vectorIS8_SaIS8_EEEEEvT_SE_(ptr, ptr) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin 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 #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 = { 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 #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 = { nobuiltin allocsize(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"="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 = { noreturn nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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 8}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail13ObjectWrapperINS1_3PinENS0_5PinIdEEE", !7, i64 0, !13, i64 8}
!7 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !8, i64 0}
!8 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !9, i64 0}
!9 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !10, i64 0}
!10 = !{!"long", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass