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

; 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 }
%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%class.anon.132 = type { 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::FlowAnimation::CurvePoint" = type { float, %struct.ImVec2 }

; 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
define dso_local <2 x float> @_ZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEf(ptr noundef nonnull align 8 dereferenceable(104) %0, float noundef %1) #3 align 2 {
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %9 = alloca %class.anon.132, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %22 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %21, i32 0, i32 9
  %23 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %7, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  %25 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %21, i32 0, i32 9
  %26 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %8, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  %28 = getelementptr inbounds %class.anon.132, ptr %9, i32 0, i32 0
  %29 = load float, ptr %5, align 4, !tbaa !9
  store float %29, ptr %28, align 4, !tbaa !11
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %7, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %8, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8
  %34 = getelementptr inbounds %class.anon.132, ptr %9, i32 0, i32 0
  %35 = load float, ptr %34, align 4
  %36 = call ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS6_SaIS6_EEEEZNS5_10SamplePathEfE3$_0ET_SD_SD_T0_"(ptr %31, ptr %33, float %35)
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %6, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %38 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %21, i32 0, i32 9
  %39 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %10, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br i1 %41, label %42, label %48

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %43 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %21, i32 0, i32 9
  %44 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %12, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 1) #7
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %11, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %60

48:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %49 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %21, i32 0, i32 9
  %50 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %13, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br i1 %52, label %53, label %59

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %54 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation", ptr %21, i32 0, i32 9
  %55 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #7
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %15, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  %57 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef 1) #7
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.131", ptr %14, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %59

59:                                               ; preds = %53, %48
  br label %60

60:                                               ; preds = %59, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef -1) #7
  store ptr %61, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  store ptr %62, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %63 = load float, ptr %5, align 4, !tbaa !9
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation::CurvePoint", ptr %64, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !14
  %67 = fsub float %63, %66
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation::CurvePoint", ptr %68, i32 0, i32 0
  %70 = load float, ptr %69, align 4, !tbaa !14
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation::CurvePoint", ptr %71, i32 0, i32 0
  %73 = load float, ptr %72, align 4, !tbaa !14
  %74 = fsub float %70, %73
  %75 = fdiv float %67, %74
  store float %75, ptr %18, align 4, !tbaa !9
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation::CurvePoint", ptr %76, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation::CurvePoint", ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::FlowAnimation::CurvePoint", ptr %80, i32 0, i32 1
  %82 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(8) %81)
  store <2 x float> %82, ptr %20, align 4
  %83 = load float, ptr %18, align 4, !tbaa !9
  %84 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %83)
  store <2 x float> %84, ptr %19, align 4
  %85 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %85, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %86 = load <2 x float>, ptr %3, align 4
  ret <2 x float> %86
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS6_SaIS6_EEEEZNS5_10SamplePathEfE3$_0ET_SD_SD_T0_"(ptr, ptr, float) #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEixEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 = { 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 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 = { 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEfE3$_0", !10, i64 0}
!13 = !{i64 0, i64 8, !5}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTSN3vox10NodeEditor6Detail13FlowAnimation10CurvePointE", !10, i64 0, !16, i64 4}
!16 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}


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

%"class.__gnu_cxx::__normal_iterator.131" = type { ptr }
%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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local <2 x float> @_ZN3vox10NodeEditor6Detail13FlowAnimation10SamplePathEf(ptr noundef nonnull align 8 dereferenceable(104) %0, float noundef %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.131", align 8
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = tail call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %12 = tail call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %13 = tail call ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS6_SaIS6_EEEEZNS5_10SamplePathEfE3$_0ET_SD_SD_T0_"(ptr %11, ptr %12, float %1)
  store ptr %13, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %14 = tail call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %14, ptr %4, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %15, label %16, label %19

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %17 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %17, ptr %5, align 8
  %18 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 1) #6
  store ptr %18, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %25

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %20 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %20, ptr %6, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br i1 %21, label %22, label %25

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %23 = call ptr @_ZNSt6vectorIN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %23, ptr %7, align 8
  %24 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 1) #6
  store ptr %24, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %25

25:                                               ; preds = %19, %22, %16
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEixEl(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef -1) #6
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %28 = load float, ptr %26, align 4, !tbaa !9
  %29 = fsub float %1, %28
  %30 = load float, ptr %27, align 4, !tbaa !9
  %31 = fsub float %30, %28
  %32 = fdiv float %29, %31
  %33 = getelementptr inbounds i8, ptr %26, i64 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %34 = getelementptr inbounds i8, ptr %27, i64 4
  %35 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %33)
  store <2 x float> %35, ptr %9, align 8
  %36 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %32)
  store <2 x float> %36, ptr %8, align 8
  %37 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret <2 x float> %37
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS6_SaIS6_EEEEZNS5_10SamplePathEfE3$_0ET_SD_SD_T0_"(ptr, ptr, float) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN3vox10NodeEditor6Detail13FlowAnimation10CurvePointESt6vectorIS5_SaIS5_EEEixEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { 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 #3 = { 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 #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, !11, i64 0}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail13FlowAnimation10CurvePointE", !11, i64 0, !12, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}


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