; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character (CharacterSpaceShipTest)

; 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.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Ref.6" = type { ptr }
%"class.JPH::Result" = type <{ %union.anon.9, i8, [7 x i8] }>
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.11 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.11 = type { i64, [8 x i8] }
%"class.JPH::RotatedTranslatedShapeSettings" = type { %"class.JPH::DecoratedShapeSettings", %"class.JPH::Vec3", %"class.JPH::Quat" }
%"class.JPH::DecoratedShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::RefConst.13", %"class.JPH::RefConst" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.12", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.12" = type { %"struct.std::atomic.7" }
%"struct.std::atomic.7" = type { %"struct.std::__atomic_base.8" }
%"struct.std::__atomic_base.8" = type { i32 }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::StaticCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.19" }
%"class.JPH::Array.19" = type { i64, i64, ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"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.7" }
%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.CharacterSpaceShipTest = type <{ %class.Test, %"class.JPH::CharacterContactListener", %"class.JPH::Ref", %"class.JPH::BodyID", [12 x i8], %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8], %"class.JPH::Vec3", i8, i8, [14 x i8] }>
%"class.JPH::CharacterContactListener" = type { ptr }
%"class.JPH::Ref" = type { ptr }

; 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 @_ZN22CharacterSpaceShipTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(274) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Ref.6", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Result", align 8
  %11 = alloca %"class.JPH::RotatedTranslatedShapeSettings", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::Plane", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Quat", align 16
  %19 = alloca %"class.JPH::StaticCompoundShapeSettings", align 8
  %20 = alloca float, align 4
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Quat", align 16
  %23 = alloca %"class.JPH::BodyID", align 4
  %24 = alloca %"class.JPH::BodyCreationSettings", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Quat", align 16
  %27 = alloca %"class.JPH::Mat44", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #11
  store float 2.000000e+00, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #11
  store float 0x3FC99999A0000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #11
  store float 1.000000e+02, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef -2.500000e+01, float noundef 1.500000e+01, float noundef 0.000000e+00)
  %29 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %28, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #11
  %30 = call noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef 160)
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 160, i1 false)
  invoke void @_ZN3JPH24CharacterVirtualSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(150) %30)
          to label %31 unwind label %130

31:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %30)
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #11
  call void @llvm.lifetime.start.p0(i64 112, ptr %11) #11
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 0.000000e+00, float noundef 0x3FEF333340000000, float noundef 0.000000e+00)
          to label %32 unwind label %134

32:                                               ; preds = %31
  %33 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %34 unwind label %134

34:                                               ; preds = %32
  %35 = getelementptr inbounds %"class.JPH::Quat", ptr %13, i32 0, i32 0
  %36 = getelementptr inbounds %"class.JPH::Vec4", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %union.anon, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %39 = extractvalue { double, double } %33, 0
  store double %39, ptr %38, align 16
  %40 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %41 = extractvalue { double, double } %33, 1
  store double %41, ptr %40, align 8
  %42 = invoke noundef ptr @_ZN3JPH12CapsuleShapenwEm(i64 noundef 56)
          to label %43 unwind label %134

43:                                               ; preds = %34
  invoke void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %42, float noundef 0x3FE59999A0000000, float noundef 0x3FD3333340000000, ptr noundef null)
          to label %44 unwind label %138

44:                                               ; preds = %43
  %45 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %46 = load double, ptr %45, align 16
  %47 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %48 = load double, ptr %47, align 8
  %49 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %50 = load double, ptr %49, align 16
  %51 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %52 = load double, ptr %51, align 8
  invoke void @_ZN3JPH30RotatedTranslatedShapeSettingsC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(112) %11, double %46, double %48, double %50, double %52, ptr noundef %42)
          to label %53 unwind label %134

53:                                               ; preds = %44
  invoke void @_ZNK3JPH30RotatedTranslatedShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %10, ptr noundef nonnull align 16 dereferenceable(112) %11)
          to label %54 unwind label %142

54:                                               ; preds = %53
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %10)
          to label %56 unwind label %146

56:                                               ; preds = %54
  %57 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %58 unwind label %146

58:                                               ; preds = %56
  %59 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %57, i32 0, i32 6
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %61 unwind label %146

61:                                               ; preds = %58
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #11
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %11) #11
  call void @llvm.lifetime.end.p0(i64 112, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #11
  %62 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %63 unwind label %152

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %65 = getelementptr inbounds %union.anon.4, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %67 = extractvalue { double, double } %62, 0
  store double %67, ptr %66, align 16
  %68 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %69 = extractvalue { double, double } %62, 1
  store double %69, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %71 = load double, ptr %70, align 16
  %72 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %73 = load double, ptr %72, align 8
  invoke void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %14, double %71, double %73, float noundef 0xBFD3333340000000)
          to label %74 unwind label %152

74:                                               ; preds = %63
  %75 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %76 unwind label %152

76:                                               ; preds = %74
  %77 = getelementptr inbounds %"class.JPH::CharacterBaseSettings", ptr %75, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %77, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #11
  %78 = invoke noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef 384)
          to label %79 unwind label %156

79:                                               ; preds = %76
  %80 = invoke noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %81 unwind label %160

81:                                               ; preds = %79
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00)
          to label %82 unwind label %160

82:                                               ; preds = %81
  %83 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %84 = load double, ptr %83, align 16
  %85 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %86 = load double, ptr %85, align 8
  %87 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %84, double %86)
          to label %88 unwind label %160

88:                                               ; preds = %82
  %89 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %90 = getelementptr inbounds %union.anon.4, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 0
  %92 = extractvalue { double, double } %87, 0
  store double %92, ptr %91, align 16
  %93 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 1
  %94 = extractvalue { double, double } %87, 1
  store double %94, ptr %93, align 8
  %95 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %96 unwind label %160

96:                                               ; preds = %88
  %97 = getelementptr inbounds %"class.JPH::Quat", ptr %18, i32 0, i32 0
  %98 = getelementptr inbounds %"class.JPH::Vec4", ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %union.anon, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds { double, double }, ptr %99, i32 0, i32 0
  %101 = extractvalue { double, double } %95, 0
  store double %101, ptr %100, align 16
  %102 = getelementptr inbounds { double, double }, ptr %99, i32 0, i32 1
  %103 = extractvalue { double, double } %95, 1
  store double %103, ptr %102, align 8
  %104 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %105 = load ptr, ptr %104, align 16, !tbaa !13
  %106 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %107 = load double, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %109 = load double, ptr %108, align 8
  %110 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %111 = load double, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  invoke void @_ZN3JPH16CharacterVirtualC1EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(372) %78, ptr noundef %80, double %107, double %109, double %111, double %113, i64 noundef 0, ptr noundef %105)
          to label %114 unwind label %160

114:                                              ; preds = %96
  %115 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %28, i32 0, i32 2
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_16CharacterVirtualEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef %78)
          to label %117 unwind label %156

117:                                              ; preds = %114
  %118 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %28, i32 0, i32 2
  %119 = invoke noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %120 unwind label %156

120:                                              ; preds = %117
  %121 = getelementptr inbounds i8, ptr %28, i64 112
  invoke void @_ZN3JPH16CharacterVirtual11SetListenerEPNS_24CharacterContactListenerE(ptr noundef nonnull align 16 dereferenceable(372) %119, ptr noundef %121)
          to label %122 unwind label %156

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 88, ptr %19) #11
  invoke void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
          to label %123 unwind label %164

123:                                              ; preds = %122
  %124 = getelementptr inbounds i8, ptr %19, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %124)
          to label %125 unwind label %168

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  store float 0x3FC99999A0000000, ptr %20, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %212, %125
  %127 = load float, ptr %20, align 4, !tbaa !9
  %128 = fcmp olt float %127, 2.000000e+00
  br i1 %128, label %172, label %129

129:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  br label %224

130:                                              ; preds = %1
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %8, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %9, align 4
  call void @_ZN3JPH24CharacterVirtualSettingsdlEPv(ptr noundef %30) #11
  br label %270

134:                                              ; preds = %44, %34, %32, %31
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %8, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %9, align 4
  br label %151

138:                                              ; preds = %43
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  call void @_ZN3JPH12CapsuleShapedlEPv(ptr noundef %42) #11
  br label %151

142:                                              ; preds = %53
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %8, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %9, align 4
  br label %150

146:                                              ; preds = %58, %56, %54
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %8, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %9, align 4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #11
  br label %150

150:                                              ; preds = %146, %142
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %11) #11
  br label %151

151:                                              ; preds = %150, %138, %134
  call void @llvm.lifetime.end.p0(i64 112, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #11
  br label %269

152:                                              ; preds = %74, %63, %61
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %8, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #11
  br label %269

156:                                              ; preds = %120, %117, %114, %76
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %8, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %9, align 4
  br label %269

160:                                              ; preds = %96, %88, %82, %81, %79
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %8, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %9, align 4
  call void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef %78) #11
  br label %269

164:                                              ; preds = %122
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %8, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %9, align 4
  br label %268

168:                                              ; preds = %123
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %8, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %9, align 4
  br label %267

172:                                              ; preds = %126
  %173 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %174 unwind label %215

174:                                              ; preds = %172
  %175 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %176 = getelementptr inbounds %union.anon.4, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 0
  %178 = extractvalue { double, double } %173, 0
  store double %178, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 1
  %180 = extractvalue { double, double } %173, 1
  store double %180, ptr %179, align 8
  %181 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %182 unwind label %215

182:                                              ; preds = %174
  %183 = getelementptr inbounds %"class.JPH::Quat", ptr %22, i32 0, i32 0
  %184 = getelementptr inbounds %"class.JPH::Vec4", ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds %union.anon, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 0
  %187 = extractvalue { double, double } %181, 0
  store double %187, ptr %186, align 16
  %188 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 1
  %189 = extractvalue { double, double } %181, 1
  store double %189, ptr %188, align 8
  %190 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %191 unwind label %215

191:                                              ; preds = %182
  %192 = load float, ptr %20, align 4, !tbaa !9
  %193 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
          to label %194 unwind label %219

194:                                              ; preds = %191
  %195 = load float, ptr %20, align 4, !tbaa !9
  %196 = fadd float 0x4058733340000000, %195
  %197 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %196)
          to label %198 unwind label %219

198:                                              ; preds = %194
  %199 = fsub float %193, %197
  %200 = invoke noundef float @_ZSt4sqrtf(float noundef %199)
          to label %201 unwind label %219

201:                                              ; preds = %198
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %190, float noundef %192, float noundef %200, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %202 unwind label %219

202:                                              ; preds = %201
  %203 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %204 = load double, ptr %203, align 16
  %205 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %206 = load double, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %208 = load double, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %19, double %204, double %206, double %208, double %210, ptr noundef %190, i32 noundef 0)
          to label %211 unwind label %215

211:                                              ; preds = %202
  br label %212

212:                                              ; preds = %211
  %213 = load float, ptr %20, align 4, !tbaa !9
  %214 = fadd float %213, 0x3FC99999A0000000
  store float %214, ptr %20, align 4, !tbaa !9
  br label %126, !llvm.loop !21

215:                                              ; preds = %202, %182, %174, %172
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %8, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %9, align 4
  br label %223

219:                                              ; preds = %201, %198, %194, %191
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %8, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %9, align 4
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %190) #11
  br label %223

223:                                              ; preds = %219, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  br label %267

224:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  %225 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 3
  %226 = load ptr, ptr %225, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !11
  %227 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %228 unwind label %254

228:                                              ; preds = %224
  %229 = getelementptr inbounds %"class.JPH::Quat", ptr %26, i32 0, i32 0
  %230 = getelementptr inbounds %"class.JPH::Vec4", ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %union.anon, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds { double, double }, ptr %231, i32 0, i32 0
  %233 = extractvalue { double, double } %227, 0
  store double %233, ptr %232, align 16
  %234 = getelementptr inbounds { double, double }, ptr %231, i32 0, i32 1
  %235 = extractvalue { double, double } %227, 1
  store double %235, ptr %234, align 8
  %236 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %237 = load double, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %239 = load double, ptr %238, align 8
  %240 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %241 = load double, ptr %240, align 16
  %242 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %243 = load double, ptr %242, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %24, ptr noundef %19, double %237, double %239, double %241, double %243, i8 noundef zeroext 1, i16 noundef zeroext 1)
          to label %244 unwind label %254

