; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Shapes/MeshShapeTest.ll (ZN13MeshShapeTest10InitializeEv)

; 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::Color" = type { %union.anon.10 }
%union.anon.10 = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Triangle" = type { [3 x %"class.JPH::Float3"], i32, i32 }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::RefConst" = 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.9 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.9 = type { i64, [8 x i8] }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst.14" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.11 }
%union.anon.11 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.12", i32, i32 }
%"class.JPH::RefConst.12" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst.14" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Ref.23" = type { ptr }
%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 }

@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN3JPH5Color7sYellowE = external global %"class.JPH::Color", align 4

; 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 @_ZN13MeshShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.JPH::Array", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %"class.JPH::Float3", align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.JPH::Float3", align 4
  %16 = alloca %"class.JPH::Float3", align 4
  %17 = alloca %"class.JPH::Float3", align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Triangle", align 4
  %27 = alloca %"class.JPH::Triangle", align 4
  %28 = alloca %"class.JPH::Array.4", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.JPH::RefConst", align 8
  %31 = alloca %"class.std::basic_string_view", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.JPH::Color", align 4
  %35 = alloca i1, align 1
  %36 = alloca %"class.JPH::BodyCreationSettings", align 16
  %37 = alloca %"class.JPH::Array.4", align 8
  %38 = alloca i1, align 1
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Quat", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::BodyID", align 4
  %43 = alloca %"class.JPH::Ref.23", align 8
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.std::basic_string_view", align 8
  %46 = alloca %"class.JPH::Color", align 4
  %47 = alloca i1, align 1
  %48 = alloca i1, align 1
  %49 = alloca ptr, align 8
  %50 = alloca %"class.JPH::BodyCreationSettings", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Quat", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %54 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #10
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 -10, ptr %5, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %181, %1
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 10
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %184

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 -10, ptr %7, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %140, %59
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 10
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %180

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = sitofp i32 %65 to float
  %67 = fmul float 1.000000e+01, %66
  store float %67, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = sitofp i32 %68 to float
  %70 = fmul float 1.000000e+01, %69
  store float %70, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  %71 = load float, ptr %8, align 4, !tbaa !11
  %72 = fadd float %71, 1.000000e+01
  store float %72, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  %73 = load float, ptr %9, align 4, !tbaa !11
  %74 = fadd float %73, 1.000000e+01
  store float %74, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #10
  %75 = load float, ptr %8, align 4, !tbaa !11
  %76 = load float, ptr %9, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %75, float noundef 0.000000e+00, float noundef %76)
          to label %77 unwind label %143

77:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #10
  %78 = load float, ptr %10, align 4, !tbaa !11
  %79 = load float, ptr %9, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %78, float noundef 0.000000e+00, float noundef %79)
          to label %80 unwind label %147

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #10
  %81 = load float, ptr %8, align 4, !tbaa !11
  %82 = load float, ptr %11, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %81, float noundef 0.000000e+00, float noundef %82)
          to label %83 unwind label %151

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #10
  %84 = load float, ptr %10, align 4, !tbaa !11
  %85 = load float, ptr %11, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %84, float noundef 0.000000e+00, float noundef %85)
          to label %86 unwind label %155

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %87 unwind label %159

87:                                               ; preds = %86
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %88 unwind label %159

88:                                               ; preds = %87
  %89 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %90 = load double, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  %93 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %90, double %92)
          to label %94 unwind label %159

94:                                               ; preds = %88
  %95 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %96 = getelementptr inbounds %union.anon, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 0
  %98 = extractvalue { double, double } %93, 0
  store double %98, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 1
  %100 = extractvalue { double, double } %93, 1
  store double %100, ptr %99, align 8
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %101 unwind label %159

101:                                              ; preds = %94
  %102 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %103 = load double, ptr %102, align 16
  %104 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  %106 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %103, double %105)
          to label %107 unwind label %159

107:                                              ; preds = %101
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %106, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %106, 1
  store double %113, ptr %112, align 8
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %114 unwind label %159

114:                                              ; preds = %107
  %115 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %116 = load double, ptr %115, align 16
  %117 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %118 = load double, ptr %117, align 8
  %119 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %116, double %118)
          to label %120 unwind label %159

120:                                              ; preds = %114
  %121 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %122 = getelementptr inbounds %union.anon, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 0
  %124 = extractvalue { double, double } %119, 0
  store double %124, ptr %123, align 16
  %125 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 1
  %126 = extractvalue { double, double } %119, 1
  store double %126, ptr %125, align 8
  %127 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %19)
          to label %128 unwind label %159

128:                                              ; preds = %120
  %129 = fdiv float %127, 4.000000e+01
  %130 = fptoui float %129 to i32
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  store i32 %130, ptr %18, align 4, !tbaa !9
  %131 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %132 unwind label %163

132:                                              ; preds = %128
  %133 = load i32, ptr %131, align 4, !tbaa !9
  store i32 %133, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 44, ptr %26) #10
  %134 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %26, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef %134, i32 noundef 0)
          to label %135 unwind label %167

135:                                              ; preds = %132
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(44) %26)
          to label %136 unwind label %167

136:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 44, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 44, ptr %27) #10
  %137 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %27, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef %137, i32 noundef 0)
          to label %138 unwind label %171

138:                                              ; preds = %136
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(44) %27)
          to label %139 unwind label %171

139:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 44, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %7, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %7, align 4, !tbaa !9
  br label %60, !llvm.loop !13

143:                                              ; preds = %64
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %13, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %14, align 4
  br label %179

147:                                              ; preds = %77
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %13, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %14, align 4
  br label %178

151:                                              ; preds = %80
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %13, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %14, align 4
  br label %177

155:                                              ; preds = %83
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %13, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %14, align 4
  br label %176

159:                                              ; preds = %120, %114, %107, %101, %94, %88, %87, %86
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %13, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  br label %175

163:                                              ; preds = %128
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %13, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %14, align 4
  br label %175

167:                                              ; preds = %135, %132
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %13, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 44, ptr %26) #10
  br label %175

171:                                              ; preds = %138, %136
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %13, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 44, ptr %27) #10
  br label %175

175:                                              ; preds = %171, %167, %163, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %176

176:                                              ; preds = %175, %155
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #10
  br label %177

177:                                              ; preds = %176, %151
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #10
  br label %178

178:                                              ; preds = %177, %147
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #10
  br label %179

179:                                              ; preds = %178, %143
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %400

180:                                              ; preds = %63
  br label %181

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

184:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #10
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %211, %184
  %186 = load i32, ptr %29, align 4, !tbaa !9
  %187 = load i32, ptr %3, align 4, !tbaa !9
  %188 = icmp ule i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %241

190:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %191 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
          to label %192 unwind label %214

192:                                              ; preds = %190
  store i1 true, ptr %35, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #10
  invoke void @_ZN3JPH15ConvertToStringIjEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %193 unwind label %218

193:                                              ; preds = %192
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %194 unwind label %222

194:                                              ; preds = %193
  %195 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  %196 = getelementptr inbounds { i64, ptr }, ptr %31, i32 0, i32 0
  %197 = extractvalue { i64, ptr } %195, 0
  store i64 %197, ptr %196, align 8
  %198 = getelementptr inbounds { i64, ptr }, ptr %31, i32 0, i32 1
  %199 = extractvalue { i64, ptr } %195, 1
  store ptr %199, ptr %198, align 8
  %200 = load i32, ptr %29, align 4, !tbaa !9
  %201 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef %200)
          to label %202 unwind label %226

202:                                              ; preds = %194
  %203 = getelementptr inbounds %"class.JPH::Color", ptr %34, i32 0, i32 0
  %204 = getelementptr inbounds %union.anon.10, ptr %203, i32 0, i32 0
  store i32 %201, ptr %204, align 4
  %205 = getelementptr inbounds %"class.JPH::Color", ptr %34, i32 0, i32 0
  %206 = getelementptr inbounds %union.anon.10, ptr %205, i32 0, i32 0
  %207 = load i32, ptr %206, align 4
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %191, ptr noundef nonnull align 8 dereferenceable(16) %31, i32 %207)
          to label %208 unwind label %226

208:                                              ; preds = %202
  store i1 false, ptr %35, align 1
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef %191)
          to label %209 unwind label %226

209:                                              ; preds = %208
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %210 unwind label %230

210:                                              ; preds = %209
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %29, align 4, !tbaa !9
  %213 = add i32 %212, 1
  store i32 %213, ptr %29, align 4, !tbaa !9
  br label %185, !llvm.loop !16

214:                                              ; preds = %190
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %13, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %14, align 4
  br label %240

218:                                              ; preds = %192
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %13, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %14, align 4
  br label %236

222:                                              ; preds = %193
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %13, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %14, align 4
  br label %235

226:                                              ; preds = %208, %202, %194
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %13, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %14, align 4
  br label %234

230:                                              ; preds = %209
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %13, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %14, align 4
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  br label %234

234:                                              ; preds = %230, %226
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  br label %235

235:                                              ; preds = %234, %222
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  br label %236

236:                                              ; preds = %235, %218
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  %237 = load i1, ptr %35, align 1
  br i1 %237, label %238, label %239

238:                                              ; preds = %236
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %191) #10
  br label %239

239:                                              ; preds = %238, %236
  br label %240

240:                                              ; preds = %239, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %399

241:                                              ; preds = %189
  %242 = getelementptr inbounds %class.Test, ptr %54, i32 0, i32 3
  %243 = load ptr, ptr %242, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 256, ptr %36) #10
  %244 = invoke noundef ptr @_ZN3JPH17MeshShapeSettingsnwEm(i64 noundef 152)
          to label %245 unwind label %348

245:                                              ; preds = %241
  store i1 true, ptr %38, align 1
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  invoke void @_ZN3JPH17MeshShapeSettingsC1ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS2_EEEENS1_INS_8RefConstINS_15PhysicsMaterialEEENS3_ISA_EEEE(ptr noundef nonnull align 8 dereferenceable(152) %244, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef %37)
          to label %246 unwind label %352

246:                                              ; preds = %245
  store i1 false, ptr %38, align 1
  %247 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %248 unwind label %352

248:                                              ; preds = %246
  %249 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %250 = getelementptr inbounds %union.anon, ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds { double, double }, ptr %250, i32 0, i32 0
  %252 = extractvalue { double, double } %247, 0
  store double %252, ptr %251, align 16
  %253 = getelementptr inbounds { double, double }, ptr %250, i32 0, i32 1
  %254 = extractvalue { double, double } %247, 1
  store double %254, ptr %253, align 8
  %255 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %256 unwind label %352

256:                                              ; preds = %248
  %257 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %258 = getelementptr inbounds %union.anon, ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds { double, double }, ptr %258, i32 0, i32 0
  %260 = extractvalue { double, double } %255, 0
  store double %260, ptr %259, align 16
  %261 = getelementptr inbounds { double, double }, ptr %258, i32 0, i32 1
  %262 = extractvalue { double, double } %255, 1
  store double %262, ptr %261, align 8
  %263 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %264 = load double, ptr %263, align 16
  %265 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %266 = load double, ptr %265, align 8
  %267 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %264, double %266, float noundef 0x3FE921FB60000000)
          to label %268 unwind label %352

268:                                              ; preds = %256
  %269 = getelementptr inbounds %"class.JPH::Quat", ptr %40, i32 0, i32 0
  %270 = getelementptr inbounds %"class.JPH::Vec4", ptr %269, i32 0, i32 0
  %271 = getelementptr inbounds %union.anon.11, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds { double, double }, ptr %271, i32 0, i32 0
  %273 = extractvalue { double, double } %267, 0
  store double %273, ptr %272, align 16
  %274 = getelementptr inbounds { double, double }, ptr %271, i32 0, i32 1
  %275 = extractvalue { double, double } %267, 1
  store double %275, ptr %274, align 8
  %276 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %277 = load double, ptr %276, align 16
  %278 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %279 = load double, ptr %278, align 8
  %280 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %281 = load double, ptr %280, align 16
  %282 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %283 = load double, ptr %282, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %36, ptr noundef %244, double %277, double %279, double %281, double %283, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %284 unwind label %352

284:                                              ; preds = %268
  %285 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 16 dereferenceable(256) %36, i32 noundef 1)
          to label %286 unwind label %356

286:                                              ; preds = %284
  %287 = getelementptr inbounds %"class.JPH::BodyID", ptr %42, i32 0, i32 0
  store i32 %285, ptr %287, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %36) #10
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  %288 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %289 unwind label %365

289:                                              ; preds = %286
  store i1 true, ptr %48, align 1
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef 2.000000e+00, float noundef 2.000000e+00, float noundef 2.000000e+00)
          to label %290 unwind label %369

290:                                              ; preds = %289
  %291 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
          to label %292 unwind label %369

292:                                              ; preds = %290
  store i1 true, ptr %47, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef @.str.2) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !25
  %293 = getelementptr inbounds %"class.JPH::Color", ptr %46, i32 0, i32 0
  %294 = getelementptr inbounds %union.anon.10, ptr %293, i32 0, i32 0
  %295 = load i32, ptr %294, align 4
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %291, ptr noundef nonnull align 8 dereferenceable(16) %45, i32 %295)
          to label %296 unwind label %373

296:                                              ; preds = %292
  store i1 false, ptr %47, align 1
  %297 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %298 = load double, ptr %297, align 16
  %299 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %300 = load double, ptr %299, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %288, double %298, double %300, float noundef 0x3FA99999A0000000, ptr noundef %291)
          to label %301 unwind label %373

301:                                              ; preds = %296
  store i1 false, ptr %48, align 1
  invoke void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef %288)
          to label %302 unwind label %373

302:                                              ; preds = %301
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #10
  %303 = getelementptr inbounds %class.Test, ptr %54, i32 0, i32 3
  %304 = load ptr, ptr %303, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 256, ptr %50) #10
  %305 = invoke noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %306 unwind label %384

306:                                              ; preds = %302
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %51, float noundef 0.000000e+00, float noundef 5.500000e+01, float noundef -5.000000e+01)
          to label %307 unwind label %384

307:                                              ; preds = %306
  %308 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %309 unwind label %384

309:                                              ; preds = %307
  %310 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %311 = getelementptr inbounds %union.anon, ptr %310, i32 0, i32 0
  %312 = getelementptr inbounds { double, double }, ptr %311, i32 0, i32 0
  %313 = extractvalue { double, double } %308, 0
  store double %313, ptr %312, align 16
  %314 = getelementptr inbounds { double, double }, ptr %311, i32 0, i32 1
  %315 = extractvalue { double, double } %308, 1
  store double %315, ptr %314, align 8
  %316 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %317 = load double, ptr %316, align 16
  %318 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %319 = load double, ptr %318, align 8
  %320 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %317, double %319, float noundef 0x3FE921FB60000000)
          to label %321 unwind label %384

321:                                              ; preds = %309
  %322 = getelementptr inbounds %"class.JPH::Quat", ptr %52, i32 0, i32 0
  %323 = getelementptr inbounds %"class.JPH::Vec4", ptr %322, i32 0, i32 0
  %324 = getelementptr inbounds %union.anon.11, ptr %323, i32 0, i32 0
  %325 = getelementptr inbounds { double, double }, ptr %324, i32 0, i32 0
  %326 = extractvalue { double, double } %320, 0
  store double %326, ptr %325, align 16
  %327 = getelementptr inbounds { double, double }, ptr %324, i32 0, i32 1
  %328 = extractvalue { double, double } %320, 1
  store double %328, ptr %327, align 8
  %329 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %330 = load double, ptr %329, align 16
  %331 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %332 = load double, ptr %331, align 8
  %333 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %334 = load double, ptr %333, align 16
  %335 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %336 = load double, ptr %335, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %50, ptr noundef %305, double %330, double %332, double %334, double %336, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %337 unwind label %384

337:                                              ; preds = %321
  %338 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %304, ptr noundef nonnull align 16 dereferenceable(256) %50)
          to label %339 unwind label %388

339:                                              ; preds = %337
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %50) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %50) #10
  store ptr %338, ptr %49, align 8, !tbaa !5
  %340 = load ptr, ptr %49, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %340, float noundef 0.000000e+00)
          to label %341 unwind label %393

341:                                              ; preds = %339
  %342 = getelementptr inbounds %class.Test, ptr %54, i32 0, i32 3
  %343 = load ptr, ptr %342, align 8, !tbaa !17
  %344 = load ptr, ptr %49, align 8, !tbaa !5
  %345 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %344)
          to label %346 unwind label %393

346:                                              ; preds = %341
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %343, ptr noundef nonnull align 4 dereferenceable(4) %345, i32 noundef 0)
          to label %347 unwind label %393

347:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  ret void

348:                                              ; preds = %241
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %13, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %14, align 4
  br label %364

352:                                              ; preds = %268, %256, %248, %246, %245
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %13, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %14, align 4
  br label %360

356:                                              ; preds = %284
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %13, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %14, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %36) #10
  br label %360

360:                                              ; preds = %356, %352
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %361 = load i1, ptr %38, align 1
  br i1 %361, label %362, label %363

362:                                              ; preds = %360
  call void @_ZN3JPH17MeshShapeSettingsdlEPv(ptr noundef %244) #10
  br label %363

363:                                              ; preds = %362, %360
  br label %364

364:                                              ; preds = %363, %348
  call void @llvm.lifetime.end.p0(i64 256, ptr %36) #10
  br label %399

365:                                              ; preds = %286
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %13, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %14, align 4
  br label %398

369:                                              ; preds = %290, %289
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %13, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %14, align 4
  br label %380

373:                                              ; preds = %301, %296, %292
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %13, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #10
  %377 = load i1, ptr %47, align 1
  br i1 %377, label %378, label %379

378:                                              ; preds = %373
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %291) #10
  br label %379

379:                                              ; preds = %378, %373
  br label %380

380:                                              ; preds = %379, %369
  %381 = load i1, ptr %48, align 1
  br i1 %381, label %382, label %383

382:                                              ; preds = %380
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %288) #10
  br label %383

383:                                              ; preds = %382, %380
  br label %398

384:                                              ; preds = %321, %309, %307, %306, %302
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %13, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %14, align 4
  br label %392

388:                                              ; preds = %337
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %13, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %14, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %50) #10
  br label %392

392:                                              ; preds = %388, %384
  call void @llvm.lifetime.end.p0(i64 256, ptr %50) #10
  br label %397

393:                                              ; preds = %346, %341, %339
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %13, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %14, align 4
  br label %397

397:                                              ; preds = %393, %392
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #10
  br label %398

398:                                              ; preds = %397, %383, %365
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  br label %399

399:                                              ; preds = %398, %364, %240
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  br label %400

400:                                              ; preds = %399, %179
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  br label %401

401:                                              ; preds = %400
  %402 = load ptr, ptr %13, align 8
  %403 = load i32, ptr %14, align 4
  %404 = insertvalue { ptr, i32 } poison, ptr %402, 0
  %405 = insertvalue { ptr, i32 } %404, i32 %403, 1
  resume { ptr, i32 } %405
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef) #4 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)) #6

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

declare i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef) #7

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

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

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

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

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

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

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

declare void @_ZN3JPH17MeshShapeSettingsC1ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS2_EEEENS1_INS_8RefConstINS_15PhysicsMaterialEEENS3_ISA_EEEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #5 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122), float noundef) #2 align 2

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { 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 #3 = { 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 #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !6, i64 24}
!18 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !19, i64 48, !20, i64 56}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !21, i64 0}
!21 = !{!"_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, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !6, i64 48}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !22, i64 8}
!25 = !{i64 0, i64 4, !26}
!26 = !{!7, !7, i64 0}


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

%"class.JPH::Color" = type { %union.anon.10 }
%union.anon.10 = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Triangle" = type { [3 x %"class.JPH::Float3"], i32, i32 }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::RefConst" = 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.9 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.9 = type { i64, [8 x i8] }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst.14" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.11 }
%union.anon.11 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.12", i32, i32 }
%"class.JPH::RefConst.12" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst.14" = type { ptr }
%"class.JPH::Ref.23" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZN3JPH5Color7sYellowE = external local_unnamed_addr global %"class.JPH::Color", align 4

; 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 @_ZN13MeshShapeTest10InitializeEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.JPH::Array", align 8
  %4 = alloca %"class.JPH::Float3", align 4
  %5 = alloca %"class.JPH::Float3", align 4
  %6 = alloca %"class.JPH::Float3", align 4
  %7 = alloca %"class.JPH::Float3", align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Triangle", align 4
  %17 = alloca %"class.JPH::Triangle", align 4
  %18 = alloca %"class.JPH::Array.4", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.JPH::RefConst", align 8
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.JPH::BodyCreationSettings", align 16
  %25 = alloca %"class.JPH::Array.4", align 8
  %26 = alloca %"class.JPH::Ref.23", align 8
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.std::basic_string_view", align 8
  %29 = alloca %"class.JPH::BodyCreationSettings", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %31 = getelementptr inbounds i8, ptr %13, i64 8
  %32 = getelementptr inbounds i8, ptr %11, i64 8
  %33 = getelementptr inbounds i8, ptr %14, i64 8
  %34 = getelementptr inbounds i8, ptr %10, i64 8
  %35 = getelementptr inbounds i8, ptr %15, i64 8
  %36 = getelementptr inbounds i8, ptr %9, i64 8
  br label %.preheader

.preheader:                                       ; preds = %1, %42
  %.0109 = phi i32 [ -10, %1 ], [ %43, %42 ]
  %37 = sitofp i32 %.0109 to float
  %38 = fmul float %37, 1.000000e+01
  %39 = fadd float %38, 1.000000e+01
  br label %44

40:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  store i32 0, ptr %19, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %21, i64 8
  br label %92

42:                                               ; preds = %79
  %43 = add nsw i32 %.0109, 1
  %exitcond114.not = icmp eq i32 %43, 10
  br i1 %exitcond114.not, label %40, label %.preheader, !llvm.loop !9

44:                                               ; preds = %.preheader, %79
  %.035108 = phi i32 [ -10, %.preheader ], [ %80, %79 ]
  %45 = sitofp i32 %.035108 to float
  %46 = fmul float %45, 1.000000e+01
  %47 = fadd float %46, 1.000000e+01
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef %38, float noundef 0.000000e+00, float noundef %46)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %39, float noundef 0.000000e+00, float noundef %46)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %38, float noundef 0.000000e+00, float noundef %47)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %39, float noundef 0.000000e+00, float noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %48 unwind label %81

48:                                               ; preds = %44
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %49 unwind label %81

49:                                               ; preds = %48
  %50 = load double, ptr %13, align 16
  %51 = load double, ptr %31, align 8
  %52 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %50, double %51)
          to label %53 unwind label %81

53:                                               ; preds = %49
  %54 = extractvalue { double, double } %52, 0
  store double %54, ptr %11, align 16
  %55 = extractvalue { double, double } %52, 1
  store double %55, ptr %32, align 8
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %56 unwind label %81

56:                                               ; preds = %53
  %57 = load double, ptr %14, align 16
  %58 = load double, ptr %33, align 8
  %59 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %57, double %58)
          to label %60 unwind label %81

60:                                               ; preds = %56
  %61 = extractvalue { double, double } %59, 0
  store double %61, ptr %10, align 16
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %34, align 8
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %63 unwind label %81

63:                                               ; preds = %60
  %64 = load double, ptr %15, align 16
  %65 = load double, ptr %35, align 8
  %66 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %64, double %65)
          to label %67 unwind label %81

67:                                               ; preds = %63
  %68 = extractvalue { double, double } %66, 0
  store double %68, ptr %9, align 16
  %69 = extractvalue { double, double } %66, 1
  store double %69, ptr %36, align 8
  %70 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
          to label %71 unwind label %81

71:                                               ; preds = %67
  %72 = fdiv float %70, 4.000000e+01
  %73 = fptoui float %72 to i32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  store i32 %73, ptr %8, align 4, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %16) #9
  %76 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %16, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef %76, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(44) %16)
          to label %77 unwind label %83

77:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %17) #9
  %78 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %17, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %78, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(44) %17)
          to label %79 unwind label %85

79:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #9
  %80 = add nsw i32 %.035108, 1
  %exitcond.not = icmp eq i32 %80, 10
  br i1 %exitcond.not, label %42, label %44, !llvm.loop !11

81:                                               ; preds = %67, %63, %60, %56, %53, %49, %48, %44
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %87

83:                                               ; preds = %71
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %16) #9
  br label %87

85:                                               ; preds = %77
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %17) #9
  br label %87

87:                                               ; preds = %85, %83, %81
  %.pn74 = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #9
  br label %189

88:                                               ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  %89 = getelementptr inbounds i8, ptr %0, i64 24
  %90 = load ptr, ptr %89, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %24) #9
  %91 = invoke noundef ptr @_ZN3JPH17MeshShapeSettingsnwEm(i64 noundef 152)
          to label %120 unwind label %168

92:                                               ; preds = %40, %105
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %93 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
          to label %94 unwind label %109

94:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #9
  invoke void @_ZN3JPH15ConvertToStringIjEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %95 unwind label %.thread

95:                                               ; preds = %94
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %96 unwind label %.thread80

96:                                               ; preds = %95
  %97 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %98 = extractvalue { i64, ptr } %97, 0
  store i64 %98, ptr %21, align 8
  %99 = extractvalue { i64, ptr } %97, 1
  store ptr %99, ptr %41, align 8
  %100 = load i32, ptr %19, align 4, !tbaa !5
  %101 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef %100)
          to label %102 unwind label %113

102:                                              ; preds = %96
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %93, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 %101)
          to label %103 unwind label %113

103:                                              ; preds = %102
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull %93)
          to label %104 unwind label %113

104:                                              ; preds = %103
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %105 unwind label %115

105:                                              ; preds = %104
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  %106 = load i32, ptr %19, align 4, !tbaa !5
  %107 = add i32 %106, 1
  store i32 %107, ptr %19, align 4, !tbaa !5
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %.not = icmp ugt i32 %107, %108
  br i1 %.not, label %88, label %92, !llvm.loop !22

109:                                              ; preds = %92
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %119

.thread:                                          ; preds = %94
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %118

.thread80:                                        ; preds = %95
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br label %118

113:                                              ; preds = %103, %102, %96
  %.053 = phi i1 [ false, %103 ], [ true, %102 ], [ true, %96 ]
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %117

115:                                              ; preds = %104
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %117

117:                                              ; preds = %113, %115
  %.154 = phi i1 [ false, %115 ], [ %.053, %113 ]
  %.pn68 = phi { ptr, i32 } [ %116, %115 ], [ %114, %113 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  br i1 %.154, label %118, label %119

118:                                              ; preds = %.thread80, %.thread, %117
  %.pn68.pn.pn79 = phi { ptr, i32 } [ %111, %.thread ], [ %.pn68, %117 ], [ %112, %.thread80 ]
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %93) #9
  br label %119

119:                                              ; preds = %117, %118, %109
  %.pn68.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn79, %118 ], [ %.pn68, %117 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  br label %188

120:                                              ; preds = %88
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  invoke void @_ZN3JPH17MeshShapeSettingsC1ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS2_EEEENS1_INS_8RefConstINS_15PhysicsMaterialEEENS3_ISA_EEEE(ptr noundef nonnull align 8 dereferenceable(152) %91, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull %25)
          to label %121 unwind label %171

121:                                              ; preds = %120
  %122 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %123 unwind label %.thread86

123:                                              ; preds = %121
  %124 = extractvalue { double, double } %122, 0
  %125 = extractvalue { double, double } %122, 1
  %126 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %127 unwind label %.thread86

127:                                              ; preds = %123
  %128 = extractvalue { double, double } %126, 0
  %129 = extractvalue { double, double } %126, 1
  %130 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %128, double %129, float noundef 0x3FE921FB60000000)
          to label %131 unwind label %.thread86

131:                                              ; preds = %127
  %132 = extractvalue { double, double } %130, 0
  %133 = extractvalue { double, double } %130, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %24, ptr noundef nonnull %91, double %124, double %125, double %132, double %133, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %134 unwind label %.thread86

134:                                              ; preds = %131
  %135 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 16 dereferenceable(256) %24, i32 noundef 1)
          to label %136 unwind label %.thread83

136:                                              ; preds = %134
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %24) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #9
  %137 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %138 unwind label %173

138:                                              ; preds = %136
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef 2.000000e+00, float noundef 2.000000e+00, float noundef 2.000000e+00)
          to label %139 unwind label %175

139:                                              ; preds = %138
  %140 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 56)
          to label %141 unwind label %175

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef @.str.2) #9
  %.sroa.06.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !23
  invoke void @_ZN3JPH21PhysicsMaterialSimpleC2ERKSt17basic_string_viewIcSt11char_traitsIcEENS_5ColorE(ptr noundef nonnull align 8 dereferenceable(52) %140, ptr noundef nonnull align 8 dereferenceable(16) %28, i32 %.sroa.06.0.copyload)
          to label %142 unwind label %177

142:                                              ; preds = %141
  %143 = load double, ptr %27, align 16
  %144 = getelementptr inbounds i8, ptr %27, i64 8
  %145 = load double, ptr %144, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %137, double %143, double %145, float noundef 0x3FA99999A0000000, ptr noundef nonnull %140)
          to label %146 unwind label %.thread102

.thread102:                                       ; preds = %142
  %lpad.thr_comm91104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #9
  br label %.thread98

146:                                              ; preds = %142
  invoke void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull %137)
          to label %147 unwind label %178

147:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #9
  %148 = load ptr, ptr %89, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %29) #9
  %149 = call noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %26)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef 0.000000e+00, float noundef 5.500000e+01, float noundef -5.000000e+01)
          to label %150 unwind label %179

150:                                              ; preds = %147
  %151 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %152 unwind label %179

152:                                              ; preds = %150
  %153 = extractvalue { double, double } %151, 0
  %154 = extractvalue { double, double } %151, 1
  %155 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %153, double %154, float noundef 0x3FE921FB60000000)
          to label %156 unwind label %179

156:                                              ; preds = %152
  %157 = extractvalue { double, double } %155, 0
  %158 = extractvalue { double, double } %155, 1
  %159 = load double, ptr %30, align 16
  %160 = getelementptr inbounds i8, ptr %30, i64 8
  %161 = load double, ptr %160, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %29, ptr noundef %149, double %159, double %161, double %157, double %158, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %162 unwind label %179

162:                                              ; preds = %156
  %163 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 16 dereferenceable(256) %29)
          to label %164 unwind label %181

164:                                              ; preds = %162
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %29) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %29) #9
  call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %163, float noundef 0.000000e+00)
  %165 = load ptr, ptr %89, align 8, !tbaa !12
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %163)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 4 dereferenceable(4) %166, i32 noundef 0)
          to label %167 unwind label %184

167:                                              ; preds = %164
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  ret void

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

.thread83:                                        ; preds = %134
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %24) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  br label %172

.thread86:                                        ; preds = %131, %127, %123, %121
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  br label %172

171:                                              ; preds = %120
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @_ZN3JPH17MeshShapeSettingsdlEPv(ptr noundef %91) #9
  br label %172

172:                                              ; preds = %.thread86, %.thread83, %171, %168
  %.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %171 ], [ %169, %168 ], [ %170, %.thread83 ], [ %lpad.thr_comm, %.thread86 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %24) #9
  br label %188

173:                                              ; preds = %136
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %187

175:                                              ; preds = %139, %138
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %.thread98

177:                                              ; preds = %141
  %lpad.thr_comm.split-lp92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #9
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %140) #9
  br label %.thread98

178:                                              ; preds = %146
  %lpad.thr_comm91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #9
  br label %187

.thread98:                                        ; preds = %175, %177, %.thread102
  %.pn61101 = phi { ptr, i32 } [ %lpad.thr_comm91104, %.thread102 ], [ %176, %175 ], [ %lpad.thr_comm.split-lp92, %177 ]
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %137) #9
  br label %187

179:                                              ; preds = %156, %152, %150, %147
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

181:                                              ; preds = %162
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %29) #9
  br label %183

183:                                              ; preds = %181, %179
  %.pn63 = phi { ptr, i32 } [ %182, %181 ], [ %180, %179 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %29) #9
  br label %186

184:                                              ; preds = %164
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %186

186:                                              ; preds = %184, %183
  %.pn65 = phi { ptr, i32 } [ %185, %184 ], [ %.pn63, %183 ]
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br label %187

187:                                              ; preds = %178, %.thread98, %186, %173
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %186 ], [ %.pn61101, %.thread98 ], [ %lpad.thr_comm91, %178 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #9
  br label %188

188:                                              ; preds = %187, %172, %119
  %.pn68.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn, %119 ], [ %.pn65.pn, %187 ], [ %.pn.pn, %172 ]
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %189

189:                                              ; preds = %188, %87
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %87 ], [ %.pn68.pn.pn.pn.pn, %188 ]
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn74.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 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 #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef) local_unnamed_addr #4 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 #6

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

declare i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef) local_unnamed_addr #7

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

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

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

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

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

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

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

declare void @_ZN3JPH17MeshShapeSettingsC1ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS2_EEEENS1_INS_8RefConstINS_15PhysicsMaterialEEENS3_ISA_EEEE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #2 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #6 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 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: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122), float noundef) local_unnamed_addr #2 align 2

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { 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 #3 = { 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 #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 = { 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 #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !14, i64 24}
!13 = !{!"_ZTS4Test", !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !15, i64 48, !16, i64 56}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !17, i64 0}
!17 = !{!"_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", !14, i64 0, !18, i64 8, !19, i64 16, !18, i64 24, !20, i64 32, !14, i64 48}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !14, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !18, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !10}
!23 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass