; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Character/Character.ll (ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb)

; 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.MyCollector.21 = type <{ %"class.JPH::CollisionCollector", float, i8, [3 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::CharacterBase" = type { ptr, %"class.JPH::RefTarget", ptr, %"class.JPH::RefConst", %"class.JPH::Vec3", %"class.JPH::Plane", float, i32, %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::RefConst.1", i64 }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::Character" = type <{ %"class.JPH::CharacterBase", %"class.JPH::BodyID", i16, [10 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #1 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPHL17sGetBodyInterfaceEPNS_13PhysicsSystemEb(ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9Character14CheckCollisionEPKNS_5ShapeEfNS_4Vec3ERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEb(ptr noundef nonnull align 16 dereferenceable(150), ptr noundef, float noundef, double, double, ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH9Character11GetPositionEb(ptr noundef nonnull align 16 dereferenceable(150), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb(ptr noundef nonnull align 16 dereferenceable(150) %0, ptr noundef %1, float noundef %2, i1 noundef zeroext %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca i8, align 1
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %class.MyCollector.21, align 8
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store float %2, ptr %8, align 4, !tbaa !9
  %16 = zext i1 %3 to i8
  store i8 %16, ptr %9, align 1, !tbaa !11
  %17 = load ptr, ptr %6, align 8
  %18 = load float, ptr %8, align 4, !tbaa !9
  %19 = fcmp olt float %18, 0x47EFFFFFE0000000
  br i1 %19, label %20, label %51

20:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %21 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %22 = trunc i8 %21 to i1
  %23 = call { double, double } @_ZNK3JPH9Character11GetPositionEb(ptr noundef nonnull align 16 dereferenceable(150) %17, i1 noundef zeroext %22)
  %24 = getelementptr inbounds %"class.JPH::Vec3", ptr %10, i32 0, i32 0
  %25 = getelementptr inbounds %union.anon, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %27 = extractvalue { double, double } %23, 0
  store double %27, ptr %26, align 16
  %28 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %29 = extractvalue { double, double } %23, 1
  store double %29, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  %30 = load float, ptr %8, align 4, !tbaa !9
  call void @_ZZN3JPH9Character8SetShapeEPKNS_5ShapeEfbEN11MyCollectorC2Ef(ptr noundef nonnull align 8 dereferenceable(29) %11, float noundef %30)
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !15
  %32 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  %34 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %35 = load double, ptr %34, align 16
  %36 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %37 = load double, ptr %36, align 8
  invoke void @_ZNK3JPH9Character14CheckCollisionEPKNS_5ShapeEfNS_4Vec3ERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEb(ptr noundef nonnull align 16 dereferenceable(150) %17, ptr noundef %31, float noundef 0.000000e+00, double %35, double %37, ptr noundef nonnull align 8 dereferenceable(24) %11, i1 noundef zeroext %33)
          to label %38 unwind label %43

38:                                               ; preds = %20
  %39 = getelementptr inbounds %class.MyCollector.21, ptr %11, i32 0, i32 2
  %40 = load i8, ptr %39, align 4, !tbaa !17, !range !13, !noundef !14
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %47

42:                                               ; preds = %38
  store i1 false, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %48

43:                                               ; preds = %20
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %13, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %14, align 4
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(29) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %65

47:                                               ; preds = %38
  store i32 0, ptr %15, align 4
  br label %48

48:                                               ; preds = %47, %42
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(29) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  %49 = load i32, ptr %15, align 4
  switch i32 %49, label %70 [
    i32 0, label %50
    i32 1, label %63
  ]

50:                                               ; preds = %48
  br label %51

51:                                               ; preds = %50, %4
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %17, i32 0, i32 3
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef %52)
  %55 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %17, i32 0, i32 2
  %56 = load ptr, ptr %55, align 16, !tbaa !20
  %57 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %58 = trunc i8 %57 to i1
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPHL17sGetBodyInterfaceEPNS_13PhysicsSystemEb(ptr noundef %56, i1 noundef zeroext %58)
  %60 = getelementptr inbounds %"class.JPH::Character", ptr %17, i32 0, i32 1
  %61 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %17, i32 0, i32 3
  %62 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %61)
  call void @_ZNK3JPH13BodyInterface8SetShapeERKNS_6BodyIDEPKNS_5ShapeEbNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef %62, i1 noundef zeroext false, i32 noundef 0)
  store i1 true, ptr %5, align 1
  br label %63

63:                                               ; preds = %51, %48
  %64 = load i1, ptr %5, align 1
  ret i1 %64

65:                                               ; preds = %43
  %66 = load ptr, ptr %13, align 8
  %67 = load i32, ptr %14, align 4
  %68 = insertvalue { ptr, i32 } poison, ptr %66, 0
  %69 = insertvalue { ptr, i32 } %68, i32 %67, 1
  resume { ptr, i32 } %69

70:                                               ; preds = %48
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN3JPH9Character8SetShapeEPKNS_5ShapeEfbEN11MyCollectorC2Ef(ptr noundef nonnull align 8 dereferenceable(29), float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

declare void @_ZNK3JPH13BodyInterface8SetShapeERKNS_6BodyIDEPKNS_5ShapeEbNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i1 noundef zeroext, i32 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{i64 0, i64 16, !16}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !12, i64 28}
!18 = !{!"_ZTSZN3JPH9Character8SetShapeEPKNS_5ShapeEfbE11MyCollector", !19, i64 0, !10, i64 24, !12, i64 28}
!19 = !{!"_ZTSN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEE", !10, i64 8, !6, i64 16}
!20 = !{!21, !6, i64 16}
!21 = !{!"_ZTSN3JPH13CharacterBaseE", !22, i64 8, !6, i64 16, !26, i64 24, !27, i64 32, !28, i64 48, !10, i64 64, !30, i64 68, !31, i64 72, !32, i64 76, !27, i64 80, !27, i64 96, !27, i64 112, !33, i64 128, !34, i64 136}
!22 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !23, i64 0}
!23 = !{!"_ZTSSt6atomicIjE", !24, i64 0}
!24 = !{!"_ZTSSt13__atomic_baseIjE", !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!27 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!28 = !{!"_ZTSN3JPH5PlaneE", !29, i64 0}
!29 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!30 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!31 = !{!"_ZTSN3JPH6BodyIDE", !25, i64 0}
!32 = !{!"_ZTSN3JPH10SubShapeIDE", !25, i64 0}
!33 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!34 = !{!"long", !7, i64 0}


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

%class.MyCollector.21 = type <{ %"class.JPH::CollisionCollector", float, i8, [3 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPHL17sGetBodyInterfaceEPNS_13PhysicsSystemEb(ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9Character14CheckCollisionEPKNS_5ShapeEfNS_4Vec3ERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEb(ptr noundef nonnull align 16 dereferenceable(150), ptr noundef, float noundef, double, double, ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH9Character11GetPositionEb(ptr noundef nonnull align 16 dereferenceable(150), i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb(ptr noundef nonnull align 16 dereferenceable(150) %0, ptr noundef %1, float noundef %2, i1 noundef zeroext %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.MyCollector.21, align 8
  %6 = fcmp olt float %2, 0x47EFFFFFE0000000
  br i1 %6, label %7, label %17

7:                                                ; preds = %4
  %8 = tail call { double, double } @_ZNK3JPH9Character11GetPositionEb(ptr noundef nonnull align 16 dereferenceable(150) %0, i1 noundef zeroext %3)
  %9 = extractvalue { double, double } %8, 0
  %10 = extractvalue { double, double } %8, 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @_ZZN3JPH9Character8SetShapeEPKNS_5ShapeEfbEN11MyCollectorC2Ef(ptr noundef nonnull align 8 dereferenceable(29) %5, float noundef %2)
  invoke void @_ZNK3JPH9Character14CheckCollisionEPKNS_5ShapeEfNS_4Vec3ERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEEb(ptr noundef nonnull align 16 dereferenceable(150) %0, ptr noundef %1, float noundef 0.000000e+00, double %9, double %10, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext %3)
          to label %11 unwind label %15

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %5, i64 28
  %13 = load i8, ptr %12, align 4, !tbaa !5, !range !13, !noundef !14
  %14 = trunc nuw i8 %13 to i1
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(29) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br i1 %14, label %25, label %17

15:                                               ; preds = %7
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(29) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  resume { ptr, i32 } %16

17:                                               ; preds = %11, %4
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %1)
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load ptr, ptr %20, align 16, !tbaa !15
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPHL17sGetBodyInterfaceEPNS_13PhysicsSystemEb(ptr noundef %21, i1 noundef zeroext %3)
  %23 = getelementptr inbounds i8, ptr %0, i64 144
  %24 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @_ZNK3JPH13BodyInterface8SetShapeERKNS_6BodyIDEPKNS_5ShapeEbNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %24, i1 noundef zeroext false, i32 noundef 0)
  br label %25

25:                                               ; preds = %11, %17
  %.1 = phi i1 [ false, %11 ], [ true, %17 ]
  ret i1 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN3JPH9Character8SetShapeEPKNS_5ShapeEfbEN11MyCollectorC2Ef(ptr noundef nonnull align 8 dereferenceable(29), float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

declare void @_ZNK3JPH13BodyInterface8SetShapeERKNS_6BodyIDEPKNS_5ShapeEbNS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { "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 = { 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, !12, i64 28}
!6 = !{!"_ZTSZN3JPH9Character8SetShapeEPKNS_5ShapeEfbE11MyCollector", !7, i64 0, !8, i64 24, !12, i64 28}
!7 = !{!"_ZTSN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEE", !8, i64 8, !11, i64 16}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !11, i64 16}
!16 = !{!"_ZTSN3JPH13CharacterBaseE", !17, i64 8, !11, i64 16, !21, i64 24, !22, i64 32, !23, i64 48, !8, i64 64, !25, i64 68, !26, i64 72, !27, i64 76, !22, i64 80, !22, i64 96, !22, i64 112, !28, i64 128, !29, i64 136}
!17 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !18, i64 0}
!18 = !{!"_ZTSSt6atomicIjE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseIjE", !20, i64 0}
!20 = !{!"int", !9, i64 0}
!21 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !11, i64 0}
!22 = !{!"_ZTSN3JPH4Vec3E", !9, i64 0}
!23 = !{!"_ZTSN3JPH5PlaneE", !24, i64 0}
!24 = !{!"_ZTSN3JPH4Vec4E", !9, i64 0}
!25 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !9, i64 0}
!26 = !{!"_ZTSN3JPH6BodyIDE", !20, i64 0}
!27 = !{!"_ZTSN3JPH10SubShapeIDE", !20, i64 0}
!28 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !11, i64 0}
!29 = !{!"long", !9, i64 0}


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