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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@_ZN7imnodes12_GLOBAL__N_11gE = external hidden global %struct.anon, align 8
@.str.1 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._ZN7imnodes13EndNodeEditorEv = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

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

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

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

9:                                                ; preds = %0
  br label %12

10:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 2050, ptr noundef @__PRETTY_FUNCTION__._ZN7imnodes13EndNodeEditorEv) #9
  unreachable

11:                                               ; No predecessors!
  br label %12

12:                                               ; preds = %11, %9
  store i32 1, ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 8), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #10
  %13 = call noundef nonnull align 8 dereferenceable(280) ptr @_ZN7imnodes12_GLOBAL__N_118editor_context_getEv()
  store ptr %13, ptr %1, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  %14 = load ptr, ptr %1, align 8, !tbaa !28
  %15 = call i32 @_ZN7imnodes12_GLOBAL__N_120resolve_hovered_nodeERKNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280) %14)
  %16 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::OptionalIndex", ptr %2, i32 0, i32 0
  store i32 %15, ptr %16, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 21), ptr align 4 %2, i64 4, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  store i32 0, ptr %3, align 4, !tbaa !30
  br label %17

17:                                               ; preds = %38, %12
  %18 = load i32, ptr %3, align 4, !tbaa !30
  %19 = load ptr, ptr %1, align 8, !tbaa !28
  %20 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool", ptr %20, i32 0, i32 0
  %22 = call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
  %23 = icmp slt i32 %18, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  br label %41

25:                                               ; preds = %17
  %26 = load ptr, ptr %1, align 8, !tbaa !28
  %27 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool", ptr %27, i32 0, i32 1
  %29 = load i32, ptr %3, align 4, !tbaa !30
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbEixEi(ptr noundef nonnull align 8 dereferenceable(16) %28, i32 noundef %29)
  %31 = load i8, ptr %30, align 1, !tbaa !31, !range !32, !noundef !33
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %37

33:                                               ; preds = %25
  %34 = load i32, ptr %3, align 4, !tbaa !30
  call void @_ZN7imnodes12_GLOBAL__N_134draw_list_activate_node_backgroundEi(i32 noundef %34)
  %35 = load ptr, ptr %1, align 8, !tbaa !28
  %36 = load i32, ptr %3, align 4, !tbaa !30
  call void @_ZN7imnodes12_GLOBAL__N_19draw_nodeERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280) %35, i32 noundef %36)
  br label %37

37:                                               ; preds = %33, %25
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %3, align 4, !tbaa !30
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %3, align 4, !tbaa !30
  br label %17, !llvm.loop !34

41:                                               ; preds = %24
  call void @_ZN7imnodes12_GLOBAL__N_142draw_list_append_click_interaction_channelEv()
  call void @_ZN7imnodes12_GLOBAL__N_144draw_list_activate_click_interaction_channelEv()
  %42 = load i8, ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 32), align 8, !tbaa !36, !range !32, !noundef !33
  %43 = trunc i8 %42 to i1
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load i8, ptr getelementptr inbounds (%struct.anon, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i32 0, i32 34), align 2, !tbaa !37, !range !32, !noundef !33
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %49

47:                                               ; preds = %44, %41
  %48 = load ptr, ptr %1, align 8, !tbaa !28
  call void @_ZN7imnodes12_GLOBAL__N_124begin_canvas_interactionERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280) %48)
  br label %49

49:                                               ; preds = %47, %44
  %50 = load ptr, ptr %1, align 8, !tbaa !28
  call void @_ZN7imnodes12_GLOBAL__N_124click_interaction_updateERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280) %50)
  %51 = load ptr, ptr %1, align 8, !tbaa !28
  %52 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %51, i32 0, i32 0
  call void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8NodeDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %52)
  %53 = load ptr, ptr %1, align 8, !tbaa !28
  %54 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %53, i32 0, i32 1
  call void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_7PinDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %54)
  %55 = load ptr, ptr %1, align 8, !tbaa !28
  %56 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %55, i32 0, i32 3
  call void @_ZN7imnodes12_GLOBAL__N_132draw_list_sort_channels_by_depthERK8ImVectorIiE(ptr noundef nonnull align 8 dereferenceable(16) %56)
  call void @_ZN7imnodes12_GLOBAL__N_124draw_list_merge_channelsEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  store i32 0, ptr %4, align 4, !tbaa !30
  br label %57

57:                                               ; preds = %77, %49
  %58 = load i32, ptr %4, align 4, !tbaa !30
  %59 = load ptr, ptr %1, align 8, !tbaa !28
  %60 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool.8", ptr %60, i32 0, i32 0
  %62 = call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18LinkDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %61)
  %63 = icmp slt i32 %58, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  br label %80

65:                                               ; preds = %57
  %66 = load ptr, ptr %1, align 8, !tbaa !28
  %67 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool.8", ptr %67, i32 0, i32 1
  %69 = load i32, ptr %4, align 4, !tbaa !30
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbEixEi(ptr noundef nonnull align 8 dereferenceable(16) %68, i32 noundef %69)
  %71 = load i8, ptr %70, align 1, !tbaa !31, !range !32, !noundef !33
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %76

73:                                               ; preds = %65
  %74 = load ptr, ptr %1, align 8, !tbaa !28
  %75 = load i32, ptr %4, align 4, !tbaa !30
  call void @_ZN7imnodes12_GLOBAL__N_19draw_linkERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280) %74, i32 noundef %75)
  br label %76

76:                                               ; preds = %73, %65
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %4, align 4, !tbaa !30
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !30
  br label %57, !llvm.loop !38

80:                                               ; preds = %64
  %81 = load ptr, ptr %1, align 8, !tbaa !28
  %82 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %81, i32 0, i32 2
  call void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8LinkDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %82)
  call void @_ZN5ImGui8EndChildEv()
  call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  call void @_ZN5ImGui11PopStyleVarEi(i32 noundef 1)
  call void @_ZN5ImGui11PopStyleVarEi(i32 noundef 1)
  call void @_ZN5ImGui8EndGroupEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 0, ptr %5, align 4, !tbaa !30
  br label %83

83:                                               ; preds = %99, %80
  %84 = load i32, ptr %5, align 4, !tbaa !30
  %85 = load ptr, ptr %1, align 8, !tbaa !28
  %86 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool", ptr %86, i32 0, i32 0
  %88 = call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %87)
  %89 = icmp slt i32 %84, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %102

91:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %92 = load ptr, ptr %1, align 8, !tbaa !28
  %93 = getelementptr inbounds %"struct.imnodes::EditorContext", ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::ObjectPool", ptr %93, i32 0, i32 0
  %95 = load i32, ptr %5, align 4, !tbaa !30
  %96 = call noundef nonnull align 8 dereferenceable(105) ptr @_ZN8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %94, i32 noundef %95)
  store ptr %96, ptr %6, align 8, !tbaa !28
  %97 = load ptr, ptr %6, align 8, !tbaa !28
  %98 = getelementptr inbounds %"struct.imnodes::(anonymous namespace)::NodeData", ptr %97, i32 0, i32 7
  call void @_ZN8ImVectorIiE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %98)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  br label %99

99:                                               ; preds = %91
  %100 = load i32, ptr %5, align 4, !tbaa !30
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %5, align 4, !tbaa !30
  br label %83, !llvm.loop !39

102:                                              ; preds = %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #10
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden i32 @_ZN7imnodes12_GLOBAL__N_120resolve_hovered_nodeERKNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_134draw_list_activate_node_backgroundEi(i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_19draw_nodeERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_142draw_list_append_click_interaction_channelEv() #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_144draw_list_activate_click_interaction_channelEv() #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_124begin_canvas_interactionERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280)) #7

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_124click_interaction_updateERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280)) #7

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8NodeDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64)) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_7PinDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64)) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_132draw_list_sort_channels_by_depthERK8ImVectorIiE(ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_124draw_list_merge_channelsEv() #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18LinkDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_19draw_linkERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8LinkDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64)) #5

declare void @_ZN5ImGui8EndChildEv() #8

declare void @_ZN5ImGui13PopStyleColorEi(i32 noundef) #8

declare void @_ZN5ImGui11PopStyleVarEi(i32 noundef) #8

declare void @_ZN5ImGui8EndGroupEv() #8

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 96}
!6 = !{!"_ZTSN7imnodes12_GLOBAL__N_13$_0E", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !13, i64 40, !13, i64 56, !14, i64 72, !16, i64 80, !8, i64 96, !17, i64 104, !21, i64 128, !23, i64 248, !24, i64 264, !25, i64 280, !12, i64 296, !13, i64 304, !12, i64 320, !12, i64 324, !12, i64 328, !27, i64 332, !27, i64 336, !27, i64 340, !12, i64 344, !27, i64 348, !27, i64 352, !12, i64 356, !12, i64 360, !19, i64 364, !14, i64 368, !19, i64 376, !19, i64 377, !19, i64 378, !19, i64 379, !19, i64 380}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS12ImGuiStorage", !11, i64 0}
!11 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !7, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!17 = !{!"_ZTSN7imnodes2IOE", !18, i64 0, !20, i64 16}
!18 = !{!"_ZTSN7imnodes2IO23EmulateThreeButtonMouseE", !19, i64 0, !7, i64 8}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSN7imnodes2IO27LinkDetachWithModifierClickE", !7, i64 0}
!21 = !{!"_ZTSN7imnodes5StyleE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !22, i64 52, !8, i64 56}
!22 = !{!"_ZTSN7imnodes10StyleFlagsE", !8, i64 0}
!23 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_117ColorStyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_112StyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!25 = !{!"_ZTS15ImGuiTextBuffer", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !7, i64 8}
!27 = !{!"_ZTSN7imnodes12_GLOBAL__N_113OptionalIndexE", !12, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{i64 0, i64 4, !30}
!30 = !{!12, !12, i64 0}
!31 = !{!19, !19, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !19, i64 376}
!37 = !{!6, !19, i64 378}
!38 = distinct !{!38, !35}
!39 = distinct !{!39, !35}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@_ZN7imnodes12_GLOBAL__N_11gE = external hidden local_unnamed_addr global %struct.anon, align 8
@.str.1 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._ZN7imnodes13EndNodeEditorEv = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

3:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 2050, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7imnodes13EndNodeEditorEv) #7
  unreachable

4:                                                ; preds = %0
  store i32 1, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 96), align 8, !tbaa !5
  %5 = tail call noundef nonnull align 8 dereferenceable(280) ptr @_ZN7imnodes12_GLOBAL__N_118editor_context_getEv()
  %6 = tail call i32 @_ZN7imnodes12_GLOBAL__N_120resolve_hovered_nodeERKNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280) %5)
  store i32 %6, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 332), align 4, !tbaa !28
  %7 = tail call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %9 = getelementptr inbounds i8, ptr %5, i64 16
  br label %12

._crit_edge:                                      ; preds = %17, %4
  tail call void @_ZN7imnodes12_GLOBAL__N_142draw_list_append_click_interaction_channelEv()
  tail call void @_ZN7imnodes12_GLOBAL__N_144draw_list_activate_click_interaction_channelEv()
  %10 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 376), align 8, !tbaa !29, !range !30, !noundef !31
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %24, label %21

12:                                               ; preds = %.lr.ph, %17
  %.029 = phi i32 [ 0, %.lr.ph ], [ %18, %17 ]
  %13 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %.029)
  %14 = load i8, ptr %13, align 1, !tbaa !32, !range !30, !noundef !31
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  tail call void @_ZN7imnodes12_GLOBAL__N_134draw_list_activate_node_backgroundEi(i32 noundef %.029)
  tail call void @_ZN7imnodes12_GLOBAL__N_19draw_nodeERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280) %5, i32 noundef %.029)
  br label %17

17:                                               ; preds = %12, %16
  %18 = add nuw nsw i32 %.029, 1
  %19 = tail call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %12, label %._crit_edge, !llvm.loop !33

21:                                               ; preds = %._crit_edge
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN7imnodes12_GLOBAL__N_11gE, i64 378), align 2, !tbaa !35, !range !30, !noundef !31
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %25

24:                                               ; preds = %21, %._crit_edge
  tail call void @_ZN7imnodes12_GLOBAL__N_124begin_canvas_interactionERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280) %5)
  br label %25

25:                                               ; preds = %24, %21
  tail call void @_ZN7imnodes12_GLOBAL__N_124click_interaction_updateERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280) %5)
  tail call void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8NodeDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %5)
  %26 = getelementptr inbounds i8, ptr %5, i64 64
  tail call void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_7PinDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %26)
  %27 = getelementptr inbounds i8, ptr %5, i64 192
  tail call void @_ZN7imnodes12_GLOBAL__N_132draw_list_sort_channels_by_depthERK8ImVectorIiE(ptr noundef nonnull align 8 dereferenceable(16) %27)
  tail call void @_ZN7imnodes12_GLOBAL__N_124draw_list_merge_channelsEv()
  %28 = getelementptr inbounds i8, ptr %5, i64 128
  %29 = tail call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18LinkDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph32, label %._crit_edge33

.lr.ph32:                                         ; preds = %25
  %31 = getelementptr inbounds i8, ptr %5, i64 144
  br label %34

._crit_edge33:                                    ; preds = %39, %25
  tail call void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8LinkDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64) %28)
  tail call void @_ZN5ImGui8EndChildEv()
  tail call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  tail call void @_ZN5ImGui11PopStyleVarEi(i32 noundef 1)
  tail call void @_ZN5ImGui11PopStyleVarEi(i32 noundef 1)
  tail call void @_ZN5ImGui8EndGroupEv()
  %32 = tail call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph36, label %._crit_edge37

34:                                               ; preds = %.lr.ph32, %39
  %.02830 = phi i32 [ 0, %.lr.ph32 ], [ %40, %39 ]
  %35 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbEixEi(ptr noundef nonnull align 8 dereferenceable(16) %31, i32 noundef %.02830)
  %36 = load i8, ptr %35, align 1, !tbaa !32, !range !30, !noundef !31
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  tail call void @_ZN7imnodes12_GLOBAL__N_19draw_linkERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280) %5, i32 noundef %.02830)
  br label %39

39:                                               ; preds = %34, %38
  %40 = add nuw nsw i32 %.02830, 1
  %41 = tail call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18LinkDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %34, label %._crit_edge33, !llvm.loop !36

._crit_edge37:                                    ; preds = %.lr.ph36, %._crit_edge33
  ret void

.lr.ph36:                                         ; preds = %._crit_edge33, %.lr.ph36
  %.02734 = phi i32 [ %45, %.lr.ph36 ], [ 0, %._crit_edge33 ]
  %43 = tail call noundef nonnull align 8 dereferenceable(105) ptr @_ZN8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.02734)
  %44 = getelementptr inbounds i8, ptr %43, i64 88
  tail call void @_ZN8ImVectorIiE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %45 = add nuw nsw i32 %.02734, 1
  %46 = tail call noundef i32 @_ZNK8ImVectorIN7imnodes12_GLOBAL__N_18NodeDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %.lr.ph36, label %._crit_edge37, !llvm.loop !37
}

; Function Attrs: mustprogress uwtable
declare hidden i32 @_ZN7imnodes12_GLOBAL__N_120resolve_hovered_nodeERKNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_134draw_list_activate_node_backgroundEi(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_19draw_nodeERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_142draw_list_append_click_interaction_channelEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_144draw_list_activate_click_interaction_channelEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_124begin_canvas_interactionERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_124click_interaction_updateERNS_13EditorContextE(ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8NodeDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_7PinDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_132draw_list_sort_channels_by_depthERK8ImVectorIiE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_124draw_list_merge_channelsEv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_19draw_linkERNS_13EditorContextEi(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7imnodes12_GLOBAL__N_118object_pool_updateINS0_8LinkDataEEEvRNS0_10ObjectPoolIT_EE(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

declare void @_ZN5ImGui8EndChildEv() local_unnamed_addr #6

declare void @_ZN5ImGui13PopStyleColorEi(i32 noundef) local_unnamed_addr #6

declare void @_ZN5ImGui11PopStyleVarEi(i32 noundef) local_unnamed_addr #6

declare void @_ZN5ImGui8EndGroupEv() local_unnamed_addr #6

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 96}
!6 = !{!"_ZTSN7imnodes12_GLOBAL__N_13$_0E", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !13, i64 40, !13, i64 56, !14, i64 72, !16, i64 80, !8, i64 96, !17, i64 104, !21, i64 128, !23, i64 248, !24, i64 264, !25, i64 280, !12, i64 296, !13, i64 304, !12, i64 320, !12, i64 324, !12, i64 328, !27, i64 332, !27, i64 336, !27, i64 340, !12, i64 344, !27, i64 348, !27, i64 352, !12, i64 356, !12, i64 360, !19, i64 364, !14, i64 368, !19, i64 376, !19, i64 377, !19, i64 378, !19, i64 379, !19, i64 380}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS12ImGuiStorage", !11, i64 0}
!11 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !7, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!17 = !{!"_ZTSN7imnodes2IOE", !18, i64 0, !20, i64 16}
!18 = !{!"_ZTSN7imnodes2IO23EmulateThreeButtonMouseE", !19, i64 0, !7, i64 8}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSN7imnodes2IO27LinkDetachWithModifierClickE", !7, i64 0}
!21 = !{!"_ZTSN7imnodes5StyleE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !22, i64 52, !8, i64 56}
!22 = !{!"_ZTSN7imnodes10StyleFlagsE", !8, i64 0}
!23 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_117ColorStyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorIN7imnodes12_GLOBAL__N_112StyleElementEE", !12, i64 0, !12, i64 4, !7, i64 8}
!25 = !{!"_ZTS15ImGuiTextBuffer", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !7, i64 8}
!27 = !{!"_ZTSN7imnodes12_GLOBAL__N_113OptionalIndexE", !12, i64 0}
!28 = !{!12, !12, i64 0}
!29 = !{!6, !19, i64 376}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!19, !19, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!6, !19, i64 378}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !34}


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