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

; 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 }
%struct.anon = type { float, float, float, float }
%"class.ik::EllipticCylinderJointLimits" = type { %"class.ik::JointLimits", %"class.mt::Interval", %"class.ik::Ellipse" }
%"class.ik::JointLimits" = type { ptr }
%"class.mt::Interval" = type { float, float }
%"class.ik::Ellipse" = type { float, float }

; 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2ik27EllipticCylinderJointLimits5boundERN2mt7Vector4INS1_4DualIfEEEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(32) %1) unnamed_addr #2 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 %"class.mt::Vector4", align 16
  %9 = 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
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #10
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %11)
  %13 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %14 = getelementptr inbounds %union.anon, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %16 = extractvalue { double, double } %12, 0
  store double %16, ptr %15, align 16
  %17 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %18 = extractvalue { double, double } %12, 1
  store double %18, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #10
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call { <2 x float>, float } @_ZN2mt11translationIfEENS_7Vector3IT_EERKNS_7Vector4INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %19)
  store { <2 x float>, float } %20, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %7, i64 12, i1 false)
  %21 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %22 = getelementptr inbounds %struct.anon, ptr %21, i32 0, i32 3
  %23 = load float, ptr %22, align 4, !tbaa !9
  %24 = call noundef zeroext i1 @_ZN2mt10isnegativeEf(float noundef %23)
  br i1 %24, label %25, label %34

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #10
  %26 = call { double, double } @_ZN2mtngERKNS_7Vector4IfEE(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %27 = getelementptr inbounds %"class.mt::Vector4", ptr %8, i32 0, i32 0
  %28 = getelementptr inbounds %union.anon, ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %30 = extractvalue { double, double } %26, 0
  store double %30, ptr %29, align 16
  %31 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %32 = extractvalue { double, double } %26, 1
  store double %32, ptr %31, align 8
  %33 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  br label %34

34:                                               ; preds = %25, %2
  %35 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %36 = getelementptr inbounds %struct.anon, ptr %35, i32 0, i32 0
  %37 = load float, ptr %36, align 16, !tbaa !9
  %38 = getelementptr inbounds %"class.ik::EllipticCylinderJointLimits", ptr %10, i32 0, i32 1
  %39 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %37, ptr noundef nonnull align 4 dereferenceable(8) %38)
  %40 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %41 = getelementptr inbounds %struct.anon, ptr %40, i32 0, i32 0
  store float %39, ptr %41, align 16, !tbaa !9
  %42 = getelementptr inbounds %"class.ik::EllipticCylinderJointLimits", ptr %10, i32 0, i32 2
  %43 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %44 = getelementptr inbounds %struct.anon, ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %46 = getelementptr inbounds %struct.anon, ptr %45, i32 0, i32 2
  call void @_ZNK2ik7Ellipse5clampERfS1_i(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %46, i32 noundef 50)
  %47 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %48 = getelementptr inbounds %struct.anon, ptr %47, i32 0, i32 0
  %49 = load float, ptr %48, align 16, !tbaa !9
  %50 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %51 = getelementptr inbounds %struct.anon, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 16, !tbaa !9
  %53 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %54 = getelementptr inbounds %struct.anon, ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %57 = getelementptr inbounds %struct.anon, ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fmul float %55, %58
  %60 = call float @llvm.fmuladd.f32(float %49, float %52, float %59)
  %61 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %62 = getelementptr inbounds %struct.anon, ptr %61, i32 0, i32 2
  %63 = load float, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %65 = getelementptr inbounds %struct.anon, ptr %64, i32 0, i32 2
  %66 = load float, ptr %65, align 8, !tbaa !9
  %67 = call float @llvm.fmuladd.f32(float %63, float %66, float %60)
  %68 = fsub float 1.000000e+00, %67
  %69 = call noundef float @_ZN2mt3maxIfEET_S1_S1_(float noundef 0.000000e+00, float noundef %68)
  %70 = call noundef float @_ZSt4sqrtf(float noundef %69)
  %71 = getelementptr inbounds %"class.mt::Vector4", ptr %5, i32 0, i32 0
  %72 = getelementptr inbounds %struct.anon, ptr %71, i32 0, i32 3
  store float %70, ptr %72, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #10
  call void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector4.0") align 4 %9, ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %9, i64 32, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #10
  ret void
}

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

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

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

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

; 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)) #6 align 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)) #3

declare void @_ZNK2ik7Ellipse5clampERfS1_i(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN2mt3maxIfEET_S1_S1_(float noundef, float noundef) #6

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { "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 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11, i64 16, i64 4, !11, i64 20, i64 4, !11, i64 24, i64 4, !11, i64 28, i64 4, !11}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2ik27EllipticCylinderJointLimits5boundERN2mt7Vector4INS1_4DualIfEEEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(32) %1) unnamed_addr #2 align 2 {
  %3 = alloca %"class.mt::Vector4", align 16
  %4 = alloca %"class.mt::Vector3", align 8
  %5 = alloca %"class.mt::Vector4", align 16
  %6 = alloca %"class.mt::Vector4.0", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  %7 = tail call { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %1)
  %8 = extractvalue { double, double } %7, 0
  store double %8, ptr %3, align 16
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  %10 = extractvalue { double, double } %7, 1
  store double %10, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #10
  %11 = 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 } %11, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %11, 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
  %12 = bitcast double %10 to i64
  %13 = lshr i64 %12, 32
  %14 = trunc nuw i64 %13 to i32
  %15 = bitcast i32 %14 to float
  %16 = tail call noundef zeroext i1 @_ZN2mt10isnegativeEf(float noundef %15)
  %17 = bitcast double %8 to i64
  %18 = trunc i64 %17 to i32
  %19 = bitcast i32 %18 to float
  br i1 %16, label %20, label %26

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %21 = call { double, double } @_ZN2mtngERKNS_7Vector4IfEE(ptr noundef nonnull align 16 dereferenceable(16) %3)
  %22 = extractvalue { double, double } %21, 0
  store double %22, ptr %5, align 16
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  %24 = extractvalue { double, double } %21, 1
  store double %24, ptr %23, align 8
  %25 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN2mt7Vector4IfEaSERKS1_(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  %.pre = load float, ptr %3, align 16, !tbaa !5
  br label %26

26:                                               ; preds = %20, %2
  %27 = phi float [ %.pre, %20 ], [ %19, %2 ]
  %28 = getelementptr inbounds i8, ptr %3, i64 12
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = call noundef float @_ZN2mt5clampIfEET_S1_RKNS_8IntervalIS1_EE(float noundef %27, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store float %30, ptr %3, align 16, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = getelementptr inbounds i8, ptr %3, i64 4
  call void @_ZNK2ik7Ellipse5clampERfS1_i(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 50)
  %33 = load float, ptr %3, align 16, !tbaa !5
  %34 = load float, ptr %32, align 4, !tbaa !5
  %35 = fmul float %34, %34
  %36 = call float @llvm.fmuladd.f32(float %33, float %33, float %35)
  %37 = load float, ptr %9, align 8, !tbaa !5
  %38 = call float @llvm.fmuladd.f32(float %37, float %37, float %36)
  %39 = fsub float 1.000000e+00, %38
  %40 = call noundef float @_ZN2mt3maxIfEET_S1_S1_(float noundef 0.000000e+00, float noundef %39)
  %41 = call noundef float @_ZSt4sqrtf(float noundef %40)
  store float %41, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #10
  call void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.0") align 4 %6, 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) %6, i64 32, i1 false), !tbaa.struct !8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  ret void
}

; 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 #3

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

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

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

; 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 #6 align 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 #3

declare void @_ZNK2ik7Ellipse5clampERfS1_i(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN2mt3maxIfEET_S1_S1_(float noundef, float noundef) local_unnamed_addr #6

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

; 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 #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { "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 = { 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 #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{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}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !6, i64 0}


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