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

; 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.ImVec2 = type { float, float }
%"struct.vox::NodeEditor::Detail::FringeScaleScope" = type { float }
%"struct.vox::NodeEditor::Detail::SelectAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, i8, i8, %struct.ImVec2, %struct.ImVec2, %"class.std::vector.28", %"class.std::vector.28", %"struct.vox::NodeEditor::Detail::Animation" }
%"struct.vox::NodeEditor::Detail::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::Animation" = type <{ ptr, ptr, i32, float, float, [4 x i8] }>

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196), i32 noundef) #0 align 2

declare void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeC2Ef(ptr noundef nonnull align 4 dereferenceable(4), float noundef) unnamed_addr #3 align 2

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail12SelectAction4DrawEP10ImDrawList(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %"struct.vox::NodeEditor::Detail::FringeScaleScope", align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 1
  %15 = load i8, ptr %14, align 8, !tbaa !9, !range !21, !noundef !22
  %16 = trunc i8 %15 to i1
  br i1 %16, label %21, label %17

17:                                               ; preds = %2
  %18 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 9
  %19 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28) %18)
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  br label %81

21:                                               ; preds = %17, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %22 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 9
  %23 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28) %22)
  br i1 %23, label %24, label %28

24:                                               ; preds = %21
  %25 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 9
  %26 = call noundef float @_ZNK3vox10NodeEditor6Detail9Animation11GetProgressEv(ptr noundef nonnull align 8 dereferenceable(28) %25)
  %27 = call noundef float @_ZN8ImEasing11EaseOutQuadIffEET_S1_S1_T0_(float noundef 1.000000e+00, float noundef -1.000000e+00, float noundef %26)
  br label %29

28:                                               ; preds = %21
  br label %29

29:                                               ; preds = %28, %24
  %30 = phi float [ %27, %24 ], [ 1.000000e+00, %28 ]
  store float %30, ptr %5, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %31 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %13, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !24
  %33 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 3
  %34 = load i8, ptr %33, align 2, !tbaa !25, !range !21, !noundef !22
  %35 = trunc i8 %34 to i1
  %36 = zext i1 %35 to i64
  %37 = select i1 %35, i32 10, i32 6
  %38 = load float, ptr %5, align 4, !tbaa !23
  %39 = call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %32, i32 noundef %37, float noundef %38)
  store i32 %39, ptr %6, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %40 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::EditorAction", ptr %13, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !24
  %42 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 3
  %43 = load i8, ptr %42, align 2, !tbaa !25, !range !21, !noundef !22
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, i32 11, i32 7
  %47 = load float, ptr %5, align 4, !tbaa !23
  %48 = call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %41, i32 noundef %46, float noundef %47)
  store i32 %48, ptr %7, align 4, !tbaa !26
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196) %49, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %50 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 5
  %51 = getelementptr inbounds %struct.ImVec2, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 6
  %53 = getelementptr inbounds %struct.ImVec2, ptr %52, i32 0, i32 0
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %55 = load float, ptr %54, align 4, !tbaa !23
  %56 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 5
  %57 = getelementptr inbounds %struct.ImVec2, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 6
  %59 = getelementptr inbounds %struct.ImVec2, ptr %58, i32 0, i32 1
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %61 = load float, ptr %60, align 4, !tbaa !23
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %55, float noundef %61)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %62 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 5
  %63 = getelementptr inbounds %struct.ImVec2, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !28
  %65 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 6
  %66 = getelementptr inbounds %struct.ImVec2, ptr %65, i32 0, i32 0
  %67 = load float, ptr %66, align 4, !tbaa !29
  %68 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %64, float noundef %67)
  %69 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 5
  %70 = getelementptr inbounds %struct.ImVec2, ptr %69, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !30
  %72 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SelectAction", ptr %13, i32 0, i32 6
  %73 = getelementptr inbounds %struct.ImVec2, ptr %72, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !31
  %75 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %71, float noundef %74)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %68, float noundef %75)
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load i32, ptr %6, align 4, !tbaa !26
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %76, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %77, float noundef 0.000000e+00, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %10, float noundef 1.000000e+00)
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load i32, ptr %7, align 4, !tbaa !26
  invoke void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %78, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %79, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
          to label %80 unwind label %82

80:                                               ; preds = %29
  call void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %81

81:                                               ; preds = %80, %20
  ret void

82:                                               ; preds = %29
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %11, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %12, align 4
  call void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %86

86:                                               ; preds = %82
  %87 = load ptr, ptr %11, align 8
  %88 = load i32, ptr %12, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3vox10NodeEditor6Detail9Animation11GetProgressEv(ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8ImEasing11EaseOutQuadIffEET_S1_S1_T0_(float noundef, float noundef, float noundef) #5

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #6 = { 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 = !{!"_ZTSN3vox10NodeEditor6Detail12SelectActionE", !11, i64 0, !12, i64 16, !12, i64 17, !12, i64 18, !12, i64 19, !13, i64 20, !13, i64 28, !15, i64 40, !15, i64 64, !19, i64 88}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN3vox10NodeEditor6Detail9AnimationE", !6, i64 8, !20, i64 16, !14, i64 20, !14, i64 24}
!20 = !{!"_ZTSN3vox10NodeEditor6Detail9Animation5StateE", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!14, !14, i64 0}
!24 = !{!11, !6, i64 8}
!25 = !{!10, !12, i64 18}
!26 = !{!27, !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = !{!10, !14, i64 20}
!29 = !{!10, !14, i64 28}
!30 = !{!10, !14, i64 24}
!31 = !{!10, !14, i64 32}


; 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.ImVec2 = type { float, float }
%"struct.vox::NodeEditor::Detail::FringeScaleScope" = type { float }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196), i32 noundef) local_unnamed_addr #0 align 2

declare void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeC2Ef(ptr noundef nonnull align 4 dereferenceable(4), float noundef) unnamed_addr #3 align 2

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail12SelectAction4DrawEP10ImDrawList(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca %"struct.vox::NodeEditor::Detail::FringeScaleScope", align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i8, ptr %6, align 8, !tbaa !5, !range !20, !noundef !21
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %12, label %9

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  %11 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  br i1 %11, label %12, label %47

12:                                               ; preds = %9, %2
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28) %13)
  br i1 %14, label %15, label %18

15:                                               ; preds = %12
  %16 = tail call noundef float @_ZNK3vox10NodeEditor6Detail9Animation11GetProgressEv(ptr noundef nonnull align 8 dereferenceable(28) %13)
  %17 = tail call noundef float @_ZN8ImEasing11EaseOutQuadIffEET_S1_S1_T0_(float noundef 1.000000e+00, float noundef -1.000000e+00, float noundef %16)
  br label %18

18:                                               ; preds = %12, %15
  %19 = phi float [ %17, %15 ], [ 1.000000e+00, %12 ]
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %0, i64 18
  %23 = load i8, ptr %22, align 2, !tbaa !23, !range !20, !noundef !21
  %24 = trunc nuw i8 %23 to i1
  %25 = select i1 %24, i32 10, i32 6
  %26 = tail call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %21, i32 noundef %25, float noundef %19)
  %27 = load ptr, ptr %20, align 8, !tbaa !22
  %28 = load i8, ptr %22, align 2, !tbaa !23, !range !20, !noundef !21
  %29 = trunc nuw i8 %28 to i1
  %30 = select i1 %29, i32 11, i32 7
  %31 = tail call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %27, i32 noundef %30, float noundef %19)
  tail call void @_ZN10ImDrawList18ChannelsSetCurrentEi(ptr noundef nonnull align 8 dereferenceable(196) %1, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %32 = getelementptr inbounds i8, ptr %0, i64 20
  %33 = getelementptr inbounds i8, ptr %0, i64 28
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %35 = load float, ptr %34, align 4, !tbaa !24
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = getelementptr inbounds i8, ptr %0, i64 32
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = load float, ptr %38, align 4, !tbaa !24
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %35, float noundef %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %40 = load float, ptr %32, align 4, !tbaa !25
  %41 = load float, ptr %33, align 4, !tbaa !26
  %42 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %40, float noundef %41)
  %43 = load float, ptr %36, align 8, !tbaa !27
  %44 = load float, ptr %37, align 8, !tbaa !28
  %45 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %43, float noundef %44)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %42, float noundef %45)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %1, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %26, float noundef 0.000000e+00, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeC2Ef(ptr noundef nonnull align 4 dereferenceable(4) %5, float noundef 1.000000e+00)
  invoke void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %1, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %31, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
          to label %46 unwind label %48

46:                                               ; preds = %18
  call void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %47

47:                                               ; preds = %9, %46
  ret void

48:                                               ; preds = %18
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vox10NodeEditor6Detail16FringeScaleScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %49
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3vox10NodeEditor6Detail9Animation11GetProgressEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8ImEasing11EaseOutQuadIffEET_S1_S1_T0_(float noundef, float noundef, float noundef) local_unnamed_addr #5

attributes #0 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #6 = { 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 = !{!"_ZTSN3vox10NodeEditor6Detail12SelectActionE", !7, i64 0, !11, i64 16, !11, i64 17, !11, i64 18, !11, i64 19, !12, i64 20, !12, i64 28, !14, i64 40, !14, i64 64, !18, i64 88}
!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 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_ZTSSt6vectorIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN3vox10NodeEditor6Detail6ObjectESaIS4_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!18 = !{!"_ZTSN3vox10NodeEditor6Detail9AnimationE", !8, i64 8, !19, i64 16, !13, i64 20, !13, i64 24}
!19 = !{!"_ZTSN3vox10NodeEditor6Detail9Animation5StateE", !9, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!7, !8, i64 8}
!23 = !{!6, !11, i64 18}
!24 = !{!13, !13, i64 0}
!25 = !{!6, !13, i64 20}
!26 = !{!6, !13, i64 28}
!27 = !{!6, !13, i64 24}
!28 = !{!6, !13, i64 32}


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