; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Shapes (TaperedCylinderShapeTest)

; 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::RefConst.6" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"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::Vec3" = type { %union.anon }
%union.anon = 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" = type { ptr }
%"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 @_ZN24TaperedCylinderShapeTest10InitializeEv(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 %"class.JPH::RefConst.6", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.JPH::RefConst.6", align 8
  %7 = alloca %"class.JPH::BodyCreationSettings", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Quat", align 16
  %10 = alloca %"class.JPH::BodyID", align 4
  %11 = alloca %"class.JPH::BodyCreationSettings", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::BodyID", align 4
  %15 = alloca %"class.JPH::BodyCreationSettings", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Quat", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::BodyID", align 4
  %20 = alloca %"class.JPH::RefConst.6", align 8
  %21 = alloca %"class.JPH::RefConst.6", align 8
  %22 = alloca %"class.JPH::BodyCreationSettings", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Quat", align 16
  %25 = alloca %"class.JPH::BodyID", align 4
  %26 = alloca %"class.JPH::BodyCreationSettings", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Quat", align 16
  %29 = alloca %"class.JPH::BodyID", align 4
  %30 = alloca %"class.JPH::BodyCreationSettings", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Quat", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::BodyID", align 4
  %35 = alloca %"class.JPH::RefConst.6", align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Quat", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Quat", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Quat", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::BodyCreationSettings", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Quat", align 16
  %50 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %51 = load ptr, ptr %2, align 8
  %52 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %51, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %53 = call noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %53, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 3.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %54 unwind label %255

54:                                               ; preds = %1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %55 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %56 unwind label %259

56:                                               ; preds = %54
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %55, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 1.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %57 unwind label %263

57:                                               ; preds = %56
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %55)
          to label %58 unwind label %259

58:                                               ; preds = %57
  %59 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #10
  %61 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %62 unwind label %267

62:                                               ; preds = %58
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %63 unwind label %267

63:                                               ; preds = %62
  %64 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %65 unwind label %267

65:                                               ; preds = %63
  %66 = getelementptr inbounds %"class.JPH::Quat", ptr %9, i32 0, i32 0
  %67 = getelementptr inbounds %"class.JPH::Vec4", ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %union.anon.4, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %70 = extractvalue { double, double } %64, 0
  store double %70, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %72 = extractvalue { double, double } %64, 1
  store double %72, ptr %71, align 8
  %73 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %74 = load double, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %76 = load double, ptr %75, align 8
  %77 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %78 = load double, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %80 = load double, ptr %79, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %7, ptr noundef %61, double %74, double %76, double %78, double %80, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %81 unwind label %267

81:                                               ; preds = %65
  %82 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 16 dereferenceable(256) %7, i32 noundef 0)
          to label %83 unwind label %271

83:                                               ; preds = %81
  %84 = getelementptr inbounds %"class.JPH::BodyID", ptr %10, i32 0, i32 0
  store i32 %82, ptr %84, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #10
  %85 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %11) #10
  %87 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %88 unwind label %276

88:                                               ; preds = %83
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %89 unwind label %276

89:                                               ; preds = %88
  %90 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %91 unwind label %276

91:                                               ; preds = %89
  %92 = getelementptr inbounds %"class.JPH::Quat", ptr %13, i32 0, i32 0
  %93 = getelementptr inbounds %"class.JPH::Vec4", ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon.4, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %90, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %90, 1
  store double %98, ptr %97, align 8
  %99 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %100 = load double, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  %103 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %104 = load double, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %11, ptr noundef %87, double %100, double %102, double %104, double %106, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %107 unwind label %276

107:                                              ; preds = %91
  %108 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 16 dereferenceable(256) %11, i32 noundef 0)
          to label %109 unwind label %280

109:                                              ; preds = %107
  %110 = getelementptr inbounds %"class.JPH::BodyID", ptr %14, i32 0, i32 0
  store i32 %108, ptr %110, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %11) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #10
  %111 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %15) #10
  %113 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %114 unwind label %285

114:                                              ; preds = %109
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 2.000000e+01, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %115 unwind label %285

115:                                              ; preds = %114
  %116 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %117 unwind label %285

117:                                              ; preds = %115
  %118 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 0
  %121 = extractvalue { double, double } %116, 0
  store double %121, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 1
  %123 = extractvalue { double, double } %116, 1
  store double %123, ptr %122, align 8
  %124 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %125 = load double, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %127 = load double, ptr %126, align 8
  %128 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %125, double %127, float noundef 0x3FF921FB60000000)
          to label %129 unwind label %285

129:                                              ; preds = %117
  %130 = getelementptr inbounds %"class.JPH::Quat", ptr %17, i32 0, i32 0
  %131 = getelementptr inbounds %"class.JPH::Vec4", ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %union.anon.4, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds { double, double }, ptr %132, i32 0, i32 0
  %134 = extractvalue { double, double } %128, 0
  store double %134, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %132, i32 0, i32 1
  %136 = extractvalue { double, double } %128, 1
  store double %136, ptr %135, align 8
  %137 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %138 = load double, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %142 = load double, ptr %141, align 16
  %143 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %15, ptr noundef %113, double %138, double %140, double %142, double %144, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %145 unwind label %285

145:                                              ; preds = %129
  %146 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 16 dereferenceable(256) %15, i32 noundef 0)
          to label %147 unwind label %289

147:                                              ; preds = %145
  %148 = getelementptr inbounds %"class.JPH::BodyID", ptr %19, i32 0, i32 0
  store i32 %146, ptr %148, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %149 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %150 unwind label %294

150:                                              ; preds = %147
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %149, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 3.000000e+00, float noundef 0.000000e+00, ptr noundef null)
          to label %151 unwind label %298

151:                                              ; preds = %150
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %149)
          to label %152 unwind label %294

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %153 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %154 unwind label %302

154:                                              ; preds = %152
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %153, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef null)
          to label %155 unwind label %306

155:                                              ; preds = %154
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef %153)
          to label %156 unwind label %302

156:                                              ; preds = %155
  %157 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %158 = load ptr, ptr %157, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %22) #10
  %159 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %160 unwind label %310

160:                                              ; preds = %156
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %23, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 1.000000e+01)
          to label %161 unwind label %310

161:                                              ; preds = %160
  %162 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %163 unwind label %310

163:                                              ; preds = %161
  %164 = getelementptr inbounds %"class.JPH::Quat", ptr %24, i32 0, i32 0
  %165 = getelementptr inbounds %"class.JPH::Vec4", ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds %union.anon.4, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 0
  %168 = extractvalue { double, double } %162, 0
  store double %168, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 1
  %170 = extractvalue { double, double } %162, 1
  store double %170, ptr %169, align 8
  %171 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %172 = load double, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %174 = load double, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %176 = load double, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %178 = load double, ptr %177, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %22, ptr noundef %159, double %172, double %174, double %176, double %178, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %179 unwind label %310

179:                                              ; preds = %163
  %180 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull align 16 dereferenceable(256) %22, i32 noundef 0)
          to label %181 unwind label %314

181:                                              ; preds = %179
  %182 = getelementptr inbounds %"class.JPH::BodyID", ptr %25, i32 0, i32 0
  store i32 %180, ptr %182, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %22) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %22) #10
  %183 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %184 = load ptr, ptr %183, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %26) #10
  %185 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %186 unwind label %319

186:                                              ; preds = %181
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 1.000000e+01)
          to label %187 unwind label %319

187:                                              ; preds = %186
  %188 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %189 unwind label %319

189:                                              ; preds = %187
  %190 = getelementptr inbounds %"class.JPH::Quat", ptr %28, i32 0, i32 0
  %191 = getelementptr inbounds %"class.JPH::Vec4", ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %union.anon.4, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 0
  %194 = extractvalue { double, double } %188, 0
  store double %194, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 1
  %196 = extractvalue { double, double } %188, 1
  store double %196, ptr %195, align 8
  %197 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %198 = load double, ptr %197, align 16
  %199 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %200 = load double, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %202 = load double, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %204 = load double, ptr %203, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %26, ptr noundef %185, double %198, double %200, double %202, double %204, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %205 unwind label %319

205:                                              ; preds = %189
  %206 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 16 dereferenceable(256) %26, i32 noundef 0)
          to label %207 unwind label %323

207:                                              ; preds = %205
  %208 = getelementptr inbounds %"class.JPH::BodyID", ptr %29, i32 0, i32 0
  store i32 %206, ptr %208, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %26) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %26) #10
  %209 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %30) #10
  %211 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %212 unwind label %328

212:                                              ; preds = %207
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef 2.000000e+01, float noundef 1.000000e+01, float noundef 1.000000e+01)
          to label %213 unwind label %328

213:                                              ; preds = %212
  %214 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %215 unwind label %328

215:                                              ; preds = %213
  %216 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %217 = getelementptr inbounds %union.anon, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 0
  %219 = extractvalue { double, double } %214, 0
  store double %219, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 1
  %221 = extractvalue { double, double } %214, 1
  store double %221, ptr %220, align 8
  %222 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %223 = load double, ptr %222, align 16
  %224 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %225 = load double, ptr %224, align 8
  %226 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %223, double %225, float noundef 0x3FF921FB60000000)
          to label %227 unwind label %328

227:                                              ; preds = %215
  %228 = getelementptr inbounds %"class.JPH::Quat", ptr %32, i32 0, i32 0
  %229 = getelementptr inbounds %"class.JPH::Vec4", ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds %union.anon.4, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 0
  %232 = extractvalue { double, double } %226, 0
  store double %232, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 1
  %234 = extractvalue { double, double } %226, 1
  store double %234, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %236 = load double, ptr %235, align 16
  %237 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %238 = load double, ptr %237, align 8
  %239 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %240 = load double, ptr %239, align 16
  %241 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %242 = load double, ptr %241, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %30, ptr noundef %211, double %236, double %238, double %240, double %242, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %243 unwind label %328

243:                                              ; preds = %227
  %244 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %210, ptr noundef nonnull align 16 dereferenceable(256) %30, i32 noundef 0)
          to label %245 unwind label %332

245:                                              ; preds = %243
  %246 = getelementptr inbounds %"class.JPH::BodyID", ptr %34, i32 0, i32 0
  store i32 %244, ptr %246, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %30) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %30) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  %247 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %248 unwind label %337

248:                                              ; preds = %245
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %247, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %249 unwind label %341

249:                                              ; preds = %248
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %247)
          to label %250 unwind label %337

250:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  store i32 0, ptr %36, align 4, !tbaa !18
  br label %251

251:                                              ; preds = %467, %250
  %252 = load i32, ptr %36, align 4, !tbaa !18
  %253 = icmp slt i32 %252, 10
  br i1 %253, label %345, label %254

254:                                              ; preds = %251
  store i32 2, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %470

255:                                              ; preds = %1
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %4, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %5, align 4
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %53) #10
  br label %477

259:                                              ; preds = %57, %54
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %4, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %5, align 4
  br label %476

263:                                              ; preds = %56
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %4, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %5, align 4
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %55) #10
  br label %476

267:                                              ; preds = %65, %63, %62, %58
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %4, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %5, align 4
  br label %275

271:                                              ; preds = %81
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %4, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #10
  br label %275

275:                                              ; preds = %271, %267
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #10
  br label %475

276:                                              ; preds = %91, %89, %88, %83
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %4, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %5, align 4
  br label %284

280:                                              ; preds = %107
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %4, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %11) #10
  br label %284

284:                                              ; preds = %280, %276
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #10
  br label %475

285:                                              ; preds = %129, %117, %115, %114, %109
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %4, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %5, align 4
  br label %293

289:                                              ; preds = %145
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %4, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #10
  br label %293

293:                                              ; preds = %289, %285
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #10
  br label %475

294:                                              ; preds = %151, %147
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %4, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %5, align 4
  br label %474

298:                                              ; preds = %150
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %4, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %5, align 4
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %149) #10
  br label %474

302:                                              ; preds = %155, %152
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %4, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %5, align 4
  br label %473

306:                                              ; preds = %154
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %4, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %5, align 4
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %153) #10
  br label %473

310:                                              ; preds = %163, %161, %160, %156
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %4, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %5, align 4
  br label %318

314:                                              ; preds = %179
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %4, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %22) #10
  br label %318

318:                                              ; preds = %314, %310
  call void @llvm.lifetime.end.p0(i64 256, ptr %22) #10
  br label %472

319:                                              ; preds = %189, %187, %186, %181
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %4, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %5, align 4
  br label %327

323:                                              ; preds = %205
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %4, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %26) #10
  br label %327

327:                                              ; preds = %323, %319
  call void @llvm.lifetime.end.p0(i64 256, ptr %26) #10
  br label %472

328:                                              ; preds = %227, %215, %213, %212, %207
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %4, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %5, align 4
  br label %336

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

336:                                              ; preds = %332, %328
  call void @llvm.lifetime.end.p0(i64 256, ptr %30) #10
  br label %472

337:                                              ; preds = %249, %245
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %4, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %5, align 4
  br label %471

341:                                              ; preds = %248
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %4, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %5, align 4
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %247) #10
  br label %471

345:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  store i32 0, ptr %38, align 4, !tbaa !18
  br label %346

346:                                              ; preds = %453, %345
  %347 = load i32, ptr %38, align 4, !tbaa !18
  %348 = icmp slt i32 %347, 2
  br i1 %348, label %350, label %349

349:                                              ; preds = %346
  store i32 5, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  br label %466

350:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #10
  %351 = load i32, ptr %36, align 4, !tbaa !18
  %352 = and i32 %351, 1
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %395

354:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #10
  %355 = load i32, ptr %38, align 4, !tbaa !18
  %356 = sitofp i32 %355 to float
  %357 = call float @llvm.fmuladd.f32(float 8.000000e+00, float %356, float -4.000000e+00)
  %358 = load i32, ptr %36, align 4, !tbaa !18
  %359 = sitofp i32 %358 to float
  %360 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %359, float 2.000000e+00)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef %357, float noundef %360, float noundef -2.000000e+01)
          to label %361 unwind label %387

361:                                              ; preds = %354
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %41, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #10
  %362 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %363 unwind label %391

363:                                              ; preds = %361
  %364 = getelementptr inbounds %"class.JPH::Vec3", ptr %43, i32 0, i32 0
  %365 = getelementptr inbounds %union.anon, ptr %364, i32 0, i32 0
  %366 = getelementptr inbounds { double, double }, ptr %365, i32 0, i32 0
  %367 = extractvalue { double, double } %362, 0
  store double %367, ptr %366, align 16
  %368 = getelementptr inbounds { double, double }, ptr %365, i32 0, i32 1
  %369 = extractvalue { double, double } %362, 1
  store double %369, ptr %368, align 8
  %370 = load i32, ptr %38, align 4, !tbaa !18
  %371 = and i32 %370, 1
  %372 = sitofp i32 %371 to float
  %373 = call float @llvm.fmuladd.f32(float %372, float 0x400921FB60000000, float 0x3FF921FB60000000)
  %374 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %375 = load double, ptr %374, align 16
  %376 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %377 = load double, ptr %376, align 8
  %378 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %375, double %377, float noundef %373)
          to label %379 unwind label %391

379:                                              ; preds = %363
  %380 = getelementptr inbounds %"class.JPH::Quat", ptr %42, i32 0, i32 0
  %381 = getelementptr inbounds %"class.JPH::Vec4", ptr %380, i32 0, i32 0
  %382 = getelementptr inbounds %union.anon.4, ptr %381, i32 0, i32 0
  %383 = getelementptr inbounds { double, double }, ptr %382, i32 0, i32 0
  %384 = extractvalue { double, double } %378, 0
  store double %384, ptr %383, align 16
  %385 = getelementptr inbounds { double, double }, ptr %382, i32 0, i32 1
  %386 = extractvalue { double, double } %378, 1
  store double %386, ptr %385, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  br label %436

387:                                              ; preds = %354
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %4, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #10
  br label %465

391:                                              ; preds = %363, %361
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %4, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  br label %465

395:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #10
  %396 = load i32, ptr %36, align 4, !tbaa !18
  %397 = sitofp i32 %396 to float
  %398 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %397, float 2.000000e+00)
  %399 = load i32, ptr %38, align 4, !tbaa !18
  %400 = sitofp i32 %399 to float
  %401 = call float @llvm.fmuladd.f32(float 8.000000e+00, float %400, float -2.400000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef 0.000000e+00, float noundef %398, float noundef %401)
          to label %402 unwind label %428

402:                                              ; preds = %395
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #10
  %403 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %404 unwind label %432

404:                                              ; preds = %402
  %405 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %406 = getelementptr inbounds %union.anon, ptr %405, i32 0, i32 0
  %407 = getelementptr inbounds { double, double }, ptr %406, i32 0, i32 0
  %408 = extractvalue { double, double } %403, 0
  store double %408, ptr %407, align 16
  %409 = getelementptr inbounds { double, double }, ptr %406, i32 0, i32 1
  %410 = extractvalue { double, double } %403, 1
  store double %410, ptr %409, align 8
  %411 = load i32, ptr %38, align 4, !tbaa !18
  %412 = and i32 %411, 1
  %413 = sitofp i32 %412 to float
  %414 = call float @llvm.fmuladd.f32(float %413, float 0x400921FB60000000, float 0x3FF921FB60000000)
  %415 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %416 = load double, ptr %415, align 16
  %417 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %418 = load double, ptr %417, align 8
  %419 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %416, double %418, float noundef %414)
          to label %420 unwind label %432

420:                                              ; preds = %404
  %421 = getelementptr inbounds %"class.JPH::Quat", ptr %45, i32 0, i32 0
  %422 = getelementptr inbounds %"class.JPH::Vec4", ptr %421, i32 0, i32 0
  %423 = getelementptr inbounds %union.anon.4, ptr %422, i32 0, i32 0
  %424 = getelementptr inbounds { double, double }, ptr %423, i32 0, i32 0
  %425 = extractvalue { double, double } %419, 0
  store double %425, ptr %424, align 16
  %426 = getelementptr inbounds { double, double }, ptr %423, i32 0, i32 1
  %427 = extractvalue { double, double } %419, 1
  store double %427, ptr %426, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %45, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #10
  br label %436

428:                                              ; preds = %395
  %429 = landingpad { ptr, i32 }
          cleanup
  %430 = extractvalue { ptr, i32 } %429, 0
  store ptr %430, ptr %4, align 8
  %431 = extractvalue { ptr, i32 } %429, 1
  store i32 %431, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #10
  br label %465

432:                                              ; preds = %404, %402
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %4, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #10
  br label %465

436:                                              ; preds = %420, %379
  %437 = getelementptr inbounds %class.Test, ptr %51, i32 0, i32 3
  %438 = load ptr, ptr %437, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %47) #10
  %439 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %440 unwind label %456

440:                                              ; preds = %436
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %40, i64 16, i1 false), !tbaa.struct !20
  %441 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %442 = load double, ptr %441, align 16
  %443 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %444 = load double, ptr %443, align 8
  %445 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %446 = load double, ptr %445, align 16
  %447 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %448 = load double, ptr %447, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %47, ptr noundef %439, double %442, double %444, double %446, double %448, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %449 unwind label %456

449:                                              ; preds = %440
  %450 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %438, ptr noundef nonnull align 16 dereferenceable(256) %47, i32 noundef 0)
          to label %451 unwind label %460

451:                                              ; preds = %449
  %452 = getelementptr inbounds %"class.JPH::BodyID", ptr %50, i32 0, i32 0
  store i32 %450, ptr %452, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %47) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  br label %453

453:                                              ; preds = %451
  %454 = load i32, ptr %38, align 4, !tbaa !18
  %455 = add nsw i32 %454, 1
  store i32 %455, ptr %38, align 4, !tbaa !18
  br label %346, !llvm.loop !22

456:                                              ; preds = %440, %436
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %4, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %5, align 4
  br label %464

460:                                              ; preds = %449
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %4, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %47) #10
  br label %464

464:                                              ; preds = %460, %456
  call void @llvm.lifetime.end.p0(i64 256, ptr %47) #10
  br label %465

465:                                              ; preds = %464, %432, %428, %391, %387
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  br label %471

466:                                              ; preds = %349
  br label %467

467:                                              ; preds = %466
  %468 = load i32, ptr %36, align 4, !tbaa !18
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %36, align 4, !tbaa !18
  br label %251, !llvm.loop !24

470:                                              ; preds = %254
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

471:                                              ; preds = %465, %341, %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  br label %472

472:                                              ; preds = %471, %336, %327, %318
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #10
  br label %473

473:                                              ; preds = %472, %306, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br label %474

474:                                              ; preds = %473, %298, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %475

475:                                              ; preds = %474, %293, %284, %275
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  br label %476

476:                                              ; preds = %475, %263, %259
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %477

477:                                              ; preds = %476, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %478

478:                                              ; preds = %477
  %479 = load ptr, ptr %4, align 8
  %480 = load i32, ptr %5, align 4
  %481 = insertvalue { ptr, i32 } poison, ptr %479, 0
  %482 = insertvalue { ptr, i32 } %481, i32 %480, 1
  resume { ptr, i32 } %482
}

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

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

declare void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96), float noundef, float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 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_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #6 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() #3 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 #6 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

; 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisZEv() #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{i64 0, i64 16, !21}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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::RefConst.6" = type { ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"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::Vec3" = type { %union.anon }
%union.anon = 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" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24TaperedCylinderShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::RefConst.6", align 8
  %3 = alloca %"class.JPH::RefConst.6", align 8
  %4 = alloca %"class.JPH::BodyCreationSettings", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::BodyCreationSettings", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::BodyCreationSettings", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::RefConst.6", align 8
  %11 = alloca %"class.JPH::RefConst.6", align 8
  %12 = alloca %"class.JPH::BodyCreationSettings", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::BodyCreationSettings", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::BodyCreationSettings", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::RefConst.6", align 8
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::BodyCreationSettings", align 16
  %22 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %23 = tail call noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %23, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 3.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %24 unwind label %157

24:                                               ; preds = %1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %25 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %26 unwind label %159

26:                                               ; preds = %24
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %25, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 1.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %27 unwind label %161

27:                                               ; preds = %26
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %25)
          to label %28 unwind label %159

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #9
  %31 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %32 unwind label %163

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

34:                                               ; preds = %32
  %35 = extractvalue { double, double } %33, 0
  %36 = extractvalue { double, double } %33, 1
  %37 = load double, ptr %5, align 16
  %38 = getelementptr inbounds i8, ptr %5, i64 8
  %39 = load double, ptr %38, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %4, ptr noundef %31, double %37, double %39, double %35, double %36, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %40 unwind label %163

40:                                               ; preds = %34
  %41 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 16 dereferenceable(256) %4, i32 noundef 0)
          to label %42 unwind label %165

42:                                               ; preds = %40
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %4) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  %43 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #9
  %44 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %45 unwind label %168

45:                                               ; preds = %42
  %46 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %47 unwind label %168

47:                                               ; preds = %45
  %48 = extractvalue { double, double } %46, 0
  %49 = extractvalue { double, double } %46, 1
  %50 = load double, ptr %7, align 16
  %51 = getelementptr inbounds i8, ptr %7, i64 8
  %52 = load double, ptr %51, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef %44, double %50, double %52, double %48, double %49, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %53 unwind label %168

53:                                               ; preds = %47
  %54 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 16 dereferenceable(256) %6, i32 noundef 0)
          to label %55 unwind label %170

55:                                               ; preds = %53
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  %56 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #9
  %57 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 2.000000e+01, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %58 unwind label %173

58:                                               ; preds = %55
  %59 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %60 unwind label %173

60:                                               ; preds = %58
  %61 = extractvalue { double, double } %59, 0
  %62 = extractvalue { double, double } %59, 1
  %63 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %61, double %62, float noundef 0x3FF921FB60000000)
          to label %64 unwind label %173

64:                                               ; preds = %60
  %65 = extractvalue { double, double } %63, 0
  %66 = extractvalue { double, double } %63, 1
  %67 = load double, ptr %9, align 16
  %68 = getelementptr inbounds i8, ptr %9, i64 8
  %69 = load double, ptr %68, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %8, ptr noundef %57, double %67, double %69, double %65, double %66, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %70 unwind label %173

70:                                               ; preds = %64
  %71 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 16 dereferenceable(256) %8, i32 noundef 0)
          to label %72 unwind label %175

72:                                               ; preds = %70
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %73 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %74 unwind label %178

74:                                               ; preds = %72
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %73, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 3.000000e+00, float noundef 0.000000e+00, ptr noundef null)
          to label %75 unwind label %180

75:                                               ; preds = %74
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %73)
          to label %76 unwind label %178

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %77 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %78 unwind label %182

78:                                               ; preds = %76
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %77, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef null)
          to label %79 unwind label %184

79:                                               ; preds = %78
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %77)
          to label %80 unwind label %182

80:                                               ; preds = %79
  %81 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %12) #9
  %82 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 1.000000e+01)
          to label %83 unwind label %186

83:                                               ; preds = %80
  %84 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %85 unwind label %186

85:                                               ; preds = %83
  %86 = extractvalue { double, double } %84, 0
  %87 = extractvalue { double, double } %84, 1
  %88 = load double, ptr %13, align 16
  %89 = getelementptr inbounds i8, ptr %13, i64 8
  %90 = load double, ptr %89, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %12, ptr noundef %82, double %88, double %90, double %86, double %87, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %91 unwind label %186

91:                                               ; preds = %85
  %92 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 16 dereferenceable(256) %12, i32 noundef 0)
          to label %93 unwind label %188

93:                                               ; preds = %91
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #9
  %94 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %14) #9
  %95 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 1.000000e+01)
          to label %96 unwind label %191

96:                                               ; preds = %93
  %97 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %98 unwind label %191

98:                                               ; preds = %96
  %99 = extractvalue { double, double } %97, 0
  %100 = extractvalue { double, double } %97, 1
  %101 = load double, ptr %15, align 16
  %102 = getelementptr inbounds i8, ptr %15, i64 8
  %103 = load double, ptr %102, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %14, ptr noundef %95, double %101, double %103, double %99, double %100, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %104 unwind label %191

104:                                              ; preds = %98
  %105 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 16 dereferenceable(256) %14, i32 noundef 0)
          to label %106 unwind label %193

106:                                              ; preds = %104
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %14) #9
  %107 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %16) #9
  %108 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef 2.000000e+01, float noundef 1.000000e+01, float noundef 1.000000e+01)
          to label %109 unwind label %196

109:                                              ; preds = %106
  %110 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %111 unwind label %196

111:                                              ; preds = %109
  %112 = extractvalue { double, double } %110, 0
  %113 = extractvalue { double, double } %110, 1
  %114 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %112, double %113, float noundef 0x3FF921FB60000000)
          to label %115 unwind label %196

115:                                              ; preds = %111
  %116 = extractvalue { double, double } %114, 0
  %117 = extractvalue { double, double } %114, 1
  %118 = load double, ptr %17, align 16
  %119 = getelementptr inbounds i8, ptr %17, i64 8
  %120 = load double, ptr %119, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %16, ptr noundef %108, double %118, double %120, double %116, double %117, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %121 unwind label %196

121:                                              ; preds = %115
  %122 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 16 dereferenceable(256) %16, i32 noundef 0)
          to label %123 unwind label %198

123:                                              ; preds = %121
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %16) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %124 = invoke noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef 96)
          to label %125 unwind label %201

125:                                              ; preds = %123
  invoke void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96) %124, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %126 unwind label %203

126:                                              ; preds = %125
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull %124)
          to label %.preheader91 unwind label %201

.preheader91:                                     ; preds = %126
  %.sroa.614.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.614.0..sroa_idx15 = getelementptr inbounds i8, ptr %20, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader91, %.split103.us
  %.066104 = phi i32 [ 0, %.preheader91 ], [ %205, %.split103.us ]
  %127 = and i32 %.066104, 1
  %.not = icmp eq i32 %127, 0
  %128 = uitofp nneg i32 %.066104 to float
  %129 = call float @llvm.fmuladd.f32(float %128, float 3.000000e+00, float 2.000000e+00)
  br i1 %.not, label %.preheader.split.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef -4.000000e+00, float noundef %129, float noundef -2.000000e+01)
          to label %206 unwind label %212

.preheader.split.us.preheader:                    ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 0.000000e+00, float noundef %129, float noundef -2.400000e+01)
          to label %130 unwind label %.split.us

130:                                              ; preds = %.preheader.split.us.preheader
  %.sroa.012.0.copyload13.us = load double, ptr %20, align 16
  %.sroa.614.0.copyload16.us = load double, ptr %.sroa.614.0..sroa_idx15, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  %131 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %132 unwind label %.split94.us

132:                                              ; preds = %130
  %133 = extractvalue { double, double } %131, 0
  %134 = extractvalue { double, double } %131, 1
  %135 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %133, double %134, float noundef 0x3FF921FB60000000)
          to label %136 unwind label %.split94.us

136:                                              ; preds = %132
  %.sroa.6.0.us = extractvalue { double, double } %135, 1
  %.sroa.011.0.us = extractvalue { double, double } %135, 0
  %137 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %21) #9
  %138 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %21, ptr noundef %138, double %.sroa.012.0.copyload13.us, double %.sroa.614.0.copyload16.us, double %.sroa.011.0.us, double %.sroa.6.0.us, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %139 unwind label %.split97.us

139:                                              ; preds = %136
  %140 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 16 dereferenceable(256) %21, i32 noundef 0)
          to label %.preheader.split.us.1 unwind label %.split100.us

.preheader.split.us.1:                            ; preds = %139
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 0.000000e+00, float noundef %129, float noundef -1.600000e+01)
          to label %141 unwind label %.split.us

141:                                              ; preds = %.preheader.split.us.1
  %.sroa.012.0.copyload13.us.1 = load double, ptr %20, align 16
  %.sroa.614.0.copyload16.us.1 = load double, ptr %.sroa.614.0..sroa_idx15, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  %142 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %143 unwind label %.split94.us

143:                                              ; preds = %141
  %144 = extractvalue { double, double } %142, 0
  %145 = extractvalue { double, double } %142, 1
  %146 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %144, double %145, float noundef 0x4012D97C80000000)
          to label %147 unwind label %.split94.us

147:                                              ; preds = %143
  %.sroa.6.0.us.1 = extractvalue { double, double } %146, 1
  %.sroa.011.0.us.1 = extractvalue { double, double } %146, 0
  %148 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %21) #9
  %149 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %21, ptr noundef %149, double %.sroa.012.0.copyload13.us.1, double %.sroa.614.0.copyload16.us.1, double %.sroa.011.0.us.1, double %.sroa.6.0.us.1, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %150 unwind label %.split97.us

150:                                              ; preds = %147
  %151 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 16 dereferenceable(256) %21, i32 noundef 0)
          to label %.split103.us.loopexit unwind label %.split100.us

.split103.us.loopexit:                            ; preds = %150
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #9
  br label %.split103.us

.split.us:                                        ; preds = %.preheader.split.us.1, %.preheader.split.us.preheader
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  br label %236

.split94.us:                                      ; preds = %143, %141, %132, %130
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %236

.split97.us:                                      ; preds = %147, %136
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %235

.split100.us:                                     ; preds = %150, %139
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %234

156:                                              ; preds = %.split103.us
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  ret void

157:                                              ; preds = %1
  %158 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %23) #9
  br label %243

159:                                              ; preds = %27, %24
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %242

161:                                              ; preds = %26
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %25) #9
  br label %242

163:                                              ; preds = %34, %32, %28
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %167

165:                                              ; preds = %40
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %4) #9
  br label %167

167:                                              ; preds = %165, %163
  %.pn = phi { ptr, i32 } [ %166, %165 ], [ %164, %163 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  br label %241

168:                                              ; preds = %47, %45, %42
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %172

170:                                              ; preds = %53
  %171 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  br label %172

172:                                              ; preds = %170, %168
  %.pn69 = phi { ptr, i32 } [ %171, %170 ], [ %169, %168 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  br label %241

173:                                              ; preds = %64, %60, %58, %55
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %177

175:                                              ; preds = %70
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #9
  br label %177

177:                                              ; preds = %175, %173
  %.pn71 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  br label %241

178:                                              ; preds = %75, %72
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %240

180:                                              ; preds = %74
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %73) #9
  br label %240

182:                                              ; preds = %79, %76
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %239

184:                                              ; preds = %78
  %185 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %77) #9
  br label %239

186:                                              ; preds = %85, %83, %80
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %190

188:                                              ; preds = %91
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #9
  br label %190

190:                                              ; preds = %188, %186
  %.pn73 = phi { ptr, i32 } [ %189, %188 ], [ %187, %186 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #9
  br label %238

191:                                              ; preds = %98, %96, %93
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %195

193:                                              ; preds = %104
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %14) #9
  br label %195

195:                                              ; preds = %193, %191
  %.pn75 = phi { ptr, i32 } [ %194, %193 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %14) #9
  br label %238

196:                                              ; preds = %115, %111, %109, %106
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %200

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

200:                                              ; preds = %198, %196
  %.pn77 = phi { ptr, i32 } [ %199, %198 ], [ %197, %196 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #9
  br label %238

201:                                              ; preds = %126, %123
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %237

203:                                              ; preds = %125
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH28TaperedCylinderShapeSettingsdlEPv(ptr noundef %124) #9
  br label %237

.split103.us:                                     ; preds = %.split103.us.loopexit105, %.split103.us.loopexit
  %205 = add nuw nsw i32 %.066104, 1
  %exitcond.not = icmp eq i32 %205, 10
  br i1 %exitcond.not, label %156, label %.preheader, !llvm.loop !18

206:                                              ; preds = %.preheader.split.preheader
  %.sroa.012.0.copyload = load double, ptr %19, align 16
  %.sroa.614.0.copyload = load double, ptr %.sroa.614.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  %207 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %208 unwind label %214

208:                                              ; preds = %206
  %209 = extractvalue { double, double } %207, 0
  %210 = extractvalue { double, double } %207, 1
  %211 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %209, double %210, float noundef 0x3FF921FB60000000)
          to label %216 unwind label %214

212:                                              ; preds = %.preheader.split.1, %.preheader.split.preheader
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %236

214:                                              ; preds = %223, %221, %208, %206
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %236

216:                                              ; preds = %208
  %.sroa.6.0 = extractvalue { double, double } %211, 1
  %.sroa.011.0 = extractvalue { double, double } %211, 0
  %217 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %21) #9
  %218 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %21, ptr noundef %218, double %.sroa.012.0.copyload, double %.sroa.614.0.copyload, double %.sroa.011.0, double %.sroa.6.0, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %219 unwind label %.split97

219:                                              ; preds = %216
  %220 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %217, ptr noundef nonnull align 16 dereferenceable(256) %21, i32 noundef 0)
          to label %.preheader.split.1 unwind label %.split100

.preheader.split.1:                               ; preds = %219
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 4.000000e+00, float noundef %129, float noundef -2.000000e+01)
          to label %221 unwind label %212

221:                                              ; preds = %.preheader.split.1
  %.sroa.012.0.copyload.1 = load double, ptr %19, align 16
  %.sroa.614.0.copyload.1 = load double, ptr %.sroa.614.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  %222 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %223 unwind label %214

223:                                              ; preds = %221
  %224 = extractvalue { double, double } %222, 0
  %225 = extractvalue { double, double } %222, 1
  %226 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %224, double %225, float noundef 0x4012D97C80000000)
          to label %227 unwind label %214

227:                                              ; preds = %223
  %.sroa.6.0.1 = extractvalue { double, double } %226, 1
  %.sroa.011.0.1 = extractvalue { double, double } %226, 0
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %21) #9
  %229 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %21, ptr noundef %229, double %.sroa.012.0.copyload.1, double %.sroa.614.0.copyload.1, double %.sroa.011.0.1, double %.sroa.6.0.1, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %230 unwind label %.split97

230:                                              ; preds = %227
  %231 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %228, ptr noundef nonnull align 16 dereferenceable(256) %21, i32 noundef 0)
          to label %.split103.us.loopexit105 unwind label %.split100

.split103.us.loopexit105:                         ; preds = %230
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #9
  br label %.split103.us

.split97:                                         ; preds = %227, %216
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %235

.split100:                                        ; preds = %230, %219
  %233 = landingpad { ptr, i32 }
          cleanup
  br label %234

234:                                              ; preds = %.split100.us, %.split100
  %.us-phi101 = phi { ptr, i32 } [ %233, %.split100 ], [ %155, %.split100.us ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %21) #9
  br label %235

235:                                              ; preds = %.split97, %.split97.us, %234
  %.pn81 = phi { ptr, i32 } [ %.us-phi101, %234 ], [ %232, %.split97 ], [ %154, %.split97.us ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %21) #9
  br label %236

236:                                              ; preds = %235, %.split94.us, %.split.us, %214, %212
  %.pn81.pn = phi { ptr, i32 } [ %.pn81, %235 ], [ %215, %214 ], [ %213, %212 ], [ %153, %.split94.us ], [ %152, %.split.us ]
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br label %237

237:                                              ; preds = %236, %203, %201
  %.pn81.pn.pn = phi { ptr, i32 } [ %.pn81.pn, %236 ], [ %202, %201 ], [ %204, %203 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br label %238

238:                                              ; preds = %237, %200, %195, %190
  %.pn81.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn, %237 ], [ %.pn77, %200 ], [ %.pn75, %195 ], [ %.pn73, %190 ]
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %239

239:                                              ; preds = %238, %184, %182
  %.pn81.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn, %238 ], [ %183, %182 ], [ %185, %184 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %240

240:                                              ; preds = %239, %180, %178
  %.pn81.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn, %239 ], [ %179, %178 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %241

241:                                              ; preds = %240, %177, %172, %167
  %.pn81.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn.pn, %240 ], [ %.pn71, %177 ], [ %.pn69, %172 ], [ %.pn, %167 ]
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  br label %242

242:                                              ; preds = %241, %161, %159
  %.pn81.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn.pn.pn, %241 ], [ %160, %159 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br label %243

243:                                              ; preds = %242, %157
  %.pn81.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn81.pn.pn.pn.pn.pn.pn.pn, %242 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn81.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: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH28TaperedCylinderShapeSettingsnwEm(i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZN3JPH28TaperedCylinderShapeSettingsC1EffffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(96), float noundef, float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 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_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() local_unnamed_addr #3 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 #6 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass