; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Character (CharacterVirtual)

; 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::IgnoreSingleBodyFilterChained" = type { %"class.JPH::BodyFilter", %"class.JPH::BodyID", ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::CharacterVirtual::ContactCollector" = type <{ %"class.JPH::CollisionCollector", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", ptr, ptr, ptr, ptr, i32, float, i8, [7 x i8] }>
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"struct.JPH::CharacterVirtual::ContactOrderingPredicate" = type { i8 }
%"class.JPH::CharacterVirtual" = type <{ %"class.JPH::CharacterBase", %"class.JPH::CharacterID", [4 x i8], ptr, ptr, i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, i8, [3 x i8], float, float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Array.2", i32, [4 x i8], %"class.JPH::UnorderedMap", float, i8, [3 x i8], i64, %"class.JPH::BodyID", [12 x i8] }>
%"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::SubShapeID" = type { i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.JPH::CharacterVirtual::Contact" = type <{ %"class.JPH::CharacterVirtual::ContactKey", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i8, i8, [6 x i8], ptr, i64, ptr, i8, i8, i8, [5 x i8] }>
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }

; 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: 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
declare dso_local void @_ZNK3JPH16CharacterVirtual14CheckCollisionENS_4Vec3ENS_4QuatES1_fPKNS_5ShapeES1_RNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372), double, double, double, double, double, double, float noundef, ptr noundef, ptr noundef byval(%"class.JPH::Vec3") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH29IgnoreSingleBodyFilterChainedC2ENS_6BodyIDERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(24), i32, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH16CharacterVirtual21GetContactsAtPositionENS_4Vec3ES1_PKNS_5ShapeERNS_5ArrayINS0_7ContactENS_16STLTempAllocatorIS6_EEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372) %0, double %1, double %2, double %3, double %4, ptr noundef %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(12) %10) #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.JPH::IgnoreSingleBodyFilterChained", align 8
  %22 = alloca %"class.JPH::BodyID", align 4
  %23 = alloca %"class.JPH::CharacterVirtual::ContactCollector", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Quat", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"struct.JPH::CharacterVirtual::ContactOrderingPredicate", align 1
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %1, ptr %37, align 16
  %38 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %2, ptr %38, align 8
  %39 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %3, ptr %39, align 16
  %40 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %4, ptr %40, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  store ptr %9, ptr %19, align 8, !tbaa !5
  store ptr %10, ptr %20, align 8, !tbaa !5
  %41 = load ptr, ptr %14, align 8
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %42)
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %43 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 33
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 16 %43, i64 4, i1 false), !tbaa.struct !9
  %44 = load ptr, ptr %19, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.JPH::BodyID", ptr %22, i32 0, i32 0
  %46 = load i32, ptr %45, align 4
  call void @_ZN3JPH29IgnoreSingleBodyFilterChainedC2ENS_6BodyIDERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 %46, ptr noundef nonnull align 8 dereferenceable(8) %44)
  call void @llvm.lifetime.start.p0(i64 112, ptr %23) #6
  %47 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %41, i32 0, i32 2
  %48 = load ptr, ptr %47, align 16, !tbaa !12
  %49 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 13
  %50 = load i32, ptr %49, align 4, !tbaa !27
  %51 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 14
  %52 = load float, ptr %51, align 8, !tbaa !36
  %53 = getelementptr inbounds %"class.JPH::CharacterBase", ptr %41, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %53, i64 16, i1 false), !tbaa.struct !37
  %54 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %54, i64 16, i1 false), !tbaa.struct !37
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %57 = load double, ptr %56, align 16
  %58 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %59 = load double, ptr %58, align 8
  %60 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %61 = load double, ptr %60, align 16
  %62 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %63 = load double, ptr %62, align 8
  invoke void @_ZN3JPH16CharacterVirtual16ContactCollectorC2EPNS_13PhysicsSystemEPKS0_jfNS_4Vec3ES6_RNS_5ArrayINS0_7ContactENS_16STLTempAllocatorIS8_EEEE(ptr noundef nonnull align 16 dereferenceable(105) %23, ptr noundef %48, ptr noundef %41, i32 noundef %50, float noundef %52, double %57, double %59, double %61, double %63, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %64 unwind label %110

64:                                               ; preds = %11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !37
  %65 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %65, i64 16, i1 false), !tbaa.struct !37
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !37
  %66 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 7
  %67 = load float, ptr %66, align 4, !tbaa !39
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 22
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %69, i64 16, i1 false), !tbaa.struct !37
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  %73 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %74 = load double, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %76 = load double, ptr %75, align 8
  %77 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %78 = load double, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %80 = load double, ptr %79, align 8
  %81 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %82 = load double, ptr %81, align 16
  %83 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %84 = load double, ptr %83, align 8
  invoke void @_ZNK3JPH16CharacterVirtual14CheckCollisionENS_4Vec3ENS_4QuatES1_fPKNS_5ShapeES1_RNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372) %41, double %74, double %76, double %78, double %80, double %82, double %84, float noundef %67, ptr noundef %68, ptr noundef byval(%"class.JPH::Vec3") align 16 %31, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(12) %72)
          to label %85 unwind label %114

