; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character/CharacterVirtualTest.ll (ZN20CharacterVirtualTest10InitializeEv)

; 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::Ref.11" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.20 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.20 = type { i64, [8 x i8] }
%"class.JPH::CharacterBaseSettings" = type { ptr, %"class.JPH::RefTarget", %"class.JPH::Vec3", %"class.JPH::Plane", float, i8, %"class.JPH::RefConst" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::CharacterVirtualSettings" = type <{ %"class.JPH::CharacterBaseSettings", %"class.JPH::CharacterID", float, float, [4 x i8], %"class.JPH::Vec3", i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, %"class.JPH::RefConst", %"class.JPH::BodyID", i16, [10 x i8] }>
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%class.CharacterBaseTest = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, i8, [12 x i8] }>
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::CharacterVsCharacterCollisionSimple" = type { %"class.JPH::CharacterVsCharacterCollision", %"class.JPH::Array.4" }
%"class.JPH::CharacterVsCharacterCollision" = type { ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::Ref.7" = type { ptr }
%class.CharacterVirtualTest = type { %class.CharacterBaseTest.base, %"class.JPH::CharacterContactListener", %"class.JPH::Ref.7", %"class.JPH::Vec3", i8, %"class.JPH::Array.8" }
%class.CharacterBaseTest.base = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, i8 }>
%"class.JPH::CharacterContactListener" = type { ptr }
%"class.JPH::Array.8" = type { i64, i64, ptr }

@_ZN20CharacterVirtualTest14sMaxSlopeAngleE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest12sMaxStrengthE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest13sBackFaceModeE = external dso_local global i8, align 1
@_ZN20CharacterVirtualTest17sCharacterPaddingE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest25sPenetrationRecoverySpeedE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest26sPredictiveContactDistanceE = external dso_local global float, align 4
@_ZN20CharacterVirtualTest28sEnhancedInternalEdgeRemovalE = external dso_local global i8, align 1
@_ZN20CharacterVirtualTest16sCreateInnerBodyE = external dso_local global i8, align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

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

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: mustprogress uwtable
define dso_local void @_ZN20CharacterVirtualTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(400) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Ref.11", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.JPH::Plane", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::RefConst", align 8
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Quat", align 16
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324) %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #11
  %18 = call noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef 160)
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 160, i1 false)
  invoke void @_ZN3JPH24CharacterVirtualSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(150) %18)
          to label %19 unwind label %145

19:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %18)
  %20 = load float, ptr @_ZN20CharacterVirtualTest14sMaxSlopeAngleE, align 4, !tbaa !9
  %21 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %22 unwind label %149

22:                                               ; preds = %19
  %23 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %21, i32 0, i32 4
  store float %20, ptr %23, align 16, !tbaa !11
  %24 = load float, ptr @_ZN20CharacterVirtualTest12sMaxStrengthE, align 4, !tbaa !9
  %25 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %26 unwind label %149

26:                                               ; preds = %22
  %27 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %25, i32 0, i32 3
  store float %24, ptr %27, align 8, !tbaa !22
  %28 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 1
  %29 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %30 unwind label %149

30:                                               ; preds = %26
  %31 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %29, i32 0, i32 6
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %33 unwind label %149

33:                                               ; preds = %30
  %34 = load i8, ptr @_ZN20CharacterVirtualTest13sBackFaceModeE, align 1, !tbaa !28
  %35 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %36 unwind label %149

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %35, i32 0, i32 6
  store i8 %34, ptr %37, align 16, !tbaa !29
  %38 = load float, ptr @_ZN20CharacterVirtualTest17sCharacterPaddingE, align 4, !tbaa !9
  %39 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %40 unwind label %149

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %39, i32 0, i32 13
  store float %38, ptr %41, align 8, !tbaa !30
  %42 = load float, ptr @_ZN20CharacterVirtualTest25sPenetrationRecoverySpeedE, align 4, !tbaa !9
  %43 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %44 unwind label %149

44:                                               ; preds = %40
  %45 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %43, i32 0, i32 16
  store float %42, ptr %45, align 4, !tbaa !31
  %46 = load float, ptr @_ZN20CharacterVirtualTest26sPredictiveContactDistanceE, align 4, !tbaa !9
  %47 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %48 unwind label %149

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %47, i32 0, i32 8
  store float %46, ptr %49, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #11
  %50 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %51 unwind label %153

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %53 = getelementptr inbounds %union.anon, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %55 = extractvalue { double, double } %50, 0
  store double %55, ptr %54, align 16
  %56 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %57 = extractvalue { double, double } %50, 1
  store double %57, ptr %56, align 8
  %58 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %59 = load double, ptr %58, align 16
  %60 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %61 = load double, ptr %60, align 8
  invoke void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %6, double %59, double %61, float noundef 0xBFD3333340000000)
          to label %62 unwind label %153

62:                                               ; preds = %51
  %63 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %64 unwind label %153

64:                                               ; preds = %62
  %65 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %63, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #11
  %66 = load i8, ptr @_ZN20CharacterVirtualTest28sEnhancedInternalEdgeRemovalE, align 1, !tbaa !35, !range !36, !noundef !37
  %67 = trunc i8 %66 to i1
  %68 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %69 unwind label %149

69:                                               ; preds = %64
  %70 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %68, i32 0, i32 5
  %71 = zext i1 %67 to i8
  store i8 %71, ptr %70, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #11
  %72 = load i8, ptr @_ZN20CharacterVirtualTest16sCreateInnerBodyE, align 1, !tbaa !35, !range !36, !noundef !37
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %77

74:                                               ; preds = %69
  %75 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 4
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %76 unwind label %157

76:                                               ; preds = %74
  br label %79

77:                                               ; preds = %69
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef null)
          to label %78 unwind label %157

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %76
  %80 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %81 unwind label %161

81:                                               ; preds = %79
  %82 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %80, i32 0, i32 17
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  %84 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %85 unwind label %149

85:                                               ; preds = %81
  %86 = getelementptr inbounds %"class.JPH::CharacterVirtualSettings", ptr %84, i32 0, i32 19
  store i16 1, ptr %86, align 4, !tbaa !39
  %87 = invoke noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef 384)
          to label %88 unwind label %149

88:                                               ; preds = %85
  %89 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %90 unwind label %166

90:                                               ; preds = %88
  %91 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %92 unwind label %166

92:                                               ; preds = %90
  %93 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %91, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %91, 1
  store double %98, ptr %97, align 8
  %99 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %100 unwind label %166

100:                                              ; preds = %92
  %101 = getelementptr inbounds %"class.JPH::Quat", ptr %10, i32 0, i32 0
  %102 = getelementptr inbounds %"class.JPH::Vec4", ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %union.anon.12, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 0
  %105 = extractvalue { double, double } %99, 0
  store double %105, ptr %104, align 16
  %106 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 1
  %107 = extractvalue { double, double } %99, 1
  store double %107, ptr %106, align 8
  %108 = getelementptr inbounds %class.Test, ptr %17, i32 0, i32 2
  %109 = load ptr, ptr %108, align 16, !tbaa !40
  %110 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %111 = load double, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %115 = load double, ptr %114, align 16
  %116 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %117 = load double, ptr %116, align 8
  invoke void @_ZN3JPH16CharacterVirtualC1EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(372) %87, ptr noundef %89, double %111, double %113, double %115, double %117, i64 noundef 0, ptr noundef %109)
          to label %118 unwind label %166

118:                                              ; preds = %100
  %119 = getelementptr inbounds %class.CharacterVirtualTest, ptr %17, i32 0, i32 2
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_16CharacterVirtualEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef %87)
          to label %121 unwind label %149

121:                                              ; preds = %118
  %122 = getelementptr inbounds %class.CharacterVirtualTest, ptr %17, i32 0, i32 2
  %123 = invoke noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %122)
          to label %124 unwind label %149

124:                                              ; preds = %121
  %125 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 10
  invoke void @_ZN3JPH16CharacterVirtual32SetCharacterVsCharacterCollisionEPNS_29CharacterVsCharacterCollisionE(ptr noundef nonnull align 16 dereferenceable(372) %123, ptr noundef %125)
          to label %126 unwind label %149

