; LLVM IR from dtecta/motion-toolkit :: jointlimits (EulerAnglesJointLimits)

; 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::Vector4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.mt::Vector3" = type { float, float, float }
%"class.mt::Vector4.0" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Dual" = type { float, float }
%"class.ik::EulerAnglesJointLimits" = type { %"class.ik::JointLimits", [3 x %"class.mt::Interval"] }
%"class.ik::JointLimits" = type { ptr }
%"class.mt::Interval" = type { float, float }
%struct.anon = type { float, float, float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2ik22EulerAnglesJointLimits5boundERN2mt7Vector4INS1_4DualIfEEEE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(32) %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.mt::Vector4", align 16
  %6 = alloca %"class.mt::Vector3", align 4
  %7 = alloca { <2 x float>, float }, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %"class.mt::Vector4", align 16
  %12 = alloca %"class.mt::Vector4", align 16
  %13 = alloca %"class.mt::Vector4.0", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %15)
  %17 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %18 = getelementptr inbounds %union.anon, ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %20 = extractvalue { double, double } %16, 0
  store double %20, ptr %19, align 16
  %21 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %22 = extractvalue { double, double } %16, 1
  store double %22, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #7
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call { <2 x float>, float } @_ZN2mt11translationIfEENS_7Vector3IT_EERKNS_7Vector4INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %23)
  store { <2 x float>, float } %24, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %7, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @_ZN2mt7toEulerIfEEvRT_S2_S2_RKNS_7Vector4IS1_EE(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 16 dereferenceable(16) %5)
  %25 = load float, ptr %8, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.ik::EulerAnglesJointLimits", ptr %14, i32 0, i32 1
  %27 = getelementptr inbounds [3 x %"class.mt::Interval"], ptr %26, i64 0, i64 1
  %28 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %25, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store float %28, ptr %8, align 4, !tbaa !9
  %29 = load float, ptr %9, align 4, !tbaa !9
  %30 = getelementptr inbounds %"class.ik::EulerAnglesJointLimits", ptr %14, i32 0, i32 1
  %31 = getelementptr inbounds [3 x %"class.mt::Interval"], ptr %30, i64 0, i64 0
  %32 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %29, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store float %32, ptr %9, align 4, !tbaa !9
  %33 = load float, ptr %10, align 4, !tbaa !9
  %34 = getelementptr inbounds %"class.ik::EulerAnglesJointLimits", ptr %14, i32 0, i32 1
  %35 = getelementptr inbounds [3 x %"class.mt::Interval"], ptr %34, i64 0, i64 2
  %36 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %33, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store float %36, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %37 = load float, ptr %8, align 4, !tbaa !9
  %38 = load float, ptr %9, align 4, !tbaa !9
  %39 = load float, ptr %10, align 4, !tbaa !9
  %40 = call { double, double } @_ZN2mt9fromEulerIfEENS_7Vector4IT_EES2_S2_S2_(float noundef %37, float noundef %38, float noundef %39)
  %41 = getelementptr inbounds %"class.mt::Vector4", ptr %11, i32 0, i32 0
  %42 = getelementptr inbounds %union.anon, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %44 = extractvalue { double, double } %40, 0
  store double %44, ptr %43, align 16
  %45 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %46 = extractvalue { double, double } %40, 1
  store double %46, ptr %45, align 8
  %47 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  %48 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %49 = getelementptr inbounds %struct.anon, ptr %48, i32 0, i32 3
  %50 = load float, ptr %49, align 4, !tbaa !11
  %51 = call noundef zeroext i1 @_ZN2mt10isnegativeEf(float noundef %50)
  br i1 %51, label %52, label %61

52:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %53 = call { double, double } @_ZN2mtngERKNS_7Vector4IfEE(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %54 = getelementptr inbounds %"class.mt::Vector4", ptr %12, i32 0, i32 0
  %55 = getelementptr inbounds %union.anon, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %57 = extractvalue { double, double } %53, 0
  store double %57, ptr %56, align 16
  %58 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %59 = extractvalue { double, double } %53, 1
  store double %59, ptr %58, align 8
  %60 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %61

61:                                               ; preds = %52, %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector4.0") align 4 %13, ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 4 %13, i64 32, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  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
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  ret void
}

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32)) #2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mt7toEulerIfEEvRT_S2_S2_RKNS_7Vector4IS1_EE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16)) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN2mt9fromEulerIfEENS_7Vector4IT_EES2_S2_S2_(float noundef, float noundef, float noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2mt10isnegativeEf(float noundef) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN2mtngERKNS_7Vector4IfEE(ptr noundef nonnull align 16 dereferenceable(16)) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector4.0") align 4, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) #2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"="128" "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 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, 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::Vector4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.mt::Vector3" = type { float, float, float }
%"class.mt::Vector4.0" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Dual" = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2ik22EulerAnglesJointLimits5boundERN2mt7Vector4INS1_4DualIfEEEE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(32) %1) unnamed_addr #0 align 2 {
  %3 = alloca %"class.mt::Vector4", align 16
  %4 = alloca %"class.mt::Vector3", align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %"class.mt::Vector4", align 16
  %9 = alloca %"class.mt::Vector4", align 16
  %10 = alloca %"class.mt::Vector4.0", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %11 = tail call { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %1)
  %12 = extractvalue { double, double } %11, 0
  store double %12, ptr %3, align 16
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  %14 = extractvalue { double, double } %11, 1
  store double %14, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #7
  %15 = tail call { <2 x float>, float } @_ZN2mt11translationIfEENS_7Vector3IT_EERKNS_7Vector4INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %15, 1
  store <2 x float> %.fca.0.extract, ptr %4, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @_ZN2mt7toEulerIfEEvRT_S2_S2_RKNS_7Vector4IS1_EE(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 16 dereferenceable(16) %3)
  %16 = load float, ptr %5, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %16, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store float %19, ptr %5, align 4, !tbaa !5
  %20 = load float, ptr %6, align 4, !tbaa !5
  %21 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %20, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store float %21, ptr %6, align 4, !tbaa !5
  %22 = load float, ptr %7, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store float %24, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %25 = load float, ptr %5, align 4, !tbaa !5
  %26 = load float, ptr %6, align 4, !tbaa !5
  %27 = call { double, double } @_ZN2mt9fromEulerIfEENS_7Vector4IT_EES2_S2_S2_(float noundef %25, float noundef %26, float noundef %24)
  %28 = extractvalue { double, double } %27, 0
  store double %28, ptr %8, align 16
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  %30 = extractvalue { double, double } %27, 1
  store double %30, ptr %29, align 8
  %31 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %32 = getelementptr inbounds i8, ptr %3, i64 12
  %33 = load float, ptr %32, align 4, !tbaa !9
  %34 = call noundef zeroext i1 @_ZN2mt10isnegativeEf(float noundef %33)
  br i1 %34, label %35, label %41

35:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %36 = call { double, double } @_ZN2mtngERKNS_7Vector4IfEE(ptr noundef nonnull align 16 dereferenceable(16) %3)
  %37 = extractvalue { double, double } %36, 0
  store double %37, ptr %9, align 16
  %38 = getelementptr inbounds i8, ptr %9, i64 8
  %39 = extractvalue { double, double } %36, 1
  store double %39, ptr %38, align 8
  %40 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %41

41:                                               ; preds = %35, %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.0") align 4 %10, ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(32) %10, i64 32, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  ret void
}

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: mustprogress 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) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mt7toEulerIfEEvRT_S2_S2_RKNS_7Vector4IS1_EE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN2mt9fromEulerIfEENS_7Vector4IT_EES2_S2_S2_(float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN2mt10isnegativeEf(float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN2mtngERKNS_7Vector4IfEE(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector4.0") align 4, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"="128" "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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5, i64 24, i64 4, !5, i64 28, i64 4, !5}


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