85:                                               ; preds = %64
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %86)
          to label %88 unwind label %114

88:                                               ; preds = %85
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = invoke noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %91 unwind label %114

91:                                               ; preds = %88
  invoke void @_ZN3JPH9QuickSortIPNS_16CharacterVirtual7ContactENS1_24ContactOrderingPredicateEEEvT_S5_T0_(ptr noundef %87, ptr noundef %90)
          to label %92 unwind label %114

92:                                               ; preds = %91
  %93 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactCollector", ptr %23, i32 0, i32 10
  %94 = load i8, ptr %93, align 8, !tbaa !40, !range !43, !noundef !44
  %95 = trunc i8 %94 to i1
  %96 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 30
  %97 = zext i1 %95 to i8
  store i8 %97, ptr %96, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %98, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %99 = load ptr, ptr %33, align 8, !tbaa !5
  %100 = invoke noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %99)
          to label %101 unwind label %118

101:                                              ; preds = %92
  store ptr %100, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %102 = load ptr, ptr %33, align 8, !tbaa !5
  %103 = invoke noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %102)
          to label %104 unwind label %122

104:                                              ; preds = %101
  store ptr %103, ptr %35, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %149, %104
  %106 = load ptr, ptr %34, align 8, !tbaa !5
  %107 = load ptr, ptr %35, align 8, !tbaa !5
  %108 = icmp ne ptr %106, %107
  br i1 %108, label %126, label %109

109:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %153

110:                                              ; preds = %11
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %26, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %27, align 4
  br label %155

114:                                              ; preds = %91, %88, %85, %64
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %26, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %27, align 4
  br label %154

118:                                              ; preds = %92
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %26, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %27, align 4
  br label %152

122:                                              ; preds = %101
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %26, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %152

126:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %127 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %127, ptr %36, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %41, i32 0, i32 12
  %129 = load float, ptr %128, align 16, !tbaa !46
  %130 = load ptr, ptr %36, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %130, i32 0, i32 6
  %132 = load float, ptr %131, align 16, !tbaa !47
  %133 = fsub float %132, %129
  store float %133, ptr %131, align 16, !tbaa !47
  %134 = load ptr, ptr %36, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %134, i32 0, i32 11
  %136 = load ptr, ptr %135, align 16, !tbaa !51
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %148

138:                                              ; preds = %126
  %139 = load ptr, ptr %36, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %139, i32 0, i32 11
  %141 = load ptr, ptr %140, align 16, !tbaa !51
  %142 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %141, i32 0, i32 12
  %143 = load float, ptr %142, align 16, !tbaa !46
  %144 = load ptr, ptr %36, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %144, i32 0, i32 6
  %146 = load float, ptr %145, align 16, !tbaa !47
  %147 = fsub float %146, %143
  store float %147, ptr %145, align 16, !tbaa !47
  br label %148

148:                                              ; preds = %138, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %34, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %150, i32 1
  store ptr %151, ptr %34, align 8, !tbaa !5
  br label %105

152:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %154

153:                                              ; preds = %109
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(105) %23) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %23) #6
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  ret void

154:                                              ; preds = %152, %114
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(105) %23) #6
  br label %155

155:                                              ; preds = %154, %110
  call void @llvm.lifetime.end.p0(i64 112, ptr %23) #6
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %26, align 8
  %158 = load i32, ptr %27, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual16ContactCollectorC2EPNS_13PhysicsSystemEPKS0_jfNS_4Vec3ES6_RNS_5ArrayINS0_7ContactENS_16STLTempAllocatorIS8_EEEE(ptr noundef nonnull align 16 dereferenceable(105), ptr noundef, ptr noundef, i32 noundef, float noundef, double, double, double, double, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH9QuickSortIPNS_16CharacterVirtual7ContactENS1_24ContactOrderingPredicateEEEvT_S5_T0_(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #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 = { 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 = { 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 #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, !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 = !{!13, !6, i64 16}
!13 = !{!"_ZTSN3JPH13CharacterBaseE", !14, i64 8, !6, i64 16, !17, i64 24, !18, i64 32, !19, i64 48, !21, i64 64, !22, i64 68, !23, i64 72, !24, i64 76, !18, i64 80, !18, i64 96, !18, i64 112, !25, i64 128, !26, i64 136}
!14 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !15, i64 0}
!15 = !{!"_ZTSSt6atomicIjE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!17 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!18 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!19 = !{!"_ZTSN3JPH5PlaneE", !20, i64 0}
!20 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!23 = !{!"_ZTSN3JPH6BodyIDE", !11, i64 0}
!24 = !{!"_ZTSN3JPH10SubShapeIDE", !11, i64 0}
!25 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!28, !11, i64 196}
!28 = !{!"_ZTSN3JPH16CharacterVirtualE", !13, i64 0, !29, i64 144, !6, i64 152, !6, i64 160, !30, i64 168, !21, i64 172, !11, i64 176, !11, i64 180, !21, i64 184, !21, i64 188, !21, i64 192, !11, i64 196, !21, i64 200, !21, i64 204, !31, i64 208, !21, i64 212, !21, i64 216, !18, i64 224, !18, i64 240, !32, i64 256, !18, i64 272, !33, i64 288, !11, i64 312, !34, i64 320, !21, i64 352, !31, i64 356, !26, i64 360, !23, i64 368}
!29 = !{!"_ZTSN3JPH11CharacterIDE", !11, i64 0}
!30 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTSN3JPH4QuatE", !20, i64 0}
!33 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !26, i64 0, !26, i64 8, !6, i64 16}
!34 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !35, i64 0}
!35 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!36 = !{!28, !21, i64 200}
!37 = !{i64 0, i64 16, !38}
!38 = !{!7, !7, i64 0}
!39 = !{!28, !21, i64 172}
!40 = !{!41, !31, i64 104}
!41 = !{!"_ZTSN3JPH16CharacterVirtual16ContactCollectorE", !42, i64 0, !18, i64 32, !18, i64 48, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !21, i64 100, !31, i64 104}
!42 = !{!"_ZTSN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEE", !21, i64 8, !6, i64 16}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!28, !31, i64 356}
!46 = !{!28, !21, i64 192}
!47 = !{!48, !21, i64 80}
!48 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !49, i64 0, !18, i64 16, !18, i64 32, !18, i64 48, !18, i64 64, !21, i64 80, !21, i64 84, !50, i64 88, !31, i64 89, !6, i64 96, !26, i64 104, !6, i64 112, !31, i64 120, !31, i64 121, !31, i64 122}
!49 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !23, i64 0, !29, i64 4, !24, i64 8}
!50 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!51 = !{!48, !6, i64 96}


; 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> }
%"class.JPH::IgnoreSingleBodyFilterChained" = type { %"class.JPH::BodyFilter", %"class.JPH::BodyID", ptr }
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::CharacterVirtual::ContactCollector" = type <{ %"class.JPH::CollisionCollector", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", ptr, ptr, ptr, ptr, i32, float, i8, [7 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: mustprogress uwtable
declare dso_local void @_ZNK3JPH16CharacterVirtual14CheckCollisionENS_4Vec3ENS_4QuatES1_fPKNS_5ShapeES1_RNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372), double, double, double, double, double, double, float noundef, ptr noundef, ptr noundef byval(%"class.JPH::Vec3") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH16CharacterVirtual21GetContactsAtPositionENS_4Vec3ES1_PKNS_5ShapeERNS_5ArrayINS0_7ContactENS_16STLTempAllocatorIS6_EEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372) %0, double %1, double %2, double %3, double %4, ptr noundef %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(12) %10) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.JPH::IgnoreSingleBodyFilterChained", align 8
  %13 = alloca %"class.JPH::CharacterVirtual::ContactCollector", align 16
  tail call void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 368
  %.sroa.019.0.copyload = load i32, ptr %14, align 16, !tbaa !5
  call void @_ZN3JPH29IgnoreSingleBodyFilterChainedC2ENS_6BodyIDERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 %.sroa.019.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %13) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load ptr, ptr %15, align 16, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %0, i64 196
  %18 = load i32, ptr %17, align 4, !tbaa !25
  %19 = getelementptr inbounds i8, ptr %0, i64 200
  %20 = load float, ptr %19, align 8, !tbaa !34
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.017.0.copyload = load double, ptr %21, align 16
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.218.0.copyload = load double, ptr %.sroa.218.0..sroa_idx, align 8, !tbaa !35
  %22 = getelementptr inbounds i8, ptr %0, i64 240
  %.sroa.015.0.copyload = load double, ptr %22, align 16
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 248
  %.sroa.216.0.copyload = load double, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !35
  call void @_ZN3JPH16CharacterVirtual16ContactCollectorC2EPNS_13PhysicsSystemEPKS0_jfNS_4Vec3ES6_RNS_5ArrayINS0_7ContactENS_16STLTempAllocatorIS8_EEEE(ptr noundef nonnull align 16 dereferenceable(105) %13, ptr noundef %16, ptr noundef nonnull %0, i32 noundef %18, float noundef %20, double %.sroa.017.0.copyload, double %.sroa.218.0.copyload, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload, ptr noundef nonnull align 8 dereferenceable(32) %6)
  %23 = getelementptr inbounds i8, ptr %0, i64 256
  %.sroa.010.0.copyload = load double, ptr %23, align 16
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 264
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !35
  %24 = getelementptr inbounds i8, ptr %0, i64 172
  %25 = load float, ptr %24, align 4, !tbaa !36
  invoke void @_ZNK3JPH16CharacterVirtual14CheckCollisionENS_4Vec3ENS_4QuatES1_fPKNS_5ShapeES1_RNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(372) %0, double %1, double %2, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload, double %3, double %4, float noundef %25, ptr noundef %5, ptr noundef nonnull byval(%"class.JPH::Vec3") align 16 %22, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %26 unwind label %37

26:                                               ; preds = %11
  %27 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %28 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  invoke void @_ZN3JPH9QuickSortIPNS_16CharacterVirtual7ContactENS1_24ContactOrderingPredicateEEEvT_S5_T0_(ptr noundef %27, ptr noundef %28)
          to label %29 unwind label %37

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %13, i64 104
  %31 = load i8, ptr %30, align 8, !tbaa !37, !range !40, !noundef !41
  %32 = getelementptr inbounds i8, ptr %0, i64 356
  store i8 %31, ptr %32, align 4, !tbaa !42
  %33 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %34 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %.not37 = icmp eq ptr %33, %34
  br i1 %.not37, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %29
  %35 = getelementptr inbounds i8, ptr %0, i64 192
  %36 = load float, ptr %35, align 16, !tbaa !43
  br label %39

._crit_edge:                                      ; preds = %49, %29
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(105) %13) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %13) #5
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  ret void

37:                                               ; preds = %26, %11
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEED2Ev(ptr noundef nonnull align 16 dereferenceable(105) %13) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %13) #5
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  resume { ptr, i32 } %38

39:                                               ; preds = %.lr.ph, %49
  %.038 = phi ptr [ %33, %.lr.ph ], [ %50, %49 ]
  %40 = getelementptr inbounds i8, ptr %.038, i64 80
  %41 = load float, ptr %40, align 16, !tbaa !44
  %42 = fsub float %41, %36
  store float %42, ptr %40, align 16, !tbaa !44
  %43 = getelementptr inbounds i8, ptr %.038, i64 96
  %44 = load ptr, ptr %43, align 16, !tbaa !48
  %.not36 = icmp eq ptr %44, null
  br i1 %.not36, label %49, label %45

45:                                               ; preds = %39
  %46 = getelementptr inbounds i8, ptr %44, i64 192
  %47 = load float, ptr %46, align 16, !tbaa !43
  %48 = fsub float %42, %47
  store float %48, ptr %40, align 16, !tbaa !44
  br label %49

49:                                               ; preds = %45, %39
  %50 = getelementptr inbounds i8, ptr %.038, i64 128
  %.not = icmp eq ptr %50, %34
  br i1 %.not, label %._crit_edge, label %39
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual16ContactCollectorC2EPNS_13PhysicsSystemEPKS0_jfNS_4Vec3ES6_RNS_5ArrayINS0_7ContactENS_16STLTempAllocatorIS8_EEEE(ptr noundef nonnull align 16 dereferenceable(105), ptr noundef, ptr noundef, i32 noundef, float noundef, double, double, double, double, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH9QuickSortIPNS_16CharacterVirtual7ContactENS1_24ContactOrderingPredicateEEEvT_S5_T0_(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_16STLTempAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_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 #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 = { 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 = { 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 = !{!10, !14, i64 16}
!10 = !{!"_ZTSN3JPH13CharacterBaseE", !11, i64 8, !14, i64 16, !15, i64 24, !16, i64 32, !17, i64 48, !19, i64 64, !20, i64 68, !21, i64 72, !22, i64 76, !16, i64 80, !16, i64 96, !16, i64 112, !23, i64 128, !24, i64 136}
!11 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !6, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !14, i64 0}
!16 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!17 = !{!"_ZTSN3JPH5PlaneE", !18, i64 0}
!18 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!21 = !{!"_ZTSN3JPH6BodyIDE", !6, i64 0}
!22 = !{!"_ZTSN3JPH10SubShapeIDE", !6, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !14, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!26, !6, i64 196}
!26 = !{!"_ZTSN3JPH16CharacterVirtualE", !10, i64 0, !27, i64 144, !14, i64 152, !14, i64 160, !28, i64 168, !19, i64 172, !6, i64 176, !6, i64 180, !19, i64 184, !19, i64 188, !19, i64 192, !6, i64 196, !19, i64 200, !19, i64 204, !29, i64 208, !19, i64 212, !19, i64 216, !16, i64 224, !16, i64 240, !30, i64 256, !16, i64 272, !31, i64 288, !6, i64 312, !32, i64 320, !19, i64 352, !29, i64 356, !24, i64 360, !21, i64 368}
!27 = !{!"_ZTSN3JPH11CharacterIDE", !6, i64 0}
!28 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSN3JPH4QuatE", !18, i64 0}
!31 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !14, i64 16}
!32 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !33, i64 0}
!33 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !14, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !6, i64 24}
!34 = !{!26, !19, i64 200}
!35 = !{!7, !7, i64 0}
!36 = !{!26, !19, i64 172}
!37 = !{!38, !29, i64 104}
!38 = !{!"_ZTSN3JPH16CharacterVirtual16ContactCollectorE", !39, i64 0, !16, i64 32, !16, i64 48, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !6, i64 96, !19, i64 100, !29, i64 104}
!39 = !{!"_ZTSN3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEE", !19, i64 8, !14, i64 16}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!26, !29, i64 356}
!43 = !{!26, !19, i64 192}
!44 = !{!45, !19, i64 80}
!45 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !46, i64 0, !16, i64 16, !16, i64 32, !16, i64 48, !16, i64 64, !19, i64 80, !19, i64 84, !47, i64 88, !29, i64 89, !14, i64 96, !24, i64 104, !14, i64 112, !29, i64 120, !29, i64 121, !29, i64 122}
!46 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !21, i64 0, !27, i64 4, !22, i64 8}
!47 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!48 = !{!45, !14, i64 96}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass