; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/dynamic (glacier_rigid_body)

; 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.GFloat = type { i32 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GQuaternion = type { %class.GFloat, %class.GFloat, %class.GFloat, %class.GFloat }
%class.GMatrix3 = type { [3 x [3 x %class.GFloat]] }
%class.GRigidBody = type <{ %class.GCObject, i8, [3 x i8], %class.GVector3, %class.GFloat, %class.GTransform_QT, %class.GFloat, %class.GFloat, %class.GMatrix3, %class.GMatrix3, %class.GMatrix3, %class.GVector3, %class.GFloat, %class.GFloat, %class.GVector3, %class.GFloat, %class.GFloat, [4 x i8] }>
%class.GCObject = type { ptr, %class.GCollisionShape, i32, i32, %class.GTransform_QT, %class.GTransform_QT, %class.GAABB, %class.GAABB, i32, ptr, i8, i32, %"class.std::set", %"class.std::vector" }
%class.GCollisionShape = type { i32, %class.GVector3, ptr }
%class.GAABB = type { %class.GVector3, %class.GVector3 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.GTransform_QT = type { %class.GQuaternion, %class.GVector3 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10GRigidBody17Tick_PreTransformE6GFloat(ptr noundef nonnull align 8 dereferenceable(444) %0, i32 %1) #0 align 2 {
  %3 = alloca %class.GFloat, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %class.GVector3, align 4
  %6 = alloca %class.GVector3, align 4
  %7 = alloca %class.GFloat, align 4
  %8 = alloca { i64, i32 }, align 8
  %9 = alloca { i64, i32 }, align 8
  %10 = alloca %class.GFloat, align 4
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GVector3, align 4
  %13 = alloca %class.GVector3, align 4
  %14 = alloca %class.GVector3, align 4
  %15 = alloca { i64, i32 }, align 8
  %16 = alloca %class.GFloat, align 4
  %17 = alloca { i64, i32 }, align 8
  %18 = alloca %class.GFloat, align 4
  %19 = alloca { i64, i32 }, align 8
  %20 = alloca %class.GFloat, align 4
  %21 = alloca %class.GFloat, align 4
  %22 = alloca %class.GFloat, align 4
  %23 = alloca %class.GQuaternion, align 4
  %24 = alloca %class.GVector3, align 4
  %25 = alloca { i64, i32 }, align 8
  %26 = alloca %class.GFloat, align 4
  %27 = alloca %class.GQuaternion, align 4
  %28 = alloca %class.GMatrix3, align 4
  %29 = alloca %class.GMatrix3, align 4
  %30 = alloca %class.GMatrix3, align 4
  %31 = alloca %class.GMatrix3, align 4
  %32 = getelementptr inbounds %class.GFloat, ptr %3, i32 0, i32 0
  store i32 %1, ptr %32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #5
  %34 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #5
  %35 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !9
  %36 = getelementptr inbounds %class.GFloat, ptr %7, i32 0, i32 0
  %37 = load i32, ptr %36, align 4
  %38 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %35, i32 %37)
  store { i64, i32 } %38, ptr %8, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %8, i64 12, i1 false)
  %39 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %6)
  store { i64, i32 } %39, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %9, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #5
  %40 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !9
  %41 = getelementptr inbounds %class.GFloat, ptr %10, i32 0, i32 0
  %42 = load i32, ptr %41, align 4
  call void @_ZN8GVector311ClampVectorERS_6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %42)
  %43 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 14
  %44 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %44, i64 4, i1 false), !tbaa.struct !9
  %45 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  %46 = load i32, ptr %45, align 4
  call void @_ZN8GVector311ClampVectorERS_6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %43, i32 %46)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %47 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 11
  %48 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %5)
  store { i64, i32 } %48, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %15, i64 12, i1 false)
  %49 = call i32 @_ZN5GMath4HalfEv()
  %50 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  store i32 %49, ptr %50, align 4
  %51 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  %52 = load i32, ptr %51, align 4
  %53 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 %52)
  store { i64, i32 } %53, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !9
  %54 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  %55 = load i32, ptr %54, align 4
  %56 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 %55)
  store { i64, i32 } %56, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %19, i64 12, i1 false)
  %57 = getelementptr inbounds %class.GCObject, ptr %33, i32 0, i32 5
  %58 = getelementptr inbounds %class.GTransform_QT, ptr %57, i32 0, i32 1
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %58, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  %60 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 11
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %62 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 14
  %63 = call i32 @_ZNK8GVector34SizeEv(ptr noundef nonnull align 4 dereferenceable(12) %62)
  %64 = getelementptr inbounds %class.GFloat, ptr %20, i32 0, i32 0
  store i32 %63, ptr %64, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !9
  %65 = getelementptr inbounds %class.GFloat, ptr %22, i32 0, i32 0
  %66 = load i32, ptr %65, align 4
  %67 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %66)
  %68 = getelementptr inbounds %class.GFloat, ptr %21, i32 0, i32 0
  store i32 %67, ptr %68, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  %69 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 14
  %70 = call { i64, i32 } @_ZNK8GVector312GetNormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %69)
  store { i64, i32 } %70, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %25, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %21, i64 4, i1 false), !tbaa.struct !9
  %71 = getelementptr inbounds %class.GFloat, ptr %26, i32 0, i32 0
  %72 = load i32, ptr %71, align 4
  call void @_ZN11GQuaternionC2ERK8GVector36GFloat(ptr noundef nonnull align 4 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(12) %24, i32 %72)
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %73 = getelementptr inbounds %class.GCObject, ptr %33, i32 0, i32 5
  %74 = getelementptr inbounds %class.GTransform_QT, ptr %73, i32 0, i32 0
  %75 = call { i64, i64 } @_ZNK11GQuaternionmlERKS_(ptr noundef nonnull align 4 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(16) %23)
  %76 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %77 = extractvalue { i64, i64 } %75, 0
  store i64 %77, ptr %76, align 4
  %78 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %79 = extractvalue { i64, i64 } %75, 1
  store i64 %79, ptr %78, align 4
  %80 = getelementptr inbounds %class.GCObject, ptr %33, i32 0, i32 5
  %81 = getelementptr inbounds %class.GTransform_QT, ptr %80, i32 0, i32 0
  %82 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11GQuaternionaSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %81, ptr noundef nonnull align 4 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  %83 = getelementptr inbounds %class.GCObject, ptr %33, i32 0, i32 5
  %84 = getelementptr inbounds %class.GTransform_QT, ptr %83, i32 0, i32 0
  call void @_ZN11GQuaternion9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(16) %84)
  call void @llvm.lifetime.start.p0(i64 36, ptr %28) #5
  %85 = getelementptr inbounds %class.GCObject, ptr %33, i32 0, i32 5
  %86 = getelementptr inbounds %class.GTransform_QT, ptr %85, i32 0, i32 0
  call void @_ZN8GMatrix3C2ERK11GQuaternion(ptr noundef nonnull align 4 dereferenceable(36) %28, ptr noundef nonnull align 4 dereferenceable(16) %86)
  call void @llvm.lifetime.start.p0(i64 36, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr %31) #5
  call void @_ZNK8GMatrix39TransposeEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(36) %28)
  %87 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 9
  call void @_ZNK8GMatrix3mlERKS_(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %30, ptr noundef nonnull align 4 dereferenceable(36) %31, ptr noundef nonnull align 4 dereferenceable(36) %87)
  call void @_ZNK8GMatrix3mlERKS_(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(36) %30, ptr noundef nonnull align 4 dereferenceable(36) %28)
  %88 = getelementptr inbounds %class.GRigidBody, ptr %33, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %88, ptr align 4 %29, i64 36, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 36, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %29) #5
  %89 = getelementptr inbounds %class.GCObject, ptr %33, i32 0, i32 10
  store i8 1, ptr %89, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 36, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #5
  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: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) #2 align 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) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4HalfEv() #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK8GVector34SizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector312GetNormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11GQuaternionC2ERK8GVector36GFloat(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), i32) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_ZNK11GQuaternionmlERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN11GQuaternionaSERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8GMatrix3C2ERK11GQuaternion(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8GMatrix39TransposeEv(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8GMatrix3mlERKS_(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 0, i64 36, !13}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !24, i64 160}
!15 = !{!"_ZTS8GCObject", !16, i64 8, !11, i64 32, !20, i64 36, !21, i64 40, !21, i64 68, !23, i64 96, !23, i64 120, !11, i64 144, !6, i64 152, !24, i64 160, !11, i64 164, !25, i64 168, !34, i64 216}
!16 = !{!"_ZTS15GCollisionShape", !17, i64 0, !18, i64 4, !6, i64 16}
!17 = !{!"_ZTS6EShape", !7, i64 0}
!18 = !{!"_ZTS8GVector3", !19, i64 0, !19, i64 4, !19, i64 8}
!19 = !{!"_ZTS6GFloat", !11, i64 0}
!20 = !{!"_ZTS20ECollisionObjectType", !7, i64 0}
!21 = !{!"_ZTS13GTransform_QT", !22, i64 0, !18, i64 16}
!22 = !{!"_ZTS11GQuaternion", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!23 = !{!"_ZTS5GAABB", !18, i64 0, !18, i64 12}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSSt3setIjSt4lessIjESaIjEE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeIjjSt9_IdentityIjESt4lessIjESaIjEE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeIjjSt9_IdentityIjESt4lessIjESaIjEE13_Rb_tree_implIS3_Lb1EEE", !28, i64 0, !30, i64 8}
!28 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !29, i64 0}
!29 = !{!"_ZTSSt4lessIjE"}
!30 = !{!"_ZTSSt15_Rb_tree_header", !31, i64 0, !33, i64 32}
!31 = !{!"_ZTSSt18_Rb_tree_node_base", !32, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = !{!"_ZTSSt6vectorIiSaIiEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }
%class.GQuaternion = type { %class.GFloat, %class.GFloat, %class.GFloat, %class.GFloat }
%class.GMatrix3 = type { [3 x [3 x %class.GFloat]] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10GRigidBody17Tick_PreTransformE6GFloat(ptr noundef nonnull align 8 dereferenceable(444) %0, i32 %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %class.GVector3, align 8
  %4 = alloca %class.GVector3, align 8
  %5 = alloca %class.GVector3, align 8
  %6 = alloca %class.GVector3, align 8
  %7 = alloca %class.GVector3, align 8
  %8 = alloca %class.GFloat, align 4
  %9 = alloca %class.GQuaternion, align 4
  %10 = alloca %class.GVector3, align 8
  %11 = alloca %class.GQuaternion, align 8
  %12 = alloca %class.GMatrix3, align 4
  %13 = alloca %class.GMatrix3, align 4
  %14 = alloca %class.GMatrix3, align 4
  %15 = alloca %class.GMatrix3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 404
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 244
  %18 = tail call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 %1)
  %.fca.0.extract24 = extractvalue { i64, i32 } %18, 0
  %.fca.1.extract25 = extractvalue { i64, i32 } %18, 1
  store i64 %.fca.0.extract24, ptr %4, align 8
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %.fca.1.extract25, ptr %.sroa.227.0..sroa_idx, align 8
  %19 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %.fca.0.extract20 = extractvalue { i64, i32 } %19, 0
  %.fca.1.extract21 = extractvalue { i64, i32 } %19, 1
  store i64 %.fca.0.extract20, ptr %3, align 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 420
  %.sroa.019.0.copyload = load i32, ptr %20, align 4, !tbaa !5
  call void @_ZN8GVector311ClampVectorERS_6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 %.sroa.019.0.copyload)
  %21 = getelementptr inbounds i8, ptr %0, i64 424
  %22 = getelementptr inbounds i8, ptr %0, i64 440
  %.sroa.018.0.copyload = load i32, ptr %22, align 8, !tbaa !5
  call void @_ZN8GVector311ClampVectorERS_6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 %.sroa.018.0.copyload)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  %23 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %.fca.0.extract14 = extractvalue { i64, i32 } %23, 0
  %.fca.1.extract15 = extractvalue { i64, i32 } %23, 1
  store i64 %.fca.0.extract14, ptr %7, align 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  %24 = call i32 @_ZN5GMath4HalfEv()
  %25 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 %24)
  %.fca.0.extract9 = extractvalue { i64, i32 } %25, 0
  %.fca.1.extract10 = extractvalue { i64, i32 } %25, 1
  store i64 %.fca.0.extract9, ptr %6, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %26 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %1)
  %.fca.0.extract4 = extractvalue { i64, i32 } %26, 0
  %.fca.1.extract5 = extractvalue { i64, i32 } %26, 1
  store i64 %.fca.0.extract4, ptr %5, align 8
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract5, ptr %.sroa.27.0..sroa_idx, align 8
  %27 = getelementptr inbounds i8, ptr %0, i64 68
  %28 = getelementptr inbounds i8, ptr %0, i64 84
  %29 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  %30 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %31 = call i32 @_ZNK8GVector34SizeEv(ptr noundef nonnull align 4 dereferenceable(12) %21)
  store i32 %31, ptr %8, align 4
  %32 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  %33 = call { i64, i32 } @_ZNK8GVector312GetNormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %21)
  %.fca.0.extract = extractvalue { i64, i32 } %33, 0
  %.fca.1.extract = extractvalue { i64, i32 } %33, 1
  store i64 %.fca.0.extract, ptr %10, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN11GQuaternionC2ERK8GVector36GFloat(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %10, i32 %32)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %34 = call { i64, i64 } @_ZNK11GQuaternionmlERKS_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %9)
  %35 = extractvalue { i64, i64 } %34, 0
  store i64 %35, ptr %11, align 8
  %36 = getelementptr inbounds i8, ptr %11, i64 8
  %37 = extractvalue { i64, i64 } %34, 1
  store i64 %37, ptr %36, align 8
  %38 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11GQuaternionaSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @_ZN11GQuaternion9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(16) %27)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #5
  call void @_ZN8GMatrix3C2ERK11GQuaternion(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(16) %27)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %15) #5
  call void @_ZNK8GMatrix39TransposeEv(ptr dead_on_unwind nonnull writable sret(%class.GMatrix3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %12)
  %39 = getelementptr inbounds i8, ptr %0, i64 332
  call void @_ZNK8GMatrix3mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.GMatrix3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %15, ptr noundef nonnull align 4 dereferenceable(36) %39)
  call void @_ZNK8GMatrix3mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.GMatrix3) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %14, ptr noundef nonnull align 4 dereferenceable(36) %12)
  %40 = getelementptr inbounds i8, ptr %0, i64 368
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(36) %40, ptr noundef nonnull align 4 dereferenceable(36) %13, i64 36, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #5
  %41 = getelementptr inbounds i8, ptr %0, i64 160
  store i8 1, ptr %41, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5
  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: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) local_unnamed_addr #2 align 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) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4HalfEv() local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK8GVector34SizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector312GetNormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11GQuaternionC2ERK8GVector36GFloat(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12), i32) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_ZNK11GQuaternionmlERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN11GQuaternionaSERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8GMatrix3C2ERK11GQuaternion(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8GMatrix39TransposeEv(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8GMatrix3mlERKS_(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 36, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !22, i64 160}
!12 = !{!"_ZTS8GCObject", !13, i64 8, !6, i64 32, !18, i64 36, !19, i64 40, !19, i64 68, !21, i64 96, !21, i64 120, !6, i64 144, !17, i64 152, !22, i64 160, !6, i64 164, !23, i64 168, !32, i64 216}
!13 = !{!"_ZTS15GCollisionShape", !14, i64 0, !15, i64 4, !17, i64 16}
!14 = !{!"_ZTS6EShape", !7, i64 0}
!15 = !{!"_ZTS8GVector3", !16, i64 0, !16, i64 4, !16, i64 8}
!16 = !{!"_ZTS6GFloat", !6, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"_ZTS20ECollisionObjectType", !7, i64 0}
!19 = !{!"_ZTS13GTransform_QT", !20, i64 0, !15, i64 16}
!20 = !{!"_ZTS11GQuaternion", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!21 = !{!"_ZTS5GAABB", !15, i64 0, !15, i64 12}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSSt3setIjSt4lessIjESaIjEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeIjjSt9_IdentityIjESt4lessIjESaIjEE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeIjjSt9_IdentityIjESt4lessIjESaIjEE13_Rb_tree_implIS3_Lb1EEE", !26, i64 0, !28, i64 8}
!26 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !27, i64 0}
!27 = !{!"_ZTSSt4lessIjE"}
!28 = !{!"_ZTSSt15_Rb_tree_header", !29, i64 0, !31, i64 32}
!29 = !{!"_ZTSSt18_Rb_tree_node_base", !30, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!30 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!31 = !{!"long", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIiSaIiEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}


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