; LLVM IR from dtecta/motion-toolkit :: test/moto/DualNumberTests.ll (ZN35DualNumber_VelocityIntegration_Test8TestBodyEv)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.mt::Vector4.5" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Dual" = type { float, float }
%"class.mt::Vector3.2" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Vector3" = type { float, float, float }
%"class.mt::Vector4" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"struct.mt::Identity" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; 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 @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector4.5") align 4, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) #5

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector4INS_4DualIT1_EEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(32)) #5

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mt7Vector4IfEC2ENS_8IdentityE(ptr noundef nonnull align 16 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN35DualNumber_VelocityIntegration_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(16) %0) unnamed_addr #8 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.mt::Vector3", align 4
  %4 = alloca %"class.mt::Vector3", align 4
  %5 = alloca %"class.mt::Vector3.2", align 4
  %6 = alloca %"class.mt::Vector4.5", align 4
  %7 = alloca %"class.mt::Vector4", align 16
  %8 = alloca %"struct.mt::Identity", align 1
  %9 = alloca %"class.mt::Vector3", align 4
  %10 = alloca %"class.mt::Vector4.5", align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.mt::Dual", align 4
  %13 = alloca %"class.mt::Dual", align 4
  %14 = alloca %"class.mt::Dual", align 4
  %15 = alloca %"class.mt::Vector4", align 16
  %16 = alloca %"class.mt::Vector3", align 4
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %"class.mt::Vector3.2", align 4
  %19 = alloca %"class.mt::Vector4.5", align 4
  %20 = alloca %"class.mt::Vector4.5", align 4
  %21 = alloca %"class.mt::Vector4.5", align 4
  %22 = alloca %"class.mt::Vector4.5", align 4
  %23 = alloca %"class.mt::Vector4.5", align 4
  %24 = alloca %"class.mt::Vector4.5", align 4
  %25 = alloca %"class.mt::Vector4.5", align 4
  %26 = alloca %"class.mt::Vector3.2", align 4
  %27 = alloca %"class.mt::Dual", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #10
  call void @_ZN2mt7Vector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #10
  call void @_ZN2mt7Vector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #10
  call void @_ZN2mt8makeDualIfEENS_7Vector3INS_4DualIT_EEEERKNS1_IS3_EES8_(ptr dead_on_unwind writable sret(%"class.mt::Vector3.2") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #10
  call void @_ZN2mt7Vector4IfEC2ENS_8IdentityE(ptr noundef nonnull align 16 dereferenceable(16) %7)
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #10
  call void @_ZN2mt7Vector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %6, ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %6, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %29

29:                                               ; preds = %55, %1
  %30 = load i32, ptr %11, align 4, !tbaa !12
  %31 = icmp ne i32 %30, 100
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %58

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %34 = getelementptr inbounds %"class.mt::Vector4.5", ptr %6, i32 0, i32 3
  %35 = call <2 x float> @_ZN2mt4acosIfEENS_4DualIT_EERKS3_(ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %35, ptr %13, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  call void @_ZN2mt4DualIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 2.000000e+00, float noundef 0.000000e+00)
  %36 = call <2 x float> @_ZN2mtmlIffEENS_4DualINS_7PromoteIT_T0_E2RTEEERKNS1_IS3_EERKNS1_IS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %36, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.27)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector4INS_4DualIT1_EEEE(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(32) %6)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.28)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  %40 = call { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %6)
  %41 = getelementptr inbounds %"class.mt::Vector4", ptr %15, i32 0, i32 0
  %42 = getelementptr inbounds %union.anon.3, 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 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector4IT1_EE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 16 dereferenceable(16) %15)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef @.str.29)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #10
  %49 = call { <2 x float>, float } @_ZN2mt11translationIfEENS_7Vector3IT_EERKNS_7Vector4INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %6)
  store { <2 x float>, float } %49, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %17, i64 12, i1 false)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector3IT1_EE(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.30)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_4DualIT1_EE(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #10
  call void @_ZNK2mt7Vector4INS_4DualIfEEEclIS2_EENS_7Vector3INS_7PromoteIS2_T_E2RTEEERKNS5_IS7_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector3.2") align 4 %18, ptr noundef nonnull align 4 dereferenceable(32) %6, ptr noundef nonnull align 4 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #10
  call void @_ZN2mt3mulINS_4DualIfEES2_EENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS_7Vector3IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %22, ptr noundef nonnull align 4 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(32) %6)
  call void @_ZN2mtmlINS_4DualIfEEfEENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %21, ptr noundef nonnull align 4 dereferenceable(32) %22, float noundef 0x3F747AE140000000)
  call void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %20, ptr noundef nonnull align 4 dereferenceable(32) %6, ptr noundef nonnull align 4 dereferenceable(32) %21)
  call void @_ZN2mt9normalizeINS_7Vector4INS_4DualIfEEEEEET_RKS5_(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %19, ptr noundef nonnull align 4 dereferenceable(32) %20)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %19, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #10
  call void @_ZN2mtmlINS_4DualIfEEfEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind writable sret(%"class.mt::Vector3.2") align 4 %26, ptr noundef nonnull align 4 dereferenceable(24) %5, float noundef 0x3F747AE140000000)
  call void @_ZN2mt4DualIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %27, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %54 = load <2 x float>, ptr %27, align 4
  call void @_ZN2mt7Vector4INS_4DualIfEEEC2IS2_EERKNS_7Vector3IT_EES2_(ptr noundef nonnull align 4 dereferenceable(32) %25, ptr noundef nonnull align 4 dereferenceable(24) %26, <2 x float> %54)
  call void @_ZN2mt3mulINS_4DualIfEES2_EENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %24, ptr noundef nonnull align 4 dereferenceable(32) %10, ptr noundef nonnull align 4 dereferenceable(32) %25)
  call void @_ZN2mt9normalizeINS_7Vector4INS_4DualIfEEEEEET_RKS5_(ptr dead_on_unwind writable sret(%"class.mt::Vector4.5") align 4 %23, ptr noundef nonnull align 4 dereferenceable(32) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %23, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #10
  call void @_Z14testFuzzyEqualRKN2mt7Vector4INS_4DualIfEEEES5_(ptr noundef nonnull align 4 dereferenceable(32) %6, ptr noundef nonnull align 4 dereferenceable(32) %10)
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  br label %55

55:                                               ; preds = %33
  %56 = load i32, ptr %11, align 4, !tbaa !12
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %11, align 4, !tbaa !12
  br label %29, !llvm.loop !14

58:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #10
  ret void
}

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

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

; 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: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_4DualIT1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector3IT1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) #5

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mtmlINS_4DualIfEEfEENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector4.5") align 4, ptr noundef nonnull align 4 dereferenceable(32), float noundef) #6

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN2mt7Vector4INS_4DualIfEEEC2IS2_EERKNS_7Vector3IT_EES2_(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(24), <2 x float>) unnamed_addr #9 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14testFuzzyEqualRKN2mt7Vector4INS_4DualIfEEEES5_(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(32)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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"="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 #8 = { 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 #9 = { alwaysinline mustprogress nounwind 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 #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 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 4, !10, i64 20, i64 4, !10, i64 24, i64 4, !10, i64 28, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.mt::Vector4.5" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Dual" = type { float, float }
%"class.mt::Vector3.2" = type { %"class.mt::Dual", %"class.mt::Dual", %"class.mt::Dual" }
%"class.mt::Vector3" = type { float, float, float }
%"class.mt::Vector4" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; 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 @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind noalias writable sret(%"class.mt::Vector4.5") align 4, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector4INS_4DualIT1_EEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #5

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN2mt7Vector4IfEC2ENS_8IdentityE(ptr noundef nonnull align 16 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN35DualNumber_VelocityIntegration_Test8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(16) %0) unnamed_addr #8 align 2 {
  %2 = alloca %"class.mt::Vector3", align 4
  %3 = alloca %"class.mt::Vector3", align 4
  %4 = alloca %"class.mt::Vector3.2", align 4
  %5 = alloca %"class.mt::Vector4.5", align 4
  %6 = alloca %"class.mt::Vector4", align 16
  %7 = alloca %"class.mt::Vector3", align 4
  %8 = alloca %"class.mt::Vector4.5", align 4
  %9 = alloca %"class.mt::Dual", align 8
  %10 = alloca %"class.mt::Dual", align 8
  %11 = alloca %"class.mt::Dual", align 4
  %12 = alloca %"class.mt::Vector4", align 16
  %13 = alloca %"class.mt::Vector3", align 8
  %14 = alloca %"class.mt::Vector3.2", align 4
  %15 = alloca %"class.mt::Vector4.5", align 4
  %16 = alloca %"class.mt::Vector4.5", align 4
  %17 = alloca %"class.mt::Vector4.5", align 4
  %18 = alloca %"class.mt::Vector4.5", align 4
  %19 = alloca %"class.mt::Vector4.5", align 4
  %20 = alloca %"class.mt::Vector4.5", align 4
  %21 = alloca %"class.mt::Vector4.5", align 4
  %22 = alloca %"class.mt::Vector3.2", align 4
  %23 = alloca %"class.mt::Dual", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #10
  call void @_ZN2mt7Vector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #10
  call void @_ZN2mt7Vector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @_ZN2mt8makeDualIfEENS_7Vector3INS_4DualIT_EEEERKNS1_IS3_EES8_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3.2") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  call void @_ZN2mt7Vector4IfEC2ENS_8IdentityE(ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #10
  call void @_ZN2mt7Vector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @_ZN2mt5rigidIfEENS_7Vector4INS_4DualIT_EEEERKNS1_IS3_EERKNS_7Vector3IS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %5, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %8, ptr noundef nonnull align 4 dereferenceable(32) %5, i64 32, i1 false), !tbaa.struct !5
  %24 = getelementptr inbounds i8, ptr %5, i64 24
  %25 = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  br label %27

26:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #10
  ret void

27:                                               ; preds = %1, %27
  %.02 = phi i32 [ 0, %1 ], [ %44, %27 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %28 = call <2 x float> @_ZN2mt4acosIfEENS_4DualIT_EERKS3_(ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %28, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  call void @_ZN2mt4DualIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 2.000000e+00, float noundef 0.000000e+00)
  %29 = 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) %11)
  store <2 x float> %29, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.27)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector4INS_4DualIT1_EEEE(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(32) %5)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @.str.28)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  %33 = call { double, double } @_ZN2mt8rotationIfEENS_7Vector4IT_EERKNS1_INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %5)
  %34 = extractvalue { double, double } %33, 0
  store double %34, ptr %12, align 16
  %35 = extractvalue { double, double } %33, 1
  store double %35, ptr %25, align 8
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector4IT1_EE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 16 dereferenceable(16) %12)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.29)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #10
  %38 = call { <2 x float>, float } @_ZN2mt11translationIfEENS_7Vector3IT_EERKNS_7Vector4INS_4DualIS2_EEEE(ptr noundef nonnull align 4 dereferenceable(32) %5)
  %.fca.0.extract = extractvalue { <2 x float>, float } %38, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %38, 1
  store <2 x float> %.fca.0.extract, ptr %13, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector3IT1_EE(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.30)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_4DualIT1_EE(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #10
  call void @_ZNK2mt7Vector4INS_4DualIfEEEclIS2_EENS_7Vector3INS_7PromoteIS2_T_E2RTEEERKNS5_IS7_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3.2") align 4 %14, ptr noundef nonnull align 4 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #10
  call void @_ZN2mt3mulINS_4DualIfEES2_EENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS_7Vector3IS5_EERKNS3_IS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %18, ptr noundef nonnull align 4 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(32) %5)
  call void @_ZN2mtmlINS_4DualIfEEfEENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %17, ptr noundef nonnull align 4 dereferenceable(32) %18, float noundef 0x3F747AE140000000)
  call void @_ZN2mtplINS_4DualIfEES2_EENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %16, ptr noundef nonnull align 4 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(32) %17)
  call void @_ZN2mt9normalizeINS_7Vector4INS_4DualIfEEEEEET_RKS5_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %15, ptr noundef nonnull align 4 dereferenceable(32) %16)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(32) %15, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #10
  call void @_ZN2mtmlINS_4DualIfEEfEENS_7Vector3INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EES6_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector3.2") align 4 %22, ptr noundef nonnull align 4 dereferenceable(24) %4, float noundef 0x3F747AE140000000)
  call void @_ZN2mt4DualIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %43 = load <2 x float>, ptr %23, align 8
  call void @_ZN2mt7Vector4INS_4DualIfEEEC2IS2_EERKNS_7Vector3IT_EES2_(ptr noundef nonnull align 4 dereferenceable(32) %21, ptr noundef nonnull align 4 dereferenceable(24) %22, <2 x float> %43)
  call void @_ZN2mt3mulINS_4DualIfEES2_EENS_7Vector4INS_7PromoteIT_T0_E2RTEEERKNS3_IS5_EERKNS3_IS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %20, ptr noundef nonnull align 4 dereferenceable(32) %8, ptr noundef nonnull align 4 dereferenceable(32) %21)
  call void @_ZN2mt9normalizeINS_7Vector4INS_4DualIfEEEEEET_RKS5_(ptr dead_on_unwind nonnull writable sret(%"class.mt::Vector4.5") align 4 %19, ptr noundef nonnull align 4 dereferenceable(32) %20)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %8, ptr noundef nonnull align 4 dereferenceable(32) %19, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #10
  call void @_Z14testFuzzyEqualRKN2mt7Vector4INS_4DualIfEEEES5_(ptr noundef nonnull align 4 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(32) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  %44 = add nuw nsw i32 %.02, 1
  %.not = icmp eq i32 %44, 100
  br i1 %.not, label %26, label %27, !llvm.loop !10
}

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

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

; 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: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_4DualIT1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2mtlsIcSt11char_traitsIcEfEERSt13basic_ostreamIT_T0_ES7_RKNS_7Vector3IT1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN2mt7Vector4INS_4DualIfEEEC2IS2_EERKNS_7Vector3IT_EES2_(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(24), <2 x float>) unnamed_addr #9 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14testFuzzyEqualRKN2mt7Vector4INS_4DualIfEEEES5_(ptr noundef nonnull align 4 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(32)) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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"="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 #8 = { 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 #9 = { alwaysinline mustprogress nounwind 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 #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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 4, !6, i64 20, i64 4, !6, i64 24, i64 4, !6, i64 28, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass