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

%class.anon.164 = type { ptr }
%"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::Control" = type <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [641 x i32], [512 x i8], %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [20 x float], i32, i32, [641 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], [20 x float], [20 x float], float, i8, i8, i8, i16, %struct.ImVector.0 }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector.0 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlE = external hidden unnamed_addr constant [107 x i8], align 1

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

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

declare noundef zeroext i1 @_ZN5ImGui15IsWindowFocusedEi(i32 noundef) #1

declare noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv() #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext19AreShortcutsEnabledEv(ptr noundef nonnull align 8 dereferenceable(2040)) #3 align 2

declare noundef zeroext i1 @_ZN5ImGui12IsKeyPressedEib(i32 noundef, i1 noundef zeroext) #1

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

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

declare noundef i32 @_ZN5ImGui11GetKeyIndexEi(i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.anon.164, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, 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
  %12 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 1
  %13 = load i8, ptr %12, align 8, !tbaa !9, !range !20, !noundef !21
  %14 = trunc i8 %13 to i1
  %15 = xor i1 %14, true
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  br label %19

17:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 3973, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlE) #6
  unreachable

18:                                               ; No predecessors!
  br label %19

19:                                               ; preds = %18, %16
  %20 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 1
  %21 = load i8, ptr %20, align 8, !tbaa !9, !range !20, !noundef !21
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  store i32 0, ptr %3, align 4
  br label %85

24:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %25 = getelementptr inbounds %class.anon.164, ptr %6, i32 0, i32 0
  store ptr %11, ptr %25, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %26 = call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZN5ImGui15IsWindowFocusedEi(i32 noundef 0)
  br i1 %27, label %28, label %50

28:                                               ; preds = %24
  %29 = call noundef i32 @_ZN5ImGui11GetKeyIndexEi(i32 noundef 522)
  %30 = call noundef zeroext i1 @_ZN5ImGui12IsKeyPressedEib(i32 noundef %29, i1 noundef zeroext true)
  br i1 %30, label %31, label %50

31:                                               ; preds = %28
  %32 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %11, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  %34 = call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext19AreShortcutsEnabledEv(ptr noundef nonnull align 8 dereferenceable(2040) %33)
  br i1 %34, label %35, label %50

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %36 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %11, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox10NodeEditor6Detail13EditorContext18GetSelectedObjectsEv(ptr noundef nonnull align 8 dereferenceable(2040) %37)
  store ptr %38, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  br i1 %40, label %46, label %41

41:                                               ; preds = %35
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 7
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %42)
  call void @"_ZZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %45 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 1
  store i8 1, ptr %45, align 8, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %47

46:                                               ; preds = %35
  store i32 0, ptr %9, align 4
  br label %47

47:                                               ; preds = %46, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %48 = load i32, ptr %9, align 4
  switch i32 %48, label %84 [
    i32 0, label %49
  ]

49:                                               ; preds = %47
  br label %78

50:                                               ; preds = %31, %28, %24
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %51, i32 0, i32 14
  %53 = load ptr, ptr %52, align 8, !tbaa !25
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %67

55:                                               ; preds = %50
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImGuiIO, ptr %56, i32 0, i32 58
  %58 = load i8, ptr %57, align 2, !tbaa !27, !range !20, !noundef !21
  %59 = trunc i8 %58 to i1
  br i1 %59, label %60, label %67

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 7
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %62 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %63, i32 0, i32 14
  %65 = load ptr, ptr %64, align 8, !tbaa !25
  store ptr %65, ptr %10, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %66 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 1
  store i8 1, ptr %66, align 8, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %84

67:                                               ; preds = %55, %50
  %68 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 4
  %69 = call noundef zeroext i1 @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #7
  br i1 %69, label %76, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 4
  %72 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 7
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(24) %71)
  %74 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 4
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #7
  call void @"_ZZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %75 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 1
  store i8 1, ptr %75, align 8, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %84

76:                                               ; preds = %67
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77, %49
  %79 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::DeleteItemsAction", ptr %11, i32 0, i32 1
  %80 = load i8, ptr %79, align 8, !tbaa !9, !range !20, !noundef !21
  %81 = trunc i8 %80 to i1
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 1, i32 0
  store i32 %83, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %84

84:                                               ; preds = %78, %70, %60, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %85

85:                                               ; preds = %84, %23
  %86 = load i32, ptr %3, align 4
  ret i32 %86
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { 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 = { 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 #6 = { noreturn nounwind }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsActionE", !11, i64 0, !12, i64 16, !12, i64 17, !13, i64 24, !17, i64 48, !18, i64 52, !13, i64 56, !19, i64 80}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsAction12IteratorTypeE", !7, i64 0}
!18 = !{!"_ZTSN3vox10NodeEditor6Detail17DeleteItemsAction10UserActionE", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEE3$_0", !6, i64 0}
!24 = !{!11, !6, i64 8}
!25 = !{!26, !6, i64 112}
!26 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !12, i64 129, !12, i64 130, !12, i64 131}
!27 = !{!28, !12, i64 3342}
!28 = !{!"_ZTS7ImGuiIO", !19, i64 0, !19, i64 4, !29, i64 8, !30, i64 16, !30, i64 20, !6, i64 24, !6, i64 32, !30, i64 40, !30, i64 44, !30, i64 48, !30, i64 52, !30, i64 56, !6, i64 64, !6, i64 72, !30, i64 80, !12, i64 84, !6, i64 88, !29, i64 96, !12, i64 104, !12, i64 105, !12, i64 106, !12, i64 107, !12, i64 108, !12, i64 109, !12, i64 110, !30, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !12, i64 200, !12, i64 201, !12, i64 202, !12, i64 203, !12, i64 204, !12, i64 205, !12, i64 206, !30, i64 208, !19, i64 212, !19, i64 216, !19, i64 220, !19, i64 224, !19, i64 228, !29, i64 232, !7, i64 240, !7, i64 2804, !29, i64 3316, !7, i64 3324, !30, i64 3332, !30, i64 3336, !12, i64 3340, !12, i64 3341, !12, i64 3342, !12, i64 3343, !7, i64 3344, !19, i64 3424, !19, i64 3428, !7, i64 3432, !12, i64 13688, !29, i64 13692, !7, i64 13700, !7, i64 13744, !7, i64 13784, !7, i64 13789, !7, i64 13794, !7, i64 13804, !7, i64 13814, !7, i64 13819, !7, i64 13824, !7, i64 13832, !7, i64 13852, !7, i64 13872, !7, i64 13892, !7, i64 13972, !30, i64 14052, !12, i64 14056, !7, i64 14057, !12, i64 14058, !31, i64 14060, !32, i64 14064}
!29 = !{!"_ZTS6ImVec2", !30, i64 0, !30, i64 4}
!30 = !{!"float", !7, i64 0}
!31 = !{!"short", !7, i64 0}
!32 = !{!"_ZTS8ImVectorItE", !19, i64 0, !19, i64 4, !6, i64 8}


; 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.anon.164 = type { ptr }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlE = external hidden unnamed_addr constant [107 x i8], align 1

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

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

declare noundef zeroext i1 @_ZN5ImGui15IsWindowFocusedEi(i32 noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox10NodeEditor6Detail13EditorContext18GetSelectedObjectsEv(ptr noundef nonnull align 8 dereferenceable(2040)) local_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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext19AreShortcutsEnabledEv(ptr noundef nonnull align 8 dereferenceable(2040)) local_unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN5ImGui12IsKeyPressedEib(i32 noundef, i1 noundef zeroext) local_unnamed_addr #1

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

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

declare noundef i32 @_ZN5ImGui11GetKeyIndexEi(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(132) %1) unnamed_addr #2 align 2 {
  %3 = alloca %class.anon.164, align 8
  %4 = alloca ptr, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !19, !noundef !20
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 3973, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlE) #6
  unreachable

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr %0, ptr %3, align 8, !tbaa !21
  %10 = tail call noundef nonnull align 8 dereferenceable(14080) ptr @_ZN5ImGui5GetIOEv()
  %11 = tail call noundef zeroext i1 @_ZN5ImGui15IsWindowFocusedEi(i32 noundef 0)
  br i1 %11, label %12, label %26

12:                                               ; preds = %9
  %13 = tail call noundef i32 @_ZN5ImGui11GetKeyIndexEi(i32 noundef 522)
  %14 = tail call noundef zeroext i1 @_ZN5ImGui12IsKeyPressedEib(i32 noundef %13, i1 noundef zeroext true)
  br i1 %14, label %15, label %26

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !23
  %18 = tail call noundef zeroext i1 @_ZN3vox10NodeEditor6Detail13EditorContext19AreShortcutsEnabledEv(ptr noundef nonnull align 8 dereferenceable(2040) %17)
  br i1 %18, label %19, label %26

19:                                               ; preds = %15
  %20 = load ptr, ptr %16, align 8, !tbaa !23
  %21 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3vox10NodeEditor6Detail13EditorContext18GetSelectedObjectsEv(ptr noundef nonnull align 8 dereferenceable(2040) %20)
  %22 = tail call noundef zeroext i1 @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br i1 %22, label %.critedge, label %23

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @"_ZZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store i8 1, ptr %5, align 8, !tbaa !5
  br label %44

26:                                               ; preds = %15, %12, %9
  %27 = getelementptr inbounds i8, ptr %1, i64 112
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %.not = icmp eq ptr %28, null
  br i1 %.not, label %36, label %29

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %10, i64 3342
  %31 = load i8, ptr %30, align 2, !tbaa !26, !range !19, !noundef !20
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %35 = load ptr, ptr %27, align 8, !tbaa !24
  store ptr %35, ptr %4, align 8, !tbaa !32
  call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  store i8 1, ptr %5, align 8, !tbaa !5
  br label %44

36:                                               ; preds = %29, %26
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = tail call noundef zeroext i1 @_ZNKSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  br i1 %38, label %.critedge, label %39

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %37)
  tail call void @_ZNSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @"_ZZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store i8 1, ptr %5, align 8, !tbaa !5
  br label %44

.critedge:                                        ; preds = %19, %36
  %42 = load i8, ptr %5, align 8, !tbaa !5, !range !19, !noundef !20
  %43 = zext nneg i8 %42 to i32
  br label %44

44:                                               ; preds = %23, %.critedge, %39, %33
  %.1 = phi i32 [ %43, %.critedge ], [ 1, %23 ], [ 1, %33 ], [ 1, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { 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 = { 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 #6 = { noreturn nounwind }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!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 = !{!22, !8, i64 0}
!22 = !{!"_ZTSZN3vox10NodeEditor6Detail17DeleteItemsAction6AcceptERKNS1_7ControlEE3$_0", !8, i64 0}
!23 = !{!7, !8, i64 8}
!24 = !{!25, !8, i64 112}
!25 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !11, i64 128, !11, i64 129, !11, i64 130, !11, i64 131}
!26 = !{!27, !11, i64 3342}
!27 = !{!"_ZTS7ImGuiIO", !18, i64 0, !18, i64 4, !28, i64 8, !29, i64 16, !29, i64 20, !8, i64 24, !8, i64 32, !29, i64 40, !29, i64 44, !29, i64 48, !29, i64 52, !29, i64 56, !8, i64 64, !8, i64 72, !29, i64 80, !11, i64 84, !8, i64 88, !28, i64 96, !11, i64 104, !11, i64 105, !11, i64 106, !11, i64 107, !11, i64 108, !11, i64 109, !11, i64 110, !29, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !8, i64 152, !8, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !11, i64 200, !11, i64 201, !11, i64 202, !11, i64 203, !11, i64 204, !11, i64 205, !11, i64 206, !29, i64 208, !18, i64 212, !18, i64 216, !18, i64 220, !18, i64 224, !18, i64 228, !28, i64 232, !9, i64 240, !9, i64 2804, !28, i64 3316, !9, i64 3324, !29, i64 3332, !29, i64 3336, !11, i64 3340, !11, i64 3341, !11, i64 3342, !11, i64 3343, !9, i64 3344, !18, i64 3424, !18, i64 3428, !9, i64 3432, !11, i64 13688, !28, i64 13692, !9, i64 13700, !9, i64 13744, !9, i64 13784, !9, i64 13789, !9, i64 13794, !9, i64 13804, !9, i64 13814, !9, i64 13819, !9, i64 13824, !9, i64 13832, !9, i64 13852, !9, i64 13872, !9, i64 13892, !9, i64 13972, !29, i64 14052, !11, i64 14056, !9, i64 14057, !11, i64 14058, !30, i64 14060, !31, i64 14064}
!28 = !{!"_ZTS6ImVec2", !29, i64 0, !29, i64 4}
!29 = !{!"float", !9, i64 0}
!30 = !{!"short", !9, i64 0}
!31 = !{!"_ZTS8ImVectorItE", !18, i64 0, !18, i64 4, !8, i64 8}
!32 = !{!8, !8, i64 0}


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