; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Body/Body.ll (ZN3JPH4Body24UpdateSleepStateInternalEfff)

; 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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Body" = type <{ %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::AABox", %"class.JPH::RefConst", ptr, i64, %"class.JPH::CollisionGroup", float, float, %"class.JPH::BodyID", i16, i8, %"class.JPH::BroadPhaseLayer", i8, %"struct.std::atomic.2", [6 x i8] }>
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.1", i32, i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"struct.std::atomic.2" = type { %"struct.std::__atomic_base.3" }
%"struct.std::__atomic_base.3" = type { i8 }
%"class.JPH::MotionProperties" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Float3", %"class.JPH::Float3", float, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i8, [3 x i8], [3 x %"class.JPH::Sphere"], float, i8, i8, [10 x i8] }>
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Sphere" = type { %"class.JPH::Float3", 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: mustprogress uwtable
define dso_local noundef i32 @_ZN3JPH4Body24UpdateSleepStateInternalEfff(ptr noundef nonnull align 16 dereferenceable(122) %0, float noundef %1, float noundef %2, float noundef %3) #2 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca [3 x %"class.JPH::Vec3"], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  %17 = getelementptr inbounds %"class.JPH::Body", ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds %"class.JPH::MotionProperties", ptr %18, i32 0, i32 15
  %20 = load i8, ptr %19, align 1, !tbaa !29, !range !35, !noundef !36
  %21 = trunc i8 %20 to i1
  br i1 %21, label %22, label %24

22:                                               ; preds = %4
  %23 = call noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122) %16)
  br i1 %23, label %24, label %25

24:                                               ; preds = %22, %4
  store i32 0, ptr %5, align 4
  br label %70

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  %26 = getelementptr inbounds [3 x %"class.JPH::Vec3"], ptr %10, i64 0, i64 0
  call void @_ZNK3JPH4Body18GetSleepTestPointsEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(122) %16, ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !37
  br label %27

27:                                               ; preds = %58, %25
  %28 = load i32, ptr %11, align 4, !tbaa !37
  %29 = icmp slt i32 %28, 3
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 2, ptr %12, align 4
  br label %61

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %32 = getelementptr inbounds %"class.JPH::Body", ptr %16, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds %"class.JPH::MotionProperties", ptr %33, i32 0, i32 20
  %35 = load i32, ptr %11, align 4, !tbaa !37
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [3 x %"class.JPH::Sphere"], ptr %34, i64 0, i64 %36
  store ptr %37, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %38 = load i32, ptr %11, align 4, !tbaa !37
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [3 x %"class.JPH::Vec3"], ptr %10, i64 0, i64 %39
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !38
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !38
  %42 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %43 = load double, ptr %42, align 16
  %44 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %45 = load double, ptr %44, align 8
  call void @_ZN3JPH6Sphere16EncapsulatePointENS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(16) %41, double %43, double %45)
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = call noundef float @_ZNK3JPH6Sphere9GetRadiusEv(ptr noundef nonnull align 4 dereferenceable(16) %46)
  %48 = load float, ptr %8, align 4, !tbaa !9
  %49 = fcmp ogt float %47, %48
  br i1 %49, label %50, label %54

50:                                               ; preds = %31
  %51 = getelementptr inbounds %"class.JPH::Body", ptr %16, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds [3 x %"class.JPH::Vec3"], ptr %10, i64 0, i64 0
  call void @_ZN3JPH16MotionProperties21ResetSleepTestSpheresEPKNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %52, ptr noundef %53)
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %55

54:                                               ; preds = %31
  store i32 0, ptr %12, align 4
  br label %55

55:                                               ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %56 = load i32, ptr %12, align 4
  switch i32 %56, label %61 [
    i32 0, label %57
  ]

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %11, align 4, !tbaa !37
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %11, align 4, !tbaa !37
  br label %27, !llvm.loop !40

61:                                               ; preds = %55, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %62 = load i32, ptr %12, align 4
  switch i32 %62, label %69 [
    i32 2, label %63
  ]

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"class.JPH::Body", ptr %16, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = load float, ptr %7, align 4, !tbaa !9
  %67 = load float, ptr %9, align 4, !tbaa !9
  %68 = call noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182) %65, float noundef %66, float noundef %67)
  store i32 %68, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %69

69:                                               ; preds = %63, %61
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  br label %70

70:                                               ; preds = %69, %24
  %71 = load i32, ptr %5, align 4
  ret i32 %71
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122)) #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182), float noundef, float noundef) #3 align 2

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"="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 = { 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 #4 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 72}
!12 = !{!"_ZTSN3JPH4BodyE", !13, i64 0, !14, i64 16, !16, i64 32, !17, i64 64, !6, i64 72, !18, i64 80, !19, i64 88, !10, i64 104, !10, i64 108, !22, i64 112, !23, i64 116, !24, i64 118, !25, i64 119, !26, i64 120, !27, i64 121}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!"_ZTSN3JPH4QuatE", !15, i64 0}
!15 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!16 = !{!"_ZTSN3JPH5AABoxE", !13, i64 0, !13, i64 16}
!17 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN3JPH14CollisionGroupE", !20, i64 0, !21, i64 8, !21, i64 12}
!20 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN3JPH6BodyIDE", !21, i64 0}
!23 = !{!"short", !7, i64 0}
!24 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!25 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !7, i64 0}
!26 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!27 = !{!"_ZTSSt6atomicIhE", !28, i64 0}
!28 = !{!"_ZTSSt13__atomic_baseIhE", !7, i64 0}
!29 = !{!30, !33, i64 121}
!30 = !{!"_ZTSN3JPH16MotionPropertiesE", !13, i64 0, !13, i64 16, !13, i64 32, !14, i64 48, !31, i64 64, !31, i64 76, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !21, i64 112, !21, i64 116, !32, i64 120, !33, i64 121, !34, i64 122, !7, i64 123, !7, i64 124, !7, i64 128, !10, i64 176, !24, i64 180, !26, i64 181}
!31 = !{!"_ZTSN3JPH6Float3E", !10, i64 0, !10, i64 4, !10, i64 8}
!32 = !{!"_ZTSN3JPH14EMotionQualityE", !7, i64 0}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSN3JPH12EAllowedDOFsE", !7, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!21, !21, i64 0}
!38 = !{i64 0, i64 16, !39}
!39 = !{!7, !7, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3JPH4Body24UpdateSleepStateInternalEfff(ptr noundef nonnull align 16 dereferenceable(122) %0, float noundef %1, float noundef %2, float noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca [3 x %"class.JPH::Vec3"], align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 72
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 121
  %9 = load i8, ptr %8, align 1, !tbaa !27, !range !33, !noundef !34
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %32

11:                                               ; preds = %4
  %12 = tail call noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122) %0)
  br i1 %12, label %32, label %.critedge

.critedge:                                        ; preds = %11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  call void @_ZNK3JPH4Body18GetSleepTestPointsEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(122) %0, ptr noundef nonnull %5)
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 128
  %.sroa.02.0.copyload = load double, ptr %5, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.4.0.copyload = load double, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !35
  call void @_ZN3JPH6Sphere16EncapsulatePointENS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(16) %14, double %.sroa.02.0.copyload, double %.sroa.4.0.copyload)
  %15 = call noundef float @_ZNK3JPH6Sphere9GetRadiusEv(ptr noundef nonnull align 4 dereferenceable(16) %14)
  %16 = fcmp ule float %15, %2
  br i1 %16, label %.critedge.1, label %29

.critedge.1:                                      ; preds = %.critedge
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 144
  %19 = getelementptr inbounds i8, ptr %5, i64 16
  %.sroa.02.0.copyload.1 = load double, ptr %19, align 16
  %.sroa.4.0..sroa_idx.1 = getelementptr inbounds i8, ptr %5, i64 24
  %.sroa.4.0.copyload.1 = load double, ptr %.sroa.4.0..sroa_idx.1, align 8, !tbaa !35
  call void @_ZN3JPH6Sphere16EncapsulatePointENS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(16) %18, double %.sroa.02.0.copyload.1, double %.sroa.4.0.copyload.1)
  %20 = call noundef float @_ZNK3JPH6Sphere9GetRadiusEv(ptr noundef nonnull align 4 dereferenceable(16) %18)
  %21 = fcmp ule float %20, %2
  br i1 %21, label %.critedge.2, label %29

.critedge.2:                                      ; preds = %.critedge.1
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 160
  %24 = getelementptr inbounds i8, ptr %5, i64 32
  %.sroa.02.0.copyload.2 = load double, ptr %24, align 16
  %.sroa.4.0..sroa_idx.2 = getelementptr inbounds i8, ptr %5, i64 40
  %.sroa.4.0.copyload.2 = load double, ptr %.sroa.4.0..sroa_idx.2, align 8, !tbaa !35
  call void @_ZN3JPH6Sphere16EncapsulatePointENS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(16) %23, double %.sroa.02.0.copyload.2, double %.sroa.4.0.copyload.2)
  %25 = call noundef float @_ZNK3JPH6Sphere9GetRadiusEv(ptr noundef nonnull align 4 dereferenceable(16) %23)
  %26 = fcmp ule float %25, %2
  br i1 %26, label %.critedge18, label %29

.critedge18:                                      ; preds = %.critedge.2
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182) %27, float noundef %1, float noundef %3)
  br label %31

29:                                               ; preds = %.critedge.2, %.critedge.1, %.critedge
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3JPH16MotionProperties21ResetSleepTestSpheresEPKNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182) %30, ptr noundef nonnull %5)
  br label %31

31:                                               ; preds = %29, %.critedge18
  %.3 = phi i32 [ %28, %.critedge18 ], [ 0, %29 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %32

32:                                               ; preds = %4, %11, %31
  %.4 = phi i32 [ %.3, %31 ], [ 0, %11 ], [ 0, %4 ]
  ret i32 %.4
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH4Body18GetSleepTestPointsEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH6Sphere16EncapsulatePointENS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16MotionProperties21ResetSleepTestSpheresEPKNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(182), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3JPH16MotionProperties19AccumulateSleepTimeEff(ptr noundef nonnull align 16 dereferenceable(182), float noundef, float noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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, !14, i64 72}
!6 = !{!"_ZTSN3JPH4BodyE", !7, i64 0, !10, i64 16, !12, i64 32, !13, i64 64, !14, i64 72, !15, i64 80, !16, i64 88, !19, i64 104, !19, i64 108, !20, i64 112, !21, i64 116, !22, i64 118, !23, i64 119, !24, i64 120, !25, i64 121}
!7 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH4QuatE", !11, i64 0}
!11 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!12 = !{!"_ZTSN3JPH5AABoxE", !7, i64 0, !7, i64 16}
!13 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"_ZTSN3JPH14CollisionGroupE", !17, i64 0, !18, i64 8, !18, i64 12}
!17 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !14, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!"float", !8, i64 0}
!20 = !{!"_ZTSN3JPH6BodyIDE", !18, i64 0}
!21 = !{!"short", !8, i64 0}
!22 = !{!"_ZTSN3JPH9EBodyTypeE", !8, i64 0}
!23 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !8, i64 0}
!24 = !{!"_ZTSN3JPH11EMotionTypeE", !8, i64 0}
!25 = !{!"_ZTSSt6atomicIhE", !26, i64 0}
!26 = !{!"_ZTSSt13__atomic_baseIhE", !8, i64 0}
!27 = !{!28, !31, i64 121}
!28 = !{!"_ZTSN3JPH16MotionPropertiesE", !7, i64 0, !7, i64 16, !7, i64 32, !10, i64 48, !29, i64 64, !29, i64 76, !19, i64 88, !19, i64 92, !19, i64 96, !19, i64 100, !19, i64 104, !19, i64 108, !18, i64 112, !18, i64 116, !30, i64 120, !31, i64 121, !32, i64 122, !8, i64 123, !8, i64 124, !8, i64 128, !19, i64 176, !22, i64 180, !24, i64 181}
!29 = !{!"_ZTSN3JPH6Float3E", !19, i64 0, !19, i64 4, !19, i64 8}
!30 = !{!"_ZTSN3JPH14EMotionQualityE", !8, i64 0}
!31 = !{!"bool", !8, i64 0}
!32 = !{!"_ZTSN3JPH12EAllowedDOFsE", !8, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass