; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Shapes/CylinderShapeTest.ll (ZN17CylinderShapeTest10InitializeEv)

; 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" = 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.9", %"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.9" = 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 @_ZN17CylinderShapeTest10InitializeEv(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", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.JPH::BodyCreationSettings", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Quat", align 16
  %9 = alloca %"class.JPH::BodyID", align 4
  %10 = alloca %"class.JPH::BodyCreationSettings", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Quat", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::BodyID", align 4
  %15 = alloca %"class.JPH::RefConst", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Quat", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Quat", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Quat", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::BodyCreationSettings", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Quat", align 16
  %30 = alloca %"class.JPH::BodyID", align 4
  %31 = alloca %"class.JPH::RefConst", align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.JPH::BodyCreationSettings", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Quat", align 16
  %36 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %37 = load ptr, ptr %2, align 8
  %38 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %37, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %39 = call noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %39, float noundef 2.500000e+00, float noundef 2.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %40 unwind label %113

40:                                               ; preds = %1
  call void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %39)
  %41 = getelementptr inbounds %class.Test, ptr %37, i32 0, i32 3
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #10
  %43 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %44 unwind label %117

44:                                               ; preds = %40
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %45 unwind label %117

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

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"class.JPH::Quat", ptr %8, i32 0, i32 0
  %49 = getelementptr inbounds %"class.JPH::Vec4", ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %union.anon.4, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %52 = extractvalue { double, double } %46, 0
  store double %52, ptr %51, align 16
  %53 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %54 = extractvalue { double, double } %46, 1
  store double %54, ptr %53, align 8
  %55 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %56 = load double, ptr %55, align 16
  %57 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %58 = load double, ptr %57, align 8
  %59 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %60 = load double, ptr %59, align 16
  %61 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %62 = load double, ptr %61, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef %43, double %56, double %58, double %60, double %62, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %63 unwind label %117

63:                                               ; preds = %47
  %64 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 16 dereferenceable(256) %6, i32 noundef 0)
          to label %65 unwind label %121

65:                                               ; preds = %63
  %66 = getelementptr inbounds %"class.JPH::BodyID", ptr %9, i32 0, i32 0
  store i32 %64, ptr %66, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #10
  %67 = getelementptr inbounds %class.Test, ptr %37, i32 0, i32 3
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %10) #10
  %69 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %70 unwind label %126

70:                                               ; preds = %65
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %71 unwind label %126

71:                                               ; preds = %70
  %72 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %73 unwind label %126

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

85:                                               ; preds = %73
  %86 = getelementptr inbounds %"class.JPH::Quat", ptr %12, i32 0, i32 0
  %87 = getelementptr inbounds %"class.JPH::Vec4", ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %union.anon.4, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 0
  %90 = extractvalue { double, double } %84, 0
  store double %90, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 1
  %92 = extractvalue { double, double } %84, 1
  store double %92, ptr %91, align 8
  %93 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %94 = load double, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %96 = load double, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef %69, double %94, double %96, double %98, double %100, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %101 unwind label %126

101:                                              ; preds = %85
  %102 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 16 dereferenceable(256) %10, i32 noundef 0)
          to label %103 unwind label %130

103:                                              ; preds = %101
  %104 = getelementptr inbounds %"class.JPH::BodyID", ptr %14, i32 0, i32 0
  store i32 %102, ptr %104, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %105 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %106 unwind label %135

106:                                              ; preds = %103
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %105, float noundef 5.000000e+00, float noundef 1.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %107 unwind label %139

107:                                              ; preds = %106
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef %105)
          to label %108 unwind label %135

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !18
  br label %109

109:                                              ; preds = %257, %108
  %110 = load i32, ptr %16, align 4, !tbaa !18
  %111 = icmp slt i32 %110, 10
  br i1 %111, label %143, label %112

112:                                              ; preds = %109
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %260

113:                                              ; preds = %1
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %4, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %5, align 4
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %39) #10
  br label %324

117:                                              ; preds = %47, %45, %44, %40
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %4, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %5, align 4
  br label %125

121:                                              ; preds = %63
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %4, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #10
  br label %125

125:                                              ; preds = %121, %117
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #10
  br label %323

126:                                              ; preds = %85, %73, %71, %70, %65
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %4, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %5, align 4
  br label %134

130:                                              ; preds = %101
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %4, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #10
  br label %134

134:                                              ; preds = %130, %126
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #10
  br label %323

135:                                              ; preds = %107, %103
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %4, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %5, align 4
  br label %322

139:                                              ; preds = %106
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %4, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %5, align 4
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %105) #10
  br label %322

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

144:                                              ; preds = %243, %143
  %145 = load i32, ptr %18, align 4, !tbaa !18
  %146 = icmp slt i32 %145, 2
  br i1 %146, label %148, label %147

147:                                              ; preds = %144
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %256

148:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  %149 = load i32, ptr %16, align 4, !tbaa !18
  %150 = and i32 %149, 1
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %189

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %153 = load i32, ptr %18, align 4, !tbaa !18
  %154 = sitofp i32 %153 to float
  %155 = call float @llvm.fmuladd.f32(float 8.000000e+00, float %154, float -4.000000e+00)
  %156 = load i32, ptr %16, align 4, !tbaa !18
  %157 = sitofp i32 %156 to float
  %158 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %157, float 2.000000e+00)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef %155, float noundef %158, float noundef -2.000000e+01)
          to label %159 unwind label %181

159:                                              ; preds = %152
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %160 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %161 unwind label %185

161:                                              ; preds = %159
  %162 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %163 = getelementptr inbounds %union.anon, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 0
  %165 = extractvalue { double, double } %160, 0
  store double %165, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 1
  %167 = extractvalue { double, double } %160, 1
  store double %167, ptr %166, align 8
  %168 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %169 = load double, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %171 = load double, ptr %170, align 8
  %172 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %169, double %171, float noundef 0x3FF921FB60000000)
          to label %173 unwind label %185

173:                                              ; preds = %161
  %174 = getelementptr inbounds %"class.JPH::Quat", ptr %22, i32 0, i32 0
  %175 = getelementptr inbounds %"class.JPH::Vec4", ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %union.anon.4, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 0
  %178 = extractvalue { double, double } %172, 0
  store double %178, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 1
  %180 = extractvalue { double, double } %172, 1
  store double %180, ptr %179, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %226

181:                                              ; preds = %152
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %4, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  br label %255

185:                                              ; preds = %161, %159
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %4, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %255

189:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  %190 = load i32, ptr %16, align 4, !tbaa !18
  %191 = sitofp i32 %190 to float
  %192 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %191, float 2.000000e+00)
  %193 = load i32, ptr %18, align 4, !tbaa !18
  %194 = sitofp i32 %193 to float
  %195 = call float @llvm.fmuladd.f32(float 8.000000e+00, float %194, float -2.400000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef 0.000000e+00, float noundef %192, float noundef %195)
          to label %196 unwind label %218

196:                                              ; preds = %189
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #10
  %197 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %198 unwind label %222

198:                                              ; preds = %196
  %199 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %200 = getelementptr inbounds %union.anon, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %197, 0
  store double %202, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %197, 1
  store double %204, ptr %203, align 8
  %205 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %206 = load double, ptr %205, align 16
  %207 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  %209 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %206, double %208, float noundef 0x3FF921FB60000000)
          to label %210 unwind label %222

210:                                              ; preds = %198
  %211 = getelementptr inbounds %"class.JPH::Quat", ptr %25, i32 0, i32 0
  %212 = getelementptr inbounds %"class.JPH::Vec4", ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %union.anon.4, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 0
  %215 = extractvalue { double, double } %209, 0
  store double %215, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 1
  %217 = extractvalue { double, double } %209, 1
  store double %217, ptr %216, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  br label %226

218:                                              ; preds = %189
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %4, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  br label %255

222:                                              ; preds = %198, %196
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %4, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  br label %255

226:                                              ; preds = %210, %173
  %227 = getelementptr inbounds %class.Test, ptr %37, i32 0, i32 3
  %228 = load ptr, ptr %227, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %27) #10
  %229 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %230 unwind label %246

230:                                              ; preds = %226
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %19, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !20
  %231 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %232 = load double, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %234 = load double, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %236 = load double, ptr %235, align 16
  %237 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %238 = load double, ptr %237, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %27, ptr noundef %229, double %232, double %234, double %236, double %238, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %239 unwind label %246

239:                                              ; preds = %230
  %240 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %228, ptr noundef nonnull align 16 dereferenceable(256) %27, i32 noundef 0)
          to label %241 unwind label %250

241:                                              ; preds = %239
  %242 = getelementptr inbounds %"class.JPH::BodyID", ptr %30, i32 0, i32 0
  store i32 %240, ptr %242, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %27) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  br label %243

243:                                              ; preds = %241
  %244 = load i32, ptr %18, align 4, !tbaa !18
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %18, align 4, !tbaa !18
  br label %144, !llvm.loop !22

246:                                              ; preds = %230, %226
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %4, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %5, align 4
  br label %254

250:                                              ; preds = %239
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %4, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %27) #10
  br label %254

254:                                              ; preds = %250, %246
  call void @llvm.lifetime.end.p0(i64 256, ptr %27) #10
  br label %255

255:                                              ; preds = %254, %222, %218, %185, %181
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %321

256:                                              ; preds = %147
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %16, align 4, !tbaa !18
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %16, align 4, !tbaa !18
  br label %109, !llvm.loop !24

260:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %261 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %262 unwind label %269

262:                                              ; preds = %260
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %261, float noundef 0x3FB99999A0000000, float noundef 5.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %263 unwind label %273

263:                                              ; preds = %262
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %261)
          to label %264 unwind label %269

264:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  store i32 0, ptr %32, align 4, !tbaa !18
  br label %265

265:                                              ; preds = %307, %264
  %266 = load i32, ptr %32, align 4, !tbaa !18
  %267 = icmp slt i32 %266, 10
  br i1 %267, label %277, label %268

268:                                              ; preds = %265
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %319

269:                                              ; preds = %263, %260
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %4, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %5, align 4
  br label %320

273:                                              ; preds = %262
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %4, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %5, align 4
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %261) #10
  br label %320

277:                                              ; preds = %265
  %278 = getelementptr inbounds %class.Test, ptr %37, i32 0, i32 3
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %33) #10
  %280 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %281 unwind label %310

281:                                              ; preds = %277
  %282 = load i32, ptr %32, align 4, !tbaa !18
  %283 = sitofp i32 %282 to float
  %284 = call float @llvm.fmuladd.f32(float -1.000000e+00, float %283, float 1.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef 2.000000e+01, float noundef %284, float noundef 0.000000e+00)
          to label %285 unwind label %310

285:                                              ; preds = %281
  %286 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %287 unwind label %310

287:                                              ; preds = %285
  %288 = getelementptr inbounds %"class.JPH::Quat", ptr %35, i32 0, i32 0
  %289 = getelementptr inbounds %"class.JPH::Vec4", ptr %288, i32 0, i32 0
  %290 = getelementptr inbounds %union.anon.4, ptr %289, i32 0, i32 0
  %291 = getelementptr inbounds { double, double }, ptr %290, i32 0, i32 0
  %292 = extractvalue { double, double } %286, 0
  store double %292, ptr %291, align 16
  %293 = getelementptr inbounds { double, double }, ptr %290, i32 0, i32 1
  %294 = extractvalue { double, double } %286, 1
  store double %294, ptr %293, align 8
  %295 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %296 = load double, ptr %295, align 16
  %297 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %298 = load double, ptr %297, align 8
  %299 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %300 = load double, ptr %299, align 16
  %301 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %302 = load double, ptr %301, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %33, ptr noundef %280, double %296, double %298, double %300, double %302, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %303 unwind label %310

303:                                              ; preds = %287
  %304 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %279, ptr noundef nonnull align 16 dereferenceable(256) %33, i32 noundef 0)
          to label %305 unwind label %314

305:                                              ; preds = %303
  %306 = getelementptr inbounds %"class.JPH::BodyID", ptr %36, i32 0, i32 0
  store i32 %304, ptr %306, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %33) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %33) #10
  br label %307

307:                                              ; preds = %305
  %308 = load i32, ptr %32, align 4, !tbaa !18
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %32, align 4, !tbaa !18
  br label %265, !llvm.loop !25

310:                                              ; preds = %287, %285, %281, %277
  %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 = %303
  %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) %33) #10
  br label %318

318:                                              ; preds = %314, %310
  call void @llvm.lifetime.end.p0(i64 256, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  br label %320

319:                                              ; preds = %268
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

320:                                              ; preds = %318, %273, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  br label %321

321:                                              ; preds = %320, %255
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #10
  br label %322

322:                                              ; preds = %321, %139, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %323

323:                                              ; preds = %322, %134, %125
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %324

324:                                              ; preds = %323, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %325

325:                                              ; preds = %324
  %326 = load ptr, ptr %4, align 8
  %327 = load i32, ptr %5, align 4
  %328 = insertvalue { ptr, i32 } poison, ptr %326, 0
  %329 = insertvalue { ptr, i32 } %328, i32 %327, 1
  resume { ptr, i32 } %329
}

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 @_ZN3JPH13CylinderShapenwEm(i64 noundef) #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #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_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local 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_5ShapeEED2Ev(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}
!25 = distinct !{!25, !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" = 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.9", %"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.9" = 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 @_ZN17CylinderShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::RefConst", align 8
  %3 = alloca %"class.JPH::BodyCreationSettings", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::BodyCreationSettings", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::RefConst", align 8
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::BodyCreationSettings", align 16
  %11 = alloca %"class.JPH::RefConst", align 8
  %12 = alloca %"class.JPH::BodyCreationSettings", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = 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
  %15 = tail call noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %15, float noundef 2.500000e+00, float noundef 2.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %16 unwind label %82

16:                                               ; preds = %1
  call void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #9
  %19 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %20 unwind label %84

20:                                               ; preds = %16
  %21 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %22 unwind label %84

22:                                               ; preds = %20
  %23 = extractvalue { double, double } %21, 0
  %24 = extractvalue { double, double } %21, 1
  %25 = load double, ptr %4, align 16
  %26 = getelementptr inbounds i8, ptr %4, i64 8
  %27 = load double, ptr %26, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %3, ptr noundef %19, double %25, double %27, double %23, double %24, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %28 unwind label %84

28:                                               ; preds = %22
  %29 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 16 dereferenceable(256) %3, i32 noundef 0)
          to label %30 unwind label %86

30:                                               ; preds = %28
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #9
  %31 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #9
  %32 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %33 unwind label %89

33:                                               ; preds = %30
  %34 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %35 unwind label %89

35:                                               ; preds = %33
  %36 = extractvalue { double, double } %34, 0
  %37 = extractvalue { double, double } %34, 1
  %38 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %36, double %37, float noundef 0x3FF921FB60000000)
          to label %39 unwind label %89

39:                                               ; preds = %35
  %40 = extractvalue { double, double } %38, 0
  %41 = extractvalue { double, double } %38, 1
  %42 = load double, ptr %6, align 16
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  %44 = load double, ptr %43, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef %32, double %42, double %44, double %40, double %41, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %45 unwind label %89

45:                                               ; preds = %39
  %46 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 16 dereferenceable(256) %5, i32 noundef 0)
          to label %47 unwind label %91

47:                                               ; preds = %45
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %48 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %49 unwind label %94

49:                                               ; preds = %47
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %48, float noundef 5.000000e+00, float noundef 1.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %50 unwind label %96

50:                                               ; preds = %49
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %48)
          to label %.preheader70 unwind label %94

.preheader70:                                     ; preds = %50
  %.sroa.619.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.619.0..sroa_idx20 = getelementptr inbounds i8, ptr %9, i64 8
  br label %.preheader69

.preheader69:                                     ; preds = %.preheader70, %.split82.us
  %.05183 = phi i32 [ 0, %.preheader70 ], [ %98, %.split82.us ]
  %51 = and i32 %.05183, 1
  %.not = icmp eq i32 %51, 0
  %52 = uitofp nneg i32 %.05183 to float
  %53 = call float @llvm.fmuladd.f32(float %52, float 3.000000e+00, float 2.000000e+00)
  br i1 %.not, label %.preheader69.split.us.preheader, label %.preheader69.split.preheader

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

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

54:                                               ; preds = %.preheader69.split.us.preheader
  %.sroa.017.0.copyload18.us = load double, ptr %9, align 16
  %.sroa.619.0.copyload21.us = load double, ptr %.sroa.619.0..sroa_idx20, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  %55 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %56 unwind label %.split73.us

56:                                               ; preds = %54
  %57 = extractvalue { double, double } %55, 0
  %58 = extractvalue { double, double } %55, 1
  %59 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %57, double %58, float noundef 0x3FF921FB60000000)
          to label %60 unwind label %.split73.us

60:                                               ; preds = %56
  %.sroa.6.0.us = extractvalue { double, double } %59, 1
  %.sroa.016.0.us = extractvalue { double, double } %59, 0
  %61 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #9
  %62 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef %62, double %.sroa.017.0.copyload18.us, double %.sroa.619.0.copyload21.us, double %.sroa.016.0.us, double %.sroa.6.0.us, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %63 unwind label %.split76.us

63:                                               ; preds = %60
  %64 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 16 dereferenceable(256) %10, i32 noundef 0)
          to label %.preheader69.split.us.1 unwind label %.split79.us

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

65:                                               ; preds = %.preheader69.split.us.1
  %.sroa.017.0.copyload18.us.1 = load double, ptr %9, align 16
  %.sroa.619.0.copyload21.us.1 = load double, ptr %.sroa.619.0..sroa_idx20, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  %66 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %67 unwind label %.split73.us

67:                                               ; preds = %65
  %68 = extractvalue { double, double } %66, 0
  %69 = extractvalue { double, double } %66, 1
  %70 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %68, double %69, float noundef 0x3FF921FB60000000)
          to label %71 unwind label %.split73.us

71:                                               ; preds = %67
  %.sroa.6.0.us.1 = extractvalue { double, double } %70, 1
  %.sroa.016.0.us.1 = extractvalue { double, double } %70, 0
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #9
  %73 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef %73, double %.sroa.017.0.copyload18.us.1, double %.sroa.619.0.copyload21.us.1, double %.sroa.016.0.us.1, double %.sroa.6.0.us.1, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %74 unwind label %.split76.us

74:                                               ; preds = %71
  %75 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 16 dereferenceable(256) %10, i32 noundef 0)
          to label %.split82.us.loopexit unwind label %.split79.us

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

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

.split73.us:                                      ; preds = %67, %65, %56, %54
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %159

.split76.us:                                      ; preds = %71, %60
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %128

.split79.us:                                      ; preds = %74, %63
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %127

80:                                               ; preds = %.split82.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %81 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %129 unwind label %133

82:                                               ; preds = %1
  %83 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %15) #9
  br label %162

84:                                               ; preds = %22, %20, %16
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %28
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #9
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #9
  br label %161

89:                                               ; preds = %39, %35, %33, %30
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %45
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #9
  br label %93

93:                                               ; preds = %91, %89
  %.pn55 = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #9
  br label %161

94:                                               ; preds = %50, %47
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %160

96:                                               ; preds = %49
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %48) #9
  br label %160

.split82.us:                                      ; preds = %.split82.us.loopexit85, %.split82.us.loopexit
  %98 = add nuw nsw i32 %.05183, 1
  %exitcond.not = icmp eq i32 %98, 10
  br i1 %exitcond.not, label %80, label %.preheader69, !llvm.loop !18

99:                                               ; preds = %.preheader69.split.preheader
  %.sroa.017.0.copyload = load double, ptr %8, align 16
  %.sroa.619.0.copyload = load double, ptr %.sroa.619.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  %100 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %101 unwind label %107

101:                                              ; preds = %99
  %102 = extractvalue { double, double } %100, 0
  %103 = extractvalue { double, double } %100, 1
  %104 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %102, double %103, float noundef 0x3FF921FB60000000)
          to label %109 unwind label %107

105:                                              ; preds = %.preheader69.split.1, %.preheader69.split.preheader
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %159

107:                                              ; preds = %116, %114, %101, %99
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %159

109:                                              ; preds = %101
  %.sroa.6.0 = extractvalue { double, double } %104, 1
  %.sroa.016.0 = extractvalue { double, double } %104, 0
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #9
  %111 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef %111, double %.sroa.017.0.copyload, double %.sroa.619.0.copyload, double %.sroa.016.0, double %.sroa.6.0, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %112 unwind label %.split76

112:                                              ; preds = %109
  %113 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 16 dereferenceable(256) %10, i32 noundef 0)
          to label %.preheader69.split.1 unwind label %.split79

.preheader69.split.1:                             ; preds = %112
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 4.000000e+00, float noundef %53, float noundef -2.000000e+01)
          to label %114 unwind label %105

114:                                              ; preds = %.preheader69.split.1
  %.sroa.017.0.copyload.1 = load double, ptr %8, align 16
  %.sroa.619.0.copyload.1 = load double, ptr %.sroa.619.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  %115 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %116 unwind label %107

116:                                              ; preds = %114
  %117 = extractvalue { double, double } %115, 0
  %118 = extractvalue { double, double } %115, 1
  %119 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %117, double %118, float noundef 0x3FF921FB60000000)
          to label %120 unwind label %107

120:                                              ; preds = %116
  %.sroa.6.0.1 = extractvalue { double, double } %119, 1
  %.sroa.016.0.1 = extractvalue { double, double } %119, 0
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %10) #9
  %122 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %10, ptr noundef %122, double %.sroa.017.0.copyload.1, double %.sroa.619.0.copyload.1, double %.sroa.016.0.1, double %.sroa.6.0.1, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %123 unwind label %.split76

123:                                              ; preds = %120
  %124 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 16 dereferenceable(256) %10, i32 noundef 0)
          to label %.split82.us.loopexit85 unwind label %.split79

.split82.us.loopexit85:                           ; preds = %123
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #9
  br label %.split82.us

.split76:                                         ; preds = %120, %109
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %128

.split79:                                         ; preds = %123, %112
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %127

127:                                              ; preds = %.split79.us, %.split79
  %.us-phi80 = phi { ptr, i32 } [ %126, %.split79 ], [ %79, %.split79.us ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %10) #9
  br label %128

128:                                              ; preds = %.split76, %.split76.us, %127
  %.pn62 = phi { ptr, i32 } [ %.us-phi80, %127 ], [ %125, %.split76 ], [ %78, %.split76.us ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %10) #9
  br label %159

129:                                              ; preds = %80
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %81, float noundef 0x3FB99999A0000000, float noundef 5.000000e+00, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %130 unwind label %135

130:                                              ; preds = %129
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %81)
          to label %.preheader unwind label %133

.preheader:                                       ; preds = %130
  %131 = getelementptr inbounds i8, ptr %13, i64 8
  br label %137

132:                                              ; preds = %151
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  ret void

133:                                              ; preds = %130, %80
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %158

135:                                              ; preds = %129
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %81) #9
  br label %158

137:                                              ; preds = %.preheader, %151
  %.05284 = phi i32 [ 0, %.preheader ], [ %152, %151 ]
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %12) #9
  %139 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %140 = uitofp nneg i32 %.05284 to float
  %141 = call float @llvm.fmuladd.f32(float %140, float -1.000000e+00, float 1.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 2.000000e+01, float noundef %141, float noundef 0.000000e+00)
          to label %142 unwind label %153

142:                                              ; preds = %137
  %143 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %144 unwind label %153

144:                                              ; preds = %142
  %145 = extractvalue { double, double } %143, 0
  %146 = extractvalue { double, double } %143, 1
  %147 = load double, ptr %13, align 16
  %148 = load double, ptr %131, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %12, ptr noundef %139, double %147, double %148, double %145, double %146, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %149 unwind label %153

149:                                              ; preds = %144
  %150 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %138, ptr noundef nonnull align 16 dereferenceable(256) %12, i32 noundef 0)
          to label %151 unwind label %155

151:                                              ; preds = %149
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #9
  %152 = add nuw nsw i32 %.05284, 1
  %exitcond86.not = icmp eq i32 %152, 10
  br i1 %exitcond86.not, label %132, label %137, !llvm.loop !20

153:                                              ; preds = %144, %142, %137
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %149
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %12) #9
  br label %157

157:                                              ; preds = %155, %153
  %.pn57 = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #9
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %158

158:                                              ; preds = %157, %135, %133
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %157 ], [ %134, %133 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %159

159:                                              ; preds = %105, %107, %.split.us, %.split73.us, %128, %158
  %.pn62.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %158 ], [ %.pn62, %128 ], [ %108, %107 ], [ %106, %105 ], [ %77, %.split73.us ], [ %76, %.split.us ]
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %160

160:                                              ; preds = %159, %96, %94
  %.pn62.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn, %159 ], [ %95, %94 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %161

161:                                              ; preds = %160, %93, %88
  %.pn62.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn, %160 ], [ %.pn55, %93 ], [ %.pn, %88 ]
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br label %162

162:                                              ; preds = %161, %82
  %.pn62.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn.pn, %161 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn62.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 @_ZN3JPH13CylinderShapenwEm(i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local 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_5ShapeEED2Ev(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"}
!20 = distinct !{!20, !19}


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