; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/ScaledShapes (ScaledOffsetCenterOfMassShapeTest)

; 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" = type { ptr }
%"class.JPH::Ref.12" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"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::RefConst.13" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Result" = type <{ %union.anon.8, i8, [7 x i8] }>
%union.anon.8 = 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.10 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.10 = type { i64, [8 x i8] }
%"class.JPH::OffsetCenterOfMassShapeSettings" = type { %"class.JPH::DecoratedShapeSettings", %"class.JPH::Vec3" }
%"class.JPH::DecoratedShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::RefConst.13", %"class.JPH::RefConst" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%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 }

; 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 @_ZN33ScaledOffsetCenterOfMassShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.JPH::Ref", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Ref.12", align 8
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Ref.12", align 8
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca ptr, align 8
  %14 = alloca %"class.JPH::BodyCreationSettings", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Quat", align 16
  %18 = alloca ptr, align 8
  %19 = alloca %"class.JPH::BodyCreationSettings", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Quat", align 16
  %23 = alloca ptr, align 8
  %24 = alloca %"class.JPH::BodyCreationSettings", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Quat", align 16
  %28 = alloca %"class.JPH::RefConst", align 8
  %29 = alloca %"class.JPH::Result", align 8
  %30 = alloca %"class.JPH::OffsetCenterOfMassShapeSettings", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::BodyCreationSettings", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Quat", align 16
  %36 = alloca %"class.JPH::BodyID", align 4
  %37 = alloca %"class.JPH::RefConst", align 8
  %38 = alloca %"class.JPH::Result", align 8
  %39 = alloca %"class.JPH::OffsetCenterOfMassShapeSettings", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca i1, align 1
  %43 = alloca %"class.JPH::BodyCreationSettings", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Quat", align 16
  %46 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %47 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %48 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %47, float noundef 2.000000e+02)
  store ptr %48, ptr %3, align 8, !tbaa !5
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %49, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %50 = call noundef ptr @_ZN3JPH21CylinderShapeSettingsnwEm(i64 noundef 88)
  invoke void @_ZN3JPH21CylinderShapeSettingsC2EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %50, float noundef 1.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %51 unwind label %301

51:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_13ShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %52 = invoke noundef ptr @_ZN3JPH31OffsetCenterOfMassShapeSettingsnwEm(i64 noundef 96)
          to label %53 unwind label %305

53:                                               ; preds = %51
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %54 unwind label %309

54:                                               ; preds = %53
  %55 = invoke noundef ptr @_ZNK3JPH3RefINS_13ShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %56 unwind label %309

56:                                               ; preds = %54
  %57 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %58 = load double, ptr %57, align 16
  %59 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %60 = load double, ptr %59, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_13ShapeSettingsE(ptr noundef nonnull align 16 dereferenceable(96) %52, double %58, double %60, ptr noundef %55)
          to label %61 unwind label %309

61:                                               ; preds = %56
  invoke void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %52)
          to label %62 unwind label %305

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %63 = invoke noundef ptr @_ZN3JPH31OffsetCenterOfMassShapeSettingsnwEm(i64 noundef 96)
          to label %64 unwind label %313

64:                                               ; preds = %62
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %65 unwind label %317

65:                                               ; preds = %64
  %66 = invoke noundef ptr @_ZNK3JPH3RefINS_13ShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %67 unwind label %317

67:                                               ; preds = %65
  %68 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %69 = load double, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %71 = load double, ptr %70, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_13ShapeSettingsE(ptr noundef nonnull align 16 dereferenceable(96) %63, double %69, double %71, ptr noundef %66)
          to label %72 unwind label %317

72:                                               ; preds = %67
  invoke void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %63)
          to label %73 unwind label %313

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  %74 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %75 unwind label %321

75:                                               ; preds = %73
  %76 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %74, 0
  store double %79, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %74, 1
  store double %81, ptr %80, align 8
  %82 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %83 = load double, ptr %82, align 16
  %84 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %85 = load double, ptr %84, align 8
  %86 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %83, double %85, float noundef 0x3FF41B2F80000000)
          to label %87 unwind label %321

87:                                               ; preds = %75
  %88 = getelementptr inbounds %"class.JPH::Quat", ptr %11, i32 0, i32 0
  %89 = getelementptr inbounds %"class.JPH::Vec4", ptr %88, 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 } %86, 0
  store double %92, ptr %91, align 16
  %93 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 1
  %94 = extractvalue { double, double } %86, 1
  store double %94, ptr %93, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %95 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %14) #10
  %97 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %98 unwind label %325

98:                                               ; preds = %87
  %99 = invoke noundef ptr @_ZNK3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %100 unwind label %329

100:                                              ; preds = %98
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %101 unwind label %329

101:                                              ; preds = %100
  %102 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %103 = load double, ptr %102, align 16
  %104 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %97, ptr noundef %99, double %103, double %105)
          to label %106 unwind label %329

106:                                              ; preds = %101
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef -5.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %107 unwind label %325

107:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !18
  %108 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %109 = load double, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %111 = load double, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %14, ptr noundef %97, double %109, double %111, double %113, double %115, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %116 unwind label %325

116:                                              ; preds = %107
  %117 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 16 dereferenceable(256) %14)
          to label %118 unwind label %333

118:                                              ; preds = %116
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %14) #10
  store ptr %117, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %119, float noundef 1.000000e+00)
          to label %120 unwind label %338

120:                                              ; preds = %118
  %121 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %123)
          to label %125 unwind label %338

125:                                              ; preds = %120
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 4 dereferenceable(4) %124, i32 noundef 0)
          to label %126 unwind label %338

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %127 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %19) #10
  %129 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %130 unwind label %342

130:                                              ; preds = %126
  %131 = invoke noundef ptr @_ZNK3JPH3RefINS_13ShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %132 unwind label %346

132:                                              ; preds = %130
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %133 unwind label %346

133:                                              ; preds = %132
  %134 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %135 = load double, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %137 = load double, ptr %136, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %129, ptr noundef %131, double %135, double %137)
          to label %138 unwind label %346

138:                                              ; preds = %133
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %139 unwind label %342

139:                                              ; preds = %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !18
  %140 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %141 = load double, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %143 = load double, ptr %142, align 8
  %144 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %145 = load double, ptr %144, align 16
  %146 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %147 = load double, ptr %146, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %19, ptr noundef %129, double %141, double %143, double %145, double %147, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %148 unwind label %342

148:                                              ; preds = %139
  %149 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 16 dereferenceable(256) %19)
          to label %150 unwind label %350

150:                                              ; preds = %148
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %19) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #10
  store ptr %149, ptr %18, align 8, !tbaa !5
  %151 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %151, float noundef 1.000000e+00)
          to label %152 unwind label %355

152:                                              ; preds = %150
  %153 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %155)
          to label %157 unwind label %355

157:                                              ; preds = %152
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(4) %156, i32 noundef 0)
          to label %158 unwind label %355

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %159 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #10
  %161 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %162 unwind label %359

162:                                              ; preds = %158
  %163 = invoke noundef ptr @_ZNK3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %164 unwind label %363

164:                                              ; preds = %162
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %165 unwind label %363

165:                                              ; preds = %164
  %166 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %167 = load double, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %169 = load double, ptr %168, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %161, ptr noundef %163, double %167, double %169)
          to label %170 unwind label %363

170:                                              ; preds = %165
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef 5.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %171 unwind label %359

171:                                              ; preds = %170
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !18
  %172 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %173 = load double, ptr %172, align 16
  %174 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %175 = load double, ptr %174, align 8
  %176 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %177 = load double, ptr %176, align 16
  %178 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %179 = load double, ptr %178, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %24, ptr noundef %161, double %173, double %175, double %177, double %179, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %180 unwind label %359

180:                                              ; preds = %171
  %181 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %160, ptr noundef nonnull align 16 dereferenceable(256) %24)
          to label %182 unwind label %367

182:                                              ; preds = %180
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %24) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #10
  store ptr %181, ptr %23, align 8, !tbaa !5
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %183, float noundef 1.000000e+00)
          to label %184 unwind label %372

184:                                              ; preds = %182
  %185 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %186 = load ptr, ptr %185, align 8, !tbaa !9
  %187 = load ptr, ptr %23, align 8, !tbaa !5
  %188 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %187)
          to label %189 unwind label %372

189:                                              ; preds = %184
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %186, ptr noundef nonnull align 4 dereferenceable(4) %188, i32 noundef 0)
          to label %190 unwind label %372

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #10
  call void @llvm.lifetime.start.p0(i64 96, ptr %30) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 5.000000e+00)
          to label %191 unwind label %376

191:                                              ; preds = %190
  %192 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %193 unwind label %376

193:                                              ; preds = %191
  %194 = invoke noundef ptr @_ZN3JPH11SphereShapenwEm(i64 noundef 48)
          to label %195 unwind label %380

195:                                              ; preds = %193
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %194, float noundef 1.000000e+00, ptr noundef null)
          to label %196 unwind label %384

196:                                              ; preds = %195
  %197 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.000000e+00)
          to label %198 unwind label %380

198:                                              ; preds = %196
  %199 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %200 = getelementptr inbounds %union.anon, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %197, 0
  store double %202, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %197, 1
  store double %204, ptr %203, align 8
  %205 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %206 = load double, ptr %205, align 16
  %207 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %192, ptr noundef %194, double %206, double %208)
          to label %209 unwind label %380

209:                                              ; preds = %198
  %210 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %211 = load double, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %213 = load double, ptr %212, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(96) %30, double %211, double %213, ptr noundef %192)
          to label %214 unwind label %376

214:                                              ; preds = %209
  invoke void @_ZNK3JPH31OffsetCenterOfMassShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %29, ptr noundef nonnull align 16 dereferenceable(96) %30)
          to label %215 unwind label %389

215:                                              ; preds = %214
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %29)
          to label %217 unwind label %393

217:                                              ; preds = %215
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %216)
          to label %218 unwind label %393

218:                                              ; preds = %217
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %29) #10
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %30) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #10
  %219 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %220 = load ptr, ptr %219, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %33) #10
  %221 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %222 unwind label %399

222:                                              ; preds = %218
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef -1.500000e+01)
          to label %223 unwind label %399

223:                                              ; preds = %222
  %224 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %225 unwind label %399

225:                                              ; preds = %223
  %226 = getelementptr inbounds %"class.JPH::Quat", ptr %35, i32 0, i32 0
  %227 = getelementptr inbounds %"class.JPH::Vec4", ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds %union.anon.4, ptr %227, i32 0, i32 0
  %229 = getelementptr inbounds { double, double }, ptr %228, i32 0, i32 0
  %230 = extractvalue { double, double } %224, 0
  store double %230, ptr %229, align 16
  %231 = getelementptr inbounds { double, double }, ptr %228, i32 0, i32 1
  %232 = extractvalue { double, double } %224, 1
  store double %232, ptr %231, align 8
  %233 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %234 = load double, ptr %233, align 16
  %235 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %236 = load double, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %238 = load double, ptr %237, align 16
  %239 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %240 = load double, ptr %239, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %33, ptr noundef %221, double %234, double %236, double %238, double %240, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %241 unwind label %399

241:                                              ; preds = %225
  %242 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 16 dereferenceable(256) %33, i32 noundef 0)
          to label %243 unwind label %403

243:                                              ; preds = %241
  %244 = getelementptr inbounds %"class.JPH::BodyID", ptr %36, i32 0, i32 0
  store i32 %242, ptr %244, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %33) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %33) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  %245 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %246 unwind label %408

246:                                              ; preds = %243
  store i1 true, ptr %42, align 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 96, ptr %39) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %40, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 5.000000e+00)
          to label %247 unwind label %412

247:                                              ; preds = %246
  %248 = invoke noundef ptr @_ZN3JPH11SphereShapenwEm(i64 noundef 48)
          to label %249 unwind label %412

249:                                              ; preds = %247
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %248, float noundef 1.000000e+00, ptr noundef null)
          to label %250 unwind label %416

250:                                              ; preds = %249
  %251 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %252 = load double, ptr %251, align 16
  %253 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %254 = load double, ptr %253, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(96) %39, double %252, double %254, ptr noundef %248)
          to label %255 unwind label %412

255:                                              ; preds = %250
  invoke void @_ZNK3JPH31OffsetCenterOfMassShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %38, ptr noundef nonnull align 16 dereferenceable(96) %39)
          to label %256 unwind label %420

256:                                              ; preds = %255
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %38)
          to label %258 unwind label %424

258:                                              ; preds = %256
  %259 = invoke noundef ptr @_ZNK3JPH3RefINS_5ShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %257)
          to label %260 unwind label %424

260:                                              ; preds = %258
  %261 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.000000e+00)
          to label %262 unwind label %424

262:                                              ; preds = %260
  %263 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %264 = getelementptr inbounds %union.anon, ptr %263, i32 0, i32 0
  %265 = getelementptr inbounds { double, double }, ptr %264, i32 0, i32 0
  %266 = extractvalue { double, double } %261, 0
  store double %266, ptr %265, align 16
  %267 = getelementptr inbounds { double, double }, ptr %264, i32 0, i32 1
  %268 = extractvalue { double, double } %261, 1
  store double %268, ptr %267, align 8
  %269 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %270 = load double, ptr %269, align 16
  %271 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %272 = load double, ptr %271, align 8
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %245, ptr noundef %259, double %270, double %272)
          to label %273 unwind label %424

273:                                              ; preds = %262
  store i1 false, ptr %42, align 1
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef %245)
          to label %274 unwind label %424

274:                                              ; preds = %273
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %38) #10
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %39) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #10
  %275 = getelementptr inbounds %class.Test, ptr %47, i32 0, i32 3
  %276 = load ptr, ptr %275, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %43) #10
  %277 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %278 unwind label %433

278:                                              ; preds = %274
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef 5.000000e+00, float noundef 5.000000e+00, float noundef -1.500000e+01)
          to label %279 unwind label %433

279:                                              ; preds = %278
  %280 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %281 unwind label %433

281:                                              ; preds = %279
  %282 = getelementptr inbounds %"class.JPH::Quat", ptr %45, i32 0, i32 0
  %283 = getelementptr inbounds %"class.JPH::Vec4", ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds %union.anon.4, ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds { double, double }, ptr %284, i32 0, i32 0
  %286 = extractvalue { double, double } %280, 0
  store double %286, ptr %285, align 16
  %287 = getelementptr inbounds { double, double }, ptr %284, i32 0, i32 1
  %288 = extractvalue { double, double } %280, 1
  store double %288, ptr %287, align 8
  %289 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  %293 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %43, ptr noundef %277, double %290, double %292, double %294, double %296, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %297 unwind label %433

297:                                              ; preds = %281
  %298 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %276, ptr noundef nonnull align 16 dereferenceable(256) %43, i32 noundef 0)
          to label %299 unwind label %437

299:                                              ; preds = %297
  %300 = getelementptr inbounds %"class.JPH::BodyID", ptr %46, i32 0, i32 0
  store i32 %298, ptr %300, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %43) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %43) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @_ZN3JPH3RefINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

301:                                              ; preds = %1
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %5, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %6, align 4
  call void @_ZN3JPH21CylinderShapeSettingsdlEPv(ptr noundef %50) #10
  br label %451

305:                                              ; preds = %61, %51
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %5, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %6, align 4
  br label %450

309:                                              ; preds = %56, %54, %53
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %5, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %6, align 4
  call void @_ZN3JPH31OffsetCenterOfMassShapeSettingsdlEPv(ptr noundef %52) #10
  br label %450

313:                                              ; preds = %72, %62
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %5, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %6, align 4
  br label %449

317:                                              ; preds = %67, %65, %64
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %5, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %6, align 4
  call void @_ZN3JPH31OffsetCenterOfMassShapeSettingsdlEPv(ptr noundef %63) #10
  br label %449

321:                                              ; preds = %75, %73
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %5, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %6, align 4
  br label %448

325:                                              ; preds = %107, %106, %87
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %5, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %6, align 4
  br label %337

329:                                              ; preds = %101, %100, %98
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %5, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %97) #10
  br label %337

333:                                              ; preds = %116
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %5, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #10
  br label %337

337:                                              ; preds = %333, %329, %325
  call void @llvm.lifetime.end.p0(i64 256, ptr %14) #10
  br label %447

338:                                              ; preds = %125, %120, %118
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %5, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %6, align 4
  br label %447

342:                                              ; preds = %139, %138, %126
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %5, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %6, align 4
  br label %354

346:                                              ; preds = %133, %132, %130
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %5, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %129) #10
  br label %354

350:                                              ; preds = %148
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %5, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %19) #10
  br label %354

354:                                              ; preds = %350, %346, %342
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #10
  br label %446

355:                                              ; preds = %157, %152, %150
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %5, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %6, align 4
  br label %446

359:                                              ; preds = %171, %170, %158
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %5, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %6, align 4
  br label %371

363:                                              ; preds = %165, %164, %162
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %5, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %6, align 4
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %161) #10
  br label %371

367:                                              ; preds = %180
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %5, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %24) #10
  br label %371

371:                                              ; preds = %367, %363, %359
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #10
  br label %445

372:                                              ; preds = %189, %184, %182
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %5, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %6, align 4
  br label %445

376:                                              ; preds = %209, %191, %190
  %377 = landingpad { ptr, i32 }
          cleanup
  %378 = extractvalue { ptr, i32 } %377, 0
  store ptr %378, ptr %5, align 8
  %379 = extractvalue { ptr, i32 } %377, 1
  store i32 %379, ptr %6, align 4
  br label %398

380:                                              ; preds = %198, %196, %193
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %5, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %6, align 4
  br label %388

384:                                              ; preds = %195
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %5, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %6, align 4
  call void @_ZN3JPH11SphereShapedlEPv(ptr noundef %194) #10
  br label %388

388:                                              ; preds = %384, %380
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %192) #10
  br label %398

389:                                              ; preds = %214
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %5, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %6, align 4
  br label %397

393:                                              ; preds = %217, %215
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %5, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %6, align 4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %29) #10
  br label %397

397:                                              ; preds = %393, %389
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %30) #10
  br label %398

398:                                              ; preds = %397, %388, %376
  call void @llvm.lifetime.end.p0(i64 96, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #10
  br label %444

399:                                              ; preds = %225, %223, %222, %218
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %5, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %6, align 4
  br label %407

403:                                              ; preds = %241
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %5, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %33) #10
  br label %407

407:                                              ; preds = %403, %399
  call void @llvm.lifetime.end.p0(i64 256, ptr %33) #10
  br label %443

408:                                              ; preds = %243
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %5, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %6, align 4
  br label %442

412:                                              ; preds = %250, %247, %246
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %5, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %6, align 4
  br label %429

416:                                              ; preds = %249
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %5, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %6, align 4
  call void @_ZN3JPH11SphereShapedlEPv(ptr noundef %248) #10
  br label %429

420:                                              ; preds = %255
  %421 = landingpad { ptr, i32 }
          cleanup
  %422 = extractvalue { ptr, i32 } %421, 0
  store ptr %422, ptr %5, align 8
  %423 = extractvalue { ptr, i32 } %421, 1
  store i32 %423, ptr %6, align 4
  br label %428

424:                                              ; preds = %273, %262, %260, %258, %256
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %5, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %6, align 4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %38) #10
  br label %428

428:                                              ; preds = %424, %420
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %39) #10
  br label %429

429:                                              ; preds = %428, %416, %412
  call void @llvm.lifetime.end.p0(i64 96, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #10
  %430 = load i1, ptr %42, align 1
  br i1 %430, label %431, label %432

431:                                              ; preds = %429
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %245) #10
  br label %432

432:                                              ; preds = %431, %429
  br label %442

433:                                              ; preds = %281, %279, %278, %274
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %5, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %6, align 4
  br label %441

437:                                              ; preds = %297
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %5, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %43) #10
  br label %441

441:                                              ; preds = %437, %433
  call void @llvm.lifetime.end.p0(i64 256, ptr %43) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #10
  br label %442

442:                                              ; preds = %441, %432, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  br label %443

443:                                              ; preds = %442, %407
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #10
  br label %444

444:                                              ; preds = %443, %398
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %445

445:                                              ; preds = %444, %372, %371
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %446

446:                                              ; preds = %445, %355, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %447

447:                                              ; preds = %446, %338, %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %448

448:                                              ; preds = %447, %321
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %449

449:                                              ; preds = %448, %317, %313
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br label %450

450:                                              ; preds = %449, %309, %305
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @_ZN3JPH3RefINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  br label %451

451:                                              ; preds = %450, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %452

452:                                              ; preds = %451
  %453 = load ptr, ptr %5, align 8
  %454 = load i32, ptr %6, align 4
  %455 = insertvalue { ptr, i32 } poison, ptr %453, 0
  %456 = insertvalue { ptr, i32 } %455, i32 %454, 1
  resume { ptr, i32 } %456
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122), float noundef) #3 align 2

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

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

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

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

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

; 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 #7 align 2

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

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

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

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

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

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

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) #2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef) #5 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) #9

; 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 @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #7 align 2

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

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

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

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

; 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 uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 #3 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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_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 noundef ptr @_ZNK3JPH3RefINS_5ShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #8 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_13ShapeSettingsEED2Ev(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #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 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { 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, !6, i64 24}
!10 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_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, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{i64 0, i64 16, !19}
!19 = !{!7, !7, i64 0}


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

%"class.JPH::Ref" = type { ptr }
%"class.JPH::Ref.12" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"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::RefConst.13" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Result" = type <{ %union.anon.8, i8, [7 x i8] }>
%union.anon.8 = 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.10 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.10 = type { i64, [8 x i8] }
%"class.JPH::OffsetCenterOfMassShapeSettings" = type { %"class.JPH::DecoratedShapeSettings", %"class.JPH::Vec3" }
%"class.JPH::DecoratedShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::RefConst.13", %"class.JPH::RefConst" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }

; 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 @_ZN33ScaledOffsetCenterOfMassShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref", align 8
  %3 = alloca %"class.JPH::Ref.12", align 8
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Ref.12", align 8
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::BodyCreationSettings", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::BodyCreationSettings", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::BodyCreationSettings", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::RefConst", align 8
  %17 = alloca %"class.JPH::Result", align 8
  %18 = alloca %"class.JPH::OffsetCenterOfMassShapeSettings", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::BodyCreationSettings", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::RefConst", align 8
  %23 = alloca %"class.JPH::Result", align 8
  %24 = alloca %"class.JPH::OffsetCenterOfMassShapeSettings", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::BodyCreationSettings", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  tail call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %28, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %29 = tail call noundef ptr @_ZN3JPH21CylinderShapeSettingsnwEm(i64 noundef 88)
  invoke void @_ZN3JPH21CylinderShapeSettingsC2EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %29, float noundef 1.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %30 unwind label %180

30:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_13ShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %31 = invoke noundef ptr @_ZN3JPH31OffsetCenterOfMassShapeSettingsnwEm(i64 noundef 96)
          to label %32 unwind label %182

32:                                               ; preds = %30
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %33 unwind label %184

33:                                               ; preds = %32
  %34 = call noundef ptr @_ZNK3JPH3RefINS_13ShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %35 = load double, ptr %4, align 16
  %36 = getelementptr inbounds i8, ptr %4, i64 8
  %37 = load double, ptr %36, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_13ShapeSettingsE(ptr noundef nonnull align 16 dereferenceable(96) %31, double %35, double %37, ptr noundef %34)
          to label %38 unwind label %184

38:                                               ; preds = %33
  invoke void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %31)
          to label %39 unwind label %182

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %40 = invoke noundef ptr @_ZN3JPH31OffsetCenterOfMassShapeSettingsnwEm(i64 noundef 96)
          to label %41 unwind label %186

41:                                               ; preds = %39
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %42 unwind label %188

42:                                               ; preds = %41
  %43 = call noundef ptr @_ZNK3JPH3RefINS_13ShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %44 = load double, ptr %6, align 16
  %45 = getelementptr inbounds i8, ptr %6, i64 8
  %46 = load double, ptr %45, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_13ShapeSettingsE(ptr noundef nonnull align 16 dereferenceable(96) %40, double %44, double %46, ptr noundef %43)
          to label %47 unwind label %188

47:                                               ; preds = %42
  invoke void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull %40)
          to label %48 unwind label %186

48:                                               ; preds = %47
  %49 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %50 unwind label %190

50:                                               ; preds = %48
  %51 = extractvalue { double, double } %49, 0
  %52 = extractvalue { double, double } %49, 1
  %53 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %51, double %52, float noundef 0x3FF41B2F80000000)
          to label %54 unwind label %190

54:                                               ; preds = %50
  %55 = extractvalue { double, double } %53, 0
  %56 = extractvalue { double, double } %53, 1
  %57 = getelementptr inbounds i8, ptr %0, i64 24
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #9
  %59 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %60 unwind label %192

60:                                               ; preds = %54
  %61 = call noundef ptr @_ZNK3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %62 unwind label %194

62:                                               ; preds = %60
  %63 = load double, ptr %8, align 16
  %64 = getelementptr inbounds i8, ptr %8, i64 8
  %65 = load double, ptr %64, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %59, ptr noundef %61, double %63, double %65)
          to label %66 unwind label %194

66:                                               ; preds = %62
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef -5.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %67 unwind label %192

67:                                               ; preds = %66
  %68 = load double, ptr %9, align 16
  %69 = getelementptr inbounds i8, ptr %9, i64 8
  %70 = load double, ptr %69, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %7, ptr noundef nonnull %59, double %68, double %70, double %55, double %56, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %71 unwind label %192

71:                                               ; preds = %67
  %72 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 16 dereferenceable(256) %7)
          to label %73 unwind label %196

73:                                               ; preds = %71
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #9
  call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %72, float noundef 1.000000e+00)
  %74 = load ptr, ptr %57, align 8, !tbaa !5
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %72)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(4) %75, i32 noundef 0)
          to label %76 unwind label %199

76:                                               ; preds = %73
  %77 = load ptr, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #9
  %78 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %79 unwind label %201

79:                                               ; preds = %76
  %80 = call noundef ptr @_ZNK3JPH3RefINS_13ShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %81 unwind label %203

81:                                               ; preds = %79
  %82 = load double, ptr %11, align 16
  %83 = getelementptr inbounds i8, ptr %11, i64 8
  %84 = load double, ptr %83, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %78, ptr noundef %80, double %82, double %84)
          to label %85 unwind label %203

85:                                               ; preds = %81
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %86 unwind label %201

86:                                               ; preds = %85
  %87 = load double, ptr %12, align 16
  %88 = getelementptr inbounds i8, ptr %12, i64 8
  %89 = load double, ptr %88, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef nonnull %78, double %87, double %89, double %55, double %56, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %90 unwind label %201

90:                                               ; preds = %86
  %91 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 16 dereferenceable(256) %10)
          to label %92 unwind label %205

92:                                               ; preds = %90
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #9
  call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %91, float noundef 1.000000e+00)
  %93 = load ptr, ptr %57, align 8, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %91)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(4) %94, i32 noundef 0)
          to label %95 unwind label %208

95:                                               ; preds = %92
  %96 = load ptr, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %13) #9
  %97 = invoke noundef ptr @_ZN3JPH19ScaledShapeSettingsnwEm(i64 noundef 96)
          to label %98 unwind label %210

98:                                               ; preds = %95
  %99 = call noundef ptr @_ZNK3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %100 unwind label %212

100:                                              ; preds = %98
  %101 = load double, ptr %14, align 16
  %102 = getelementptr inbounds i8, ptr %14, i64 8
  %103 = load double, ptr %102, align 8
  invoke void @_ZN3JPH19ScaledShapeSettingsC2EPKNS_13ShapeSettingsENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %97, ptr noundef %99, double %101, double %103)
          to label %104 unwind label %212

104:                                              ; preds = %100
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 5.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
          to label %105 unwind label %210

105:                                              ; preds = %104
  %106 = load double, ptr %15, align 16
  %107 = getelementptr inbounds i8, ptr %15, i64 8
  %108 = load double, ptr %107, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %13, ptr noundef nonnull %97, double %106, double %108, double %55, double %56, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %109 unwind label %210

109:                                              ; preds = %105
  %110 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 16 dereferenceable(256) %13)
          to label %111 unwind label %214

111:                                              ; preds = %109
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %13) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #9
  call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %110, float noundef 1.000000e+00)
  %112 = load ptr, ptr %57, align 8, !tbaa !5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %110)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 4 dereferenceable(4) %113, i32 noundef 0)
          to label %114 unwind label %217

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %18) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 5.000000e+00)
          to label %115 unwind label %219

115:                                              ; preds = %114
  %116 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %117 unwind label %219

117:                                              ; preds = %115
  %118 = invoke noundef ptr @_ZN3JPH11SphereShapenwEm(i64 noundef 48)
          to label %119 unwind label %221

119:                                              ; preds = %117
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %118, float noundef 1.000000e+00, ptr noundef null)
          to label %120 unwind label %223

120:                                              ; preds = %119
  %121 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.000000e+00)
          to label %122 unwind label %221

122:                                              ; preds = %120
  %123 = extractvalue { double, double } %121, 0
  %124 = extractvalue { double, double } %121, 1
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %116, ptr noundef nonnull %118, double %123, double %124)
          to label %125 unwind label %221

125:                                              ; preds = %122
  %126 = load double, ptr %19, align 16
  %127 = getelementptr inbounds i8, ptr %19, i64 8
  %128 = load double, ptr %127, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(96) %18, double %126, double %128, ptr noundef nonnull %116)
          to label %129 unwind label %219

129:                                              ; preds = %125
  invoke void @_ZNK3JPH31OffsetCenterOfMassShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %17, ptr noundef nonnull align 16 dereferenceable(96) %18)
          to label %130 unwind label %226

130:                                              ; preds = %129
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %17)
          to label %132 unwind label %228

132:                                              ; preds = %130
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %131)
          to label %133 unwind label %228

133:                                              ; preds = %132
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %17) #9
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %18) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #9
  %134 = load ptr, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %20) #9
  %135 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef -1.500000e+01)
          to label %136 unwind label %232

136:                                              ; preds = %133
  %137 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %138 unwind label %232

138:                                              ; preds = %136
  %139 = extractvalue { double, double } %137, 0
  %140 = extractvalue { double, double } %137, 1
  %141 = load double, ptr %21, align 16
  %142 = getelementptr inbounds i8, ptr %21, i64 8
  %143 = load double, ptr %142, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %20, ptr noundef %135, double %141, double %143, double %139, double %140, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %144 unwind label %232

144:                                              ; preds = %138
  %145 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %134, ptr noundef nonnull align 16 dereferenceable(256) %20, i32 noundef 0)
          to label %146 unwind label %234

146:                                              ; preds = %144
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %20) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %147 = invoke noundef ptr @_ZN3JPH11ScaledShapenwEm(i64 noundef 64)
          to label %148 unwind label %237

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %24) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 5.000000e+00)
          to label %149 unwind label %239

149:                                              ; preds = %148
  %150 = invoke noundef ptr @_ZN3JPH11SphereShapenwEm(i64 noundef 48)
          to label %151 unwind label %239

151:                                              ; preds = %149
  invoke void @_ZN3JPH11SphereShapeC2EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(48) %150, float noundef 1.000000e+00, ptr noundef null)
          to label %152 unwind label %241

152:                                              ; preds = %151
  %153 = load double, ptr %25, align 16
  %154 = getelementptr inbounds i8, ptr %25, i64 8
  %155 = load double, ptr %154, align 8
  invoke void @_ZN3JPH31OffsetCenterOfMassShapeSettingsC2ENS_4Vec3EPKNS_5ShapeE(ptr noundef nonnull align 16 dereferenceable(96) %24, double %153, double %155, ptr noundef nonnull %150)
          to label %156 unwind label %239

156:                                              ; preds = %152
  invoke void @_ZNK3JPH31OffsetCenterOfMassShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %23, ptr noundef nonnull align 16 dereferenceable(96) %24)
          to label %157 unwind label %.thread80

157:                                              ; preds = %156
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %23)
          to label %159 unwind label %244

159:                                              ; preds = %157
  %160 = call noundef ptr @_ZNK3JPH3RefINS_5ShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %158)
  %161 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.000000e+00)
          to label %162 unwind label %244

162:                                              ; preds = %159
  %163 = extractvalue { double, double } %161, 0
  %164 = extractvalue { double, double } %161, 1
  invoke void @_ZN3JPH11ScaledShapeC2EPKNS_5ShapeENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %147, ptr noundef %160, double %163, double %164)
          to label %165 unwind label %244

165:                                              ; preds = %162
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull %147)
          to label %166 unwind label %244

166:                                              ; preds = %165
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %23) #9
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %24) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #9
  %167 = load ptr, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %26) #9
  %168 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef 5.000000e+00, float noundef 5.000000e+00, float noundef -1.500000e+01)
          to label %169 unwind label %247

169:                                              ; preds = %166
  %170 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %171 unwind label %247

171:                                              ; preds = %169
  %172 = extractvalue { double, double } %170, 0
  %173 = extractvalue { double, double } %170, 1
  %174 = load double, ptr %27, align 16
  %175 = getelementptr inbounds i8, ptr %27, i64 8
  %176 = load double, ptr %175, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %26, ptr noundef %168, double %174, double %176, double %172, double %173, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %177 unwind label %247

177:                                              ; preds = %171
  %178 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %167, ptr noundef nonnull align 16 dereferenceable(256) %26, i32 noundef 0)
          to label %179 unwind label %249

179:                                              ; preds = %177
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %26) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %26) #9
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @_ZN3JPH3RefINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  ret void

180:                                              ; preds = %1
  %181 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH21CylinderShapeSettingsdlEPv(ptr noundef %29) #9
  br label %258

182:                                              ; preds = %38, %30
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %257

184:                                              ; preds = %33, %32
  %185 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH31OffsetCenterOfMassShapeSettingsdlEPv(ptr noundef %31) #9
  br label %257

186:                                              ; preds = %47, %39
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %256

188:                                              ; preds = %42, %41
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH31OffsetCenterOfMassShapeSettingsdlEPv(ptr noundef %40) #9
  br label %256

190:                                              ; preds = %50, %48
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %255

192:                                              ; preds = %67, %66, %54
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %198

194:                                              ; preds = %62, %60
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %59) #9
  br label %198

196:                                              ; preds = %71
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #9
  br label %198

198:                                              ; preds = %196, %194, %192
  %.pn = phi { ptr, i32 } [ %197, %196 ], [ %193, %192 ], [ %195, %194 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #9
  br label %255

199:                                              ; preds = %73
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %255

201:                                              ; preds = %86, %85, %76
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %207

203:                                              ; preds = %81, %79
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %78) #9
  br label %207

205:                                              ; preds = %90
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #9
  br label %207

207:                                              ; preds = %205, %203, %201
  %.pn51 = phi { ptr, i32 } [ %206, %205 ], [ %202, %201 ], [ %204, %203 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #9
  br label %255

208:                                              ; preds = %92
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %255

210:                                              ; preds = %105, %104, %95
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %216

212:                                              ; preds = %100, %98
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH19ScaledShapeSettingsdlEPv(ptr noundef %97) #9
  br label %216

214:                                              ; preds = %109
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %13) #9
  br label %216

216:                                              ; preds = %214, %212, %210
  %.pn53 = phi { ptr, i32 } [ %215, %214 ], [ %211, %210 ], [ %213, %212 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #9
  br label %255

217:                                              ; preds = %111
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %255

219:                                              ; preds = %125, %115, %114
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %231

221:                                              ; preds = %122, %120, %117
  %222 = landingpad { ptr, i32 }
          cleanup
  br label %225

223:                                              ; preds = %119
  %224 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11SphereShapedlEPv(ptr noundef %118) #9
  br label %225

225:                                              ; preds = %223, %221
  %.pn55 = phi { ptr, i32 } [ %222, %221 ], [ %224, %223 ]
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %116) #9
  br label %231

226:                                              ; preds = %129
  %227 = landingpad { ptr, i32 }
          cleanup
  br label %230

228:                                              ; preds = %132, %130
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %17) #9
  br label %230

230:                                              ; preds = %228, %226
  %.pn57 = phi { ptr, i32 } [ %229, %228 ], [ %227, %226 ]
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %18) #9
  br label %231

231:                                              ; preds = %230, %225, %219
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %230 ], [ %220, %219 ], [ %.pn55, %225 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #9
  br label %254

232:                                              ; preds = %138, %136, %133
  %233 = landingpad { ptr, i32 }
          cleanup
  br label %236

234:                                              ; preds = %144
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %20) #9
  br label %236

236:                                              ; preds = %234, %232
  %.pn60 = phi { ptr, i32 } [ %235, %234 ], [ %233, %232 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #9
  br label %253

237:                                              ; preds = %146
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %252

239:                                              ; preds = %152, %149, %148
  %240 = landingpad { ptr, i32 }
          cleanup
  br label %.thread

241:                                              ; preds = %151
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11SphereShapedlEPv(ptr noundef %150) #9
  br label %.thread

.thread80:                                        ; preds = %156
  %243 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %24) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #9
  br label %246

.thread:                                          ; preds = %239, %241
  %.pn62.pn.ph = phi { ptr, i32 } [ %242, %241 ], [ %240, %239 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #9
  br label %246

244:                                              ; preds = %157, %159, %162, %165
  %.047 = phi i1 [ false, %165 ], [ true, %162 ], [ true, %159 ], [ true, %157 ]
  %245 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %23) #9
  call void @_ZN3JPH22DecoratedShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(96) %24) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #9
  br i1 %.047, label %246, label %252

246:                                              ; preds = %.thread80, %.thread, %244
  %.pn62.pn79 = phi { ptr, i32 } [ %.pn62.pn.ph, %.thread ], [ %245, %244 ], [ %243, %.thread80 ]
  call void @_ZN3JPH11ScaledShapedlEPv(ptr noundef %147) #9
  br label %252

247:                                              ; preds = %171, %169, %166
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %251

249:                                              ; preds = %177
  %250 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %26) #9
  br label %251

251:                                              ; preds = %249, %247
  %.pn65 = phi { ptr, i32 } [ %250, %249 ], [ %248, %247 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %26) #9
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %252

252:                                              ; preds = %244, %246, %251, %237
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %251 ], [ %.pn62.pn79, %246 ], [ %245, %244 ], [ %238, %237 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  br label %253

253:                                              ; preds = %252, %236
  %.pn65.pn.pn = phi { ptr, i32 } [ %.pn65.pn, %252 ], [ %.pn60, %236 ]
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br label %254

254:                                              ; preds = %253, %231
  %.pn65.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn, %253 ], [ %.pn57.pn, %231 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %255

255:                                              ; preds = %198, %199, %216, %217, %254, %208, %207, %190
  %.pn65.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %191, %190 ], [ %200, %199 ], [ %.pn, %198 ], [ %209, %208 ], [ %.pn51, %207 ], [ %.pn65.pn.pn.pn, %254 ], [ %218, %217 ], [ %.pn53, %216 ]
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br label %256

256:                                              ; preds = %255, %188, %186
  %.pn65.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn.pn.pn.pn, %255 ], [ %187, %186 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN3JPH3RefINS_31OffsetCenterOfMassShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  br label %257

257:                                              ; preds = %256, %184, %182
  %.pn65.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn.pn.pn.pn.pn, %256 ], [ %183, %182 ], [ %185, %184 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @_ZN3JPH3RefINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br label %258

258:                                              ; preds = %257, %180
  %.pn65.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn.pn.pn.pn.pn.pn, %257 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn65.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

; 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 #7 align 2

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

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

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

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

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

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

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #2

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

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

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

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

; 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 @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

; 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 uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2ERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 #3 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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_13ShapeSettingsEED2Ev(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #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 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 #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 = { 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, !7, i64 24}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_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", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}


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