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

; 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::FlowAnimation" = type { %"struct.vox::NodeEditor::Detail::Animation.base", ptr, ptr, float, float, float, %struct.ImVec2, %struct.ImVec2, float, %"class.std::vector.125" }
%"struct.vox::NodeEditor::Detail::Animation.base" = type <{ ptr, ptr, i32, float, float }>
%"class.std::vector.125" = type { %"struct.std::_Vector_base.126" }
%"struct.std::_Vector_base.126" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation::CurvePoint, std::allocator<vox::NodeEditor::Detail::FlowAnimation::CurvePoint>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation::CurvePoint, std::allocator<vox::NodeEditor::Detail::FlowAnimation::CurvePoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation::CurvePoint, std::allocator<vox::NodeEditor::Detail::FlowAnimation::CurvePoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::NodeEditor::Detail::FlowAnimation::CurvePoint, std::allocator<vox::NodeEditor::Detail::FlowAnimation::CurvePoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::NodeEditor::Detail::Animation" = type <{ ptr, ptr, i32, float, float, [4 x i8] }>

; 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 nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, float noundef) #2 align 2

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

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

; Function Attrs: nounwind
declare float @fmodf(float noundef, float noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail13FlowAnimation4DrawEP10ImDrawList(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca %struct.ImVec2, 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 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28) %13)
  br i1 %14, label %15, label %21

15:                                               ; preds = %2
  %16 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsLinkValidEv(ptr noundef nonnull align 8 dereferenceable(104) %13)
  br i1 %16, label %17, label %21

17:                                               ; preds = %15
  %18 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail6Object9IsVisibleEv(ptr noundef nonnull align 8 dereferenceable(17) %19)
  br i1 %20, label %22, label %21

21:                                               ; preds = %17, %15, %2
  br label %78

22:                                               ; preds = %17
  %23 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsPathValidEv(ptr noundef nonnull align 8 dereferenceable(104) %13)
  br i1 %23, label %25, label %24

24:                                               ; preds = %22
  call void @_ZN3vox10NodeEditor6Detail13FlowAnimation10UpdatePathEv(ptr noundef nonnull align 8 dereferenceable(104) %13)
  br label %25

25:                                               ; preds = %24, %22
  %26 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 5
  %27 = load float, ptr %26, align 8, !tbaa !19
  %28 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 4
  %29 = load float, ptr %28, align 4, !tbaa !20
  %30 = call float @fmodf(float noundef %27, float noundef %29) #7
  %31 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 5
  store float %30, ptr %31, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %32 = call noundef float @_ZNK3vox10NodeEditor6Detail9Animation11GetProgressEv(ptr noundef nonnull align 8 dereferenceable(28) %13)
  store float %32, ptr %5, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %33 = load float, ptr %5, align 4, !tbaa !21
  %34 = load float, ptr %5, align 4, !tbaa !21
  %35 = fneg float %33
  %36 = call float @llvm.fmuladd.f32(float %35, float %34, float 1.000000e+00)
  store float %36, ptr %6, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Animation", ptr %13, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !22
  %39 = load float, ptr %6, align 4, !tbaa !21
  %40 = call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %38, i32 noundef 14, float noundef %39)
  store i32 %40, ptr %7, align 4, !tbaa !23
  %41 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !23
  call void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72) %42, ptr noundef %43, i32 noundef %44, float noundef 2.000000e+00)
  %45 = call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsPathValidEv(ptr noundef nonnull align 8 dereferenceable(104) %13)
  br i1 %45, label %46, label %77

46:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %47 = load float, ptr %5, align 4, !tbaa !21
  %48 = fsub float 1.000000e+00, %47
  %49 = call float @powf(float noundef %48, float noundef 0x3FD6666660000000) #7
  store float %49, ptr %8, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %50 = load float, ptr %5, align 4, !tbaa !21
  %51 = fsub float 1.000000e+00, %50
  %52 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %51, float 2.000000e+00)
  store float %52, ptr %9, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %53 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Animation", ptr %13, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = load float, ptr %8, align 4, !tbaa !21
  %56 = call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %54, i32 noundef 15, float noundef %55)
  store i32 %56, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %57 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 5
  %58 = load float, ptr %57, align 8, !tbaa !19
  store float %58, ptr %11, align 4, !tbaa !21
  br label %59

59:                                               ; preds = %71, %46
  %60 = load float, ptr %11, align 4, !tbaa !21
  %61 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 8
  %62 = load float, ptr %61, align 4, !tbaa !25
  %63 = fcmp olt float %60, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %76

65:                                               ; preds = %59
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %67 = load float, ptr %11, align 4, !tbaa !21
  %68 = call <2 x float> @_ZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEf(ptr noundef nonnull align 8 dereferenceable(104) %13, float noundef %67)
  store <2 x float> %68, ptr %12, align 4
  %69 = load float, ptr %9, align 4, !tbaa !21
  %70 = load i32, ptr %10, align 4, !tbaa !23
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %66, ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %69, i32 noundef %70, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %71

71:                                               ; preds = %65
  %72 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %13, i32 0, i32 4
  %73 = load float, ptr %72, align 4, !tbaa !20
  %74 = load float, ptr %11, align 4, !tbaa !21
  %75 = fadd float %74, %73
  store float %75, ptr %11, align 4, !tbaa !21
  br label %59, !llvm.loop !26

76:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %77

77:                                               ; preds = %76, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %78

78:                                               ; preds = %77, %21
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsLinkValidEv(ptr noundef nonnull align 8 dereferenceable(104)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsPathValidEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 align 2

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

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEf(ptr noundef nonnull align 8 dereferenceable(104), float noundef) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { "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 = { 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, !6, i64 40}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail13FlowAnimationE", !11, i64 0, !6, i64 32, !6, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !14, i64 60, !14, i64 68, !13, i64 76, !15, i64 80}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail9AnimationE", !6, i64 8, !12, i64 16, !13, i64 20, !13, i64 24}
!12 = !{!"_ZTSN3vox10NodeEditor6Detail9Animation5StateE", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!15 = !{!"_ZTSSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!10, !13, i64 56}
!20 = !{!10, !13, i64 52}
!21 = !{!13, !13, i64 0}
!22 = !{!11, !6, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!10, !13, i64 76}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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

%struct.ImVec2 = type { float, float }

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i32 noundef, float noundef) local_unnamed_addr #2 align 2

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

; 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 #2 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @fmodf(float noundef, float noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail13FlowAnimation4DrawEP10ImDrawList(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %struct.ImVec2, align 8
  %4 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail9Animation9IsPlayingEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  br i1 %4, label %5, label %.loopexit

5:                                                ; preds = %2
  %6 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsLinkValidEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  br i1 %6, label %7, label %.loopexit

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail6Object9IsVisibleEv(ptr noundef nonnull align 8 dereferenceable(17) %9)
  br i1 %10, label %11, label %.loopexit

11:                                               ; preds = %7
  %12 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsPathValidEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  br i1 %12, label %14, label %13

13:                                               ; preds = %11
  tail call void @_ZN3vox10NodeEditor6Detail13FlowAnimation10UpdatePathEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  br label %14

14:                                               ; preds = %13, %11
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load float, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %0, i64 52
  %18 = load float, ptr %17, align 4, !tbaa !19
  %19 = tail call float @fmodf(float noundef %16, float noundef %18) #7
  store float %19, ptr %15, align 8, !tbaa !18
  %20 = tail call noundef float @_ZNK3vox10NodeEditor6Detail9Animation11GetProgressEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %21 = fneg float %20
  %22 = tail call float @llvm.fmuladd.f32(float %21, float %20, float 1.000000e+00)
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %25 = tail call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %24, i32 noundef 14, float noundef %22)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  tail call void @_ZNK3vox10NodeEditor6Detail4Link4DrawEP10ImDrawListjf(ptr noundef nonnull align 8 dereferenceable(72) %26, ptr noundef %1, i32 noundef %25, float noundef 2.000000e+00)
  %27 = tail call noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsPathValidEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  br i1 %27, label %28, label %.loopexit

28:                                               ; preds = %14
  %29 = fsub float 1.000000e+00, %20
  %30 = tail call float @powf(float noundef %29, float noundef 0x3FD6666660000000) #7
  %31 = tail call float @llvm.fmuladd.f32(float %29, float 4.000000e+00, float 2.000000e+00)
  %32 = load ptr, ptr %23, align 8, !tbaa !20
  %33 = tail call noundef i32 @_ZNK3vox10NodeEditor6Detail13EditorContext8GetColorENS0_10StyleColorEf(ptr noundef nonnull align 8 dereferenceable(2040) %32, i32 noundef 15, float noundef %30)
  %34 = load float, ptr %15, align 8, !tbaa !18
  %35 = getelementptr inbounds i8, ptr %0, i64 76
  %36 = load float, ptr %35, align 4, !tbaa !21
  %37 = fcmp olt float %34, %36
  br i1 %37, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %28, %.lr.ph
  %.014 = phi float [ %40, %.lr.ph ], [ %34, %28 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %38 = call <2 x float> @_ZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEf(ptr noundef nonnull align 8 dereferenceable(104) %0, float noundef %.014)
  store <2 x float> %38, ptr %3, align 8
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %1, ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %31, i32 noundef %33, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %39 = load float, ptr %17, align 4, !tbaa !19
  %40 = fadd float %.014, %39
  %41 = load float, ptr %35, align 4, !tbaa !21
  %42 = fcmp olt float %40, %41
  br i1 %42, label %.lr.ph, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %.lr.ph, %28, %14, %2, %5, %7
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsLinkValidEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail13FlowAnimation11IsPathValidEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEf(ptr noundef nonnull align 8 dereferenceable(104), float noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #4 = { mustprogress nofree nounwind willreturn memory(write) "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 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 = { "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 = { 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 40}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail13FlowAnimationE", !7, i64 0, !8, i64 32, !8, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !13, i64 60, !13, i64 68, !12, i64 76, !14, i64 80}
!7 = !{!"_ZTSN3vox10NodeEditor6Detail9AnimationE", !8, i64 8, !11, i64 16, !12, i64 20, !12, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail9Animation5StateE", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!14 = !{!"_ZTSSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!18 = !{!6, !12, i64 56}
!19 = !{!6, !12, i64 52}
!20 = !{!7, !8, i64 8}
!21 = !{!6, !12, i64 76}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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