; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Shapes/HeightFieldShapeTest.ll (ZN20HeightFieldShapeTest10InitializeEv)

; 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::BroadPhaseLayer" = type { i8 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::RefConst.10" = type { ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.13 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.13 = type { i64, [8 x i8] }
%"class.JPH::Color" = type { %union.anon.14 }
%union.anon.14 = type { i32 }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"class.JPH::HeightFieldShapeSettings" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::Vec3", %"class.JPH::Vec3", i32, float, float, i32, i32, i32, %"class.JPH::Array", %"class.JPH::Array.7", %"class.JPH::Array.4", float, [12 x i8] }>
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.15", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.15" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.16, i8, [7 x i8] }>
%union.anon.16 = type { %"class.std::__cxx11::basic_string" }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.19", %"class.JPH::RefConst.20" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.17 }
%union.anon.17 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.18", i32, i32 }
%"class.JPH::RefConst.18" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.19" = type { ptr }
%"class.JPH::RefConst.20" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::Shape::Stats" = type <{ i64, i32, [4 x i8] }>
%"class.JPH::RayCastResult" = type { %"class.JPH::BroadPhaseCastResult", %"class.JPH::SubShapeID" }
%"class.JPH::BroadPhaseCastResult" = type { %"class.JPH::BodyID", float }
%"class.JPH::SubShapeID" = type { i32 }
%"struct.JPH::RRayCast" = type { %"struct.JPH::RayCastT" }
%"struct.JPH::RayCastT" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::SpecifiedBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", %"class.JPH::BroadPhaseLayer", [7 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::SpecifiedObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::BodyFilter" = type { ptr }
%class.HeightFieldShapeTest = type { %class.Test, %"class.JPH::Array", %"class.JPH::Array.4", %"class.JPH::Array.7", i32, %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::RefConst", %"class.JPH::Vec3" }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::RefConst" = type { ptr }

@_ZL12sTerrainType = external hidden global i32, align 4
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN20HeightFieldShapeTest15sBlockSizeShiftE = external dso_local global i32, align 4
@_ZN20HeightFieldShapeTest14sBitsPerSampleE = external dso_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@_ZN3JPH5TraceE = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZN16BroadPhaseLayersL10NON_MOVINGE = external hidden constant %"class.JPH::BroadPhaseLayer", align 1

; 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 @_ZN20HeightFieldShapeTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(256) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca i8, align 1
  %19 = alloca %"class.JPH::RefConst.10", align 8
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.JPH::Color", align 4
  %27 = alloca i1, align 1
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca i32, align 4
  %31 = alloca float, align 4
  %32 = alloca %"class.JPH::Array.7", align 8
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca i32, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca float, align 4
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca %"class.JPH::HeightFieldShapeSettings", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Result", align 8
  %56 = alloca %"class.JPH::BodyCreationSettings", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Quat", align 16
  %59 = alloca %"class.JPH::BodyID", align 4
  %60 = alloca float, align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca float, align 4
  %64 = alloca float, align 4
  %65 = alloca float, align 4
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca float, align 4
  %69 = alloca float, align 4
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca float, align 4
  %72 = alloca float, align 4
  %73 = alloca float, align 4
  %74 = alloca %"struct.JPH::Shape::Stats", align 8
  %75 = alloca { i64, i32 }, align 8
  %76 = alloca %"class.JPH::RayCastResult", align 4
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca %"class.JPH::Vec3", align 16
  %79 = alloca %"struct.JPH::RRayCast", align 16
  %80 = alloca %"class.JPH::Vec3", align 16
  %81 = alloca %"class.JPH::Vec3", align 16
  %82 = alloca %"class.JPH::SpecifiedBroadPhaseLayerFilter", align 8
  %83 = alloca %"class.JPH::BroadPhaseLayer", align 1
  %84 = alloca %"class.JPH::SpecifiedObjectLayerFilter", align 8
  %85 = alloca %"class.JPH::BodyFilter", align 8
  %86 = alloca %"class.JPH::Vec3", align 16
  %87 = alloca %"class.JPH::BodyCreationSettings", align 16
  %88 = alloca %"class.JPH::Vec3", align 16
  %89 = alloca %"class.JPH::Vec3", align 16
  %90 = alloca %"class.JPH::Vec3", align 16
  %91 = alloca %"class.JPH::Quat", align 16
  %92 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %93 = load ptr, ptr %2, align 8
  %94 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %99, label %96

96:                                               ; preds = %1
  %97 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %361

99:                                               ; preds = %96, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #13
  %100 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %101 = icmp eq i32 %100, 0
  %102 = zext i1 %101 to i64
  %103 = select i1 %101, i32 128, i32 129
  store i32 %103, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #13
  store float 1.000000e+00, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #13
  store float 5.000000e+00, ptr %5, align 4, !tbaa !11
  %104 = load i32, ptr %3, align 4, !tbaa !9
  %105 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  store i32 %104, ptr %105, align 8, !tbaa !13
  %106 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %107 = load i32, ptr %3, align 4, !tbaa !9
  %108 = load i32, ptr %3, align 4, !tbaa !9
  %109 = mul nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  call void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %110)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #13
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %149, %99
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = load i32, ptr %3, align 4, !tbaa !9
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #13
  br label %152

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #13
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %145, %116
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = load i32, ptr %3, align 4, !tbaa !9
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #13
  br label %148

122:                                              ; preds = %117
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = sitofp i32 %123 to float
  %125 = fmul float %124, 8.000000e+00
  %126 = load i32, ptr %3, align 4, !tbaa !9
  %127 = sitofp i32 %126 to float
  %128 = fdiv float %125, %127
  %129 = load i32, ptr %6, align 4, !tbaa !9
  %130 = sitofp i32 %129 to float
  %131 = fmul float %130, 8.000000e+00
  %132 = load i32, ptr %3, align 4, !tbaa !9
  %133 = sitofp i32 %132 to float
  %134 = fdiv float %131, %133
  %135 = call noundef float @_Z12PerlinNoise3fffiii(float noundef %128, float noundef 0.000000e+00, float noundef %134, i32 noundef 256, i32 noundef 256, i32 noundef 256)
  %136 = fmul float 5.000000e+00, %135
  %137 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %138 = load i32, ptr %6, align 4, !tbaa !9
  %139 = load i32, ptr %3, align 4, !tbaa !9
  %140 = mul nsw i32 %138, %139
  %141 = load i32, ptr %8, align 4, !tbaa !9
  %142 = add nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %143)
  store float %136, ptr %144, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %122
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %8, align 4, !tbaa !9
  br label %117, !llvm.loop !27

148:                                              ; preds = %121
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %6, align 4, !tbaa !9
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %6, align 4, !tbaa !9
  br label %111, !llvm.loop !29

152:                                              ; preds = %115
  %153 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %154 = load i32, ptr %3, align 4, !tbaa !9
  %155 = mul nsw i32 2, %154
  %156 = add nsw i32 %155, 2
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %157)
  store float 0x47EFFFFFE0000000, ptr %158, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #13
  store i32 4, ptr %9, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %181, %152
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = icmp slt i32 %160, 33
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #13
  br label %184

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #13
  store i32 4, ptr %10, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %177, %163
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = icmp slt i32 %165, 33
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #13
  br label %180

168:                                              ; preds = %164
  %169 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = load i32, ptr %3, align 4, !tbaa !9
  %172 = mul nsw i32 %170, %171
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = add nsw i32 %172, %173
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %175)
  store float 0x47EFFFFFE0000000, ptr %176, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %168
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %10, align 4, !tbaa !9
  br label %164, !llvm.loop !30

180:                                              ; preds = %167
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %9, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %9, align 4, !tbaa !9
  br label %159, !llvm.loop !31

184:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #13
  store i8 0, ptr %11, align 1, !tbaa !32
  %185 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %186 = load i32, ptr %3, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  %188 = call noundef i32 @_ZN3JPH6SquareIiEET_S1_(i32 noundef %187)
  %189 = sext i32 %188 to i64
  call void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %189)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #13
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %249, %184
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = load i32, ptr %3, align 4, !tbaa !9
  %193 = sub nsw i32 %192, 1
  %194 = icmp slt i32 %191, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %190
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #13
  br label %252

196:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #13
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %245, %196
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = load i32, ptr %3, align 4, !tbaa !9
  %200 = sub nsw i32 %199, 1
  %201 = icmp slt i32 %198, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %197
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #13
  br label %248

203:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #13
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = sitofp i32 %204 to float
  %206 = fmul float %205, 1.000000e+00
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = sitofp i32 %207 to float
  %209 = fmul float %208, 1.000000e+00
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %206, float noundef 0.000000e+00, float noundef %209)
  %210 = load i32, ptr %3, align 4, !tbaa !9
  %211 = sitofp i32 %210 to float
  %212 = fmul float %211, 1.000000e+00
  %213 = fdiv float %212, 2.000000e+00
  %214 = load i32, ptr %3, align 4, !tbaa !9
  %215 = sitofp i32 %214 to float
  %216 = fmul float %215, 1.000000e+00
  %217 = fdiv float %216, 2.000000e+00
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %213, float noundef 0.000000e+00, float noundef %217)
  %218 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %219 = load double, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %221 = load double, ptr %220, align 8
  %222 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %219, double %221)
  %223 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %224 = getelementptr inbounds %union.anon, ptr %223, i32 0, i32 0
  %225 = getelementptr inbounds { double, double }, ptr %224, i32 0, i32 0
  %226 = extractvalue { double, double } %222, 0
  store double %226, ptr %225, align 16
  %227 = getelementptr inbounds { double, double }, ptr %224, i32 0, i32 1
  %228 = extractvalue { double, double } %222, 1
  store double %228, ptr %227, align 8
  %229 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %230 = fdiv float %229, 1.000000e+01
  %231 = call noundef float @_ZSt5roundf(float noundef %230)
  %232 = fptoui float %231 to i8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #13
  store i8 %232, ptr %14, align 1, !tbaa !32
  %233 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %234 = load i8, ptr %233, align 1, !tbaa !32
  store i8 %234, ptr %11, align 1, !tbaa !32
  %235 = load i8, ptr %14, align 1, !tbaa !32
  %236 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = load i32, ptr %3, align 4, !tbaa !9
  %239 = sub nsw i32 %238, 1
  %240 = mul nsw i32 %237, %239
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = add nsw i32 %240, %241
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %243)
  store i8 %235, ptr %244, align 1, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #13
  br label %245

245:                                              ; preds = %203
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %13, align 4, !tbaa !9
  br label %197, !llvm.loop !33

248:                                              ; preds = %202
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %12, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %12, align 4, !tbaa !9
  br label %190, !llvm.loop !34

252:                                              ; preds = %195
  %253 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef 0)
  store float 0.000000e+00, ptr %254, align 4, !tbaa !11
  %255 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %256 = load i32, ptr %3, align 4, !tbaa !9
  %257 = sub nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef %258)
  store float 1.000000e+01, ptr %259, align 4, !tbaa !11
  %260 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %261 = load i32, ptr %3, align 4, !tbaa !9
  %262 = sub nsw i32 %261, 1
  %263 = load i32, ptr %3, align 4, !tbaa !9
  %264 = mul nsw i32 %262, %263
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %260, i64 noundef %265)
  store float 2.000000e+01, ptr %266, align 4, !tbaa !11
  %267 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %268 = load i32, ptr %3, align 4, !tbaa !9
  %269 = load i32, ptr %3, align 4, !tbaa !9
  %270 = mul nsw i32 %268, %269
  %271 = sub nsw i32 %270, 1
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %267, i64 noundef %272)
  store float 3.000000e+01, ptr %273, align 4, !tbaa !11
  %274 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %275 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef 0)
  store i8 0, ptr %275, align 1, !tbaa !32
  %276 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %277 = load i32, ptr %3, align 4, !tbaa !9
  %278 = sub nsw i32 %277, 2
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %276, i64 noundef %279)
  store i8 1, ptr %280, align 1, !tbaa !32
  %281 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %282 = load i32, ptr %3, align 4, !tbaa !9
  %283 = sub nsw i32 %282, 2
  %284 = load i32, ptr %3, align 4, !tbaa !9
  %285 = sub nsw i32 %284, 1
  %286 = mul nsw i32 %283, %285
  %287 = sext i32 %286 to i64
  %288 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %281, i64 noundef %287)
  store i8 2, ptr %288, align 1, !tbaa !32
  %289 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %290 = load i32, ptr %3, align 4, !tbaa !9
  %291 = sub nsw i32 %290, 1
  %292 = call noundef i32 @_ZN3JPH6SquareIiEET_S1_(i32 noundef %291)
  %293 = sub nsw i32 %292, 1
  %294 = sext i32 %293 to i64
  %295 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %289, i64 noundef %294)
  store i8 3, ptr %295, align 1, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #13
  store i8 0, ptr %18, align 1, !tbaa !32
  br label %296

296:                                              ; preds = %327, %252
  %297 = load i8, ptr %18, align 1, !tbaa !32
  %298 = zext i8 %297 to i32
  %299 = load i8, ptr %11, align 1, !tbaa !32
  %300 = zext i8 %299 to i32
  %301 = icmp sle i32 %298, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %296
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #13
  br label %352

303:                                              ; preds = %296
  %304 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #13
  %305 = call noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
  store i1 true, ptr %27, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #13
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #13
  %306 = load i8, ptr %18, align 1, !tbaa !32
  %307 = zext i8 %306 to i32
  store i32 %307, ptr %23, align 4, !tbaa !9
  invoke void @_ZN3JPH15ConvertToStringIjEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %308 unwind label %330

308:                                              ; preds = %303
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %309 unwind label %334

309:                                              ; preds = %308
  %310 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %21) #13
  %311 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %312 = extractvalue { i64, ptr } %310, 0
  store i64 %312, ptr %311, align 8
  %313 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %314 = extractvalue { i64, ptr } %310, 1
  store ptr %314, ptr %313, align 8
  %315 = load i8, ptr %18, align 1, !tbaa !32
  %316 = zext i8 %315 to i32
  %317 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef %316)
          to label %318 unwind label %338

318:                                              ; preds = %309
  %319 = getelementptr inbounds %"class.JPH::Color", ptr %26, i32 0, i32 0
  %320 = getelementptr inbounds %union.anon.14, ptr %319, i32 0, i32 0
  store i32 %317, ptr %320, align 4
  %321 = getelementptr inbounds %"class.JPH::Color", ptr %26, i32 0, i32 0
  %322 = getelementptr inbounds %union.anon.14, ptr %321, i32 0, i32 0
  %323 = load i32, ptr %322, align 4
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %305, ptr noundef nonnull align 8 dereferenceable(16) %20, i32 %323)
          to label %324 unwind label %338

324:                                              ; preds = %318
  store i1 false, ptr %27, align 1
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %305)
          to label %325 unwind label %338

325:                                              ; preds = %324
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %304, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %326 unwind label %342

326:                                              ; preds = %325
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #13
  br label %327

327:                                              ; preds = %326
  %328 = load i8, ptr %18, align 1, !tbaa !32
  %329 = add i8 %328, 1
  store i8 %329, ptr %18, align 1, !tbaa !32
  br label %296, !llvm.loop !35

330:                                              ; preds = %303
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %24, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %25, align 4
  br label %348

334:                                              ; preds = %308
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %24, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %25, align 4
  br label %347

338:                                              ; preds = %324, %318, %309
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %24, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %25, align 4
  br label %346

342:                                              ; preds = %325
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %24, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %25, align 4
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #13
  br label %346

346:                                              ; preds = %342, %338
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #13
  br label %347

347:                                              ; preds = %346, %334
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #13
  br label %348

348:                                              ; preds = %347, %330
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #13
  %349 = load i1, ptr %27, align 1
  br i1 %349, label %350, label %351

350:                                              ; preds = %348
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %305) #13
  br label %351

351:                                              ; preds = %350, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #13
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #13
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #13
  br label %879

352:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #13
  %353 = load i32, ptr %3, align 4, !tbaa !9
  %354 = sitofp i32 %353 to float
  %355 = fmul float -5.000000e-01, %354
  %356 = load i32, ptr %3, align 4, !tbaa !9
  %357 = sitofp i32 %356 to float
  %358 = fmul float -5.000000e-01, %357
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef %355, float noundef -2.000000e+00, float noundef %358)
  %359 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %359, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %29, float noundef 1.000000e+00, float noundef 1.500000e+00, float noundef 1.000000e+00)
  %360 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %360, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #13
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #13
  br label %485

361:                                              ; preds = %96
  %362 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %363 = icmp eq i32 %362, 2
  br i1 %363, label %364, label %396

364:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #13
  store i32 1024, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #13
  store float 5.000000e-01, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #13
  call void @_Z8ReadDataPKc(ptr dead_on_unwind writable sret(%"class.JPH::Array.7") align 8 %32, ptr noundef @.str.2)
  %365 = invoke noundef i64 @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %366 unwind label %370

366:                                              ; preds = %364
  %367 = icmp ne i64 %365, 4194304
  br i1 %367, label %368, label %374

368:                                              ; preds = %366
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.3) #14
          to label %369 unwind label %370

369:                                              ; preds = %368
  unreachable

370:                                              ; preds = %380, %377, %374, %368, %364
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %24, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %25, align 4
  br label %395

374:                                              ; preds = %366
  %375 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  store i32 1024, ptr %375, align 8, !tbaa !13
  %376 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %376, i64 noundef 1048576)
          to label %377 unwind label %370

377:                                              ; preds = %374
  %378 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %379 = invoke noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %378)
          to label %380 unwind label %370

380:                                              ; preds = %377
  %381 = invoke noundef ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %382 unwind label %370

382:                                              ; preds = %380
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %379, ptr align 1 %381, i64 4194304, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #13
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %33, float noundef -2.560000e+02, float noundef 0.000000e+00, float noundef -2.560000e+02)
          to label %383 unwind label %387

383:                                              ; preds = %382
  %384 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %384, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #13
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 5.000000e-01)
          to label %385 unwind label %391

385:                                              ; preds = %383
  %386 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %386, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #13
  call void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #13
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #13
  br label %484

387:                                              ; preds = %382
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %24, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #13
  br label %395

391:                                              ; preds = %383
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %24, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #13
  br label %395

395:                                              ; preds = %391, %387, %370
  call void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #13
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #13
  br label %879

396:                                              ; preds = %361
  %397 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %398 = icmp eq i32 %397, 3
  br i1 %398, label %402, label %399

399:                                              ; preds = %396
  %400 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %401 = icmp eq i32 %400, 4
  br i1 %401, label %402, label %439

402:                                              ; preds = %399, %396
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #13
  %403 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %404 = icmp eq i32 %403, 3
  %405 = zext i1 %404 to i64
  %406 = select i1 %404, i32 128, i32 129
  store i32 %406, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #13
  store float 1.000000e+00, ptr %36, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #13
  store float 0x400921FB60000000, ptr %37, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #13
  %407 = load i32, ptr %35, align 4, !tbaa !9
  %408 = sitofp i32 %407 to float
  %409 = fmul float -5.000000e-01, %408
  %410 = load i32, ptr %35, align 4, !tbaa !9
  %411 = sitofp i32 %410 to float
  %412 = fmul float -5.000000e-01, %411
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %38, float noundef %409, float noundef 0.000000e+00, float noundef %412)
  %413 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %413, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %39, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %414 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %414, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #13
  %415 = load i32, ptr %35, align 4, !tbaa !9
  %416 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  store i32 %415, ptr %416, align 8, !tbaa !13
  %417 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %418 = load i32, ptr %35, align 4, !tbaa !9
  %419 = load i32, ptr %35, align 4, !tbaa !9
  %420 = mul nsw i32 %418, %419
  %421 = sext i32 %420 to i64
  call void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef %421)
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #13
  %422 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  store ptr %422, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #13
  %423 = load ptr, ptr %40, align 8, !tbaa !5
  %424 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %423)
  store ptr %424, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #13
  %425 = load ptr, ptr %40, align 8, !tbaa !5
  %426 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %425)
  store ptr %426, ptr %42, align 8, !tbaa !5
  br label %427

427:                                              ; preds = %435, %402
  %428 = load ptr, ptr %41, align 8, !tbaa !5
  %429 = load ptr, ptr %42, align 8, !tbaa !5
  %430 = icmp ne ptr %428, %429
  br i1 %430, label %432, label %431

431:                                              ; preds = %427
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #13
  br label %438

432:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #13
  %433 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %433, ptr %43, align 8, !tbaa !5
  %434 = load ptr, ptr %43, align 8, !tbaa !5
  store float 0x400921FB60000000, ptr %434, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #13
  br label %435

435:                                              ; preds = %432
  %436 = load ptr, ptr %41, align 8, !tbaa !5
  %437 = getelementptr inbounds float, ptr %436, i32 1
  store ptr %437, ptr %41, align 8, !tbaa !5
  br label %427

438:                                              ; preds = %431
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #13
  br label %483

439:                                              ; preds = %399
  %440 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %441 = icmp eq i32 %440, 5
  br i1 %441, label %445, label %442

442:                                              ; preds = %439
  %443 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %444 = icmp eq i32 %443, 6
  br i1 %444, label %445, label %482

445:                                              ; preds = %442, %439
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #13
  %446 = load i32, ptr @_ZL12sTerrainType, align 4, !tbaa !9
  %447 = icmp eq i32 %446, 4
  %448 = zext i1 %447 to i64
  %449 = select i1 %447, i32 128, i32 129
  store i32 %449, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #13
  store float 1.000000e+00, ptr %45, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #13
  %450 = load i32, ptr %44, align 4, !tbaa !9
  %451 = sitofp i32 %450 to float
  %452 = fmul float -5.000000e-01, %451
  %453 = load i32, ptr %44, align 4, !tbaa !9
  %454 = sitofp i32 %453 to float
  %455 = fmul float -5.000000e-01, %454
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %46, float noundef %452, float noundef 0.000000e+00, float noundef %455)
  %456 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %456, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %47, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %457 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %457, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #13
  %458 = load i32, ptr %44, align 4, !tbaa !9
  %459 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  store i32 %458, ptr %459, align 8, !tbaa !13
  %460 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %461 = load i32, ptr %44, align 4, !tbaa !9
  %462 = load i32, ptr %44, align 4, !tbaa !9
  %463 = mul nsw i32 %461, %462
  %464 = sext i32 %463 to i64
  call void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %460, i64 noundef %464)
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #13
  %465 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  store ptr %465, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #13
  %466 = load ptr, ptr %48, align 8, !tbaa !5
  %467 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %466)
  store ptr %467, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #13
  %468 = load ptr, ptr %48, align 8, !tbaa !5
  %469 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %468)
  store ptr %469, ptr %50, align 8, !tbaa !5
  br label %470

470:                                              ; preds = %478, %445
  %471 = load ptr, ptr %49, align 8, !tbaa !5
  %472 = load ptr, ptr %50, align 8, !tbaa !5
  %473 = icmp ne ptr %471, %472
  br i1 %473, label %475, label %474

474:                                              ; preds = %470
  store i32 25, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #13
  br label %481

475:                                              ; preds = %470
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #13
  %476 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %476, ptr %51, align 8, !tbaa !5
  %477 = load ptr, ptr %51, align 8, !tbaa !5
  store float 0x47EFFFFFE0000000, ptr %477, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #13
  br label %478

478:                                              ; preds = %475
  %479 = load ptr, ptr %49, align 8, !tbaa !5
  %480 = getelementptr inbounds float, ptr %479, i32 1
  store ptr %480, ptr %49, align 8, !tbaa !5
  br label %470

481:                                              ; preds = %474
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #13
  br label %482

482:                                              ; preds = %481, %442
  br label %483

483:                                              ; preds = %482, %438
  br label %484

484:                                              ; preds = %483, %385
  br label %485

485:                                              ; preds = %484, %352
  call void @llvm.lifetime.start.p0(i64 208, ptr %52) #13
  %486 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %487 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %486)
  %488 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %488, i64 16, i1 false), !tbaa.struct !36
  %489 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %489, i64 16, i1 false), !tbaa.struct !36
  %490 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  %491 = load i32, ptr %490, align 8, !tbaa !13
  %492 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 3
  %493 = call noundef ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %492)
  %494 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 2
  %495 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %496 = load double, ptr %495, align 16
  %497 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %498 = load double, ptr %497, align 8
  %499 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %500 = load double, ptr %499, align 16
  %501 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %502 = load double, ptr %501, align 8
  call void @_ZN3JPH24HeightFieldShapeSettingsC1EPKfNS_4Vec3ES3_jPKhRKNS_5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 16 dereferenceable(208) %52, ptr noundef %487, double %496, double %498, double %500, double %502, i32 noundef %491, ptr noundef %493, ptr noundef nonnull align 8 dereferenceable(24) %494)
  %503 = load i32, ptr @_ZN20HeightFieldShapeTest15sBlockSizeShiftE, align 4, !tbaa !9
  %504 = shl i32 1, %503
  %505 = getelementptr inbounds %"class.JPH::HeightFieldShapeSettings", ptr %52, i32 0, i32 7
  store i32 %504, ptr %505, align 16, !tbaa !37
  %506 = load i32, ptr @_ZN20HeightFieldShapeTest14sBitsPerSampleE, align 4, !tbaa !9
  %507 = getelementptr inbounds %"class.JPH::HeightFieldShapeSettings", ptr %52, i32 0, i32 8
  store i32 %506, ptr %507, align 4, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 40, ptr %55) #13
  invoke void @_ZNK3JPH24HeightFieldShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %55, ptr noundef nonnull align 16 dereferenceable(208) %52)
          to label %508 unwind label %556

508:                                              ; preds = %485
  %509 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %55)
          to label %510 unwind label %560

510:                                              ; preds = %508
  %511 = invoke noundef ptr @_ZN3JPH10StaticCastINS_16HeightFieldShapeENS_5ShapeETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8) %509)
          to label %512 unwind label %560

512:                                              ; preds = %510
  %513 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 7
  %514 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_16HeightFieldShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %513, ptr noundef %511)
          to label %515 unwind label %560

515:                                              ; preds = %512
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %55) #13
  call void @llvm.lifetime.end.p0(i64 40, ptr %55) #13
  %516 = getelementptr inbounds %class.Test, ptr %93, i32 0, i32 3
  %517 = load ptr, ptr %516, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 256, ptr %56) #13
  %518 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 7
  %519 = invoke noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %518)
          to label %520 unwind label %565

520:                                              ; preds = %515
  %521 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %522 unwind label %565

522:                                              ; preds = %520
  %523 = getelementptr inbounds %"class.JPH::Vec3", ptr %57, i32 0, i32 0
  %524 = getelementptr inbounds %union.anon, ptr %523, i32 0, i32 0
  %525 = getelementptr inbounds { double, double }, ptr %524, i32 0, i32 0
  %526 = extractvalue { double, double } %521, 0
  store double %526, ptr %525, align 16
  %527 = getelementptr inbounds { double, double }, ptr %524, i32 0, i32 1
  %528 = extractvalue { double, double } %521, 1
  store double %528, ptr %527, align 8
  %529 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %530 unwind label %565

530:                                              ; preds = %522
  %531 = getelementptr inbounds %"class.JPH::Quat", ptr %58, i32 0, i32 0
  %532 = getelementptr inbounds %"class.JPH::Vec4", ptr %531, i32 0, i32 0
  %533 = getelementptr inbounds %union.anon.17, ptr %532, i32 0, i32 0
  %534 = getelementptr inbounds { double, double }, ptr %533, i32 0, i32 0
  %535 = extractvalue { double, double } %529, 0
  store double %535, ptr %534, align 16
  %536 = getelementptr inbounds { double, double }, ptr %533, i32 0, i32 1
  %537 = extractvalue { double, double } %529, 1
  store double %537, ptr %536, align 8
  %538 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %539 = load double, ptr %538, align 16
  %540 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %541 = load double, ptr %540, align 8
  %542 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %543 = load double, ptr %542, align 16
  %544 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %545 = load double, ptr %544, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %56, ptr noundef %519, double %539, double %541, double %543, double %545, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %546 unwind label %565

546:                                              ; preds = %530
  %547 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %517, ptr noundef nonnull align 16 dereferenceable(256) %56, i32 noundef 1)
          to label %548 unwind label %569

548:                                              ; preds = %546
  %549 = getelementptr inbounds %"class.JPH::BodyID", ptr %59, i32 0, i32 0
  store i32 %547, ptr %549, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %56) #13
  call void @llvm.lifetime.end.p0(i64 256, ptr %56) #13
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #13
  store float -1.000000e+00, ptr %60, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #13
  store i32 0, ptr %61, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #13
  store i32 0, ptr %62, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #13
  store float 0x47EFFFFFE0000000, ptr %63, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #13
  store float 0xC7EFFFFFE0000000, ptr %64, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #13
  store float 0.000000e+00, ptr %65, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #13
  store i32 0, ptr %66, align 4, !tbaa !9
  br label %550

550:                                              ; preds = %681, %548
  %551 = load i32, ptr %66, align 4, !tbaa !9
  %552 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  %553 = load i32, ptr %552, align 8, !tbaa !13
  %554 = icmp ult i32 %551, %553
  br i1 %554, label %574, label %555

555:                                              ; preds = %550
  store i32 27, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #13
  br label %684

556:                                              ; preds = %485
  %557 = landingpad { ptr, i32 }
          cleanup
  %558 = extractvalue { ptr, i32 } %557, 0
  store ptr %558, ptr %24, align 8
  %559 = extractvalue { ptr, i32 } %557, 1
  store i32 %559, ptr %25, align 4
  br label %564

560:                                              ; preds = %512, %510, %508
  %561 = landingpad { ptr, i32 }
          cleanup
  %562 = extractvalue { ptr, i32 } %561, 0
  store ptr %562, ptr %24, align 8
  %563 = extractvalue { ptr, i32 } %561, 1
  store i32 %563, ptr %25, align 4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %55) #13
  br label %564

564:                                              ; preds = %560, %556
  call void @llvm.lifetime.end.p0(i64 40, ptr %55) #13
  br label %878

565:                                              ; preds = %530, %522, %520, %515
  %566 = landingpad { ptr, i32 }
          cleanup
  %567 = extractvalue { ptr, i32 } %566, 0
  store ptr %567, ptr %24, align 8
  %568 = extractvalue { ptr, i32 } %566, 1
  store i32 %568, ptr %25, align 4
  br label %573

569:                                              ; preds = %546
  %570 = landingpad { ptr, i32 }
          cleanup
  %571 = extractvalue { ptr, i32 } %570, 0
  store ptr %571, ptr %24, align 8
  %572 = extractvalue { ptr, i32 } %570, 1
  store i32 %572, ptr %25, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %56) #13
  br label %573

573:                                              ; preds = %569, %565
  call void @llvm.lifetime.end.p0(i64 256, ptr %56) #13
  br label %878

574:                                              ; preds = %550
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #13
  store i32 0, ptr %67, align 4, !tbaa !9
  br label %575

575:                                              ; preds = %676, %574
  %576 = load i32, ptr %67, align 4, !tbaa !9
  %577 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  %578 = load i32, ptr %577, align 8, !tbaa !13
  %579 = icmp ult i32 %576, %578
  br i1 %579, label %581, label %580

580:                                              ; preds = %575
  store i32 30, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #13
  br label %680

581:                                              ; preds = %575
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #13
  %582 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 1
  %583 = load i32, ptr %66, align 4, !tbaa !9
  %584 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  %585 = load i32, ptr %584, align 8, !tbaa !13
  %586 = mul i32 %583, %585
  %587 = load i32, ptr %67, align 4, !tbaa !9
  %588 = add i32 %586, %587
  %589 = zext i32 %588 to i64
  %590 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %582, i64 noundef %589)
          to label %591 unwind label %613

591:                                              ; preds = %581
  %592 = load float, ptr %590, align 4, !tbaa !11
  store float %592, ptr %68, align 4, !tbaa !11
  %593 = load float, ptr %68, align 4, !tbaa !11
  %594 = fcmp une float %593, 0x47EFFFFFE0000000
  br i1 %594, label %595, label %664

595:                                              ; preds = %591
  %596 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 5
  %597 = invoke noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %596)
          to label %598 unwind label %613

598:                                              ; preds = %595
  %599 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 6
  %600 = invoke noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %599)
          to label %601 unwind label %613

601:                                              ; preds = %598
  %602 = load float, ptr %68, align 4, !tbaa !11
  %603 = call float @llvm.fmuladd.f32(float %600, float %602, float %597)
  store float %603, ptr %68, align 4, !tbaa !11
  %604 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 7
  %605 = invoke noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %604)
          to label %606 unwind label %613

606:                                              ; preds = %601
  %607 = load i32, ptr %67, align 4, !tbaa !9
  %608 = load i32, ptr %66, align 4, !tbaa !9
  %609 = invoke noundef zeroext i1 @_ZNK3JPH16HeightFieldShape13IsNoCollisionEjj(ptr noundef nonnull align 16 dereferenceable(176) %605, i32 noundef %607, i32 noundef %608)
          to label %610 unwind label %613

610:                                              ; preds = %606
  br i1 %609, label %611, label %617

611:                                              ; preds = %610
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.4) #14
          to label %612 unwind label %613

612:                                              ; preds = %611
  unreachable

613:                                              ; preds = %672, %667, %664, %611, %606, %601, %598, %595, %581
  %614 = landingpad { ptr, i32 }
          cleanup
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %24, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %25, align 4
  br label %679

617:                                              ; preds = %610
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #13
  %618 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 7
  %619 = invoke noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %618)
          to label %620 unwind label %645

620:                                              ; preds = %617
  %621 = load i32, ptr %67, align 4, !tbaa !9
  %622 = load i32, ptr %66, align 4, !tbaa !9
  %623 = invoke { double, double } @_ZNK3JPH16HeightFieldShape11GetPositionEjj(ptr noundef nonnull align 16 dereferenceable(176) %619, i32 noundef %621, i32 noundef %622)
          to label %624 unwind label %645

624:                                              ; preds = %620
  %625 = getelementptr inbounds %"class.JPH::Vec3", ptr %70, i32 0, i32 0
  %626 = getelementptr inbounds %union.anon, ptr %625, i32 0, i32 0
  %627 = getelementptr inbounds { double, double }, ptr %626, i32 0, i32 0
  %628 = extractvalue { double, double } %623, 0
  store double %628, ptr %627, align 16
  %629 = getelementptr inbounds { double, double }, ptr %626, i32 0, i32 1
  %630 = extractvalue { double, double } %623, 1
  store double %630, ptr %629, align 8
  %631 = invoke noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %70)
          to label %632 unwind label %645

632:                                              ; preds = %624
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #13
  store float %631, ptr %69, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #13
  %633 = load float, ptr %69, align 4, !tbaa !11
  %634 = load float, ptr %68, align 4, !tbaa !11
  %635 = fsub float %633, %634
  %636 = invoke noundef float @_ZSt3absf(float noundef %635)
          to label %637 unwind label %649

637:                                              ; preds = %632
  store float %636, ptr %71, align 4, !tbaa !11
  %638 = load float, ptr %71, align 4, !tbaa !11
  %639 = load float, ptr %60, align 4, !tbaa !11
  %640 = fcmp ogt float %638, %639
  br i1 %640, label %641, label %653

641:                                              ; preds = %637
  %642 = load float, ptr %71, align 4, !tbaa !11
  store float %642, ptr %60, align 4, !tbaa !11
  %643 = load i32, ptr %67, align 4, !tbaa !9
  store i32 %643, ptr %61, align 4, !tbaa !9
  %644 = load i32, ptr %66, align 4, !tbaa !9
  store i32 %644, ptr %62, align 4, !tbaa !9
  br label %653

645:                                              ; preds = %624, %620, %617
  %646 = landingpad { ptr, i32 }
          cleanup
  %647 = extractvalue { ptr, i32 } %646, 0
  store ptr %647, ptr %24, align 8
  %648 = extractvalue { ptr, i32 } %646, 1
  store i32 %648, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #13
  br label %663

649:                                              ; preds = %655, %653, %632
  %650 = landingpad { ptr, i32 }
          cleanup
  %651 = extractvalue { ptr, i32 } %650, 0
  store ptr %651, ptr %24, align 8
  %652 = extractvalue { ptr, i32 } %650, 1
  store i32 %652, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #13
  br label %663

653:                                              ; preds = %641, %637
  %654 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %655 unwind label %649

655:                                              ; preds = %653
  %656 = load float, ptr %654, align 4, !tbaa !11
  store float %656, ptr %63, align 4, !tbaa !11
  %657 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %658 unwind label %649

658:                                              ; preds = %655
  %659 = load float, ptr %657, align 4, !tbaa !11
  store float %659, ptr %64, align 4, !tbaa !11
  %660 = load float, ptr %71, align 4, !tbaa !11
  %661 = load float, ptr %65, align 4, !tbaa !11
  %662 = fadd float %661, %660
  store float %662, ptr %65, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #13
  br label %675

663:                                              ; preds = %649, %645
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #13
  br label %679

664:                                              ; preds = %591
  %665 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 7
  %666 = invoke noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %665)
          to label %667 unwind label %613

667:                                              ; preds = %664
  %668 = load i32, ptr %67, align 4, !tbaa !9
  %669 = load i32, ptr %66, align 4, !tbaa !9
  %670 = invoke noundef zeroext i1 @_ZNK3JPH16HeightFieldShape13IsNoCollisionEjj(ptr noundef nonnull align 16 dereferenceable(176) %666, i32 noundef %668, i32 noundef %669)
          to label %671 unwind label %613

671:                                              ; preds = %667
  br i1 %670, label %674, label %672

672:                                              ; preds = %671
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.5) #14
          to label %673 unwind label %613

673:                                              ; preds = %672
  unreachable

674:                                              ; preds = %671
  br label %675

675:                                              ; preds = %674, %658
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #13
  br label %676

676:                                              ; preds = %675
  %677 = load i32, ptr %67, align 4, !tbaa !9
  %678 = add i32 %677, 1
  store i32 %678, ptr %67, align 4, !tbaa !9
  br label %575, !llvm.loop !48

679:                                              ; preds = %663, %613
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #13
  br label %877

680:                                              ; preds = %580
  br label %681

681:                                              ; preds = %680
  %682 = load i32, ptr %66, align 4, !tbaa !9
  %683 = add i32 %682, 1
  store i32 %683, ptr %66, align 4, !tbaa !9
  br label %550, !llvm.loop !49

684:                                              ; preds = %555
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #13
  %685 = load float, ptr %63, align 4, !tbaa !11
  %686 = load float, ptr %64, align 4, !tbaa !11
  %687 = fcmp olt float %685, %686
  br i1 %687, label %688, label %695

688:                                              ; preds = %684
  %689 = load float, ptr %60, align 4, !tbaa !11
  %690 = fmul float 1.000000e+02, %689
  %691 = load float, ptr %64, align 4, !tbaa !11
  %692 = load float, ptr %63, align 4, !tbaa !11
  %693 = fsub float %691, %692
  %694 = fdiv float %690, %693
  br label %696

695:                                              ; preds = %684
  br label %696

696:                                              ; preds = %695, %688
  %697 = phi float [ %694, %688 ], [ 0.000000e+00, %695 ]
  store float %697, ptr %72, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #13
  %698 = load i32, ptr @_ZN20HeightFieldShapeTest14sBitsPerSampleE, align 4, !tbaa !9
  %699 = shl i32 1, %698
  %700 = sub nsw i32 %699, 1
  %701 = sitofp i32 %700 to float
  %702 = fdiv float 5.000000e+01, %701
  store float %702, ptr %73, align 4, !tbaa !11
  %703 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  %704 = load i32, ptr %703, align 8, !tbaa !13
  %705 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 4
  %706 = load i32, ptr %705, align 8, !tbaa !13
  %707 = mul i32 %704, %706
  %708 = uitofp i32 %707 to float
  %709 = load float, ptr %65, align 4, !tbaa !11
  %710 = fdiv float %709, %708
  store float %710, ptr %65, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #13
  %711 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 7
  %712 = invoke noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %711)
          to label %713 unwind label %740

713:                                              ; preds = %696
  %714 = invoke { i64, i32 } @_ZNK3JPH16HeightFieldShape8GetStatsEv(ptr noundef nonnull align 16 dereferenceable(176) %712)
          to label %715 unwind label %740

715:                                              ; preds = %713
  store { i64, i32 } %714, ptr %75, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 8 %75, i64 12, i1 false)
  %716 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %717 = load i32, ptr @_ZN20HeightFieldShapeTest15sBlockSizeShiftE, align 4, !tbaa !9
  %718 = shl i32 1, %717
  %719 = load i32, ptr @_ZN20HeightFieldShapeTest14sBitsPerSampleE, align 4, !tbaa !9
  %720 = load float, ptr %63, align 4, !tbaa !11
  %721 = fpext float %720 to double
  %722 = load float, ptr %64, align 4, !tbaa !11
  %723 = fpext float %722 to double
  %724 = load float, ptr %65, align 4, !tbaa !11
  %725 = fpext float %724 to double
  %726 = load float, ptr %60, align 4, !tbaa !11
  %727 = fpext float %726 to double
  %728 = load i32, ptr %61, align 4, !tbaa !9
  %729 = load i32, ptr %62, align 4, !tbaa !9
  %730 = load float, ptr %72, align 4, !tbaa !11
  %731 = fpext float %730 to double
  %732 = getelementptr inbounds %"struct.JPH::Shape::Stats", ptr %74, i32 0, i32 0
  %733 = load i64, ptr %732, align 8, !tbaa !50
  invoke void (ptr, ...) %716(ptr noundef @.str.6, i32 noundef %718, i32 noundef %719, double noundef %721, double noundef %723, double noundef %725, double noundef %727, i32 noundef %728, i32 noundef %729, double noundef %731, i64 noundef %733)
          to label %734 unwind label %740

734:                                              ; preds = %715
  %735 = load float, ptr %72, align 4, !tbaa !11
  %736 = load float, ptr %73, align 4, !tbaa !11
  %737 = fcmp ogt float %735, %736
  br i1 %737, label %738, label %744

738:                                              ; preds = %734
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.7) #14
          to label %739 unwind label %740

739:                                              ; preds = %738
  unreachable

740:                                              ; preds = %738, %715, %713, %696
  %741 = landingpad { ptr, i32 }
          cleanup
  %742 = extractvalue { ptr, i32 } %741, 0
  store ptr %742, ptr %24, align 8
  %743 = extractvalue { ptr, i32 } %741, 1
  store i32 %743, ptr %25, align 4
  br label %876

744:                                              ; preds = %734
  call void @llvm.lifetime.start.p0(i64 12, ptr %76) #13
  invoke void @_ZN3JPH13RayCastResultC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %76)
          to label %745 unwind label %779

745:                                              ; preds = %744
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #13
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %77, float noundef 0.000000e+00, float noundef 1.000000e+03, float noundef 0.000000e+00)
          to label %746 unwind label %783

746:                                              ; preds = %745
  call void @llvm.lifetime.start.p0(i64 16, ptr %78) #13
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %78, float noundef 0.000000e+00, float noundef -2.000000e+03, float noundef 0.000000e+00)
          to label %747 unwind label %787

747:                                              ; preds = %746
  call void @llvm.lifetime.start.p0(i64 32, ptr %79) #13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %80, ptr align 16 %77, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %81, ptr align 16 %78, i64 16, i1 false), !tbaa.struct !36
  %748 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 0
  %749 = load double, ptr %748, align 16
  %750 = getelementptr inbounds { double, double }, ptr %80, i32 0, i32 1
  %751 = load double, ptr %750, align 8
  %752 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 0
  %753 = load double, ptr %752, align 16
  %754 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 1
  %755 = load double, ptr %754, align 8
  invoke void @_ZN3JPH8RRayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32) %79, double %749, double %751, double %753, double %755)
          to label %756 unwind label %791

756:                                              ; preds = %747
  %757 = getelementptr inbounds %class.Test, ptr %93, i32 0, i32 2
  %758 = load ptr, ptr %757, align 16, !tbaa !52
  %759 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem19GetNarrowPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172) %758)
          to label %760 unwind label %791

760:                                              ; preds = %756
  call void @llvm.lifetime.start.p0(i64 16, ptr %82) #13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %83, ptr align 1 @_ZN16BroadPhaseLayersL10NON_MOVINGE, i64 1, i1 false), !tbaa.struct !53
  %761 = getelementptr inbounds %"class.JPH::BroadPhaseLayer", ptr %83, i32 0, i32 0
  %762 = load i8, ptr %761, align 1
  invoke void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9) %82, i8 %762)
          to label %763 unwind label %795

763:                                              ; preds = %760
  call void @llvm.lifetime.start.p0(i64 16, ptr %84) #13
  invoke void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10) %84, i16 noundef zeroext 0)
          to label %764 unwind label %799

764:                                              ; preds = %763
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #13
  call void @llvm.memset.p0.i64(ptr align 8 %85, i8 0, i64 8, i1 false)
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %85) #13
  %765 = invoke noundef zeroext i1 @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERNS_13RayCastResultERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(16) %759, ptr noundef nonnull align 16 dereferenceable(32) %79, ptr noundef nonnull align 4 dereferenceable(12) %76, ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull align 8 dereferenceable(8) %85)
          to label %766 unwind label %803

766:                                              ; preds = %764
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %85) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #13
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %84) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %84) #13
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %82) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #13
  br i1 %765, label %767, label %813

767:                                              ; preds = %766
  call void @llvm.lifetime.start.p0(i64 16, ptr %86) #13
  %768 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %76, i32 0, i32 1
  %769 = load float, ptr %768, align 4, !tbaa !54
  %770 = invoke { double, double } @_ZNK3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_8RRayCastEE13GetPointOnRayEf(ptr noundef nonnull align 16 dereferenceable(32) %79, float noundef %769)
          to label %771 unwind label %809

771:                                              ; preds = %767
  %772 = getelementptr inbounds %"class.JPH::Vec3", ptr %86, i32 0, i32 0
  %773 = getelementptr inbounds %union.anon, ptr %772, i32 0, i32 0
  %774 = getelementptr inbounds { double, double }, ptr %773, i32 0, i32 0
  %775 = extractvalue { double, double } %770, 0
  store double %775, ptr %774, align 16
  %776 = getelementptr inbounds { double, double }, ptr %773, i32 0, i32 1
  %777 = extractvalue { double, double } %770, 1
  store double %777, ptr %776, align 8
  %778 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %778, ptr align 16 %86, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %86) #13
  br label %813

779:                                              ; preds = %744
  %780 = landingpad { ptr, i32 }
          cleanup
  %781 = extractvalue { ptr, i32 } %780, 0
  store ptr %781, ptr %24, align 8
  %782 = extractvalue { ptr, i32 } %780, 1
  store i32 %782, ptr %25, align 4
  br label %875

783:                                              ; preds = %745
  %784 = landingpad { ptr, i32 }
          cleanup
  %785 = extractvalue { ptr, i32 } %784, 0
  store ptr %785, ptr %24, align 8
  %786 = extractvalue { ptr, i32 } %784, 1
  store i32 %786, ptr %25, align 4
  br label %874

787:                                              ; preds = %746
  %788 = landingpad { ptr, i32 }
          cleanup
  %789 = extractvalue { ptr, i32 } %788, 0
  store ptr %789, ptr %24, align 8
  %790 = extractvalue { ptr, i32 } %788, 1
  store i32 %790, ptr %25, align 4
  br label %873

791:                                              ; preds = %756, %747
  %792 = landingpad { ptr, i32 }
          cleanup
  %793 = extractvalue { ptr, i32 } %792, 0
  store ptr %793, ptr %24, align 8
  %794 = extractvalue { ptr, i32 } %792, 1
  store i32 %794, ptr %25, align 4
  br label %872

795:                                              ; preds = %760
  %796 = landingpad { ptr, i32 }
          cleanup
  %797 = extractvalue { ptr, i32 } %796, 0
  store ptr %797, ptr %24, align 8
  %798 = extractvalue { ptr, i32 } %796, 1
  store i32 %798, ptr %25, align 4
  br label %808

799:                                              ; preds = %763
  %800 = landingpad { ptr, i32 }
          cleanup
  %801 = extractvalue { ptr, i32 } %800, 0
  store ptr %801, ptr %24, align 8
  %802 = extractvalue { ptr, i32 } %800, 1
  store i32 %802, ptr %25, align 4
  br label %807

803:                                              ; preds = %764
  %804 = landingpad { ptr, i32 }
          cleanup
  %805 = extractvalue { ptr, i32 } %804, 0
  store ptr %805, ptr %24, align 8
  %806 = extractvalue { ptr, i32 } %804, 1
  store i32 %806, ptr %25, align 4
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %85) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #13
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %84) #13
  br label %807

807:                                              ; preds = %803, %799
  call void @llvm.lifetime.end.p0(i64 16, ptr %84) #13
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %82) #13
  br label %808

808:                                              ; preds = %807, %795
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #13
  br label %872

809:                                              ; preds = %767
  %810 = landingpad { ptr, i32 }
          cleanup
  %811 = extractvalue { ptr, i32 } %810, 0
  store ptr %811, ptr %24, align 8
  %812 = extractvalue { ptr, i32 } %810, 1
  store i32 %812, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %86) #13
  br label %872

813:                                              ; preds = %771, %766
  %814 = getelementptr inbounds %class.Test, ptr %93, i32 0, i32 3
  %815 = load ptr, ptr %814, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 256, ptr %87) #13
  %816 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %817 unwind label %859

817:                                              ; preds = %813
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %88, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %818 unwind label %863

818:                                              ; preds = %817
  %819 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 0
  %820 = load double, ptr %819, align 16
  %821 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 1
  %822 = load double, ptr %821, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %816, double %820, double %822, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %823 unwind label %863

823:                                              ; preds = %818
  %824 = getelementptr inbounds %class.HeightFieldShapeTest, ptr %93, i32 0, i32 8
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %90, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %825 unwind label %859

825:                                              ; preds = %823
  %826 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 0
  %827 = load double, ptr %826, align 16
  %828 = getelementptr inbounds { double, double }, ptr %90, i32 0, i32 1
  %829 = load double, ptr %828, align 8
  %830 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %824, double %827, double %829)
          to label %831 unwind label %859

831:                                              ; preds = %825
  %832 = getelementptr inbounds %"class.JPH::Vec3", ptr %89, i32 0, i32 0
  %833 = getelementptr inbounds %union.anon, ptr %832, i32 0, i32 0
  %834 = getelementptr inbounds { double, double }, ptr %833, i32 0, i32 0
  %835 = extractvalue { double, double } %830, 0
  store double %835, ptr %834, align 16
  %836 = getelementptr inbounds { double, double }, ptr %833, i32 0, i32 1
  %837 = extractvalue { double, double } %830, 1
  store double %837, ptr %836, align 8
  %838 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %839 unwind label %859

839:                                              ; preds = %831
  %840 = getelementptr inbounds %"class.JPH::Quat", ptr %91, i32 0, i32 0
  %841 = getelementptr inbounds %"class.JPH::Vec4", ptr %840, i32 0, i32 0
  %842 = getelementptr inbounds %union.anon.17, ptr %841, i32 0, i32 0
  %843 = getelementptr inbounds { double, double }, ptr %842, i32 0, i32 0
  %844 = extractvalue { double, double } %838, 0
  store double %844, ptr %843, align 16
  %845 = getelementptr inbounds { double, double }, ptr %842, i32 0, i32 1
  %846 = extractvalue { double, double } %838, 1
  store double %846, ptr %845, align 8
  %847 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 0
  %848 = load double, ptr %847, align 16
  %849 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 1
  %850 = load double, ptr %849, align 8
  %851 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 0
  %852 = load double, ptr %851, align 16
  %853 = getelementptr inbounds { double, double }, ptr %91, i32 0, i32 1
  %854 = load double, ptr %853, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %87, ptr noundef %816, double %848, double %850, double %852, double %854, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %855 unwind label %859

855:                                              ; preds = %839
  %856 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %815, ptr noundef nonnull align 16 dereferenceable(256) %87, i32 noundef 0)
          to label %857 unwind label %867

857:                                              ; preds = %855
  %858 = getelementptr inbounds %"class.JPH::BodyID", ptr %92, i32 0, i32 0
  store i32 %856, ptr %858, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %87) #13
  call void @llvm.lifetime.end.p0(i64 256, ptr %87) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %79) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #13
  call void @llvm.lifetime.end.p0(i64 12, ptr %76) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #13
  call void @_ZN3JPH24HeightFieldShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %52) #13
  call void @llvm.lifetime.end.p0(i64 208, ptr %52) #13
  ret void

859:                                              ; preds = %839, %831, %825, %823, %813
  %860 = landingpad { ptr, i32 }
          cleanup
  %861 = extractvalue { ptr, i32 } %860, 0
  store ptr %861, ptr %24, align 8
  %862 = extractvalue { ptr, i32 } %860, 1
  store i32 %862, ptr %25, align 4
  br label %871

863:                                              ; preds = %818, %817
  %864 = landingpad { ptr, i32 }
          cleanup
  %865 = extractvalue { ptr, i32 } %864, 0
  store ptr %865, ptr %24, align 8
  %866 = extractvalue { ptr, i32 } %864, 1
  store i32 %866, ptr %25, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %816) #13
  br label %871

867:                                              ; preds = %855
  %868 = landingpad { ptr, i32 }
          cleanup
  %869 = extractvalue { ptr, i32 } %868, 0
  store ptr %869, ptr %24, align 8
  %870 = extractvalue { ptr, i32 } %868, 1
  store i32 %870, ptr %25, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %87) #13
  br label %871

871:                                              ; preds = %867, %863, %859
  call void @llvm.lifetime.end.p0(i64 256, ptr %87) #13
  br label %872

872:                                              ; preds = %871, %809, %808, %791
  call void @llvm.lifetime.end.p0(i64 32, ptr %79) #13
  br label %873

873:                                              ; preds = %872, %787
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #13
  br label %874

874:                                              ; preds = %873, %783
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #13
  br label %875

875:                                              ; preds = %874, %779
  call void @llvm.lifetime.end.p0(i64 12, ptr %76) #13
  br label %876

876:                                              ; preds = %875, %740
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #13
  br label %877

877:                                              ; preds = %876, %679
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #13
  br label %878

878:                                              ; preds = %877, %573, %564
  call void @_ZN3JPH24HeightFieldShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %52) #13
  call void @llvm.lifetime.end.p0(i64 208, ptr %52) #13
  br label %879

879:                                              ; preds = %878, %395, %351
  %880 = load ptr, ptr %24, align 8
  %881 = load i32, ptr %25, align 4
  %882 = insertvalue { ptr, i32 } poison, ptr %880, 0
  %883 = insertvalue { ptr, i32 } %882, i32 %881, 1
  resume { ptr, i32 } %883
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

declare noundef float @_Z12PerlinNoise3fffiii(float noundef, float noundef, float noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3JPH6SquareIiEET_S1_(i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) #5

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ConvertToStringIjEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

declare i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), i32) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

declare void @_Z8ReadDataPKc(ptr dead_on_unwind writable sret(%"class.JPH::Array.7") align 8, ptr noundef) #3

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

; Function Attrs: noreturn
declare void @_Z10FatalErrorPKcz(ptr noundef, ...) #10

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

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

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

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

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

declare void @_ZN3JPH24HeightFieldShapeSettingsC1EPKfNS_4Vec3ES3_jPKhRKNS_5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 16 dereferenceable(208), ptr noundef, double, double, double, double, i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33)) 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) #3

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

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

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

declare noundef zeroext i1 @_ZNK3JPH16HeightFieldShape13IsNoCollisionEjj(ptr noundef nonnull align 16 dereferenceable(176), i32 noundef, i32 noundef) #3

declare { double, double } @_ZNK3JPH16HeightFieldShape11GetPositionEjj(ptr noundef nonnull align 16 dereferenceable(176), i32 noundef, i32 noundef) #3

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

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

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

declare { i64, i32 } @_ZNK3JPH16HeightFieldShape8GetStatsEv(ptr noundef nonnull align 16 dereferenceable(176)) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RRayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem19GetNarrowPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172)) #5 align 2

declare noundef zeroext i1 @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERNS_13RayCastResultERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9), i8) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10), i16 noundef zeroext) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_8RRayCastEE13GetPointOnRayEf(ptr noundef nonnull align 16 dereferenceable(32), float noundef) #2 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { noreturn "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 #11 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #12 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #13 = { nounwind }
attributes #14 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 184}
!14 = !{!"_ZTS20HeightFieldShapeTest", !15, i64 0, !22, i64 112, !23, i64 136, !24, i64 160, !10, i64 184, !25, i64 192, !25, i64 208, !26, i64 224, !25, i64 240}
!15 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !16, i64 48, !17, i64 56}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !18, i64 0}
!18 = !{!"_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, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !19, i64 8}
!22 = !{!"_ZTSN3JPH5ArrayIfNS_12STLAllocatorIfEEEE", !19, i64 0, !19, i64 8, !6, i64 16}
!23 = !{!"_ZTSN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEE", !19, i64 0, !19, i64 8, !6, i64 16}
!24 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !19, i64 0, !19, i64 8, !6, i64 16}
!25 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!26 = !{!"_ZTSN3JPH8RefConstINS_16HeightFieldShapeEEE", !6, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !28}
!36 = !{i64 0, i64 16, !32}
!37 = !{!38, !10, i64 112}
!38 = !{!"_ZTSN3JPH24HeightFieldShapeSettingsE", !39, i64 0, !25, i64 64, !25, i64 80, !10, i64 96, !12, i64 100, !12, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !22, i64 120, !24, i64 144, !23, i64 168, !12, i64 192}
!39 = !{!"_ZTSN3JPH13ShapeSettingsE", !40, i64 0, !41, i64 8, !19, i64 16, !44, i64 24}
!40 = !{!"_ZTSN3JPH18SerializableObjectE"}
!41 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !42, i64 0}
!42 = !{!"_ZTSSt6atomicIjE", !43, i64 0}
!43 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!44 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !7, i64 0, !45, i64 32}
!45 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !7, i64 0}
!46 = !{!38, !10, i64 116}
!47 = !{!15, !6, i64 24}
!48 = distinct !{!48, !28}
!49 = distinct !{!49, !28}
!50 = !{!51, !19, i64 0}
!51 = !{!"_ZTSN3JPH5Shape5StatsE", !19, i64 0, !10, i64 8}
!52 = !{!15, !6, i64 16}
!53 = !{i64 0, i64 1, !32}
!54 = !{!55, !12, i64 4}
!55 = !{!"_ZTSN3JPH20BroadPhaseCastResultE", !56, i64 0, !12, i64 4}
!56 = !{!"_ZTSN3JPH6BodyIDE", !10, i64 0}


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

%"class.JPH::BroadPhaseLayer" = type { i8 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::RefConst.10" = type { ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.13 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.13 = type { i64, [8 x i8] }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"class.JPH::HeightFieldShapeSettings" = type <{ %"class.JPH::ShapeSettings", %"class.JPH::Vec3", %"class.JPH::Vec3", i32, float, float, i32, i32, i32, %"class.JPH::Array", %"class.JPH::Array.7", %"class.JPH::Array.4", float, [12 x i8] }>
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.15", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.15" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.16, i8, [7 x i8] }>
%union.anon.16 = type { %"class.std::__cxx11::basic_string" }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.19", %"class.JPH::RefConst.20" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.17 }
%union.anon.17 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.18", i32, i32 }
%"class.JPH::RefConst.18" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.19" = type { ptr }
%"class.JPH::RefConst.20" = type { ptr }
%"class.JPH::RayCastResult" = type { %"class.JPH::BroadPhaseCastResult", %"class.JPH::SubShapeID" }
%"class.JPH::BroadPhaseCastResult" = type { %"class.JPH::BodyID", float }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"struct.JPH::RRayCast" = type { %"struct.JPH::RayCastT" }
%"struct.JPH::RayCastT" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::SpecifiedBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", %"class.JPH::BroadPhaseLayer", [7 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::SpecifiedObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::BodyFilter" = type { ptr }

@_ZL12sTerrainType = external hidden local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN20HeightFieldShapeTest15sBlockSizeShiftE = external dso_local local_unnamed_addr global i32, align 4
@_ZN20HeightFieldShapeTest14sBitsPerSampleE = external dso_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZN16BroadPhaseLayersL10NON_MOVINGE = external hidden local_unnamed_addr constant %"class.JPH::BroadPhaseLayer", align 1

; 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 @_ZN20HeightFieldShapeTest10InitializeEv(ptr noundef nonnull align 16 dereferenceable(256) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i8, align 1
  %3 = alloca i8, align 1
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::RefConst.10", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Array.7", align 8
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::HeightFieldShapeSettings", align 16
  %22 = alloca %"class.JPH::Result", align 8
  %23 = alloca %"class.JPH::BodyCreationSettings", align 16
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::RayCastResult", align 4
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"struct.JPH::RRayCast", align 16
  %32 = alloca %"class.JPH::SpecifiedBroadPhaseLayerFilter", align 8
  %33 = alloca %"class.JPH::SpecifiedObjectLayerFilter", align 8
  %34 = alloca %"class.JPH::BodyFilter", align 8
  %35 = alloca %"class.JPH::BodyCreationSettings", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = load i32, ptr @_ZL12sTerrainType, align 4
  %or.cond = icmp ult i32 %38, 2
  br i1 %or.cond, label %39, label %206

39:                                               ; preds = %1
  %40 = icmp eq i32 %38, 0
  %41 = select i1 %40, i32 128, i32 129
  %42 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 %41, ptr %42, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %0, i64 112
  %44 = select i1 %40, i32 16384, i32 16641
  %45 = zext nneg i32 %44 to i64
  tail call void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %45)
  %46 = uitofp nneg i32 %41 to float
  %47 = zext nneg i32 %41 to i64
  br label %.preheader226

.preheader226:                                    ; preds = %39, %58
  %indvars.iv319 = phi i64 [ 0, %39 ], [ %indvars.iv.next320, %58 ]
  %48 = trunc nuw nsw i64 %indvars.iv319 to i32
  %49 = uitofp nneg i32 %48 to float
  %50 = fmul float %49, 8.000000e+00
  %51 = fdiv float %50, %46
  %52 = mul nuw nsw i64 %indvars.iv319, %47
  br label %59

53:                                               ; preds = %58
  %54 = shl nuw nsw i32 %41, 1
  %55 = add nuw nsw i32 %54, 2
  %56 = zext nneg i32 %55 to i64
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %56)
  store float 0x47EFFFFFE0000000, ptr %57, align 4, !tbaa !24
  br label %.preheader225

58:                                               ; preds = %59
  %indvars.iv.next320 = add nuw nsw i64 %indvars.iv319, 1
  %exitcond323.not = icmp eq i64 %indvars.iv.next320, %47
  br i1 %exitcond323.not, label %53, label %.preheader226, !llvm.loop !25

59:                                               ; preds = %.preheader226, %59
  %indvars.iv = phi i64 [ 0, %.preheader226 ], [ %indvars.iv.next, %59 ]
  %60 = trunc nuw nsw i64 %indvars.iv to i32
  %61 = uitofp nneg i32 %60 to float
  %62 = fmul float %61, 8.000000e+00
  %63 = fdiv float %62, %46
  %64 = tail call noundef float @_Z12PerlinNoise3fffiii(float noundef %63, float noundef 0.000000e+00, float noundef %51, i32 noundef 256, i32 noundef 256, i32 noundef 256)
  %65 = fmul float %64, 5.000000e+00
  %66 = add nuw nsw i64 %indvars.iv, %52
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %66)
  store float %65, ptr %67, align 4, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %47
  br i1 %exitcond.not, label %58, label %59, !llvm.loop !27

.preheader225:                                    ; preds = %53, %.preheader225
  %indvars.iv328 = phi i64 [ 4, %53 ], [ %indvars.iv.next329, %.preheader225 ]
  %68 = mul nuw nsw i64 %indvars.iv328, %47
  %69 = add nuw nsw i64 %68, 4
  %70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %69)
  store float 0x47EFFFFFE0000000, ptr %70, align 4, !tbaa !24
  %71 = add nuw nsw i64 %68, 5
  %72 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %71)
  store float 0x47EFFFFFE0000000, ptr %72, align 4, !tbaa !24
  %73 = add nuw nsw i64 %68, 6
  %74 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %73)
  store float 0x47EFFFFFE0000000, ptr %74, align 4, !tbaa !24
  %75 = add nuw nsw i64 %68, 7
  %76 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %75)
  store float 0x47EFFFFFE0000000, ptr %76, align 4, !tbaa !24
  %77 = add nuw nsw i64 %68, 8
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %77)
  store float 0x47EFFFFFE0000000, ptr %78, align 4, !tbaa !24
  %79 = add nuw nsw i64 %68, 9
  %80 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %79)
  store float 0x47EFFFFFE0000000, ptr %80, align 4, !tbaa !24
  %81 = add nuw nsw i64 %68, 10
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %81)
  store float 0x47EFFFFFE0000000, ptr %82, align 4, !tbaa !24
  %83 = add nuw nsw i64 %68, 11
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %83)
  store float 0x47EFFFFFE0000000, ptr %84, align 4, !tbaa !24
  %85 = add nuw nsw i64 %68, 12
  %86 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %85)
  store float 0x47EFFFFFE0000000, ptr %86, align 4, !tbaa !24
  %87 = add nuw nsw i64 %68, 13
  %88 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %87)
  store float 0x47EFFFFFE0000000, ptr %88, align 4, !tbaa !24
  %89 = add nuw nsw i64 %68, 14
  %90 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %89)
  store float 0x47EFFFFFE0000000, ptr %90, align 4, !tbaa !24
  %91 = add nuw nsw i64 %68, 15
  %92 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %91)
  store float 0x47EFFFFFE0000000, ptr %92, align 4, !tbaa !24
  %93 = add nuw nsw i64 %68, 16
  %94 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %93)
  store float 0x47EFFFFFE0000000, ptr %94, align 4, !tbaa !24
  %95 = add nuw nsw i64 %68, 17
  %96 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %95)
  store float 0x47EFFFFFE0000000, ptr %96, align 4, !tbaa !24
  %97 = add nuw nsw i64 %68, 18
  %98 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %97)
  store float 0x47EFFFFFE0000000, ptr %98, align 4, !tbaa !24
  %99 = add nuw nsw i64 %68, 19
  %100 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %99)
  store float 0x47EFFFFFE0000000, ptr %100, align 4, !tbaa !24
  %101 = add nuw nsw i64 %68, 20
  %102 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %101)
  store float 0x47EFFFFFE0000000, ptr %102, align 4, !tbaa !24
  %103 = add nuw nsw i64 %68, 21
  %104 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %103)
  store float 0x47EFFFFFE0000000, ptr %104, align 4, !tbaa !24
  %105 = add nuw nsw i64 %68, 22
  %106 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %105)
  store float 0x47EFFFFFE0000000, ptr %106, align 4, !tbaa !24
  %107 = add nuw nsw i64 %68, 23
  %108 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %107)
  store float 0x47EFFFFFE0000000, ptr %108, align 4, !tbaa !24
  %109 = add nuw nsw i64 %68, 24
  %110 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %109)
  store float 0x47EFFFFFE0000000, ptr %110, align 4, !tbaa !24
  %111 = add nuw nsw i64 %68, 25
  %112 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %111)
  store float 0x47EFFFFFE0000000, ptr %112, align 4, !tbaa !24
  %113 = add nuw nsw i64 %68, 26
  %114 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %113)
  store float 0x47EFFFFFE0000000, ptr %114, align 4, !tbaa !24
  %115 = add nuw nsw i64 %68, 27
  %116 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %115)
  store float 0x47EFFFFFE0000000, ptr %116, align 4, !tbaa !24
  %117 = add nuw nsw i64 %68, 28
  %118 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %117)
  store float 0x47EFFFFFE0000000, ptr %118, align 4, !tbaa !24
  %119 = add nuw nsw i64 %68, 29
  %120 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %119)
  store float 0x47EFFFFFE0000000, ptr %120, align 4, !tbaa !24
  %121 = add nuw nsw i64 %68, 30
  %122 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %121)
  store float 0x47EFFFFFE0000000, ptr %122, align 4, !tbaa !24
  %123 = add nuw nsw i64 %68, 31
  %124 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %123)
  store float 0x47EFFFFFE0000000, ptr %124, align 4, !tbaa !24
  %125 = add nuw nsw i64 %68, 32
  %126 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %125)
  store float 0x47EFFFFFE0000000, ptr %126, align 4, !tbaa !24
  %indvars.iv.next329 = add nuw nsw i64 %indvars.iv328, 1
  %exitcond331.not = icmp eq i64 %indvars.iv.next329, 33
  br i1 %exitcond331.not, label %.preheader224.lr.ph, label %.preheader225, !llvm.loop !28

.preheader224.lr.ph:                              ; preds = %.preheader225
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #12
  store i8 0, ptr %2, align 1, !tbaa !29
  %127 = getelementptr inbounds i8, ptr %0, i64 160
  %128 = add nsw i32 %41, -1
  %129 = tail call noundef i32 @_ZN3JPH6SquareIiEET_S1_(i32 noundef %128)
  %130 = sext i32 %129 to i64
  tail call void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %130)
  %131 = fmul float %46, 5.000000e-01
  %132 = getelementptr inbounds i8, ptr %6, i64 8
  %133 = getelementptr inbounds i8, ptr %4, i64 8
  %134 = zext nneg i32 %128 to i64
  br label %.preheader224

.preheader224:                                    ; preds = %.preheader224.lr.ph, %159
  %indvars.iv337 = phi i64 [ 0, %.preheader224.lr.ph ], [ %indvars.iv.next338, %159 ]
  %135 = trunc nuw nsw i64 %indvars.iv337 to i32
  %136 = uitofp nneg i32 %135 to float
  %137 = mul nuw nsw i64 %indvars.iv337, %134
  br label %160

._crit_edge:                                      ; preds = %159
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0)
  store float 0.000000e+00, ptr %138, align 4, !tbaa !24
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %134)
  store float 1.000000e+01, ptr %139, align 4, !tbaa !24
  %140 = mul nuw nsw i32 %128, %41
  %141 = zext nneg i32 %140 to i64
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %141)
  store float 2.000000e+01, ptr %142, align 4, !tbaa !24
  %143 = add nsw i32 %44, -1
  %144 = zext nneg i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %144)
  store float 3.000000e+01, ptr %145, align 4, !tbaa !24
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef 0)
  store i8 0, ptr %146, align 1, !tbaa !29
  %147 = add nsw i32 %41, -2
  %148 = zext nneg i32 %147 to i64
  %149 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %148)
  store i8 1, ptr %149, align 1, !tbaa !29
  %150 = mul nuw nsw i32 %147, %128
  %151 = zext nneg i32 %150 to i64
  %152 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %151)
  store i8 2, ptr %152, align 1, !tbaa !29
  %153 = call noundef i32 @_ZN3JPH6SquareIiEET_S1_(i32 noundef %128)
  %154 = add nsw i32 %153, -1
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %155)
  store i8 3, ptr %156, align 1, !tbaa !29
  %157 = getelementptr inbounds i8, ptr %0, i64 136
  %158 = getelementptr inbounds i8, ptr %8, i64 8
  br label %181

159:                                              ; preds = %160
  %indvars.iv.next338 = add nuw nsw i64 %indvars.iv337, 1
  %exitcond341.not = icmp eq i64 %indvars.iv.next338, %134
  br i1 %exitcond341.not, label %._crit_edge, label %.preheader224, !llvm.loop !30

160:                                              ; preds = %.preheader224, %160
  %indvars.iv332 = phi i64 [ 0, %.preheader224 ], [ %indvars.iv.next333, %160 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #12
  %161 = trunc nuw nsw i64 %indvars.iv332 to i32
  %162 = uitofp nneg i32 %161 to float
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef %162, float noundef 0.000000e+00, float noundef %136)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %131, float noundef 0.000000e+00, float noundef %131)
  %163 = load double, ptr %6, align 16
  %164 = load double, ptr %132, align 8
  %165 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %163, double %164)
  %166 = extractvalue { double, double } %165, 0
  store double %166, ptr %4, align 16
  %167 = extractvalue { double, double } %165, 1
  store double %167, ptr %133, align 8
  %168 = call noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %169 = fdiv float %168, 1.000000e+01
  %170 = call noundef float @_ZSt5roundf(float noundef %169)
  %171 = fptoui float %170 to i8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #12
  store i8 %171, ptr %3, align 1, !tbaa !29
  %172 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %173 = load i8, ptr %172, align 1, !tbaa !29
  store i8 %173, ptr %2, align 1, !tbaa !29
  %174 = load i8, ptr %3, align 1, !tbaa !29
  %175 = add nuw nsw i64 %indvars.iv332, %137
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %175)
  store i8 %174, ptr %176, align 1, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #12
  %indvars.iv.next333 = add nuw nsw i64 %indvars.iv332, 1
  %exitcond336.not = icmp eq i64 %indvars.iv.next333, %134
  br i1 %exitcond336.not, label %159, label %160, !llvm.loop !31

177:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #12
  %178 = fmul float %46, -5.000000e-01
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %178, float noundef -2.000000e+00, float noundef %178)
  %179 = getelementptr inbounds i8, ptr %0, i64 192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %179, ptr noundef nonnull align 16 dereferenceable(16) %12, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #12
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 1.000000e+00, float noundef 1.500000e+00, float noundef 1.000000e+00)
  %180 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %180, ptr noundef nonnull align 16 dereferenceable(16) %13, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #12
  br label %.loopexit227

181:                                              ; preds = %._crit_edge, %193
  %182 = phi i32 [ 0, %._crit_edge ], [ %195, %193 ]
  %.0142280 = phi i8 [ 0, %._crit_edge ], [ %194, %193 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #12
  %183 = call noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #12
  store i32 %182, ptr %11, align 4, !tbaa !33
  invoke void @_ZN3JPH15ConvertToStringIjEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %184 unwind label %.thread

184:                                              ; preds = %181
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %185 unwind label %.thread221

185:                                              ; preds = %184
  %186 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #12
  %187 = extractvalue { i64, ptr } %186, 0
  store i64 %187, ptr %8, align 8
  %188 = extractvalue { i64, ptr } %186, 1
  store ptr %188, ptr %158, align 8
  %189 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef %182)
          to label %190 unwind label %199

190:                                              ; preds = %185
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %183, ptr noundef nonnull align 8 dereferenceable(16) %8, i32 %189)
          to label %191 unwind label %199

191:                                              ; preds = %190
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %183)
          to label %192 unwind label %199

192:                                              ; preds = %191
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %193 unwind label %201

193:                                              ; preds = %192
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #12
  %194 = add i8 %.0142280, 1
  %195 = zext i8 %194 to i32
  %196 = load i8, ptr %2, align 1, !tbaa !29
  %.not195 = icmp ugt i8 %194, %196
  br i1 %.not195, label %177, label %181, !llvm.loop !34

.thread:                                          ; preds = %181
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  br label %204

.thread221:                                       ; preds = %184
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  br label %204

199:                                              ; preds = %191, %190, %185
  %.0160 = phi i1 [ false, %191 ], [ true, %190 ], [ true, %185 ]
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %192
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #12
  br label %203

203:                                              ; preds = %199, %201
  %.1161 = phi i1 [ false, %201 ], [ %.0160, %199 ]
  %.pn212 = phi { ptr, i32 } [ %202, %201 ], [ %200, %199 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  br i1 %.1161, label %204, label %205

204:                                              ; preds = %.thread221, %.thread, %203
  %.pn212.pn.pn220 = phi { ptr, i32 } [ %197, %.thread ], [ %.pn212, %203 ], [ %198, %.thread221 ]
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %183) #12
  br label %205

205:                                              ; preds = %204, %203
  %.pn212.pn.pn219 = phi { ptr, i32 } [ %.pn212.pn.pn220, %204 ], [ %.pn212, %203 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #12
  br label %469

206:                                              ; preds = %1
  %207 = icmp eq i32 %38, 2
  br i1 %207, label %208, label %229

208:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #12
  call void @_Z8ReadDataPKc(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Array.7") align 8 %14, ptr noundef nonnull @.str.2)
  %209 = call noundef i64 @_ZNK3JPH5ArrayIhNS_12STLAllocatorIhEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %.not193 = icmp eq i64 %209, 4194304
  br i1 %.not193, label %214, label %210

210:                                              ; preds = %208
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef nonnull @.str.3) #13
          to label %211 unwind label %212

211:                                              ; preds = %210
  unreachable

212:                                              ; preds = %214, %210
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %228

214:                                              ; preds = %208
  %215 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 1024, ptr %215, align 8, !tbaa !5
  %216 = getelementptr inbounds i8, ptr %0, i64 112
  invoke void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef 1048576)
          to label %217 unwind label %212

217:                                              ; preds = %214
  %218 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %216)
  %219 = call noundef ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(4194304) %218, ptr noundef nonnull align 1 dereferenceable(4194304) %219, i64 4194304, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #12
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef -2.560000e+02, float noundef 0.000000e+00, float noundef -2.560000e+02)
          to label %220 unwind label %224

220:                                              ; preds = %217
  %221 = getelementptr inbounds i8, ptr %0, i64 192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %221, ptr noundef nonnull align 16 dereferenceable(16) %15, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #12
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 5.000000e-01)
          to label %222 unwind label %226

222:                                              ; preds = %220
  %223 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %223, ptr noundef nonnull align 16 dereferenceable(16) %16, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #12
  call void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #12
  br label %.loopexit227

224:                                              ; preds = %217
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #12
  br label %228

226:                                              ; preds = %220
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #12
  br label %228

228:                                              ; preds = %226, %224, %212
  %.pn = phi { ptr, i32 } [ %213, %212 ], [ %227, %226 ], [ %225, %224 ]
  call void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #12
  br label %469

229:                                              ; preds = %206
  %230 = add i32 %38, -3
  %or.cond3 = icmp ult i32 %230, 2
  br i1 %or.cond3, label %231, label %253

231:                                              ; preds = %229
  %232 = icmp eq i32 %38, 3
  %233 = select i1 %232, i32 128, i32 129
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #12
  %234 = uitofp nneg i32 %233 to float
  %235 = fmul float %234, -5.000000e-01
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %235, float noundef 0.000000e+00, float noundef %235)
  %236 = getelementptr inbounds i8, ptr %0, i64 192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %236, ptr noundef nonnull align 16 dereferenceable(16) %17, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #12
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %237 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %237, ptr noundef nonnull align 16 dereferenceable(16) %18, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #12
  %238 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 %233, ptr %238, align 8, !tbaa !5
  %239 = getelementptr inbounds i8, ptr %0, i64 112
  %240 = select i1 %232, i64 16384, i64 16641
  call void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %239, i64 noundef %240)
  %241 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %239)
  %242 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %239)
  %.not192271 = icmp eq ptr %241, %242
  br i1 %.not192271, label %.loopexit227, label %.lr.ph273.preheader

.lr.ph273.preheader:                              ; preds = %231
  %243 = ptrtoint ptr %242 to i64
  %244 = ptrtoint ptr %241 to i64
  %245 = add i64 %243, -4
  %246 = sub i64 %245, %244
  %247 = lshr i64 %246, 2
  %248 = add nuw nsw i64 %247, 1
  %min.iters.check361 = icmp ult i64 %246, 28
  br i1 %min.iters.check361, label %.lr.ph273.preheader380, label %vector.ph362

vector.ph362:                                     ; preds = %.lr.ph273.preheader
  %n.vec364 = and i64 %248, 9223372036854775800
  %249 = shl i64 %n.vec364, 2
  %ind.end365 = getelementptr i8, ptr %241, i64 %249
  br label %vector.body367

vector.body367:                                   ; preds = %vector.body367, %vector.ph362
  %index368 = phi i64 [ 0, %vector.ph362 ], [ %index.next372, %vector.body367 ]
  %offset.idx369 = shl i64 %index368, 2
  %next.gep370 = getelementptr i8, ptr %241, i64 %offset.idx369
  %250 = getelementptr i8, ptr %next.gep370, i64 16
  store <4 x float> <float 0x400921FB60000000, float 0x400921FB60000000, float 0x400921FB60000000, float 0x400921FB60000000>, ptr %next.gep370, align 4, !tbaa !24
  store <4 x float> <float 0x400921FB60000000, float 0x400921FB60000000, float 0x400921FB60000000, float 0x400921FB60000000>, ptr %250, align 4, !tbaa !24
  %index.next372 = add nuw i64 %index368, 8
  %251 = icmp eq i64 %index.next372, %n.vec364
  br i1 %251, label %middle.block359, label %vector.body367, !llvm.loop !35

middle.block359:                                  ; preds = %vector.body367
  %cmp.n373 = icmp eq i64 %248, %n.vec364
  br i1 %cmp.n373, label %.loopexit227, label %.lr.ph273.preheader380

.lr.ph273.preheader380:                           ; preds = %middle.block359, %.lr.ph273.preheader
  %.0164272.ph = phi ptr [ %241, %.lr.ph273.preheader ], [ %ind.end365, %middle.block359 ]
  br label %.lr.ph273

.lr.ph273:                                        ; preds = %.lr.ph273.preheader380, %.lr.ph273
  %.0164272 = phi ptr [ %252, %.lr.ph273 ], [ %.0164272.ph, %.lr.ph273.preheader380 ]
  store float 0x400921FB60000000, ptr %.0164272, align 4, !tbaa !24
  %252 = getelementptr inbounds i8, ptr %.0164272, i64 4
  %.not192 = icmp eq ptr %252, %242
  br i1 %.not192, label %.loopexit227, label %.lr.ph273, !llvm.loop !38

253:                                              ; preds = %229
  %254 = add i32 %38, -5
  %or.cond5 = icmp ult i32 %254, 2
  br i1 %or.cond5, label %255, label %.loopexit227

255:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #12
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef -6.450000e+01, float noundef 0.000000e+00, float noundef -6.450000e+01)
  %256 = getelementptr inbounds i8, ptr %0, i64 192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %256, ptr noundef nonnull align 16 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #12
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %257 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %257, ptr noundef nonnull align 16 dereferenceable(16) %20, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #12
  %258 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 129, ptr %258, align 8, !tbaa !5
  %259 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %259, i64 noundef 16641)
  %260 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %259)
  %261 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %259)
  %.not269 = icmp eq ptr %260, %261
  br i1 %.not269, label %.loopexit227, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %255
  %262 = ptrtoint ptr %261 to i64
  %263 = ptrtoint ptr %260 to i64
  %264 = add i64 %262, -4
  %265 = sub i64 %264, %263
  %266 = lshr i64 %265, 2
  %267 = add nuw nsw i64 %266, 1
  %min.iters.check = icmp ult i64 %265, 28
  br i1 %min.iters.check, label %.lr.ph.preheader381, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %267, 9223372036854775800
  %268 = shl i64 %n.vec, 2
  %ind.end = getelementptr i8, ptr %260, i64 %268
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 2
  %next.gep = getelementptr i8, ptr %260, i64 %offset.idx
  %269 = getelementptr i8, ptr %next.gep, i64 16
  store <4 x float> <float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000>, ptr %next.gep, align 4, !tbaa !24
  store <4 x float> <float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000>, ptr %269, align 4, !tbaa !24
  %index.next = add nuw i64 %index, 8
  %270 = icmp eq i64 %index.next, %n.vec
  br i1 %270, label %middle.block, label %vector.body, !llvm.loop !39

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %267, %n.vec
  br i1 %cmp.n, label %.loopexit227, label %.lr.ph.preheader381

.lr.ph.preheader381:                              ; preds = %middle.block, %.lr.ph.preheader
  %.0165270.ph = phi ptr [ %260, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader381, %.lr.ph
  %.0165270 = phi ptr [ %271, %.lr.ph ], [ %.0165270.ph, %.lr.ph.preheader381 ]
  store float 0x47EFFFFFE0000000, ptr %.0165270, align 4, !tbaa !24
  %271 = getelementptr inbounds i8, ptr %.0165270, i64 4
  %.not = icmp eq ptr %271, %261
  br i1 %.not, label %.loopexit227, label %.lr.ph, !llvm.loop !40

.loopexit227:                                     ; preds = %.lr.ph, %.lr.ph273, %middle.block, %middle.block359, %255, %231, %222, %253, %177
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %21) #12
  %272 = getelementptr inbounds i8, ptr %0, i64 112
  %273 = call noundef ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %272)
  %274 = getelementptr inbounds i8, ptr %0, i64 192
  %.sroa.053.0.copyload = load double, ptr %274, align 16
  %.sroa.254.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 200
  %.sroa.254.0.copyload = load double, ptr %.sroa.254.0..sroa_idx, align 8, !tbaa !29
  %275 = getelementptr inbounds i8, ptr %0, i64 208
  %.sroa.051.0.copyload = load double, ptr %275, align 16
  %.sroa.252.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 216
  %.sroa.252.0.copyload = load double, ptr %.sroa.252.0..sroa_idx, align 8, !tbaa !29
  %276 = getelementptr inbounds i8, ptr %0, i64 184
  %277 = load i32, ptr %276, align 8, !tbaa !5
  %278 = getelementptr inbounds i8, ptr %0, i64 160
  %279 = call noundef ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %278)
  %280 = getelementptr inbounds i8, ptr %0, i64 136
  call void @_ZN3JPH24HeightFieldShapeSettingsC1EPKfNS_4Vec3ES3_jPKhRKNS_5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 16 dereferenceable(208) %21, ptr noundef %273, double %.sroa.053.0.copyload, double %.sroa.254.0.copyload, double %.sroa.051.0.copyload, double %.sroa.252.0.copyload, i32 noundef %277, ptr noundef %279, ptr noundef nonnull align 8 dereferenceable(24) %280)
  %281 = load i32, ptr @_ZN20HeightFieldShapeTest15sBlockSizeShiftE, align 4, !tbaa !33
  %282 = shl nuw i32 1, %281
  %283 = getelementptr inbounds i8, ptr %21, i64 112
  store i32 %282, ptr %283, align 16, !tbaa !41
  %284 = load i32, ptr @_ZN20HeightFieldShapeTest14sBitsPerSampleE, align 4, !tbaa !33
  %285 = getelementptr inbounds i8, ptr %21, i64 116
  store i32 %284, ptr %285, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %22) #12
  invoke void @_ZNK3JPH24HeightFieldShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %22, ptr noundef nonnull align 16 dereferenceable(208) %21)
          to label %286 unwind label %324

286:                                              ; preds = %.loopexit227
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %22)
          to label %288 unwind label %326

288:                                              ; preds = %286
  %289 = invoke noundef ptr @_ZN3JPH10StaticCastINS_16HeightFieldShapeENS_5ShapeETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8) %287)
          to label %290 unwind label %326

290:                                              ; preds = %288
  %291 = getelementptr inbounds i8, ptr %0, i64 224
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_16HeightFieldShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef %289)
          to label %293 unwind label %326

293:                                              ; preds = %290
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %22) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %22) #12
  %294 = getelementptr inbounds i8, ptr %0, i64 24
  %295 = load ptr, ptr %294, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %23) #12
  %296 = call noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %291)
  %297 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %298 unwind label %329

298:                                              ; preds = %293
  %299 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %300 unwind label %329

300:                                              ; preds = %298
  %301 = extractvalue { double, double } %297, 1
  %302 = extractvalue { double, double } %297, 0
  %303 = extractvalue { double, double } %299, 0
  %304 = extractvalue { double, double } %299, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %23, ptr noundef %296, double %302, double %301, double %303, double %304, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %305 unwind label %329

305:                                              ; preds = %300
  %306 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %295, ptr noundef nonnull align 16 dereferenceable(256) %23, i32 noundef 1)
          to label %307 unwind label %331

307:                                              ; preds = %305
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %23) #12
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %23) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #12
  store float 0x47EFFFFFE0000000, ptr %24, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #12
  store float 0xC7EFFFFFE0000000, ptr %25, align 4, !tbaa !24
  %308 = load i32, ptr %276, align 8, !tbaa !5
  %.not307 = icmp eq i32 %308, 0
  br i1 %.not307, label %._crit_edge296, label %.preheader.preheader

.preheader.preheader:                             ; preds = %307
  %309 = getelementptr inbounds i8, ptr %27, i64 8
  br label %.lr.ph286.preheader

.lr.ph286.preheader:                              ; preds = %._crit_edge287, %.preheader.preheader
  %310 = phi i32 [ %377, %._crit_edge287 ], [ %308, %.preheader.preheader ]
  %.0166295 = phi float [ %.3169, %._crit_edge287 ], [ -1.000000e+00, %.preheader.preheader ]
  %.0170294 = phi i32 [ %.3173, %._crit_edge287 ], [ 0, %.preheader.preheader ]
  %.0174293 = phi i32 [ %.3177, %._crit_edge287 ], [ 0, %.preheader.preheader ]
  %.0178292 = phi float [ %.2180, %._crit_edge287 ], [ 0.000000e+00, %.preheader.preheader ]
  %.0181291 = phi i32 [ %334, %._crit_edge287 ], [ 0, %.preheader.preheader ]
  br label %.lr.ph286

._crit_edge296.loopexit310:                       ; preds = %._crit_edge287
  %.pre = load float, ptr %24, align 4, !tbaa !24
  %.pre342 = load float, ptr %25, align 4, !tbaa !24
  br label %._crit_edge296

._crit_edge296:                                   ; preds = %._crit_edge296.loopexit310, %307
  %311 = phi float [ 0xC7EFFFFFE0000000, %307 ], [ %.pre342, %._crit_edge296.loopexit310 ]
  %312 = phi float [ 0x47EFFFFFE0000000, %307 ], [ %.pre, %._crit_edge296.loopexit310 ]
  %.0178.lcssa = phi float [ 0.000000e+00, %307 ], [ %.2180, %._crit_edge296.loopexit310 ]
  %.0174.lcssa = phi i32 [ 0, %307 ], [ %.3177, %._crit_edge296.loopexit310 ]
  %.0170.lcssa = phi i32 [ 0, %307 ], [ %.3173, %._crit_edge296.loopexit310 ]
  %.0166.lcssa = phi float [ -1.000000e+00, %307 ], [ %.3169, %._crit_edge296.loopexit310 ]
  %.lcssa = phi i32 [ 0, %307 ], [ %377, %._crit_edge296.loopexit310 ]
  %313 = fcmp olt float %312, %311
  %314 = fmul float %.0166.lcssa, 1.000000e+02
  %315 = fsub float %311, %312
  %316 = fdiv float %314, %315
  %317 = select i1 %313, float %316, float 0.000000e+00
  %318 = load i32, ptr @_ZN20HeightFieldShapeTest14sBitsPerSampleE, align 4, !tbaa !33
  %notmask = shl nsw i32 -1, %318
  %319 = xor i32 %notmask, -1
  %320 = uitofp nneg i32 %319 to float
  %321 = fdiv float 5.000000e+01, %320
  %322 = call noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %291)
  %323 = invoke { i64, i32 } @_ZNK3JPH16HeightFieldShape8GetStatsEv(ptr noundef nonnull align 16 dereferenceable(176) %322)
          to label %380 unwind label %399

324:                                              ; preds = %.loopexit227
  %325 = landingpad { ptr, i32 }
          cleanup
  br label %328

326:                                              ; preds = %290, %288, %286
  %327 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %22) #12
  br label %328

328:                                              ; preds = %326, %324
  %.pn196 = phi { ptr, i32 } [ %327, %326 ], [ %325, %324 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %22) #12
  br label %468

329:                                              ; preds = %300, %298, %293
  %330 = landingpad { ptr, i32 }
          cleanup
  br label %333

331:                                              ; preds = %305
  %332 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %23) #12
  br label %333

333:                                              ; preds = %331, %329
  %.pn198 = phi { ptr, i32 } [ %332, %331 ], [ %330, %329 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %23) #12
  br label %468

._crit_edge287:                                   ; preds = %375
  %334 = add nuw i32 %.0181291, 1
  %335 = icmp ult i32 %334, %377
  br i1 %335, label %.lr.ph286.preheader, label %._crit_edge296.loopexit310, !llvm.loop !52

.lr.ph286:                                        ; preds = %.lr.ph286.preheader, %375
  %336 = phi i32 [ %377, %375 ], [ %310, %.lr.ph286.preheader ]
  %.1167285 = phi float [ %.3169, %375 ], [ %.0166295, %.lr.ph286.preheader ]
  %.1171284 = phi i32 [ %.3173, %375 ], [ %.0170294, %.lr.ph286.preheader ]
  %.1175283 = phi i32 [ %.3177, %375 ], [ %.0174293, %.lr.ph286.preheader ]
  %.1179282 = phi float [ %.2180, %375 ], [ %.0178292, %.lr.ph286.preheader ]
  %.0182281 = phi i32 [ %376, %375 ], [ 0, %.lr.ph286.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #12
  %337 = mul i32 %336, %.0181291
  %338 = add i32 %337, %.0182281
  %339 = zext i32 %338 to i64
  %340 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %272, i64 noundef %339)
          to label %341 unwind label %.loopexit

341:                                              ; preds = %.lr.ph286
  %342 = load float, ptr %340, align 4, !tbaa !24
  store float %342, ptr %26, align 4, !tbaa !24
  %343 = fcmp une float %342, 0x47EFFFFFE0000000
  br i1 %343, label %344, label %371

344:                                              ; preds = %341
  %345 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %274)
  %346 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %275)
  %347 = load float, ptr %26, align 4, !tbaa !24
  %348 = call float @llvm.fmuladd.f32(float %346, float %347, float %345)
  store float %348, ptr %26, align 4, !tbaa !24
  %349 = call noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %291)
  %350 = invoke noundef zeroext i1 @_ZNK3JPH16HeightFieldShape13IsNoCollisionEjj(ptr noundef nonnull align 16 dereferenceable(176) %349, i32 noundef %.0182281, i32 noundef %.0181291)
          to label %351 unwind label %.loopexit

351:                                              ; preds = %344
  br i1 %350, label %.invoke, label %353

.invoke:                                          ; preds = %351, %374
  %352 = phi ptr [ @.str.5, %374 ], [ @.str.4, %351 ]
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef nonnull %352) #13
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

.loopexit:                                        ; preds = %.lr.ph286, %344, %371
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %379

.loopexit.split-lp:                               ; preds = %.invoke
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %379

353:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #12
  %354 = call noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %291)
  %355 = invoke { double, double } @_ZNK3JPH16HeightFieldShape11GetPositionEjj(ptr noundef nonnull align 16 dereferenceable(176) %354, i32 noundef %.0182281, i32 noundef %.0181291)
          to label %356 unwind label %369

356:                                              ; preds = %353
  %357 = extractvalue { double, double } %355, 0
  store double %357, ptr %27, align 16
  %358 = extractvalue { double, double } %355, 1
  store double %358, ptr %309, align 8
  %359 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #12
  %360 = load float, ptr %26, align 4, !tbaa !24
  %361 = fsub float %359, %360
  %362 = call noundef float @_ZSt3absf(float noundef %361)
  %363 = fcmp ogt float %362, %.1167285
  %.2176 = select i1 %363, i32 %.0181291, i32 %.1175283
  %.2172 = select i1 %363, i32 %.0182281, i32 %.1171284
  %.2168 = select i1 %363, float %362, float %.1167285
  %364 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %365 = load float, ptr %364, align 4, !tbaa !24
  store float %365, ptr %24, align 4, !tbaa !24
  %366 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %367 = load float, ptr %366, align 4, !tbaa !24
  store float %367, ptr %25, align 4, !tbaa !24
  %368 = fadd float %.1179282, %362
  br label %375

369:                                              ; preds = %353
  %370 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #12
  br label %379

371:                                              ; preds = %341
  %372 = call noundef ptr @_ZNK3JPH8RefConstINS_16HeightFieldShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %291)
  %373 = invoke noundef zeroext i1 @_ZNK3JPH16HeightFieldShape13IsNoCollisionEjj(ptr noundef nonnull align 16 dereferenceable(176) %372, i32 noundef %.0182281, i32 noundef %.0181291)
          to label %374 unwind label %.loopexit

374:                                              ; preds = %371
  br i1 %373, label %375, label %.invoke

375:                                              ; preds = %374, %356
  %.2180 = phi float [ %368, %356 ], [ %.1179282, %374 ]
  %.3177 = phi i32 [ %.2176, %356 ], [ %.1175283, %374 ]
  %.3173 = phi i32 [ %.2172, %356 ], [ %.1171284, %374 ]
  %.3169 = phi float [ %.2168, %356 ], [ %.1167285, %374 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #12
  %376 = add nuw i32 %.0182281, 1
  %377 = load i32, ptr %276, align 8, !tbaa !5
  %378 = icmp ult i32 %376, %377
  br i1 %378, label %.lr.ph286, label %._crit_edge287, !llvm.loop !54

379:                                              ; preds = %.loopexit, %.loopexit.split-lp, %369
  %.pn208 = phi { ptr, i32 } [ %370, %369 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #12
  br label %467

380:                                              ; preds = %._crit_edge296
  %381 = mul i32 %.lcssa, %.lcssa
  %382 = uitofp i32 %381 to float
  %383 = fdiv float %.0178.lcssa, %382
  %.fca.0.extract = extractvalue { i64, i32 } %323, 0
  %384 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !55
  %385 = load i32, ptr @_ZN20HeightFieldShapeTest15sBlockSizeShiftE, align 4, !tbaa !33
  %386 = shl nuw i32 1, %385
  %387 = load i32, ptr @_ZN20HeightFieldShapeTest14sBitsPerSampleE, align 4, !tbaa !33
  %388 = load float, ptr %24, align 4, !tbaa !24
  %389 = fpext float %388 to double
  %390 = load float, ptr %25, align 4, !tbaa !24
  %391 = fpext float %390 to double
  %392 = fpext float %383 to double
  %393 = fpext float %.0166.lcssa to double
  %394 = fpext float %317 to double
  invoke void (ptr, ...) %384(ptr noundef nonnull @.str.6, i32 noundef %386, i32 noundef %387, double noundef %389, double noundef %391, double noundef %392, double noundef %393, i32 noundef %.0170.lcssa, i32 noundef %.0174.lcssa, double noundef %394, i64 noundef %.fca.0.extract)
          to label %395 unwind label %399

395:                                              ; preds = %380
  %396 = fcmp ogt float %317, %321
  br i1 %396, label %397, label %401

397:                                              ; preds = %395
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef nonnull @.str.7) #13
          to label %398 unwind label %399

398:                                              ; preds = %397
  unreachable

399:                                              ; preds = %397, %380, %._crit_edge296
  %400 = landingpad { ptr, i32 }
          cleanup
  br label %467

401:                                              ; preds = %395
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #12
  invoke void @_ZN3JPH13RayCastResultC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %28)
          to label %402 unwind label %419

402:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #12
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %29, float noundef 0.000000e+00, float noundef 1.000000e+03, float noundef 0.000000e+00)
          to label %403 unwind label %421

403:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #12
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef 0.000000e+00, float noundef -2.000000e+03, float noundef 0.000000e+00)
          to label %404 unwind label %423

404:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #12
  %.sroa.013.0.copyload = load double, ptr %29, align 16
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %29, i64 8
  %.sroa.214.0.copyload = load double, ptr %.sroa.214.0..sroa_idx, align 8, !tbaa !29
  %.sroa.011.0.copyload = load double, ptr %30, align 16
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  %.sroa.212.0.copyload = load double, ptr %.sroa.212.0..sroa_idx, align 8, !tbaa !29
  invoke void @_ZN3JPH8RRayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32) %31, double %.sroa.013.0.copyload, double %.sroa.214.0.copyload, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload)
          to label %405 unwind label %425

405:                                              ; preds = %404
  %406 = getelementptr inbounds i8, ptr %0, i64 16
  %407 = load ptr, ptr %406, align 16, !tbaa !56
  %408 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem19GetNarrowPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172) %407)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #12
  %.sroa.010.0.copyload = load i8, ptr @_ZN16BroadPhaseLayersL10NON_MOVINGE, align 1, !tbaa !29
  call void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9) %32, i8 %.sroa.010.0.copyload)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #12
  call void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10) %33, i16 noundef zeroext 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #12
  store i64 0, ptr %34, align 8
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #12
  %409 = invoke noundef zeroext i1 @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERNS_13RayCastResultERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(16) %408, ptr noundef nonnull align 16 dereferenceable(32) %31, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %410 unwind label %427

410:                                              ; preds = %405
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %33) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %32) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #12
  br i1 %409, label %411, label %431

411:                                              ; preds = %410
  %412 = getelementptr inbounds i8, ptr %28, i64 4
  %413 = load float, ptr %412, align 4, !tbaa !57
  %414 = invoke { double, double } @_ZNK3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_8RRayCastEE13GetPointOnRayEf(ptr noundef nonnull align 16 dereferenceable(32) %31, float noundef %413)
          to label %415 unwind label %429

415:                                              ; preds = %411
  %416 = extractvalue { double, double } %414, 0
  %417 = extractvalue { double, double } %414, 1
  %418 = getelementptr inbounds i8, ptr %0, i64 240
  store double %416, ptr %418, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 248
  store double %417, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !29
  br label %431

419:                                              ; preds = %401
  %420 = landingpad { ptr, i32 }
          cleanup
  br label %466

421:                                              ; preds = %402
  %422 = landingpad { ptr, i32 }
          cleanup
  br label %465

423:                                              ; preds = %403
  %424 = landingpad { ptr, i32 }
          cleanup
  br label %464

425:                                              ; preds = %404
  %426 = landingpad { ptr, i32 }
          cleanup
  br label %463

427:                                              ; preds = %405
  %428 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(10) %33) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %32) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #12
  br label %463

429:                                              ; preds = %411
  %430 = landingpad { ptr, i32 }
          cleanup
  br label %463

431:                                              ; preds = %415, %410
  %432 = load ptr, ptr %294, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %35) #12
  %433 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %434 unwind label %456

434:                                              ; preds = %431
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %36, float noundef 5.000000e-01, float noundef 1.000000e+00, float noundef 2.000000e+00)
          to label %435 unwind label %458

435:                                              ; preds = %434
  %436 = load double, ptr %36, align 16
  %437 = getelementptr inbounds i8, ptr %36, i64 8
  %438 = load double, ptr %437, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %433, double %436, double %438, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %439 unwind label %458

439:                                              ; preds = %435
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %37, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %440 unwind label %456

440:                                              ; preds = %439
  %441 = getelementptr inbounds i8, ptr %0, i64 240
  %442 = load double, ptr %37, align 16
  %443 = getelementptr inbounds i8, ptr %37, i64 8
  %444 = load double, ptr %443, align 8
  %445 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %441, double %442, double %444)
          to label %446 unwind label %456

446:                                              ; preds = %440
  %447 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %448 unwind label %456

448:                                              ; preds = %446
  %449 = extractvalue { double, double } %445, 1
  %450 = extractvalue { double, double } %445, 0
  %451 = extractvalue { double, double } %447, 0
  %452 = extractvalue { double, double } %447, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %35, ptr noundef nonnull %433, double %450, double %449, double %451, double %452, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %453 unwind label %456

453:                                              ; preds = %448
  %454 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %432, ptr noundef nonnull align 16 dereferenceable(256) %35, i32 noundef 0)
          to label %455 unwind label %460

455:                                              ; preds = %453
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %35) #12
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %35) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #12
  call void @_ZN3JPH24HeightFieldShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %21) #12
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %21) #12
  ret void

456:                                              ; preds = %448, %446, %440, %439, %431
  %457 = landingpad { ptr, i32 }
          cleanup
  br label %462

458:                                              ; preds = %435, %434
  %459 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %433) #12
  br label %462

460:                                              ; preds = %453
  %461 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %35) #12
  br label %462

462:                                              ; preds = %460, %458, %456
  %.pn200 = phi { ptr, i32 } [ %461, %460 ], [ %457, %456 ], [ %459, %458 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %35) #12
  br label %463

463:                                              ; preds = %462, %429, %427, %425
  %.pn200.pn = phi { ptr, i32 } [ %.pn200, %462 ], [ %430, %429 ], [ %428, %427 ], [ %426, %425 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #12
  br label %464

464:                                              ; preds = %463, %423
  %.pn200.pn.pn = phi { ptr, i32 } [ %.pn200.pn, %463 ], [ %424, %423 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #12
  br label %465

465:                                              ; preds = %464, %421
  %.pn200.pn.pn.pn = phi { ptr, i32 } [ %.pn200.pn.pn, %464 ], [ %422, %421 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #12
  br label %466

466:                                              ; preds = %465, %419
  %.pn200.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn200.pn.pn.pn, %465 ], [ %420, %419 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #12
  br label %467

467:                                              ; preds = %399, %466, %379
  %.pn208.pn = phi { ptr, i32 } [ %.pn208, %379 ], [ %400, %399 ], [ %.pn200.pn.pn.pn.pn, %466 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #12
  br label %468

468:                                              ; preds = %467, %333, %328
  %.pn208.pn.pn = phi { ptr, i32 } [ %.pn208.pn, %467 ], [ %.pn198, %333 ], [ %.pn196, %328 ]
  call void @_ZN3JPH24HeightFieldShapeSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %21) #12
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %21) #12
  br label %469

469:                                              ; preds = %468, %228, %205
  %.pn212.pn.pn.pn = phi { ptr, i32 } [ %.pn212.pn.pn219, %205 ], [ %.pn208.pn.pn, %468 ], [ %.pn, %228 ]
  resume { ptr, i32 } %.pn212.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

declare noundef float @_Z12PerlinNoise3fffiii(float noundef, float noundef, float noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3JPH6SquareIiEET_S1_(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) local_unnamed_addr #5

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN3JPH5ArrayIhNS_12STLAllocatorIhEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ConvertToStringIjEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

declare i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), i32) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9

declare void @_Z8ReadDataPKc(ptr dead_on_unwind writable sret(%"class.JPH::Array.7") align 8, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: noreturn
declare void @_Z10FatalErrorPKcz(ptr noundef, ...) local_unnamed_addr #10

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

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

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

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

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

declare void @_ZN3JPH24HeightFieldShapeSettingsC1EPKfNS_4Vec3ES3_jPKhRKNS_5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 16 dereferenceable(208), ptr noundef, double, double, double, double, i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33)) 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 #3

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() local_unnamed_addr #7 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 #8 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 align 2

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

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

declare noundef zeroext i1 @_ZNK3JPH16HeightFieldShape13IsNoCollisionEjj(ptr noundef nonnull align 16 dereferenceable(176), i32 noundef, i32 noundef) local_unnamed_addr #3

declare { double, double } @_ZNK3JPH16HeightFieldShape11GetPositionEjj(ptr noundef nonnull align 16 dereferenceable(176), i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

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

declare { i64, i32 } @_ZNK3JPH16HeightFieldShape8GetStatsEv(ptr noundef nonnull align 16 dereferenceable(176)) unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RRayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem19GetNarrowPhaseQueryEv(ptr noundef nonnull align 16 dereferenceable(1172)) local_unnamed_addr #5 align 2

declare noundef zeroext i1 @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERNS_13RayCastResultERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH30SpecifiedBroadPhaseLayerFilterC2ENS_15BroadPhaseLayerE(ptr noundef nonnull align 8 dereferenceable(9), i8) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH26SpecifiedObjectLayerFilterC2Et(ptr noundef nonnull align 8 dereferenceable(10), i16 noundef zeroext) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_8RRayCastEE13GetPointOnRayEf(ptr noundef nonnull align 16 dereferenceable(32), float noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

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

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

!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, !21, i64 184}
!6 = !{!"_ZTS20HeightFieldShapeTest", !7, i64 0, !18, i64 112, !19, i64 136, !20, i64 160, !21, i64 184, !22, i64 192, !22, i64 208, !23, i64 224, !22, i64 240}
!7 = !{!"_ZTS4Test", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !12, i64 56}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, 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", !8, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !8, i64 48}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !9, i64 0}
!18 = !{!"_ZTSN3JPH5ArrayIfNS_12STLAllocatorIfEEEE", !14, i64 0, !14, i64 8, !8, i64 16}
!19 = !{!"_ZTSN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEE", !14, i64 0, !14, i64 8, !8, i64 16}
!20 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !14, i64 0, !14, i64 8, !8, i64 16}
!21 = !{!"int", !9, i64 0}
!22 = !{!"_ZTSN3JPH4Vec3E", !9, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_16HeightFieldShapeEEE", !8, i64 0}
!24 = !{!17, !17, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = !{!9, !9, i64 0}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = !{i64 0, i64 16, !29}
!33 = !{!21, !21, i64 0}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !36, !37}
!36 = !{!"llvm.loop.isvectorized", i32 1}
!37 = !{!"llvm.loop.unroll.runtime.disable"}
!38 = distinct !{!38, !37, !36}
!39 = distinct !{!39, !36, !37}
!40 = distinct !{!40, !37, !36}
!41 = !{!42, !21, i64 112}
!42 = !{!"_ZTSN3JPH24HeightFieldShapeSettingsE", !43, i64 0, !22, i64 64, !22, i64 80, !21, i64 96, !17, i64 100, !17, i64 104, !21, i64 108, !21, i64 112, !21, i64 116, !18, i64 120, !20, i64 144, !19, i64 168, !17, i64 192}
!43 = !{!"_ZTSN3JPH13ShapeSettingsE", !44, i64 0, !45, i64 8, !14, i64 16, !48, i64 24}
!44 = !{!"_ZTSN3JPH18SerializableObjectE"}
!45 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !46, i64 0}
!46 = !{!"_ZTSSt6atomicIjE", !47, i64 0}
!47 = !{!"_ZTSSt13__atomic_baseIjE", !21, i64 0}
!48 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !9, i64 0, !49, i64 32}
!49 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !9, i64 0}
!50 = !{!42, !21, i64 116}
!51 = !{!7, !8, i64 24}
!52 = distinct !{!52, !26, !53}
!53 = !{!"llvm.loop.unswitch.partial.disable"}
!54 = distinct !{!54, !26}
!55 = !{!8, !8, i64 0}
!56 = !{!7, !8, i64 16}
!57 = !{!58, !17, i64 4}
!58 = !{!"_ZTSN3JPH20BroadPhaseCastResultE", !59, i64 0, !17, i64 4}
!59 = !{!"_ZTSN3JPH6BodyIDE", !21, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass