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

; 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 @_ZN23TaperedCapsuleShapeTest10InitializeEv(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 i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %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::Quat", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Quat", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::BodyCreationSettings", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Quat", align 16
  %35 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8
  %37 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %36, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %38 = call noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %38, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 3.000000e+00, ptr noundef null)
          to label %39 unwind label %142

39:                                               ; preds = %1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %40 = invoke noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
          to label %41 unwind label %146

41:                                               ; preds = %39
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %40, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 1.000000e+00, ptr noundef null)
          to label %42 unwind label %150

42:                                               ; preds = %41
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef %40)
          to label %43 unwind label %146

43:                                               ; preds = %42
  %44 = getelementptr inbounds %class.Test, ptr %36, i32 0, i32 3
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #10
  %46 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %47 unwind label %154

47:                                               ; preds = %43
  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 %48 unwind label %154

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

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

66:                                               ; preds = %50
  %67 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 16 dereferenceable(256) %7, i32 noundef 0)
          to label %68 unwind label %158

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"class.JPH::BodyID", ptr %10, i32 0, i32 0
  store i32 %67, ptr %69, 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
  %70 = getelementptr inbounds %class.Test, ptr %36, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %11) #10
  %72 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %73 unwind label %163

73:                                               ; preds = %68
  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 %74 unwind label %163

74:                                               ; preds = %73
  %75 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %76 unwind label %163

76:                                               ; preds = %74
  %77 = getelementptr inbounds %"class.JPH::Quat", ptr %13, i32 0, i32 0
  %78 = getelementptr inbounds %"class.JPH::Vec4", ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %union.anon.4, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 0
  %81 = extractvalue { double, double } %75, 0
  store double %81, ptr %80, align 16
  %82 = getelementptr inbounds { double, double }, ptr %79, i32 0, i32 1
  %83 = extractvalue { double, double } %75, 1
  store double %83, ptr %82, align 8
  %84 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %85 = load double, ptr %84, align 16
  %86 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %87 = load double, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %89 = load double, ptr %88, align 16
  %90 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %91 = load double, ptr %90, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %11, ptr noundef %72, double %85, double %87, double %89, double %91, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %92 unwind label %163

92:                                               ; preds = %76
  %93 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 16 dereferenceable(256) %11, i32 noundef 0)
          to label %94 unwind label %167

94:                                               ; preds = %92
  %95 = getelementptr inbounds %"class.JPH::BodyID", ptr %14, i32 0, i32 0
  store i32 %93, ptr %95, 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
  %96 = getelementptr inbounds %class.Test, ptr %36, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %15) #10
  %98 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %99 unwind label %172

99:                                               ; preds = %94
  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 %100 unwind label %172

100:                                              ; preds = %99
  %101 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %102 unwind label %172

102:                                              ; preds = %100
  %103 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 0
  %106 = extractvalue { double, double } %101, 0
  store double %106, ptr %105, align 16
  %107 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 1
  %108 = extractvalue { double, double } %101, 1
  store double %108, ptr %107, align 8
  %109 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %110 = load double, ptr %109, align 16
  %111 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %112 = load double, ptr %111, align 8
  %113 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %110, double %112, float noundef 0x3FF921FB60000000)
          to label %114 unwind label %172

114:                                              ; preds = %102
  %115 = getelementptr inbounds %"class.JPH::Quat", ptr %17, i32 0, i32 0
  %116 = getelementptr inbounds %"class.JPH::Vec4", ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %union.anon.4, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds { double, double }, ptr %117, i32 0, i32 0
  %119 = extractvalue { double, double } %113, 0
  store double %119, ptr %118, align 16
  %120 = getelementptr inbounds { double, double }, ptr %117, i32 0, i32 1
  %121 = extractvalue { double, double } %113, 1
  store double %121, ptr %120, align 8
  %122 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %123 = load double, ptr %122, align 16
  %124 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %125 = load double, ptr %124, align 8
  %126 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %127 = load double, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %129 = load double, ptr %128, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %15, ptr noundef %98, double %123, double %125, double %127, double %129, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %130 unwind label %172

130:                                              ; preds = %114
  %131 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 16 dereferenceable(256) %15, i32 noundef 0)
          to label %132 unwind label %176

132:                                              ; preds = %130
  %133 = getelementptr inbounds %"class.JPH::BodyID", ptr %19, i32 0, i32 0
  store i32 %131, ptr %133, 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
  %134 = invoke noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
          to label %135 unwind label %181

135:                                              ; preds = %132
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %134, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00, ptr noundef null)
          to label %136 unwind label %185

136:                                              ; preds = %135
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %134)
          to label %137 unwind label %181

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

138:                                              ; preds = %311, %137
  %139 = load i32, ptr %21, align 4, !tbaa !18
  %140 = icmp slt i32 %139, 10
  br i1 %140, label %189, label %141

141:                                              ; preds = %138
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  br label %314

142:                                              ; preds = %1
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %4, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %5, align 4
  call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %38) #10
  br label %318

146:                                              ; preds = %42, %39
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %4, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %5, align 4
  br label %317

150:                                              ; preds = %41
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %4, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %5, align 4
  call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %40) #10
  br label %317

154:                                              ; preds = %50, %48, %47, %43
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %4, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %5, align 4
  br label %162

158:                                              ; preds = %66
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %4, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #10
  br label %162

162:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #10
  br label %316

163:                                              ; preds = %76, %74, %73, %68
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %4, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %5, align 4
  br label %171

167:                                              ; preds = %92
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %4, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %11) #10
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #10
  br label %316

172:                                              ; preds = %114, %102, %100, %99, %94
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %4, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %5, align 4
  br label %180

176:                                              ; preds = %130
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %4, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #10
  br label %180

180:                                              ; preds = %176, %172
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #10
  br label %316

181:                                              ; preds = %136, %132
  %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
  br label %315

185:                                              ; preds = %135
  %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 @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %134) #10
  br label %315

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

190:                                              ; preds = %297, %189
  %191 = load i32, ptr %23, align 4, !tbaa !18
  %192 = icmp slt i32 %191, 2
  br i1 %192, label %194, label %193

193:                                              ; preds = %190
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %310

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #10
  %195 = load i32, ptr %21, align 4, !tbaa !18
  %196 = and i32 %195, 1
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %239

198:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %199 = load i32, ptr %23, align 4, !tbaa !18
  %200 = sitofp i32 %199 to float
  %201 = call float @llvm.fmuladd.f32(float 8.000000e+00, float %200, float -4.000000e+00)
  %202 = load i32, ptr %21, align 4, !tbaa !18
  %203 = sitofp i32 %202 to float
  %204 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %203, float 2.000000e+00)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef %201, float noundef %204, float noundef -2.000000e+01)
          to label %205 unwind label %231

205:                                              ; preds = %198
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #10
  %206 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %207 unwind label %235

207:                                              ; preds = %205
  %208 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %209 = getelementptr inbounds %union.anon, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 0
  %211 = extractvalue { double, double } %206, 0
  store double %211, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 1
  %213 = extractvalue { double, double } %206, 1
  store double %213, ptr %212, align 8
  %214 = load i32, ptr %23, align 4, !tbaa !18
  %215 = and i32 %214, 1
  %216 = sitofp i32 %215 to float
  %217 = call float @llvm.fmuladd.f32(float %216, float 0x400921FB60000000, float 0x3FF921FB60000000)
  %218 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %219 = load double, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %221 = load double, ptr %220, align 8
  %222 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %219, double %221, float noundef %217)
          to label %223 unwind label %235

223:                                              ; preds = %207
  %224 = getelementptr inbounds %"class.JPH::Quat", ptr %27, i32 0, i32 0
  %225 = getelementptr inbounds %"class.JPH::Vec4", ptr %224, i32 0, i32 0
  %226 = getelementptr inbounds %union.anon.4, ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds { double, double }, ptr %226, i32 0, i32 0
  %228 = extractvalue { double, double } %222, 0
  store double %228, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %226, i32 0, i32 1
  %230 = extractvalue { double, double } %222, 1
  store double %230, ptr %229, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  br label %280

231:                                              ; preds = %198
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %4, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %309

235:                                              ; preds = %207, %205
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %4, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  br label %309

239:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %240 = load i32, ptr %21, align 4, !tbaa !18
  %241 = sitofp i32 %240 to float
  %242 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %241, float 2.000000e+00)
  %243 = load i32, ptr %23, align 4, !tbaa !18
  %244 = sitofp i32 %243 to float
  %245 = call float @llvm.fmuladd.f32(float 8.000000e+00, float %244, float -2.400000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %29, float noundef 0.000000e+00, float noundef %242, float noundef %245)
          to label %246 unwind label %272

246:                                              ; preds = %239
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #10
  %247 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %248 unwind label %276

248:                                              ; preds = %246
  %249 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %250 = getelementptr inbounds %union.anon, ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds { double, double }, ptr %250, i32 0, i32 0
  %252 = extractvalue { double, double } %247, 0
  store double %252, ptr %251, align 16
  %253 = getelementptr inbounds { double, double }, ptr %250, i32 0, i32 1
  %254 = extractvalue { double, double } %247, 1
  store double %254, ptr %253, align 8
  %255 = load i32, ptr %23, align 4, !tbaa !18
  %256 = and i32 %255, 1
  %257 = sitofp i32 %256 to float
  %258 = call float @llvm.fmuladd.f32(float %257, float 0x400921FB60000000, float 0x3FF921FB60000000)
  %259 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %260 = load double, ptr %259, align 16
  %261 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %262 = load double, ptr %261, align 8
  %263 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %260, double %262, float noundef %258)
          to label %264 unwind label %276

264:                                              ; preds = %248
  %265 = getelementptr inbounds %"class.JPH::Quat", ptr %30, i32 0, i32 0
  %266 = getelementptr inbounds %"class.JPH::Vec4", ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds %union.anon.4, ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 0
  %269 = extractvalue { double, double } %263, 0
  store double %269, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %267, i32 0, i32 1
  %271 = extractvalue { double, double } %263, 1
  store double %271, ptr %270, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  br label %280

272:                                              ; preds = %239
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %4, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  br label %309

276:                                              ; preds = %248, %246
  %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
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  br label %309

280:                                              ; preds = %264, %223
  %281 = getelementptr inbounds %class.Test, ptr %36, i32 0, i32 3
  %282 = load ptr, ptr %281, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %32) #10
  %283 = invoke noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %284 unwind label %300

284:                                              ; preds = %280
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !20
  %285 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %286 = load double, ptr %285, align 16
  %287 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %288 = load double, ptr %287, align 8
  %289 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %290 = load double, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %292 = load double, ptr %291, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %32, ptr noundef %283, double %286, double %288, double %290, double %292, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %293 unwind label %300

293:                                              ; preds = %284
  %294 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %282, ptr noundef nonnull align 16 dereferenceable(256) %32, i32 noundef 0)
          to label %295 unwind label %304

295:                                              ; preds = %293
  %296 = getelementptr inbounds %"class.JPH::BodyID", ptr %35, i32 0, i32 0
  store i32 %294, ptr %296, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %32) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  br label %297

297:                                              ; preds = %295
  %298 = load i32, ptr %23, align 4, !tbaa !18
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %23, align 4, !tbaa !18
  br label %190, !llvm.loop !22

300:                                              ; preds = %284, %280
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %4, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %5, align 4
  br label %308

304:                                              ; preds = %293
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %4, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %32) #10
  br label %308

308:                                              ; preds = %304, %300
  call void @llvm.lifetime.end.p0(i64 256, ptr %32) #10
  br label %309

309:                                              ; preds = %308, %276, %272, %235, %231
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br label %315

310:                                              ; preds = %193
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %21, align 4, !tbaa !18
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %21, align 4, !tbaa !18
  br label %138, !llvm.loop !24

314:                                              ; preds = %141
  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

315:                                              ; preds = %309, %185, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %316

316:                                              ; preds = %315, %180, %171, %162
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  br label %317

317:                                              ; preds = %316, %150, %146
  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 %318

318:                                              ; preds = %317, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %319

319:                                              ; preds = %318
  %320 = load ptr, ptr %4, align 8
  %321 = load i32, ptr %5, align 4
  %322 = insertvalue { ptr, i32 } poison, ptr %320, 0
  %323 = insertvalue { ptr, i32 } %322, i32 %321, 1
  resume { ptr, i32 } %323
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(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 @_ZN23TaperedCapsuleShapeTest10InitializeEv(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::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::BodyCreationSettings", 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 @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %15, float noundef 2.000000e+00, float noundef 1.000000e+00, float noundef 3.000000e+00, ptr noundef null)
          to label %16 unwind label %98

16:                                               ; preds = %1
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %17 = invoke noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
          to label %18 unwind label %100

18:                                               ; preds = %16
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %17, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 1.000000e+00, ptr noundef null)
          to label %19 unwind label %102

19:                                               ; preds = %18
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %17)
          to label %20 unwind label %100

20:                                               ; preds = %19
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #9
  %23 = 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 %24 unwind label %104

24:                                               ; preds = %20
  %25 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %26 unwind label %104

26:                                               ; preds = %24
  %27 = extractvalue { double, double } %25, 0
  %28 = extractvalue { double, double } %25, 1
  %29 = load double, ptr %5, align 16
  %30 = getelementptr inbounds i8, ptr %5, i64 8
  %31 = load double, ptr %30, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %4, ptr noundef %23, double %29, double %31, double %27, double %28, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %32 unwind label %104

32:                                               ; preds = %26
  %33 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 16 dereferenceable(256) %4, i32 noundef 0)
          to label %34 unwind label %106

34:                                               ; preds = %32
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %4) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  %35 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #9
  %36 = 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 %37 unwind label %109

37:                                               ; preds = %34
  %38 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %39 unwind label %109

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

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

47:                                               ; preds = %45
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  %48 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #9
  %49 = 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 %50 unwind label %114

50:                                               ; preds = %47
  %51 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %52 unwind label %114

52:                                               ; preds = %50
  %53 = extractvalue { double, double } %51, 0
  %54 = extractvalue { double, double } %51, 1
  %55 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %53, double %54, float noundef 0x3FF921FB60000000)
          to label %56 unwind label %114

56:                                               ; preds = %52
  %57 = extractvalue { double, double } %55, 0
  %58 = extractvalue { double, double } %55, 1
  %59 = load double, ptr %9, align 16
  %60 = getelementptr inbounds i8, ptr %9, i64 8
  %61 = load double, ptr %60, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %8, ptr noundef %49, double %59, double %61, double %57, double %58, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %62 unwind label %114

62:                                               ; preds = %56
  %63 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 16 dereferenceable(256) %8, i32 noundef 0)
          to label %64 unwind label %116

64:                                               ; preds = %62
  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
  %65 = invoke noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
          to label %66 unwind label %119

66:                                               ; preds = %64
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %65, float noundef 5.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00, ptr noundef null)
          to label %67 unwind label %121

67:                                               ; preds = %66
  invoke void @_ZN3JPH8RefConstINS_13ShapeSettingsEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %65)
          to label %.preheader65 unwind label %119

.preheader65:                                     ; preds = %67
  %.sroa.614.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.614.0..sroa_idx15 = getelementptr inbounds i8, ptr %12, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader65, %.split77.us
  %.04978 = phi i32 [ 0, %.preheader65 ], [ %123, %.split77.us ]
  %68 = and i32 %.04978, 1
  %.not = icmp eq i32 %68, 0
  %69 = uitofp nneg i32 %.04978 to float
  %70 = call float @llvm.fmuladd.f32(float %69, 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 %11) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef -4.000000e+00, float noundef %70, float noundef -2.000000e+01)
          to label %124 unwind label %130

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

71:                                               ; preds = %.preheader.split.us.preheader
  %.sroa.012.0.copyload13.us = load double, ptr %12, 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 %12) #9
  %72 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %73 unwind label %.split68.us

73:                                               ; preds = %71
  %74 = extractvalue { double, double } %72, 0
  %75 = extractvalue { double, double } %72, 1
  %76 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %74, double %75, float noundef 0x3FF921FB60000000)
          to label %77 unwind label %.split68.us

77:                                               ; preds = %73
  %.sroa.6.0.us = extractvalue { double, double } %76, 1
  %.sroa.011.0.us = extractvalue { double, double } %76, 0
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %13) #9
  %79 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %13, ptr noundef %79, 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 %80 unwind label %.split71.us

80:                                               ; preds = %77
  %81 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %78, ptr noundef nonnull align 16 dereferenceable(256) %13, i32 noundef 0)
          to label %.preheader.split.us.1 unwind label %.split74.us

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

82:                                               ; preds = %.preheader.split.us.1
  %.sroa.012.0.copyload13.us.1 = load double, ptr %12, 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 %12) #9
  %83 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %84 unwind label %.split68.us

84:                                               ; preds = %82
  %85 = extractvalue { double, double } %83, 0
  %86 = extractvalue { double, double } %83, 1
  %87 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %85, double %86, float noundef 0x4012D97C80000000)
          to label %88 unwind label %.split68.us

88:                                               ; preds = %84
  %.sroa.6.0.us.1 = extractvalue { double, double } %87, 1
  %.sroa.011.0.us.1 = extractvalue { double, double } %87, 0
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %13) #9
  %90 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %13, ptr noundef %90, 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 %91 unwind label %.split71.us

91:                                               ; preds = %88
  %92 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 16 dereferenceable(256) %13, i32 noundef 0)
          to label %.split77.us.loopexit unwind label %.split74.us

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

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

.split68.us:                                      ; preds = %84, %82, %73, %71
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %154

.split71.us:                                      ; preds = %88, %77
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %153

.split74.us:                                      ; preds = %91, %80
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %152

97:                                               ; preds = %.split77.us
  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

98:                                               ; preds = %1
  %99 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %15) #9
  br label %158

100:                                              ; preds = %19, %16
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %157

102:                                              ; preds = %18
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %17) #9
  br label %157

104:                                              ; preds = %26, %24, %20
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %32
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %4) #9
  br label %108

108:                                              ; preds = %106, %104
  %.pn = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  br label %156

109:                                              ; preds = %39, %37, %34
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %113

111:                                              ; preds = %45
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  br label %113

113:                                              ; preds = %111, %109
  %.pn52 = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  br label %156

114:                                              ; preds = %56, %52, %50, %47
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %62
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %8) #9
  br label %118

118:                                              ; preds = %116, %114
  %.pn54 = phi { ptr, i32 } [ %117, %116 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  br label %156

119:                                              ; preds = %67, %64
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %155

121:                                              ; preds = %66
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %65) #9
  br label %155

.split77.us:                                      ; preds = %.split77.us.loopexit79, %.split77.us.loopexit
  %123 = add nuw nsw i32 %.04978, 1
  %exitcond.not = icmp eq i32 %123, 10
  br i1 %exitcond.not, label %97, label %.preheader, !llvm.loop !18

124:                                              ; preds = %.preheader.split.preheader
  %.sroa.012.0.copyload = load double, ptr %11, 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 %11) #9
  %125 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %126 unwind label %132

126:                                              ; preds = %124
  %127 = extractvalue { double, double } %125, 0
  %128 = extractvalue { double, double } %125, 1
  %129 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %127, double %128, float noundef 0x3FF921FB60000000)
          to label %134 unwind label %132

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

132:                                              ; preds = %141, %139, %126, %124
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %154

134:                                              ; preds = %126
  %.sroa.6.0 = extractvalue { double, double } %129, 1
  %.sroa.011.0 = extractvalue { double, double } %129, 0
  %135 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %13) #9
  %136 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %13, ptr noundef %136, 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 %137 unwind label %.split71

137:                                              ; preds = %134
  %138 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 16 dereferenceable(256) %13, i32 noundef 0)
          to label %.preheader.split.1 unwind label %.split74

.preheader.split.1:                               ; preds = %137
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %13) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 4.000000e+00, float noundef %70, float noundef -2.000000e+01)
          to label %139 unwind label %130

139:                                              ; preds = %.preheader.split.1
  %.sroa.012.0.copyload.1 = load double, ptr %11, 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 %11) #9
  %140 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %141 unwind label %132

141:                                              ; preds = %139
  %142 = extractvalue { double, double } %140, 0
  %143 = extractvalue { double, double } %140, 1
  %144 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %142, double %143, float noundef 0x4012D97C80000000)
          to label %145 unwind label %132

145:                                              ; preds = %141
  %.sroa.6.0.1 = extractvalue { double, double } %144, 1
  %.sroa.011.0.1 = extractvalue { double, double } %144, 0
  %146 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %13) #9
  %147 = call noundef ptr @_ZNK3JPH8RefConstINS_13ShapeSettingsEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %13, ptr noundef %147, 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 %148 unwind label %.split71

148:                                              ; preds = %145
  %149 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 16 dereferenceable(256) %13, i32 noundef 0)
          to label %.split77.us.loopexit79 unwind label %.split74

.split77.us.loopexit79:                           ; preds = %148
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %13) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #9
  br label %.split77.us

.split71:                                         ; preds = %145, %134
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %153

.split74:                                         ; preds = %148, %137
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %152

152:                                              ; preds = %.split74.us, %.split74
  %.us-phi75 = phi { ptr, i32 } [ %151, %.split74 ], [ %96, %.split74.us ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %13) #9
  br label %153

153:                                              ; preds = %.split71, %.split71.us, %152
  %.pn58 = phi { ptr, i32 } [ %.us-phi75, %152 ], [ %150, %.split71 ], [ %95, %.split71.us ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #9
  br label %154

154:                                              ; preds = %153, %.split68.us, %.split.us, %132, %130
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %153 ], [ %133, %132 ], [ %131, %130 ], [ %94, %.split68.us ], [ %93, %.split.us ]
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %155

155:                                              ; preds = %154, %121, %119
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %154 ], [ %120, %119 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %156

156:                                              ; preds = %155, %118, %113, %108
  %.pn58.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn, %155 ], [ %.pn54, %118 ], [ %.pn52, %113 ], [ %.pn, %108 ]
  call void @_ZN3JPH8RefConstINS_13ShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  br label %157

157:                                              ; preds = %156, %102, %100
  %.pn58.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn, %156 ], [ %101, %100 ], [ %103, %102 ]
  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 %158

158:                                              ; preds = %157, %98
  %.pn58.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn, %157 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn58.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 @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(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