126:                                              ; preds = %124
  %127 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 10
  %128 = getelementptr inbounds %class.CharacterVirtualTest, ptr %17, i32 0, i32 2
  %129 = invoke noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %128)
          to label %130 unwind label %149

130:                                              ; preds = %126
  invoke void @_ZN3JPH35CharacterVsCharacterCollisionSimple3AddEPNS_16CharacterVirtualE(ptr noundef nonnull align 8 dereferenceable(32) %127, ptr noundef %129)
          to label %131 unwind label %149

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #11
  %132 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 10
  %133 = getelementptr inbounds %"class.JPH::CharacterVsCharacterCollisionSimple", ptr %132, i32 0, i32 1
  store ptr %133, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = invoke noundef ptr @_ZN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %134)
          to label %136 unwind label %170

136:                                              ; preds = %131
  store ptr %135, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = invoke noundef ptr @_ZN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %137)
          to label %139 unwind label %174

139:                                              ; preds = %136
  store ptr %138, ptr %13, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %184, %139
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = icmp ne ptr %141, %142
  br i1 %143, label %178, label %144

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  br label %193

145:                                              ; preds = %1
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %4, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %5, align 4
  call void @_ZN3JPH24CharacterVirtualSettingsdlEPv(ptr noundef %18) #11
  br label %237

149:                                              ; preds = %130, %126, %124, %121, %118, %85, %81, %64, %44, %40, %36, %33, %30, %26, %22, %19
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %4, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %5, align 4
  br label %236

153:                                              ; preds = %62, %51, %48
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %4, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #11
  br label %236

157:                                              ; preds = %77, %74
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %4, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %5, align 4
  br label %165

161:                                              ; preds = %79
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %4, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %5, align 4
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #11
  br label %165

165:                                              ; preds = %161, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  br label %236

166:                                              ; preds = %100, %92, %90, %88
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %4, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %5, align 4
  call void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef %87) #11
  br label %236

170:                                              ; preds = %131
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %4, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %5, align 4
  br label %192

174:                                              ; preds = %136
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %4, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %5, align 4
  br label %191

178:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  store ptr %180, ptr %14, align 8, !tbaa !5
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %17, i64 328
  invoke void @_ZN3JPH16CharacterVirtual11SetListenerEPNS_24CharacterContactListenerE(ptr noundef nonnull align 16 dereferenceable(372) %181, ptr noundef %182)
          to label %183 unwind label %187

183:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = getelementptr inbounds ptr, ptr %185, i32 1
  store ptr %186, ptr %12, align 8, !tbaa !5
  br label %140

187:                                              ; preds = %178
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %4, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  br label %191

191:                                              ; preds = %187, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  br label %192

192:                                              ; preds = %191, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  br label %236

193:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  store i64 0, ptr %15, align 8, !tbaa !47
  br label %194

194:                                              ; preds = %222, %193
  %195 = load i64, ptr %15, align 8, !tbaa !47
  %196 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 5
  %197 = invoke noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %196)
          to label %198 unwind label %201

198:                                              ; preds = %194
  %199 = icmp ult i64 %195, %197
  br i1 %199, label %205, label %200

200:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  br label %235

201:                                              ; preds = %205, %194
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %4, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %5, align 4
  br label %234

205:                                              ; preds = %198
  %206 = getelementptr inbounds %class.CharacterBaseTest, ptr %17, i32 0, i32 5
  %207 = load i64, ptr %15, align 8, !tbaa !47
  %208 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %207)
          to label %209 unwind label %201

209:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #11
  %210 = load i64, ptr %15, align 8, !tbaa !47
  %211 = and i64 %210, 1
  %212 = icmp ne i64 %211, 0
  %213 = zext i1 %212 to i64
  %214 = select i1 %212, ptr @.str.2, ptr @.str.3
  %215 = load i64, ptr %15, align 8, !tbaa !47
  %216 = and i64 %215, 2
  %217 = icmp ne i64 %216, 0
  %218 = zext i1 %217 to i64
  %219 = select i1 %217, ptr @.str.2, ptr @.str.3
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef @.str.1, ptr noundef %214, ptr noundef %219)
          to label %220 unwind label %225

220:                                              ; preds = %209
  invoke void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112) %17, ptr noundef nonnull align 4 dereferenceable(4) %208, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %221 unwind label %229

221:                                              ; preds = %220
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #11
  br label %222

222:                                              ; preds = %221
  %223 = load i64, ptr %15, align 8, !tbaa !47
  %224 = add i64 %223, 1
  store i64 %224, ptr %15, align 8, !tbaa !47
  br label %194, !llvm.loop !48

225:                                              ; preds = %209
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %4, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %5, align 4
  br label %233

229:                                              ; preds = %220
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %4, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  br label %233

233:                                              ; preds = %229, %225
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #11
  br label %234

234:                                              ; preds = %233, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  br label %236

235:                                              ; preds = %200
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #11
  ret void

236:                                              ; preds = %234, %192, %166, %165, %153, %149
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  br label %237

237:                                              ; preds = %236, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #11
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %4, align 8
  %240 = load i32, ptr %5, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

declare void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324)) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH24CharacterVirtualSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(150)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH24CharacterVirtualSettingsdlEPv(ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #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) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #9 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() #3 align 2

declare void @_ZN3JPH16CharacterVirtualC1EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef, double, double, double, double, i64 noundef, ptr noundef) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef) #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual32SetCharacterVsCharacterCollisionEPNS_29CharacterVsCharacterCollisionE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef) #10 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH35CharacterVsCharacterCollisionSimple3AddEPNS_16CharacterVirtualE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual11SetListenerEPNS_24CharacterContactListenerE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef) #10 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) #2

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

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

attributes #0 = { 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 = { "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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { 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 #11 = { 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, !10, i64 48}
!12 = !{!"_ZTSN3JPH21CharacterBaseSettingsE", !13, i64 8, !17, i64 16, !18, i64 32, !10, i64 48, !20, i64 52, !21, i64 56}
!13 = !{!"_ZTSN3JPH9RefTargetINS_21CharacterBaseSettingsEEE", !14, i64 0}
!14 = !{!"_ZTSSt6atomicIjE", !15, i64 0}
!15 = !{!"_ZTSSt13__atomic_baseIjE", !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!18 = !{!"_ZTSN3JPH5PlaneE", !19, i64 0}
!19 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!22 = !{!23, !10, i64 72}
!23 = !{!"_ZTSN3JPH24CharacterVirtualSettingsE", !12, i64 0, !24, i64 64, !10, i64 68, !10, i64 72, !17, i64 80, !25, i64 96, !10, i64 100, !16, i64 104, !16, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !16, i64 124, !10, i64 128, !10, i64 132, !21, i64 136, !26, i64 144, !27, i64 148}
!24 = !{!"_ZTSN3JPH11CharacterIDE", !16, i64 0}
!25 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH6BodyIDE", !16, i64 0}
!27 = !{!"short", !7, i64 0}
!28 = !{!25, !25, i64 0}
!29 = !{!23, !25, i64 96}
!30 = !{!23, !10, i64 120}
!31 = !{!23, !10, i64 132}
!32 = !{!23, !10, i64 100}
!33 = !{i64 0, i64 16, !34}
!34 = !{!7, !7, i64 0}
!35 = !{!20, !20, i64 0}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!12, !20, i64 52}
!39 = !{!23, !27, i64 148}
!40 = !{!41, !6, i64 16}
!41 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !20, i64 48, !42, i64 56}
!42 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !43, i64 0}
!43 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !44, i64 8, !45, i64 16, !44, i64 24, !46, i64 32, !6, i64 48}
!44 = !{!"long", !7, i64 0}
!45 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!46 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !44, i64 8}
!47 = !{!44, !44, i64 0}
!48 = distinct !{!48, !49}
!49 = !{!"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::Ref.11" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::RefConst" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.20 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.20 = type { i64, [8 x i8] }

@_ZN20CharacterVirtualTest14sMaxSlopeAngleE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest12sMaxStrengthE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest13sBackFaceModeE = external dso_local local_unnamed_addr global i8, align 1
@_ZN20CharacterVirtualTest17sCharacterPaddingE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest25sPenetrationRecoverySpeedE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest26sPredictiveContactDistanceE = external dso_local local_unnamed_addr global float, align 4
@_ZN20CharacterVirtualTest28sEnhancedInternalEdgeRemovalE = external dso_local local_unnamed_addr global i8, align 1
@_ZN20CharacterVirtualTest16sCreateInnerBodyE = external dso_local local_unnamed_addr global i8, align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

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

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
define dso_local void @_ZN20CharacterVirtualTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(400) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref.11", align 8
  %3 = alloca %"class.JPH::Plane", align 16
  %4 = alloca %"class.JPH::RefConst", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #11
  %6 = tail call noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef 160)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %6, i8 0, i64 160, i1 false)
  invoke void @_ZN3JPH24CharacterVirtualSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(150) %6)
          to label %7 unwind label %79

7:                                                ; preds = %1
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %6)
  %8 = load float, ptr @_ZN20CharacterVirtualTest14sMaxSlopeAngleE, align 4, !tbaa !5
  %9 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %10 = getelementptr inbounds i8, ptr %9, i64 48
  store float %8, ptr %10, align 16, !tbaa !9
  %11 = load float, ptr @_ZN20CharacterVirtualTest12sMaxStrengthE, align 4, !tbaa !5
  %12 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %13 = getelementptr inbounds i8, ptr %12, i64 72
  store float %11, ptr %13, align 8, !tbaa !21
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  %15 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %16 = getelementptr inbounds i8, ptr %15, i64 56
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %18 unwind label %81

18:                                               ; preds = %7
  %19 = load i8, ptr @_ZN20CharacterVirtualTest13sBackFaceModeE, align 1, !tbaa !27
  %20 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %21 = getelementptr inbounds i8, ptr %20, i64 96
  store i8 %19, ptr %21, align 16, !tbaa !28
  %22 = load float, ptr @_ZN20CharacterVirtualTest17sCharacterPaddingE, align 4, !tbaa !5
  %23 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %24 = getelementptr inbounds i8, ptr %23, i64 120
  store float %22, ptr %24, align 8, !tbaa !29
  %25 = load float, ptr @_ZN20CharacterVirtualTest25sPenetrationRecoverySpeedE, align 4, !tbaa !5
  %26 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %27 = getelementptr inbounds i8, ptr %26, i64 132
  store float %25, ptr %27, align 4, !tbaa !30
  %28 = load float, ptr @_ZN20CharacterVirtualTest26sPredictiveContactDistanceE, align 4, !tbaa !5
  %29 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %30 = getelementptr inbounds i8, ptr %29, i64 100
  store float %28, ptr %30, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #11
  %31 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %32 unwind label %83

32:                                               ; preds = %18
  %33 = extractvalue { double, double } %31, 0
  %34 = extractvalue { double, double } %31, 1
  invoke void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %3, double %33, double %34, float noundef 0xBFD3333340000000)
          to label %35 unwind label %83

35:                                               ; preds = %32
  %36 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %37, ptr noundef nonnull align 16 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #11
  %38 = load i8, ptr @_ZN20CharacterVirtualTest28sEnhancedInternalEdgeRemovalE, align 1, !tbaa !34, !range !35, !noundef !36
  %39 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %40 = getelementptr inbounds i8, ptr %39, i64 52
  store i8 %38, ptr %40, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  %41 = load i8, ptr @_ZN20CharacterVirtualTest16sCreateInnerBodyE, align 1, !tbaa !34, !range !35, !noundef !36
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %45

43:                                               ; preds = %35
  %44 = getelementptr inbounds i8, ptr %0, i64 136
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %46 unwind label %85

45:                                               ; preds = %35
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef null)
          to label %46 unwind label %85

46:                                               ; preds = %45, %43
  %47 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %48 = getelementptr inbounds i8, ptr %47, i64 136
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %50 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %51 = getelementptr inbounds i8, ptr %50, i64 148
  store i16 1, ptr %51, align 4, !tbaa !38
  %52 = invoke noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef 384)
          to label %53 unwind label %81

53:                                               ; preds = %46
  %54 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %55 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %56 unwind label %87

56:                                               ; preds = %53
  %57 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %58 unwind label %87

58:                                               ; preds = %56
  %59 = extractvalue { double, double } %55, 1
  %60 = extractvalue { double, double } %55, 0
  %61 = extractvalue { double, double } %57, 0
  %62 = extractvalue { double, double } %57, 1
  %63 = getelementptr inbounds i8, ptr %0, i64 16
  %64 = load ptr, ptr %63, align 16, !tbaa !39
  invoke void @_ZN3JPH16CharacterVirtualC1EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(372) %52, ptr noundef %54, double %60, double %59, double %61, double %62, i64 noundef 0, ptr noundef %64)
          to label %65 unwind label %87

65:                                               ; preds = %58
  %66 = getelementptr inbounds i8, ptr %0, i64 336
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_16CharacterVirtualEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull %52)
          to label %68 unwind label %81

68:                                               ; preds = %65
  %69 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %66)
  %70 = getelementptr inbounds i8, ptr %0, i64 184
  call void @_ZN3JPH16CharacterVirtual32SetCharacterVsCharacterCollisionEPNS_29CharacterVsCharacterCollisionE(ptr noundef nonnull align 16 dereferenceable(372) %69, ptr noundef nonnull %70)
  %71 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %66)
  invoke void @_ZN3JPH35CharacterVsCharacterCollisionSimple3AddEPNS_16CharacterVirtualE(ptr noundef nonnull align 8 dereferenceable(32) %70, ptr noundef %71)
          to label %72 unwind label %81

72:                                               ; preds = %68
  %73 = getelementptr inbounds i8, ptr %0, i64 192
  %74 = call noundef ptr @_ZN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %73)
  %75 = call noundef ptr @_ZN3JPH5ArrayIPNS_16CharacterVirtualENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %73)
  %.not30 = icmp eq ptr %74, %75
  br i1 %.not30, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %72
  %76 = getelementptr inbounds i8, ptr %0, i64 328
  br label %89

.preheader:                                       ; preds = %89, %72
  %77 = getelementptr inbounds i8, ptr %0, i64 144
  %78 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77)
  %.not34 = icmp eq i64 %78, 0
  br i1 %.not34, label %._crit_edge, label %.lr.ph33

79:                                               ; preds = %1
  %80 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH24CharacterVirtualSettingsdlEPv(ptr noundef nonnull %6) #11
  br label %111

81:                                               ; preds = %68, %65, %46, %7
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %110

83:                                               ; preds = %32, %18
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #11
  br label %110

85:                                               ; preds = %45, %43
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  br label %110

87:                                               ; preds = %58, %56, %53
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef %52) #11
  br label %110

89:                                               ; preds = %.lr.ph, %89
  %.02331 = phi ptr [ %74, %.lr.ph ], [ %91, %89 ]
  %90 = load ptr, ptr %.02331, align 8, !tbaa !46
  call void @_ZN3JPH16CharacterVirtual11SetListenerEPNS_24CharacterContactListenerE(ptr noundef nonnull align 16 dereferenceable(372) %90, ptr noundef nonnull %76)
  %91 = getelementptr inbounds i8, ptr %.02331, i64 8
  %.not = icmp eq ptr %91, %75
  br i1 %.not, label %.preheader, label %89

._crit_edge:                                      ; preds = %101, %.preheader
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #11
  ret void

92:                                               ; preds = %.lr.ph33
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %110

.lr.ph33:                                         ; preds = %.preheader, %101
  %.032 = phi i64 [ %102, %101 ], [ 0, %.preheader ]
  %94 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %.032)
          to label %95 unwind label %92

95:                                               ; preds = %.lr.ph33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #11
  %96 = and i64 %.032, 1
  %.not24 = icmp eq i64 %96, 0
  %97 = select i1 %.not24, ptr @.str.3, ptr @.str.2
  %98 = and i64 %.032, 2
  %.not25 = icmp eq i64 %98, 0
  %99 = select i1 %.not25, ptr @.str.3, ptr @.str.2
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull @.str.1, ptr noundef nonnull %97, ptr noundef nonnull %99)
          to label %100 unwind label %105

100:                                              ; preds = %95
  invoke void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 4 dereferenceable(4) %94, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %101 unwind label %107

101:                                              ; preds = %100
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  %102 = add nuw i64 %.032, 1
  %103 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77)
  %104 = icmp ult i64 %102, %103
  br i1 %104, label %.lr.ph33, label %._crit_edge, !llvm.loop !47

105:                                              ; preds = %95
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %109

107:                                              ; preds = %100
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  br label %109

109:                                              ; preds = %107, %105
  %.pn = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  br label %110

110:                                              ; preds = %92, %109, %87, %85, %83, %81
  %.pn.pn.pn = phi { ptr, i32 } [ %82, %81 ], [ %88, %87 ], [ %86, %85 ], [ %84, %83 ], [ %.pn, %109 ], [ %93, %92 ]
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  br label %111

111:                                              ; preds = %110, %79
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %110 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn.pn.pn.pn
}

declare void @_ZN17CharacterBaseTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(324)) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH24CharacterVirtualSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(150)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH24CharacterVirtualSettingsdlEPv(ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #1 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) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() local_unnamed_addr #3 align 2

declare void @_ZN3JPH16CharacterVirtualC1EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef, double, double, double, double, i64 noundef, ptr noundef) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual32SetCharacterVsCharacterCollisionEPNS_29CharacterVsCharacterCollisionE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef) local_unnamed_addr #10 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH35CharacterVsCharacterCollisionSimple3AddEPNS_16CharacterVirtualE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual11SetListenerEPNS_24CharacterContactListenerE(ptr noundef nonnull align 16 dereferenceable(372), ptr noundef) local_unnamed_addr #10 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7 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 = { "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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { 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 #11 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 48}
!10 = !{!"_ZTSN3JPH21CharacterBaseSettingsE", !11, i64 8, !15, i64 16, !16, i64 32, !6, i64 48, !18, i64 52, !19, i64 56}
!11 = !{!"_ZTSN3JPH9RefTargetINS_21CharacterBaseSettingsEEE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3JPH5PlaneE", !17, i64 0}
!17 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!22, !6, i64 72}
!22 = !{!"_ZTSN3JPH24CharacterVirtualSettingsE", !10, i64 0, !23, i64 64, !6, i64 68, !6, i64 72, !15, i64 80, !24, i64 96, !6, i64 100, !14, i64 104, !14, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !14, i64 124, !6, i64 128, !6, i64 132, !19, i64 136, !25, i64 144, !26, i64 148}
!23 = !{!"_ZTSN3JPH11CharacterIDE", !14, i64 0}
!24 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!25 = !{!"_ZTSN3JPH6BodyIDE", !14, i64 0}
!26 = !{!"short", !7, i64 0}
!27 = !{!24, !24, i64 0}
!28 = !{!22, !24, i64 96}
!29 = !{!22, !6, i64 120}
!30 = !{!22, !6, i64 132}
!31 = !{!22, !6, i64 100}
!32 = !{i64 0, i64 16, !33}
!33 = !{!7, !7, i64 0}
!34 = !{!18, !18, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!10, !18, i64 52}
!38 = !{!22, !26, i64 148}
!39 = !{!40, !20, i64 16}
!40 = !{!"_ZTS4Test", !20, i64 8, !20, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !18, i64 48, !41, i64 56}
!41 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !20, i64 0, !43, i64 8, !44, i64 16, !43, i64 24, !45, i64 32, !20, i64 48}
!43 = !{!"long", !7, i64 0}
!44 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !20, i64 0}
!45 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !6, i64 0, !43, i64 8}
!46 = !{!20, !20, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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