244:                                              ; preds = %228
  %245 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %226, ptr noundef nonnull align 16 dereferenceable(256) %24, i32 noundef 0)
          to label %246 unwind label %258

246:                                              ; preds = %244
  %247 = getelementptr inbounds %"class.JPH::BodyID", ptr %23, i32 0, i32 0
  store i32 %245, ptr %247, align 4
  %248 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %28, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %248, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !24
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %24) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #11
  %249 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 3
  %250 = load ptr, ptr %249, align 8, !tbaa !23
  %251 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %28, i32 0, i32 3
  invoke void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %27, ptr noundef nonnull align 8 dereferenceable(24) %250, ptr noundef nonnull align 4 dereferenceable(4) %251)
          to label %252 unwind label %263

252:                                              ; preds = %246
  %253 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %28, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %253, ptr align 16 %27, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #11
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #11
  call void @llvm.lifetime.end.p0(i64 88, ptr %19) #11
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #11
  ret void

254:                                              ; preds = %228, %224
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %8, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %9, align 4
  br label %262

258:                                              ; preds = %244
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %8, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %9, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %24) #11
  br label %262

262:                                              ; preds = %258, %254
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %267

263:                                              ; preds = %246
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %8, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #11
  br label %267

267:                                              ; preds = %263, %262, %223, %168
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #11
  br label %268

268:                                              ; preds = %267, %164
  call void @llvm.lifetime.end.p0(i64 88, ptr %19) #11
  br label %269

269:                                              ; preds = %268, %160, %156, %152, %151
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #11
  br label %270

270:                                              ; preds = %269, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #11
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %8, align 8
  %273 = load i32, ptr %9, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float noundef) #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH30RotatedTranslatedShapeSettingsC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(112), double, double, double, double, ptr noundef) unnamed_addr #1 align 2

declare void @_ZNK3JPH30RotatedTranslatedShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 16 dereferenceable(112)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() #4 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) #10

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 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 #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef) #7 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) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 align 2

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

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #7

declare void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #3

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

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

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

declare void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8 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 = { 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 #3 = { "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { 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 #9 = { 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 #10 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !15, i64 48, !16, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !17, i64 0}
!17 = !{!"_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, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !6, i64 48}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !18, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!14, !6, i64 24}
!24 = !{i64 0, i64 4, !25}
!25 = !{!26, !26, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = !{i64 0, i64 64, !12}


; 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.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Ref.6" = type { ptr }
%"class.JPH::Result" = type <{ %union.anon.9, i8, [7 x i8] }>
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.11 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.11 = type { i64, [8 x i8] }
%"class.JPH::RotatedTranslatedShapeSettings" = type { %"class.JPH::DecoratedShapeSettings", %"class.JPH::Vec3", %"class.JPH::Quat" }
%"class.JPH::DecoratedShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::RefConst.13", %"class.JPH::RefConst" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.12", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.12" = type { %"struct.std::atomic.7" }
%"struct.std::atomic.7" = type { %"struct.std::__atomic_base.8" }
%"struct.std::__atomic_base.8" = type { i32 }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::StaticCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.19" }
%"class.JPH::Array.19" = type { i64, i64, ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }

; 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 @_ZN22CharacterSpaceShipTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(274) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Vec3", align 16
  %3 = alloca %"class.JPH::Ref.6", align 8
  %4 = alloca %"class.JPH::Result", align 8
  %5 = alloca %"class.JPH::RotatedTranslatedShapeSettings", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Plane", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::StaticCompoundShapeSettings", align 8
  %10 = alloca %"class.JPH::BodyCreationSettings", align 16
  %11 = alloca %"class.JPH::Mat44", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %2, float noundef -2.500000e+01, float noundef 1.500000e+01, float noundef 0.000000e+00)
  %12 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #11
  %13 = call noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef 160)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %13, i8 0, i64 160, i1 false)
  invoke void @_ZN3JPH24CharacterVirtualSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(150) %13)
          to label %14 unwind label %67

14:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #11
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef 0x3FEF333340000000, float noundef 0.000000e+00)
          to label %15 unwind label %69

15:                                               ; preds = %14
  %16 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %17 unwind label %69

17:                                               ; preds = %15
  %18 = extractvalue { double, double } %16, 0
  %19 = extractvalue { double, double } %16, 1
  %20 = invoke noundef ptr @_ZN3JPH12CapsuleShapenwEm(i64 noundef 56)
          to label %21 unwind label %69

21:                                               ; preds = %17
  invoke void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %20, float noundef 0x3FE59999A0000000, float noundef 0x3FD3333340000000, ptr noundef null)
          to label %22 unwind label %71

22:                                               ; preds = %21
  %23 = load double, ptr %6, align 16
  %24 = getelementptr inbounds i8, ptr %6, i64 8
  %25 = load double, ptr %24, align 8
  invoke void @_ZN3JPH30RotatedTranslatedShapeSettingsC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(112) %5, double %23, double %25, double %18, double %19, ptr noundef nonnull %20)
          to label %26 unwind label %69

26:                                               ; preds = %22
  invoke void @_ZNK3JPH30RotatedTranslatedShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %4, ptr noundef nonnull align 16 dereferenceable(112) %5)
          to label %27 unwind label %73

27:                                               ; preds = %26
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %4)
          to label %29 unwind label %75

29:                                               ; preds = %27
  %30 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %31 = getelementptr inbounds i8, ptr %30, i64 56
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %33 unwind label %75

33:                                               ; preds = %29
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #11
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %5) #11
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #11
  %34 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %35 unwind label %79

35:                                               ; preds = %33
  %36 = extractvalue { double, double } %34, 0
  %37 = extractvalue { double, double } %34, 1
  invoke void @_ZN3JPH5PlaneC2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %7, double %36, double %37, float noundef 0xBFD3333340000000)
          to label %38 unwind label %79

38:                                               ; preds = %35
  %39 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 16 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #11
  %41 = invoke noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef 384)
          to label %42 unwind label %81

42:                                               ; preds = %38
  %43 = call noundef ptr @_ZNK3JPH3RefINS_24CharacterVirtualSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00)
          to label %44 unwind label %83

44:                                               ; preds = %42
  %45 = load double, ptr %8, align 16
  %46 = getelementptr inbounds i8, ptr %8, i64 8
  %47 = load double, ptr %46, align 8
  %48 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %45, double %47)
          to label %49 unwind label %83

49:                                               ; preds = %44
  %50 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %51 unwind label %83

51:                                               ; preds = %49
  %52 = extractvalue { double, double } %48, 1
  %53 = extractvalue { double, double } %48, 0
  %54 = extractvalue { double, double } %50, 0
  %55 = extractvalue { double, double } %50, 1
  %56 = getelementptr inbounds i8, ptr %0, i64 16
  %57 = load ptr, ptr %56, align 16, !tbaa !9
  invoke void @_ZN3JPH16CharacterVirtualC1EPKNS_24CharacterVirtualSettingsENS_4Vec3ENS_4QuatEmPNS_13PhysicsSystemE(ptr noundef nonnull align 16 dereferenceable(372) %41, ptr noundef %43, double %53, double %52, double %54, double %55, i64 noundef 0, ptr noundef %57)
          to label %58 unwind label %83

58:                                               ; preds = %51
  %59 = getelementptr inbounds i8, ptr %0, i64 120
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_16CharacterVirtualEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull %41)
          to label %61 unwind label %81

61:                                               ; preds = %58
  %62 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %59)
  %63 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZN3JPH16CharacterVirtual11SetListenerEPNS_24CharacterContactListenerE(ptr noundef nonnull align 16 dereferenceable(372) %62, ptr noundef nonnull %63)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #11
  invoke void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %64 unwind label %85

64:                                               ; preds = %61
  %65 = getelementptr inbounds i8, ptr %9, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %.preheader.preheader unwind label %87

.preheader.preheader:                             ; preds = %64
  %66 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %89 unwind label %227

67:                                               ; preds = %1
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH24CharacterVirtualSettingsdlEPv(ptr noundef nonnull %13) #11
  br label %251

69:                                               ; preds = %22, %17, %15, %14
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %78

71:                                               ; preds = %21
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH12CapsuleShapedlEPv(ptr noundef %20) #11
  br label %78

73:                                               ; preds = %26
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %29, %27
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %4) #11
  br label %77

77:                                               ; preds = %75, %73
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(112) %5) #11
  br label %78

78:                                               ; preds = %77, %71, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %77 ], [ %70, %69 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #11
  br label %250

79:                                               ; preds = %35, %33
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #11
  br label %250

81:                                               ; preds = %58, %38
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %250

83:                                               ; preds = %51, %49, %44, %42
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef %41) #11
  br label %250

85:                                               ; preds = %61
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %249

87:                                               ; preds = %64
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %248

89:                                               ; preds = %.preheader.preheader
  %90 = extractvalue { double, double } %66, 0
  %91 = extractvalue { double, double } %66, 1
  %92 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %93 unwind label %227

93:                                               ; preds = %89
  %94 = extractvalue { double, double } %92, 0
  %95 = extractvalue { double, double } %92, 1
  %96 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %97 unwind label %227

97:                                               ; preds = %93
  %98 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %99 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 9.800000e+01)
  %100 = fsub float %98, %99
  %101 = call noundef float @_ZSt4sqrtf(float noundef %100)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %96, float noundef 0x3FC99999A0000000, float noundef %101, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %102 unwind label %229

102:                                              ; preds = %97
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %90, double %91, double %94, double %95, ptr noundef nonnull %96, i32 noundef 0)
          to label %.preheader.1 unwind label %227

.preheader.1:                                     ; preds = %102
  %103 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %104 unwind label %227

104:                                              ; preds = %.preheader.1
  %105 = extractvalue { double, double } %103, 0
  %106 = extractvalue { double, double } %103, 1
  %107 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %108 unwind label %227

108:                                              ; preds = %104
  %109 = extractvalue { double, double } %107, 0
  %110 = extractvalue { double, double } %107, 1
  %111 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %112 unwind label %227

112:                                              ; preds = %108
  %113 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %114 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x40588CCCE0000000)
  %115 = fsub float %113, %114
  %116 = call noundef float @_ZSt4sqrtf(float noundef %115)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %111, float noundef 0x3FD99999A0000000, float noundef %116, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %117 unwind label %229

117:                                              ; preds = %112
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %105, double %106, double %109, double %110, ptr noundef nonnull %111, i32 noundef 0)
          to label %.preheader.2 unwind label %227

.preheader.2:                                     ; preds = %117
  %118 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %119 unwind label %227

119:                                              ; preds = %.preheader.2
  %120 = extractvalue { double, double } %118, 0
  %121 = extractvalue { double, double } %118, 1
  %122 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %123 unwind label %227

123:                                              ; preds = %119
  %124 = extractvalue { double, double } %122, 0
  %125 = extractvalue { double, double } %122, 1
  %126 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %127 unwind label %227

127:                                              ; preds = %123
  %128 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %129 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x40589999A0000000)
  %130 = fsub float %128, %129
  %131 = call noundef float @_ZSt4sqrtf(float noundef %130)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %126, float noundef 0x3FE3333340000000, float noundef %131, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %132 unwind label %229

132:                                              ; preds = %127
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %120, double %121, double %124, double %125, ptr noundef nonnull %126, i32 noundef 0)
          to label %.preheader.3 unwind label %227

.preheader.3:                                     ; preds = %132
  %133 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %134 unwind label %227

134:                                              ; preds = %.preheader.3
  %135 = extractvalue { double, double } %133, 0
  %136 = extractvalue { double, double } %133, 1
  %137 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %138 unwind label %227

138:                                              ; preds = %134
  %139 = extractvalue { double, double } %137, 0
  %140 = extractvalue { double, double } %137, 1
  %141 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %142 unwind label %227

142:                                              ; preds = %138
  %143 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %144 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x4058A66680000000)
  %145 = fsub float %143, %144
  %146 = call noundef float @_ZSt4sqrtf(float noundef %145)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %141, float noundef 0x3FE99999A0000000, float noundef %146, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %147 unwind label %229

147:                                              ; preds = %142
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %135, double %136, double %139, double %140, ptr noundef nonnull %141, i32 noundef 0)
          to label %.preheader.4 unwind label %227

.preheader.4:                                     ; preds = %147
  %148 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %149 unwind label %227

149:                                              ; preds = %.preheader.4
  %150 = extractvalue { double, double } %148, 0
  %151 = extractvalue { double, double } %148, 1
  %152 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %153 unwind label %227

153:                                              ; preds = %149
  %154 = extractvalue { double, double } %152, 0
  %155 = extractvalue { double, double } %152, 1
  %156 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %157 unwind label %227

157:                                              ; preds = %153
  %158 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %159 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x4058B33340000000)
  %160 = fsub float %158, %159
  %161 = call noundef float @_ZSt4sqrtf(float noundef %160)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %156, float noundef 1.000000e+00, float noundef %161, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %162 unwind label %229

162:                                              ; preds = %157
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %150, double %151, double %154, double %155, ptr noundef nonnull %156, i32 noundef 0)
          to label %.preheader.5 unwind label %227

.preheader.5:                                     ; preds = %162
  %163 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %164 unwind label %227

164:                                              ; preds = %.preheader.5
  %165 = extractvalue { double, double } %163, 0
  %166 = extractvalue { double, double } %163, 1
  %167 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %168 unwind label %227

168:                                              ; preds = %164
  %169 = extractvalue { double, double } %167, 0
  %170 = extractvalue { double, double } %167, 1
  %171 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %172 unwind label %227

172:                                              ; preds = %168
  %173 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %174 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 9.900000e+01)
  %175 = fsub float %173, %174
  %176 = call noundef float @_ZSt4sqrtf(float noundef %175)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %171, float noundef 0x3FF3333340000000, float noundef %176, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %177 unwind label %229

177:                                              ; preds = %172
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %165, double %166, double %169, double %170, ptr noundef nonnull %171, i32 noundef 0)
          to label %.preheader.6 unwind label %227

.preheader.6:                                     ; preds = %177
  %178 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %179 unwind label %227

179:                                              ; preds = %.preheader.6
  %180 = extractvalue { double, double } %178, 0
  %181 = extractvalue { double, double } %178, 1
  %182 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %183 unwind label %227

183:                                              ; preds = %179
  %184 = extractvalue { double, double } %182, 0
  %185 = extractvalue { double, double } %182, 1
  %186 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %187 unwind label %227

187:                                              ; preds = %183
  %188 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %189 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x4058CCCCE0000000)
  %190 = fsub float %188, %189
  %191 = call noundef float @_ZSt4sqrtf(float noundef %190)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %186, float noundef 0x3FF6666680000000, float noundef %191, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %192 unwind label %229

192:                                              ; preds = %187
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %180, double %181, double %184, double %185, ptr noundef nonnull %186, i32 noundef 0)
          to label %.preheader.7 unwind label %227

.preheader.7:                                     ; preds = %192
  %193 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %194 unwind label %227

194:                                              ; preds = %.preheader.7
  %195 = extractvalue { double, double } %193, 0
  %196 = extractvalue { double, double } %193, 1
  %197 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %198 unwind label %227

198:                                              ; preds = %194
  %199 = extractvalue { double, double } %197, 0
  %200 = extractvalue { double, double } %197, 1
  %201 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %202 unwind label %227

202:                                              ; preds = %198
  %203 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %204 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x4058D999A0000000)
  %205 = fsub float %203, %204
  %206 = call noundef float @_ZSt4sqrtf(float noundef %205)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %201, float noundef 0x3FF99999C0000000, float noundef %206, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %207 unwind label %229

207:                                              ; preds = %202
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %195, double %196, double %199, double %200, ptr noundef nonnull %201, i32 noundef 0)
          to label %.preheader.8 unwind label %227

.preheader.8:                                     ; preds = %207
  %208 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %209 unwind label %227

209:                                              ; preds = %.preheader.8
  %210 = extractvalue { double, double } %208, 0
  %211 = extractvalue { double, double } %208, 1
  %212 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %213 unwind label %227

213:                                              ; preds = %209
  %214 = extractvalue { double, double } %212, 0
  %215 = extractvalue { double, double } %212, 1
  %216 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %217 unwind label %227

217:                                              ; preds = %213
  %218 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 1.000000e+02)
  %219 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef 0x4058E66680000000)
  %220 = fsub float %218, %219
  %221 = call noundef float @_ZSt4sqrtf(float noundef %220)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %216, float noundef 0x3FFCCCCD00000000, float noundef %221, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %222 unwind label %229

222:                                              ; preds = %217
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %9, double %210, double %211, double %214, double %215, ptr noundef nonnull %216, i32 noundef 0)
          to label %223 unwind label %227

223:                                              ; preds = %222
  %224 = getelementptr inbounds i8, ptr %0, i64 24
  %225 = load ptr, ptr %224, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #11
  %.sroa.01.0.copyload = load double, ptr %2, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !6
  %226 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %231 unwind label %241

227:                                              ; preds = %222, %213, %209, %.preheader.8, %207, %198, %194, %.preheader.7, %192, %183, %179, %.preheader.6, %177, %168, %164, %.preheader.5, %162, %153, %149, %.preheader.4, %147, %138, %134, %.preheader.3, %132, %123, %119, %.preheader.2, %117, %108, %104, %.preheader.1, %102, %93, %89, %.preheader.preheader
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %248

229:                                              ; preds = %217, %202, %187, %172, %157, %142, %127, %112, %97
  %.lcssa = phi ptr [ %96, %97 ], [ %111, %112 ], [ %126, %127 ], [ %141, %142 ], [ %156, %157 ], [ %171, %172 ], [ %186, %187 ], [ %201, %202 ], [ %216, %217 ]
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %.lcssa) #11
  br label %248

231:                                              ; preds = %223
  %232 = extractvalue { double, double } %226, 0
  %233 = extractvalue { double, double } %226, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef nonnull %9, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %232, double %233, i8 noundef zeroext 1, i16 noundef zeroext 1)
          to label %234 unwind label %241

234:                                              ; preds = %231
  %235 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %225, ptr noundef nonnull align 16 dereferenceable(256) %10, i32 noundef 0)
          to label %236 unwind label %243

236:                                              ; preds = %234
  %237 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %235, ptr %237, align 16, !tbaa !20
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #11
  %238 = load ptr, ptr %224, align 8, !tbaa !19
  invoke void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %11, ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 4 dereferenceable(4) %237)
          to label %239 unwind label %246

239:                                              ; preds = %236
  %240 = getelementptr inbounds i8, ptr %0, i64 144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %240, ptr noundef nonnull align 16 dereferenceable(64) %11, i64 64, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #11
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #11
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #11
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #11
  ret void

241:                                              ; preds = %231, %223
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %245

243:                                              ; preds = %234
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #11
  br label %245

245:                                              ; preds = %243, %241
  %.pn32 = phi { ptr, i32 } [ %244, %243 ], [ %242, %241 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #11
  br label %248

246:                                              ; preds = %236
  %247 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #11
  br label %248

248:                                              ; preds = %227, %229, %246, %245, %87
  %.pn34.pn = phi { ptr, i32 } [ %247, %246 ], [ %.pn32, %245 ], [ %88, %87 ], [ %228, %227 ], [ %230, %229 ]
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #11
  br label %249

249:                                              ; preds = %248, %85
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %248 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #11
  br label %250

250:                                              ; preds = %249, %83, %81, %79, %78
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %249 ], [ %82, %81 ], [ %84, %83 ], [ %80, %79 ], [ %.pn.pn, %78 ]
  call void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  br label %251

251:                                              ; preds = %250, %67
  %.pn34.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn, %250 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn34.pn.pn.pn.pn
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24CharacterVirtualSettingsnwEm(i64 noundef) local_unnamed_addr #4 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) #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, ptr noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH30RotatedTranslatedShapeSettingsC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(112), double, double, double, double, ptr noundef) unnamed_addr #1 align 2

declare void @_ZNK3JPH30RotatedTranslatedShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 16 dereferenceable(112)) unnamed_addr #3

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() local_unnamed_addr #4 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) #10

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH16CharacterVirtualnwEm(i64 noundef) local_unnamed_addr #4 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 #8 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 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 #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtualdlEPv(ptr noundef) local_unnamed_addr #7 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 #6 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 #8 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 #9 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 align 2

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #8

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #7

declare void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #3

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

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

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

declare void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_24CharacterVirtualSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8 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 = { 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 #3 = { "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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { 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 #9 = { 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 #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 16, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"_ZTS4Test", !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !13, i64 56}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_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", !11, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !11, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!10, !11, i64 24}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{i64 0, i64 64, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass