; LLVM IR from dtecta/motion-toolkit :: curve/CardinalSplineCurve.ll (ZNK2cv19CardinalSplineCurve4evalEf)

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

%"class.mt::Vector3" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Dual" = type { float, float }
%"class.mt::Vector3.0" = type { float, float, float }
%"class.cv::SplineCurve" = type { %"class.cv::Curve", %"class.std::vector" }
%"class.cv::Curve" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<mt::Vector3<float>, std::allocator<mt::Vector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<mt::Vector3<float>, std::allocator<mt::Vector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<mt::Vector3<float>, std::allocator<mt::Vector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mt::Vector3<float>, std::allocator<mt::Vector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.cv::CardinalSplineCurve" = type <{ %"class.cv::SplineCurve", float, [4 x i8] }>

@.str = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2cv19CardinalSplineCurve4evalEf(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4 %0, ptr noundef nonnull align 8 dereferenceable(36) %1, float noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.mt::Dual", align 4
  %11 = alloca %"class.mt::Dual", align 4
  %12 = alloca %"class.mt::Dual", align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.mt::Vector3.0", align 4
  %15 = alloca %"class.mt::Vector3.0", align 4
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %"class.mt::Vector3.0", align 4
  %19 = alloca %"class.mt::Vector3.0", align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca %"class.mt::Vector3.0", align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %"class.mt::Vector3", align 4
  %25 = alloca %"class.mt::Vector3", align 4
  %26 = alloca %"class.mt::Vector3", align 4
  %27 = alloca %"class.mt::Vector3.0", align 4
  %28 = alloca %"class.mt::Vector3.0", align 4
  %29 = alloca %"class.mt::Vector3.0", align 4
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca %"class.mt::Dual", align 4
  %34 = alloca %"class.mt::Vector3", align 4
  %35 = alloca %"class.mt::Vector3.0", align 4
  %36 = alloca %"class.mt::Vector3.0", align 4
  %37 = alloca %"class.mt::Vector3.0", align 4
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca %"class.mt::Vector3.0", align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca { <2 x float>, float }, align 8
  %42 = alloca { <2 x float>, float }, align 8
  %43 = alloca %"class.mt::Dual", align 4
  %44 = alloca %"class.mt::Vector3", align 4
  %45 = alloca %"class.mt::Dual", align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  store float %2, ptr %5, align 4, !tbaa !9
  %46 = load ptr, ptr %4, align 8
  %47 = load float, ptr %5, align 4, !tbaa !9
  %48 = fcmp ole float 0.000000e+00, %47
  br i1 %48, label %49, label %52

49:                                               ; preds = %3
  %50 = load float, ptr %5, align 4, !tbaa !9
  %51 = fcmp ole float %50, 1.000000e+00
  br label %52

52:                                               ; preds = %49, %3
  %53 = phi i1 [ false, %3 ], [ %51, %49 ]
  br i1 %53, label %54, label %55

54:                                               ; preds = %52
  br label %57

55:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 16, ptr noundef @__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf) #9
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  %58 = getelementptr inbounds %"class.cv::SplineCurve", ptr %46, i32 0, i32 1
  %59 = call noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #10
  %60 = sub i64 %59, 3
  %61 = uitofp i64 %60 to float
  store float %61, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %62 = load float, ptr %5, align 4, !tbaa !9
  %63 = load float, ptr %6, align 4, !tbaa !9
  %64 = fmul float %62, %63
  %65 = call noundef float @_ZSt4modffPf(float noundef %64, ptr noundef %7)
  store float %65, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  %66 = load float, ptr %7, align 4, !tbaa !9
  %67 = fptosi float %66 to i32
  store i32 %67, ptr %9, align 4, !tbaa !11
  %68 = load i32, ptr %9, align 4, !tbaa !11
  %69 = add nsw i32 %68, 3
  %70 = getelementptr inbounds %"class.cv::SplineCurve", ptr %46, i32 0, i32 1
  %71 = call noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #10
  %72 = trunc i64 %71 to i32
  %73 = icmp eq i32 %69, %72
  br i1 %73, label %74, label %79

74:                                               ; preds = %57
  %75 = load float, ptr %8, align 4, !tbaa !9
  %76 = fadd float %75, 1.000000e+00
  store float %76, ptr %8, align 4, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !11
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %9, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %74, %57
  %80 = load float, ptr %8, align 4, !tbaa !9
  %81 = fcmp ole float 0.000000e+00, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load float, ptr %8, align 4, !tbaa !9
  %84 = fcmp ole float %83, 1.000000e+00
  br label %85

85:                                               ; preds = %82, %79
  %86 = phi i1 [ false, %79 ], [ %84, %82 ]
  br i1 %86, label %87, label %88

87:                                               ; preds = %85
  br label %90

88:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 29, ptr noundef @__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf) #9
  unreachable

89:                                               ; No predecessors!
  br label %90

90:                                               ; preds = %89, %87
  %91 = load i32, ptr %9, align 4, !tbaa !11
  %92 = icmp sle i32 0, %91
  br i1 %92, label %93, label %100

93:                                               ; preds = %90
  %94 = load i32, ptr %9, align 4, !tbaa !11
  %95 = add nsw i32 %94, 3
  %96 = getelementptr inbounds %"class.cv::SplineCurve", ptr %46, i32 0, i32 1
  %97 = call noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #10
  %98 = trunc i64 %97 to i32
  %99 = icmp slt i32 %95, %98
  br label %100

100:                                              ; preds = %93, %90
  %101 = phi i1 [ false, %90 ], [ %99, %93 ]
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  br label %105

103:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 30, ptr noundef @__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf) #9
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %106 = load float, ptr %8, align 4, !tbaa !9
  call void @_ZN2mt4DualIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %106, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %107 = call <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %107, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %108 = call <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %108, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %109 = getelementptr inbounds %"class.cv::SplineCurve", ptr %46, i32 0, i32 1
  %110 = load i32, ptr %9, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #10
  store ptr %112, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #10
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.mt::Vector3.0", ptr %113, i64 2
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.mt::Vector3.0", ptr %115, i64 0
  %117 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %114, ptr noundef nonnull align 4 dereferenceable(12) %116)
  store { <2 x float>, float } %117, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 12, i1 false)
  %118 = getelementptr inbounds %"class.cv::CardinalSplineCurve", ptr %46, i32 0, i32 1
  %119 = load float, ptr %118, align 8, !tbaa !13
  %120 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EES4_(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %119)
  store { <2 x float>, float } %120, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #10
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.mt::Vector3.0", ptr %121, i64 3
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.mt::Vector3.0", ptr %123, i64 1
  %125 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %122, ptr noundef nonnull align 4 dereferenceable(12) %124)
  store { <2 x float>, float } %125, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  %126 = getelementptr inbounds %"class.cv::CardinalSplineCurve", ptr %46, i32 0, i32 1
  %127 = load float, ptr %126, align 8, !tbaa !13
  %128 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EES4_(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef %127)
  store { <2 x float>, float } %128, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #10
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.mt::Vector3.0", ptr %129, i64 2
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.mt::Vector3.0", ptr %131, i64 1
  %133 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %130, ptr noundef nonnull align 4 dereferenceable(12) %132)
  store { <2 x float>, float } %133, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #10
  %134 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef -2.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %22)
  store { <2 x float>, float } %134, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %30, i64 12, i1 false)
  %135 = call { <2 x float>, float } @_ZN2mtplIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %14)
  store { <2 x float>, float } %135, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 8 %31, i64 12, i1 false)
  %136 = call { <2 x float>, float } @_ZN2mtplIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %18)
  store { <2 x float>, float } %136, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !21
  %137 = load <2 x float>, ptr %33, align 4
  call void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %27, <2 x float> %137)
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #10
  %138 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef 3.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %22)
  store { <2 x float>, float } %138, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %38, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #10
  %139 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef 2.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %14)
  store { <2 x float>, float } %139, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %40, i64 12, i1 false)
  %140 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %39)
  store { <2 x float>, float } %140, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %41, i64 12, i1 false)
  %141 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %18)
  store { <2 x float>, float } %141, ptr %42, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %42, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !21
  %142 = load <2 x float>, ptr %43, align 4
  call void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %35, <2 x float> %142)
  call void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(24) %26, ptr noundef nonnull align 4 dereferenceable(24) %34)
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !21
  %143 = load <2 x float>, ptr %45, align 4
  call void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %44, ptr noundef nonnull align 4 dereferenceable(12) %14, <2 x float> %143)
  call void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(24) %44)
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = getelementptr inbounds %"class.mt::Vector3.0", ptr %144, i64 1
  call void @_ZN2mtplINS_4DualIfEEfEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %0, ptr noundef nonnull align 4 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(12) %145)
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4modffPf(float noundef, ptr noundef) #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EES4_(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

; 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) #8

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtplINS_4DualIfEEfEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), <2 x float>) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtplIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 32}
!14 = !{!"_ZTSN2cv19CardinalSplineCurveE", !15, i64 0, !10, i64 32}
!15 = !{!"_ZTSN2cv11SplineCurveE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN2cv5CurveE"}
!17 = !{!"_ZTSSt6vectorIN2mt7Vector3IfEESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN2mt7Vector3IfEESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN2mt7Vector3IfEESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN2mt7Vector3IfEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}


; 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.mt::Vector3" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Dual" = type { float, float }
%"class.mt::Vector3.0" = type { float, float, float }

@.str = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2cv19CardinalSplineCurve4evalEf(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4 %0, ptr noundef nonnull align 8 dereferenceable(36) %1, float noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca float, align 4
  %5 = alloca %"class.mt::Dual", align 8
  %6 = alloca %"class.mt::Dual", align 8
  %7 = alloca %"class.mt::Vector3.0", align 8
  %8 = alloca %"class.mt::Vector3.0", align 8
  %9 = alloca %"class.mt::Vector3.0", align 8
  %10 = alloca %"class.mt::Vector3.0", align 8
  %11 = alloca %"class.mt::Vector3.0", align 8
  %12 = alloca %"class.mt::Vector3", align 4
  %13 = alloca %"class.mt::Vector3", align 4
  %14 = alloca %"class.mt::Vector3", align 4
  %15 = alloca %"class.mt::Vector3.0", align 8
  %16 = alloca %"class.mt::Vector3.0", align 8
  %17 = alloca %"class.mt::Vector3.0", align 8
  %18 = alloca %"class.mt::Vector3", align 4
  %19 = alloca %"class.mt::Vector3.0", align 8
  %20 = alloca %"class.mt::Vector3.0", align 8
  %21 = alloca %"class.mt::Vector3.0", align 8
  %22 = alloca %"class.mt::Vector3.0", align 8
  %23 = alloca %"class.mt::Vector3", align 4
  %24 = fcmp oge float %2, 0.000000e+00
  %25 = fcmp ole float %2, 1.000000e+00
  %26 = and i1 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 16, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf) #8
  unreachable

28:                                               ; preds = %3
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = tail call noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  %31 = add i64 %30, -3
  %32 = uitofp i64 %31 to float
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %33 = fmul float %32, %2
  %34 = call noundef float @_ZSt4modffPf(float noundef %33, ptr noundef nonnull %4)
  %35 = load float, ptr %4, align 4, !tbaa !5
  %36 = fptosi float %35 to i32
  %37 = add nsw i32 %36, 3
  %38 = call noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  %39 = trunc i64 %38 to i32
  %40 = icmp eq i32 %37, %39
  %41 = fadd float %34, 1.000000e+00
  %42 = sext i1 %40 to i32
  %.068 = add nsw i32 %42, %36
  %.0 = select i1 %40, float %41, float %34
  %43 = fcmp oge float %.0, 0.000000e+00
  %44 = fcmp ole float %.0, 1.000000e+00
  %45 = and i1 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %28
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 29, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf) #8
  unreachable

47:                                               ; preds = %28
  %48 = icmp sgt i32 %.068, -1
  br i1 %48, label %49, label %.critedge

49:                                               ; preds = %47
  %50 = add nuw nsw i32 %.068, 3
  %51 = call noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  %52 = trunc i64 %51 to i32
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %54, label %.critedge

.critedge:                                        ; preds = %47, %49
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 30, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK2cv19CardinalSplineCurve4evalEf) #8
  unreachable

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN2mt4DualIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %.0, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %55 = call <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %55, ptr %6, align 8
  %56 = call <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %57 = zext nneg i32 %.068 to i64
  %58 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %57) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #9
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %58)
  %.fca.0.extract44 = extractvalue { <2 x float>, float } %60, 0
  %.fca.1.extract45 = extractvalue { <2 x float>, float } %60, 1
  store <2 x float> %.fca.0.extract44, ptr %8, align 8
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract45, ptr %.sroa.247.0..sroa_idx, align 8
  %61 = getelementptr inbounds i8, ptr %1, i64 32
  %62 = load float, ptr %61, align 8, !tbaa !9
  %63 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EES4_(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %62)
  %.fca.0.extract40 = extractvalue { <2 x float>, float } %63, 0
  %.fca.1.extract41 = extractvalue { <2 x float>, float } %63, 1
  store <2 x float> %.fca.0.extract40, ptr %7, align 8
  %.sroa.243.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract41, ptr %.sroa.243.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #9
  %64 = getelementptr inbounds i8, ptr %58, i64 36
  %65 = getelementptr inbounds i8, ptr %58, i64 12
  %66 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %65)
  %.fca.0.extract36 = extractvalue { <2 x float>, float } %66, 0
  %.fca.1.extract37 = extractvalue { <2 x float>, float } %66, 1
  store <2 x float> %.fca.0.extract36, ptr %10, align 8
  %.sroa.239.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store float %.fca.1.extract37, ptr %.sroa.239.0..sroa_idx, align 8
  %67 = load float, ptr %61, align 8, !tbaa !9
  %68 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EES4_(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef %67)
  %.fca.0.extract32 = extractvalue { <2 x float>, float } %68, 0
  %.fca.1.extract33 = extractvalue { <2 x float>, float } %68, 1
  store <2 x float> %.fca.0.extract32, ptr %9, align 8
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract33, ptr %.sroa.235.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #9
  %69 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %65)
  %.fca.0.extract28 = extractvalue { <2 x float>, float } %69, 0
  %.fca.1.extract29 = extractvalue { <2 x float>, float } %69, 1
  store <2 x float> %.fca.0.extract28, ptr %11, align 8
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store float %.fca.1.extract29, ptr %.sroa.231.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #9
  %70 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef -2.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %.fca.0.extract24 = extractvalue { <2 x float>, float } %70, 0
  %.fca.1.extract25 = extractvalue { <2 x float>, float } %70, 1
  store <2 x float> %.fca.0.extract24, ptr %17, align 8
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  store float %.fca.1.extract25, ptr %.sroa.227.0..sroa_idx, align 8
  %71 = call { <2 x float>, float } @_ZN2mtplIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %.fca.0.extract20 = extractvalue { <2 x float>, float } %71, 0
  %.fca.1.extract21 = extractvalue { <2 x float>, float } %71, 1
  store <2 x float> %.fca.0.extract20, ptr %16, align 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store float %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  %72 = call { <2 x float>, float } @_ZN2mtplIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %72, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %72, 1
  store <2 x float> %.fca.0.extract16, ptr %15, align 8
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store float %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  call void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %15, <2 x float> %56)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #9
  %73 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef 3.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %.fca.0.extract11 = extractvalue { <2 x float>, float } %73, 0
  %.fca.1.extract12 = extractvalue { <2 x float>, float } %73, 1
  store <2 x float> %.fca.0.extract11, ptr %21, align 8
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store float %.fca.1.extract12, ptr %.sroa.214.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #9
  %74 = call { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef 2.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %.fca.0.extract7 = extractvalue { <2 x float>, float } %74, 0
  %.fca.1.extract8 = extractvalue { <2 x float>, float } %74, 1
  store <2 x float> %.fca.0.extract7, ptr %22, align 8
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store float %.fca.1.extract8, ptr %.sroa.210.0..sroa_idx, align 8
  %75 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %.fca.0.extract3 = extractvalue { <2 x float>, float } %75, 0
  %.fca.1.extract4 = extractvalue { <2 x float>, float } %75, 1
  store <2 x float> %.fca.0.extract3, ptr %20, align 8
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store float %.fca.1.extract4, ptr %.sroa.26.0..sroa_idx, align 8
  %76 = call { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %.fca.0.extract = extractvalue { <2 x float>, float } %76, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %76, 1
  store <2 x float> %.fca.0.extract, ptr %19, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %.sroa.01.0.copyload = load <2 x float>, ptr %6, align 8
  call void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %19, <2 x float> %.sroa.01.0.copyload)
  call void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(24) %18)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #9
  %.sroa.0.0.copyload = load <2 x float>, ptr %5, align 8
  call void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %7, <2 x float> %.sroa.0.0.copyload)
  call void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %23)
  call void @_ZN2mtplINS_4DualIfEEfEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector3") align 4 %0, ptr noundef nonnull align 4 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(12) %65)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN2mt7Vector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4modffPf(float noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EES4_(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtmiIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtplINS_4DualIfEEfEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtmlIfNS_4DualIfEEEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), <2 x float>) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtplIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2mtmlIffEENS_7Vector3INS_7PromoteIT_T0_E2RTEEES3_RKNS1_IS4_EE(float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

attributes #0 = { 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 #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { alwaysinline 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 = { alwaysinline 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 #7 = { alwaysinline 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 #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTSN2cv19CardinalSplineCurveE", !11, i64 0, !6, i64 32}
!11 = !{!"_ZTSN2cv11SplineCurveE", !12, i64 0, !13, i64 8}
!12 = !{!"_ZTSN2cv5CurveE"}
!13 = !{!"_ZTSSt6vectorIN2mt7Vector3IfEESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN2mt7Vector3IfEESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN2mt7Vector3IfEESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN2mt7Vector3IfEESaIS2_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !7, i64 0}


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