; 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::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::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::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] }>
%"struct.vox::NodeEditor::Detail::EditorAction" = type { 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 }
%"struct.vox::NodeEditor::Detail::Node" = type <{ %"struct.vox::NodeEditor::Detail::Object.base", [7 x i8], %"struct.vox::NodeEditor::NodeId", i32, %struct.ImRect, i32, ptr, %struct.ImVec2, i32, i32, float, float, i32, i32, float, float, %struct.ImRect, i8, i8, [6 x i8] }>
%"struct.vox::NodeEditor::Detail::Object.base" = type <{ ptr, ptr, i8 }>
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::Detail::Link" = type { %"struct.vox::NodeEditor::Detail::Object.base", %"struct.vox::NodeEditor::LinkId", ptr, ptr, i32, float, %struct.ImVec2, %struct.ImVec2 }

; 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 uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16), i64) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail17DeleteItemsAction9QueryItemEPNS1_8ObjectIdENS2_12IteratorTypeE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, i32 noundef %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %12 = alloca %"struct.vox::NodeEditor::NodeId", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %16 = alloca %"struct.vox::NodeEditor::LinkId", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8
  %18 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 2
  %19 = load i8, ptr %18, align 1, !tbaa !11, !range !21, !noundef !22
  %20 = trunc i8 %19 to i1
  br i1 %20, label %22, label %21

21:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  br label %116

22:                                               ; preds = %3
  %23 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 5
  %24 = load i32, ptr %23, align 8, !tbaa !23
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = icmp ne i32 %24, %25
  br i1 %26, label %27, label %31

27:                                               ; preds = %22
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 5
  store i32 %28, ptr %29, align 8, !tbaa !23
  %30 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 8
  store i32 0, ptr %30, align 8, !tbaa !24
  br label %37

31:                                               ; preds = %22
  %32 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 6
  %33 = load i32, ptr %32, align 4, !tbaa !25
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  call void @_ZN3vox10NodeEditor6Detail17DeleteItemsAction10RejectItemEv(ptr noundef nonnull align 8 dereferenceable(88) %17)
  br label %36

36:                                               ; preds = %35, %31
  br label %37

37:                                               ; preds = %36, %27
  %38 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 6
  store i32 0, ptr %38, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %39 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 7
  %40 = call noundef i64 @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %8, align 4, !tbaa !26
  br label %42

42:                                               ; preds = %106, %37
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 8
  %44 = load i32, ptr %43, align 8, !tbaa !24
  %45 = load i32, ptr %8, align 4, !tbaa !26
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %107

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %48 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 7
  %49 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 8
  %50 = load i32, ptr %49, align 8, !tbaa !24
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %51) #4
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %53, ptr %9, align 8, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 2
  br i1 %55, label %56, label %76

56:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !27
  %59 = getelementptr inbounds ptr, ptr %58, i64 14
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef ptr %60(ptr noundef nonnull align 8 dereferenceable(17) %57)
  store ptr %61, ptr %10, align 8, !tbaa !5
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %72

64:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %65, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %66, i64 8, i1 false)
  %67 = getelementptr inbounds %"struct.vox::NodeEditor::NodeId", ptr %12, i32 0, i32 0
  %68 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.6", ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.7", ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 %70)
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %71, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  store i1 true, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %73

72:                                               ; preds = %56
  store i32 0, ptr %13, align 4
  br label %73

73:                                               ; preds = %72, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %74 = load i32, ptr %13, align 4
  switch i32 %74, label %104 [
    i32 0, label %75
  ]

75:                                               ; preds = %73
  br label %100

76:                                               ; preds = %47
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %79, label %99

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !27
  %82 = getelementptr inbounds ptr, ptr %81, i64 16
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef ptr %83(ptr noundef nonnull align 8 dereferenceable(17) %80)
  store ptr %84, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %95

87:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Link", ptr %88, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %89, i64 8, i1 false)
  %90 = getelementptr inbounds %"struct.vox::NodeEditor::LinkId", ptr %16, i32 0, i32 0
  %91 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType.50", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType.51", ptr %91, i32 0, i32 0
  %93 = load i64, ptr %92, align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6LinkIdE(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 %93)
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %94, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  store i1 true, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %96

95:                                               ; preds = %79
  store i32 0, ptr %13, align 4
  br label %96

96:                                               ; preds = %95, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %97 = load i32, ptr %13, align 4
  switch i32 %97, label %104 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98, %76
  br label %100

100:                                              ; preds = %99, %75
  %101 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 8
  %102 = load i32, ptr %101, align 8, !tbaa !24
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %101, align 8, !tbaa !24
  store i32 0, ptr %13, align 4
  br label %104

104:                                              ; preds = %100, %96, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %105 = load i32, ptr %13, align 4
  switch i32 %105, label %115 [
    i32 0, label %106
  ]

106:                                              ; preds = %104
  br label %42, !llvm.loop !29

107:                                              ; preds = %42
  %108 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 8
  %109 = load i32, ptr %108, align 8, !tbaa !24
  %110 = load i32, ptr %8, align 4, !tbaa !26
  %111 = icmp eq i32 %109, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %107
  %113 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %17, i32 0, i32 5
  store i32 0, ptr %113, align 8, !tbaa !23
  br label %114

114:                                              ; preds = %112, %107
  store i1 false, ptr %4, align 1
  store i32 1, ptr %13, align 4
  br label %115

115:                                              ; preds = %114, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %116

116:                                              ; preds = %115, %21
  %117 = load i1, ptr %4, align 1
  ret i1 %117
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail17DeleteItemsAction10RejectItemEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsAction12IteratorTypeE", !7, i64 0}
!11 = !{!12, !14, i64 17}
!12 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsActionE", !13, i64 0, !14, i64 16, !14, i64 17, !15, i64 24, !10, i64 48, !19, i64 52, !15, i64 56, !20, i64 80}
!13 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsAction10UserActionE", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!12, !10, i64 48}
!24 = !{!12, !20, i64 80}
!25 = !{!12, !19, i64 52}
!26 = !{!20, !20, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

; 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 uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16), i64) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail17DeleteItemsAction9QueryItemEPNS1_8ObjectIdENS2_12IteratorTypeE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %5 = alloca %"struct.vox::NodeEditor::Detail::ObjectId", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 17
  %7 = load i8, ptr %6, align 1, !tbaa !5, !range !19, !noundef !20
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %59

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = load i32, ptr %10, align 8, !tbaa !21
  %.not = icmp eq i32 %11, %2
  br i1 %.not, label %14, label %12

12:                                               ; preds = %9
  store i32 %2, ptr %10, align 8, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 0, ptr %13, align 8, !tbaa !22
  br label %19

14:                                               ; preds = %9
  %15 = getelementptr inbounds i8, ptr %0, i64 52
  %16 = load i32, ptr %15, align 4, !tbaa !23
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %14
  tail call void @_ZN3vox10NodeEditor6Detail17DeleteItemsAction10RejectItemEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %19

19:                                               ; preds = %14, %18, %12
  %20 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 0, ptr %20, align 4, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = tail call noundef i64 @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  %23 = trunc i64 %22 to i32
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  %25 = load i32, ptr %24, align 8, !tbaa !22
  %26 = icmp slt i32 %25, %23
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  switch i32 %2, label %.critedge [
    i32 2, label %.lr.ph.split.us
    i32 1, label %.lr.ph.split.us42
  ]

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.critedge.us
  %27 = phi i32 [ %36, %.critedge.us ], [ %25, %.lr.ph ]
  %28 = sext i32 %27 to i64
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %28) #4
  %30 = load ptr, ptr %29, align 8, !tbaa !24
  %31 = load ptr, ptr %30, align 8, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %31, i64 112
  %33 = load ptr, ptr %32, align 8
  %34 = tail call noundef ptr %33(ptr noundef nonnull align 8 dereferenceable(17) %30)
  %.not32.us = icmp eq ptr %34, null
  br i1 %.not32.us, label %.critedge.us, label %.split.us

.critedge.us:                                     ; preds = %.lr.ph.split.us
  %35 = load i32, ptr %24, align 8, !tbaa !22
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %24, align 8, !tbaa !22
  %37 = icmp slt i32 %36, %23
  br i1 %37, label %.lr.ph.split.us, label %._crit_edge

.lr.ph.split.us42:                                ; preds = %.lr.ph, %.critedge.us43
  %38 = phi i32 [ %47, %.critedge.us43 ], [ %25, %.lr.ph ]
  %39 = sext i32 %38 to i64
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %39) #4
  %41 = load ptr, ptr %40, align 8, !tbaa !24
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %42, i64 128
  %44 = load ptr, ptr %43, align 8
  %45 = tail call noundef ptr %44(ptr noundef nonnull align 8 dereferenceable(17) %41)
  %.not31.us = icmp eq ptr %45, null
  br i1 %.not31.us, label %.critedge.us43, label %.split45.us

.critedge.us43:                                   ; preds = %.lr.ph.split.us42
  %46 = load i32, ptr %24, align 8, !tbaa !22
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %24, align 8, !tbaa !22
  %48 = icmp slt i32 %47, %23
  br i1 %48, label %.lr.ph.split.us42, label %._crit_edge

.critedge:                                        ; preds = %.lr.ph, %.critedge
  %49 = phi i32 [ %53, %.critedge ], [ %25, %.lr.ph ]
  %50 = sext i32 %49 to i64
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %50) #4
  %52 = load i32, ptr %24, align 8, !tbaa !22
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %24, align 8, !tbaa !22
  %54 = icmp slt i32 %53, %23
  br i1 %54, label %.critedge, label %._crit_edge

.split.us:                                        ; preds = %.lr.ph.split.us
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %55 = getelementptr inbounds i8, ptr %34, i64 24
  %.sroa.06.0.copyload = load i64, ptr %55, align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6NodeIdE(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 %.sroa.06.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %4, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br label %59, !llvm.loop !27

.split45.us:                                      ; preds = %.lr.ph.split.us42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %56 = getelementptr inbounds i8, ptr %45, i64 24
  %.sroa.0.0.copyload = load i64, ptr %56, align 8
  call void @_ZN3vox10NodeEditor6Detail8ObjectIdC2ENS0_6LinkIdE(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 %.sroa.0.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull align 8 dereferenceable(12) %5, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %59, !llvm.loop !27

._crit_edge:                                      ; preds = %.critedge.us43, %.critedge.us, %.critedge, %19
  %.lcssa37 = phi i32 [ %25, %19 ], [ %53, %.critedge ], [ %36, %.critedge.us ], [ %47, %.critedge.us43 ]
  %57 = icmp eq i32 %.lcssa37, %23
  br i1 %57, label %58, label %59

58:                                               ; preds = %._crit_edge
  store i32 0, ptr %10, align 8, !tbaa !21
  br label %59

59:                                               ; preds = %.split45.us, %.split.us, %58, %._crit_edge, %3
  %.6 = phi i1 [ false, %3 ], [ false, %._crit_edge ], [ false, %58 ], [ true, %.split45.us ], [ true, %.split.us ]
  ret i1 %.6
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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 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 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 = { 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, !11, i64 17}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsActionE", !7, i64 0, !11, i64 16, !11, i64 17, !12, i64 24, !16, i64 48, !17, i64 52, !12, i64 56, !18, i64 80}
!7 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!16 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsAction12IteratorTypeE", !9, i64 0}
!17 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsAction10UserActionE", !9, i64 0}
!18 = !{!"int", !9, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!6, !16, i64 48}
!22 = !{!6, !18, i64 80}
!23 = !{!6, !17, i64 52}
!24 = !{!8, !8, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !10, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass