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

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

%"struct.vox::NodeEditor::PinId" = type { %"struct.vox::NodeEditor::Details::SafePointerType" }
%"struct.vox::NodeEditor::Details::SafePointerType" = type { %"struct.vox::NodeEditor::Details::SafeType" }
%"struct.vox::NodeEditor::Details::SafeType" = type { i64 }
%"struct.vox::NodeEditor::Detail::NodeBuilder" = type { ptr, ptr, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, i8, %struct.ImDrawListSplitter, %struct.ImDrawListSplitter }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%"struct.vox::NodeEditor::Detail::Pin" = type <{ %"struct.vox::NodeEditor::Detail::Object.base", [7 x i8], %"struct.vox::NodeEditor::PinId", i32, [4 x i8], ptr, %struct.ImRect, %struct.ImRect, ptr, i32, i32, float, float, i32, %struct.ImVec2, float, float, float, float, i8, i8, [2 x i8] }>
%"struct.vox::NodeEditor::Detail::Object.base" = type <{ ptr, ptr, i8 }>
%"struct.vox::NodeEditor::Detail::Object" = type <{ ptr, ptr, i8, [7 x i8] }>
%"struct.vox::NodeEditor::Style" = type { %struct.ImVec4, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, [18 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%"struct.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::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 }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE = external hidden unnamed_addr constant [68 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [19 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: 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 noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorE(ptr noundef nonnull align 8 dereferenceable(2040), i32 noundef) #2 align 2

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

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() #4

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

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

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

declare void @_ZN5ImGui10BeginGroupEv() #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(152) %0, i64 %1, i32 noundef %2) #2 align 2 {
  %4 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.vox::NodeEditor::PinId", align 8
  %9 = alloca ptr, align 8
  %10 = getelementptr inbounds %"struct.vox::NodeEditor::PinId", ptr %4, i32 0, i32 0
  %11 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType", ptr %10, i32 0, i32 0
  %12 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType", ptr %11, i32 0, i32 0
  store i64 %1, ptr %12, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8
  %14 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = icmp ne ptr null, %15
  br i1 %16, label %17, label %18

17:                                               ; preds = %3
  br label %20

18:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.1, i32 noundef 4313, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE) #7
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %23 = icmp eq ptr null, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  br label %27

25:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.1, i32 noundef 4314, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE) #7
  unreachable

26:                                               ; No predecessors!
  br label %27

27:                                               ; preds = %26, %24
  %28 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 11
  %29 = load i8, ptr %28, align 4, !tbaa !21, !range !22, !noundef !23
  %30 = trunc i8 %29 to i1
  %31 = zext i1 %30 to i32
  %32 = icmp eq i32 0, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %27
  br label %36

34:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.60, ptr noundef @.str.1, i32 noundef 4315, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE) #7
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !24
  %39 = call noundef nonnull align 8 dereferenceable(464) ptr @_ZN3vox10NodeEditor6Detail13EditorContext8GetStyleEv(ptr noundef nonnull align 8 dereferenceable(2040) %38)
  store ptr %39, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %4, i64 8, i1 false)
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::PinId", ptr %8, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafePointerType", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %"struct.vox::NodeEditor::Details::SafeType", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8
  %47 = call noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext6GetPinENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(2040) %41, i64 %46, i32 noundef %42)
  %48 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  store ptr %47, ptr %48, align 8, !tbaa !20
  %49 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !20
  %53 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %52, i32 0, i32 5
  store ptr %50, ptr %53, align 8, !tbaa !25
  %54 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  %56 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Object", ptr %55, i32 0, i32 2
  store i8 1, ptr %56, align 8, !tbaa !32
  %57 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !24
  %59 = call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorE(ptr noundef nonnull align 8 dereferenceable(2040) %58, i32 noundef 12)
  %60 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !20
  %62 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %61, i32 0, i32 9
  store i32 %59, ptr %62, align 8, !tbaa !33
  %63 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  %65 = call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorE(ptr noundef nonnull align 8 dereferenceable(2040) %64, i32 noundef 13)
  %66 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  %68 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %67, i32 0, i32 10
  store i32 %65, ptr %68, align 4, !tbaa !34
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %69, i32 0, i32 6
  %71 = load float, ptr %70, align 4, !tbaa !35
  %72 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !20
  %74 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %73, i32 0, i32 11
  store float %71, ptr %74, align 8, !tbaa !38
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %75, i32 0, i32 5
  %77 = load float, ptr %76, align 8, !tbaa !39
  %78 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !20
  %80 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %79, i32 0, i32 12
  store float %77, ptr %80, align 4, !tbaa !40
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %81, i32 0, i32 17
  %83 = load float, ptr %82, align 4, !tbaa !41
  %84 = fptosi float %83 to i32
  %85 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %86, i32 0, i32 13
  store i32 %84, ptr %87, align 8, !tbaa !42
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %88, i32 0, i32 18
  %90 = load float, ptr %89, align 8, !tbaa !43
  %91 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  %93 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %92, i32 0, i32 16
  store float %90, ptr %93, align 8, !tbaa !44
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %94, i32 0, i32 19
  %96 = load float, ptr %95, align 4, !tbaa !45
  %97 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !20
  %99 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %98, i32 0, i32 17
  store float %96, ptr %99, align 4, !tbaa !46
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %100, i32 0, i32 20
  %102 = load float, ptr %101, align 8, !tbaa !47
  %103 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %104, i32 0, i32 18
  store float %102, ptr %105, align 8, !tbaa !48
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %111

108:                                              ; preds = %36
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %109, i32 0, i32 8
  br label %114

111:                                              ; preds = %36
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %112, i32 0, i32 9
  br label %114

114:                                              ; preds = %111, %108
  %115 = phi ptr [ %110, %108 ], [ %113, %111 ]
  %116 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %117, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %118, ptr align 4 %115, i64 8, i1 false), !tbaa.struct !49
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %119, i32 0, i32 7
  %121 = load float, ptr %120, align 8, !tbaa !51
  %122 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  %124 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %123, i32 0, i32 15
  store float %121, ptr %124, align 4, !tbaa !52
  %125 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %126, i32 0, i32 6
  %128 = load ptr, ptr %127, align 8, !tbaa !53
  %129 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %130, i32 0, i32 8
  store ptr %128, ptr %131, align 8, !tbaa !59
  %132 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 2
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %135, i32 0, i32 6
  store ptr %133, ptr %136, align 8, !tbaa !53
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %137, i32 0, i32 14
  %139 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %139, ptr align 4 %138, i64 8, i1 false), !tbaa.struct !49
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %140, i32 0, i32 15
  %142 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %142, ptr align 4 %141, i64 8, i1 false), !tbaa.struct !49
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.vox::NodeEditor::Style", ptr %143, i32 0, i32 16
  %145 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %145, ptr align 4 %144, i64 8, i1 false), !tbaa.struct !49
  %146 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 8
  store i8 1, ptr %146, align 8, !tbaa !60
  %147 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 9
  store i8 1, ptr %147, align 1, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %148 = call noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
  store ptr %148, ptr %9, align 8, !tbaa !5
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %155

151:                                              ; preds = %114
  %152 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 13
  call void @_ZN18ImDrawListSplitter5ClearEv(ptr noundef nonnull align 8 dereferenceable(24) %152)
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %13, i32 0, i32 13
  call void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef %153, ptr noundef nonnull align 8 dereferenceable(24) %154)
  br label %155

155:                                              ; preds = %151, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @_ZN5ImGui10BeginGroupEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret void
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { noreturn nounwind }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN3vox10NodeEditor7PinKindE", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN3vox10NodeEditor6Detail11NodeBuilderE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 40, !14, i64 56, !14, i64 64, !14, i64 72, !16, i64 80, !16, i64 81, !13, i64 84, !16, i64 100, !17, i64 104, !17, i64 128}
!13 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS18ImDrawListSplitter", !18, i64 0, !18, i64 4, !19, i64 8}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !18, i64 0, !18, i64 4, !6, i64 8}
!20 = !{!12, !6, i64 16}
!21 = !{!12, !16, i64 100}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!12, !6, i64 0}
!25 = !{!26, !6, i64 40}
!26 = !{!"_ZTSN3vox10NodeEditor6Detail3PinE", !27, i64 0, !28, i64 24, !10, i64 32, !6, i64 40, !13, i64 48, !13, i64 64, !6, i64 80, !18, i64 88, !18, i64 92, !15, i64 96, !15, i64 100, !18, i64 104, !14, i64 108, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !16, i64 132, !16, i64 133}
!27 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !6, i64 8, !16, i64 16}
!28 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !29, i64 0}
!29 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !30, i64 0}
!30 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !31, i64 0}
!31 = !{!"long", !7, i64 0}
!32 = !{!27, !16, i64 16}
!33 = !{!26, !18, i64 88}
!34 = !{!26, !18, i64 92}
!35 = !{!36, !15, i64 36}
!36 = !{!"_ZTSN3vox10NodeEditor5StyleE", !37, i64 0, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !14, i64 44, !14, i64 52, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !7, i64 124}
!37 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!38 = !{!26, !15, i64 96}
!39 = !{!36, !15, i64 32}
!40 = !{!26, !15, i64 100}
!41 = !{!36, !15, i64 100}
!42 = !{!26, !18, i64 104}
!43 = !{!36, !15, i64 104}
!44 = !{!26, !15, i64 120}
!45 = !{!36, !15, i64 108}
!46 = !{!26, !15, i64 124}
!47 = !{!36, !15, i64 112}
!48 = !{!26, !15, i64 128}
!49 = !{i64 0, i64 4, !50, i64 4, i64 4, !50}
!50 = !{!15, !15, i64 0}
!51 = !{!36, !15, i64 40}
!52 = !{!26, !15, i64 116}
!53 = !{!54, !6, i64 56}
!54 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !27, i64 0, !55, i64 24, !58, i64 32, !13, i64 36, !18, i64 52, !6, i64 56, !14, i64 64, !18, i64 72, !18, i64 76, !15, i64 80, !15, i64 84, !18, i64 88, !18, i64 92, !15, i64 96, !15, i64 100, !13, i64 104, !16, i64 120, !16, i64 121}
!55 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !56, i64 0}
!56 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !57, i64 0}
!57 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !31, i64 0}
!58 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !7, i64 0}
!59 = !{!26, !6, i64 80}
!60 = !{!12, !16, i64 80}
!61 = !{!12, !16, i64 81}


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

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE = external hidden unnamed_addr constant [68 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [19 x i8], align 1

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

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

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

declare void @_ZN5ImGui10BeginGroupEv() local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(152) %0, i64 %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.1, i32 noundef 4313, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE) #5
  unreachable

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !17
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.1, i32 noundef 4314, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE) #5
  unreachable

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 100
  %14 = load i8, ptr %13, align 4, !tbaa !18, !range !19, !noundef !20
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.60, ptr noundef nonnull @.str.1, i32 noundef 4315, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder8BeginPinENS0_5PinIdENS0_7PinKindE) #5
  unreachable

17:                                               ; preds = %12
  %18 = load ptr, ptr %0, align 8, !tbaa !21
  %19 = tail call noundef nonnull align 8 dereferenceable(464) ptr @_ZN3vox10NodeEditor6Detail13EditorContext8GetStyleEv(ptr noundef nonnull align 8 dereferenceable(2040) %18)
  %20 = load ptr, ptr %0, align 8, !tbaa !21
  %21 = tail call noundef ptr @_ZN3vox10NodeEditor6Detail13EditorContext6GetPinENS0_5PinIdENS0_7PinKindE(ptr noundef nonnull align 8 dereferenceable(2040) %20, i64 %1, i32 noundef %2)
  store ptr %21, ptr %8, align 8, !tbaa !17
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %22, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %21, i64 16
  store i8 1, ptr %24, align 8, !tbaa !30
  %25 = load ptr, ptr %0, align 8, !tbaa !21
  %26 = tail call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorE(ptr noundef nonnull align 8 dereferenceable(2040) %25, i32 noundef 12)
  %27 = load ptr, ptr %8, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %27, i64 88
  store i32 %26, ptr %28, align 8, !tbaa !31
  %29 = load ptr, ptr %0, align 8, !tbaa !21
  %30 = tail call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorE(ptr noundef nonnull align 8 dereferenceable(2040) %29, i32 noundef 13)
  %31 = load ptr, ptr %8, align 8, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %31, i64 92
  store i32 %30, ptr %32, align 4, !tbaa !32
  %33 = getelementptr inbounds i8, ptr %31, i64 96
  %34 = getelementptr inbounds i8, ptr %19, i64 32
  %35 = load <2 x float>, ptr %34, align 8, !tbaa !33
  %36 = shufflevector <2 x float> %35, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  store <2 x float> %36, ptr %33, align 8, !tbaa !33
  %37 = getelementptr inbounds i8, ptr %19, i64 100
  %38 = load float, ptr %37, align 4, !tbaa !34
  %39 = fptosi float %38 to i32
  %40 = getelementptr inbounds i8, ptr %31, i64 104
  store i32 %39, ptr %40, align 8, !tbaa !37
  %41 = getelementptr inbounds i8, ptr %19, i64 104
  %42 = getelementptr inbounds i8, ptr %31, i64 120
  %43 = load <2 x float>, ptr %41, align 8, !tbaa !33
  store <2 x float> %43, ptr %42, align 8, !tbaa !33
  %44 = getelementptr inbounds i8, ptr %19, i64 112
  %45 = load float, ptr %44, align 8, !tbaa !38
  %46 = getelementptr inbounds i8, ptr %31, i64 128
  store float %45, ptr %46, align 8, !tbaa !39
  %47 = icmp eq i32 %2, 1
  %.v = select i1 %47, i64 44, i64 52
  %48 = getelementptr inbounds i8, ptr %19, i64 %.v
  %49 = getelementptr inbounds i8, ptr %31, i64 108
  %50 = load i64, ptr %48, align 4
  store i64 %50, ptr %49, align 4
  %51 = getelementptr inbounds i8, ptr %19, i64 40
  %52 = load float, ptr %51, align 8, !tbaa !40
  %53 = load ptr, ptr %8, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %53, i64 116
  store float %52, ptr %54, align 4, !tbaa !41
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 56
  %57 = load ptr, ptr %56, align 8, !tbaa !42
  %58 = getelementptr inbounds i8, ptr %53, i64 80
  store ptr %57, ptr %58, align 8, !tbaa !48
  store ptr %53, ptr %56, align 8, !tbaa !42
  %59 = getelementptr inbounds i8, ptr %19, i64 76
  %60 = getelementptr inbounds i8, ptr %0, i64 56
  %61 = load i64, ptr %59, align 4
  store i64 %61, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr %19, i64 84
  %63 = getelementptr inbounds i8, ptr %0, i64 64
  %64 = load i64, ptr %62, align 4
  store i64 %64, ptr %63, align 8
  %65 = getelementptr inbounds i8, ptr %19, i64 92
  %66 = getelementptr inbounds i8, ptr %0, i64 72
  %67 = load i64, ptr %65, align 4
  store i64 %67, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr %0, i64 80
  store i8 1, ptr %68, align 8, !tbaa !49
  %69 = getelementptr inbounds i8, ptr %0, i64 81
  store i8 1, ptr %69, align 1, !tbaa !50
  %70 = tail call noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
  %.not17 = icmp eq ptr %70, null
  br i1 %.not17, label %73, label %71

71:                                               ; preds = %17
  %72 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN18ImDrawListSplitter5ClearEv(ptr noundef nonnull align 8 dereferenceable(24) %72)
  tail call void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef nonnull %70, ptr noundef nonnull align 8 dereferenceable(24) %72)
  br label %73

73:                                               ; preds = %71, %17
  tail call void @_ZN5ImGui10BeginGroupEv()
  ret void
}

attributes #0 = { 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 #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 = { "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 = { 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 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 = { 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, !7, i64 8}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail11NodeBuilderE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 40, !11, i64 56, !11, i64 64, !11, i64 72, !13, i64 80, !13, i64 81, !10, i64 84, !13, i64 100, !14, i64 104, !14, i64 128}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImRect", !11, i64 0, !11, i64 8}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS18ImDrawListSplitter", !15, i64 0, !15, i64 4, !16, i64 8}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !15, i64 0, !15, i64 4, !7, i64 8}
!17 = !{!6, !7, i64 16}
!18 = !{!6, !13, i64 100}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!6, !7, i64 0}
!22 = !{!23, !7, i64 40}
!23 = !{!"_ZTSN3vox10NodeEditor6Detail3PinE", !24, i64 0, !25, i64 24, !29, i64 32, !7, i64 40, !10, i64 48, !10, i64 64, !7, i64 80, !15, i64 88, !15, i64 92, !12, i64 96, !12, i64 100, !15, i64 104, !11, i64 108, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !13, i64 132, !13, i64 133}
!24 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !7, i64 8, !13, i64 16}
!25 = !{!"_ZTSN3vox10NodeEditor5PinIdE", !26, i64 0}
!26 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_5PinIdEEE", !27, i64 0}
!27 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_5PinIdEEE", !28, i64 0}
!28 = !{!"long", !8, i64 0}
!29 = !{!"_ZTSN3vox10NodeEditor7PinKindE", !8, i64 0}
!30 = !{!24, !13, i64 16}
!31 = !{!23, !15, i64 88}
!32 = !{!23, !15, i64 92}
!33 = !{!12, !12, i64 0}
!34 = !{!35, !12, i64 100}
!35 = !{!"_ZTSN3vox10NodeEditor5StyleE", !36, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !11, i64 44, !11, i64 52, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !11, i64 76, !11, i64 84, !11, i64 92, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !8, i64 124}
!36 = !{!"_ZTS6ImVec4", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!37 = !{!23, !15, i64 104}
!38 = !{!35, !12, i64 112}
!39 = !{!23, !12, i64 128}
!40 = !{!35, !12, i64 40}
!41 = !{!23, !12, i64 116}
!42 = !{!43, !7, i64 56}
!43 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !24, i64 0, !44, i64 24, !47, i64 32, !10, i64 36, !15, i64 52, !7, i64 56, !11, i64 64, !15, i64 72, !15, i64 76, !12, i64 80, !12, i64 84, !15, i64 88, !15, i64 92, !12, i64 96, !12, i64 100, !10, i64 104, !13, i64 120, !13, i64 121}
!44 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !45, i64 0}
!45 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !46, i64 0}
!46 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !28, i64 0}
!47 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !8, i64 0}
!48 = !{!23, !7, i64 80}
!49 = !{!6, !13, i64 80}
!50 = !{!6, !13, i64 81}


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