; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/General (FrictionPerTriangleTest)

; 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.9 }
%union.anon.9 = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Float3" = type { float, float, 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 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon = 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::Vec3" = type { %union.anon.10 }
%union.anon.10 = 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 [15 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 @_ZN23FrictionPerTriangleTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(120) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca %"class.JPH::Array", align 8
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"class.JPH::Float3", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.JPH::Float3", align 4
  %13 = alloca %"class.JPH::Float3", align 4
  %14 = alloca %"class.JPH::Float3", align 4
  %15 = alloca %"class.JPH::Triangle", align 4
  %16 = alloca %"class.JPH::Triangle", align 4
  %17 = alloca %"class.JPH::Array.4", align 8
  %18 = alloca i32, align 4
  %19 = alloca float, 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::Color", align 4
  %25 = alloca i1, align 1
  %26 = alloca %"class.JPH::BodyCreationSettings", align 16
  %27 = alloca %"class.JPH::Array.4", align 8
  %28 = alloca i1, align 1
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Quat", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::BodyID", align 4
  %33 = alloca %"class.JPH::Ref.23", align 8
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.std::basic_string_view", align 8
  %36 = alloca %"class.JPH::Color", align 4
  %37 = alloca i1, align 1
  %38 = alloca i1, align 1
  %39 = alloca %"class.JPH::BodyCreationSettings", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Quat", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::BodyID", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  store i32 5, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  store float 5.000000e+01, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #10
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %70, %1
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = icmp sle i32 %46, 5
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  br label %101

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = sitofp i32 %50 to float
  %52 = fsub float %51, 2.500000e+00
  %53 = fmul float 5.000000e+01, %52
  store float %53, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %54 = load float, ptr %7, align 4, !tbaa !11
  %55 = fadd float %54, 5.000000e+01
  store float %55, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #10
  %56 = load float, ptr %7, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef %56)
          to label %57 unwind label %73

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #10
  %58 = load float, ptr %7, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 1.000000e+02, float noundef 0.000000e+00, float noundef %58)
          to label %59 unwind label %77

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #10
  %60 = load float, ptr %8, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef %60)
          to label %61 unwind label %81

61:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #10
  %62 = load float, ptr %8, align 4, !tbaa !11
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef 1.000000e+02, float noundef 0.000000e+00, float noundef %62)
          to label %63 unwind label %85

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 44, ptr %15) #10
  %64 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %15, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %64, i32 noundef 0)
          to label %65 unwind label %89

65:                                               ; preds = %63
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(44) %15)
          to label %66 unwind label %89

66:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 44, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 44, ptr %16) #10
  %67 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %16, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %67, i32 noundef 0)
          to label %68 unwind label %93

68:                                               ; preds = %66
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(44) %16)
          to label %69 unwind label %93

69:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 44, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 12, 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
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %6, align 4, !tbaa !9
  br label %45, !llvm.loop !13

73:                                               ; preds = %49
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  br label %100

77:                                               ; preds = %57
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  br label %99

81:                                               ; preds = %59
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  br label %98

85:                                               ; preds = %61
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %97

89:                                               ; preds = %65, %63
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %10, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 44, ptr %15) #10
  br label %97

93:                                               ; preds = %68, %66
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %10, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 44, ptr %16) #10
  br label %97

97:                                               ; preds = %93, %89, %85
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #10
  br label %98

98:                                               ; preds = %97, %81
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #10
  br label %99

99:                                               ; preds = %98, %77
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #10
  br label %100

100:                                              ; preds = %99, %73
  call void @llvm.lifetime.end.p0(i64 12, 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 %6) #10
  br label %308

101:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #10
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %131, %101
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = icmp ule i32 %103, 5
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %161

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = uitofp i32 %107 to float
  %109 = fdiv float %108, 5.000000e+00
  store float %109, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %110 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %111 unwind label %134

111:                                              ; preds = %106
  store i1 true, ptr %25, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #10
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %112 unwind label %138

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

113:                                              ; preds = %112
  %114 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  %115 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %116 = extractvalue { i64, ptr } %114, 0
  store i64 %116, ptr %115, align 8
  %117 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %118 = extractvalue { i64, ptr } %114, 1
  store ptr %118, ptr %117, align 8
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef %119)
          to label %121 unwind label %146

121:                                              ; preds = %113
  %122 = getelementptr inbounds %"class.JPH::Color", ptr %24, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon.9, ptr %122, i32 0, i32 0
  store i32 %120, ptr %123, align 4
  %124 = load float, ptr %19, align 4, !tbaa !11
  %125 = getelementptr inbounds %"class.JPH::Color", ptr %24, i32 0, i32 0
  %126 = getelementptr inbounds %union.anon.9, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 4
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %110, ptr noundef nonnull align 8 dereferenceable(16) %21, i32 %127, float noundef %124, float noundef 0.000000e+00)
          to label %128 unwind label %146

128:                                              ; preds = %121
  store i1 false, ptr %25, align 1
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %110)
          to label %129 unwind label %146

129:                                              ; preds = %128
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %130 unwind label %150

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

131:                                              ; preds = %130
  %132 = load i32, ptr %18, align 4, !tbaa !9
  %133 = add i32 %132, 1
  store i32 %133, ptr %18, align 4, !tbaa !9
  br label %102, !llvm.loop !15

134:                                              ; preds = %106
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  br label %160

138:                                              ; preds = %111
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  br label %156

142:                                              ; preds = %112
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %10, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %11, align 4
  br label %155

146:                                              ; preds = %128, %121, %113
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %10, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %11, align 4
  br label %154

150:                                              ; preds = %129
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br label %154

154:                                              ; preds = %150, %146
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  br label %155

155:                                              ; preds = %154, %142
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  br label %156

156:                                              ; preds = %155, %138
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  %157 = load i1, ptr %25, align 1
  br i1 %157, label %158, label %159

158:                                              ; preds = %156
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %110) #10
  br label %159

159:                                              ; preds = %158, %156
  br label %160

160:                                              ; preds = %159, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %307

161:                                              ; preds = %105
  %162 = getelementptr inbounds %class.Test, ptr %44, i32 0, i32 3
  %163 = load ptr, ptr %162, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 256, ptr %26) #10
  %164 = invoke noundef ptr @_ZN3JPH17MeshShapeSettingsnwEm(i64 noundef 152)
          to label %165 unwind label %261

165:                                              ; preds = %161
  store i1 true, ptr %28, align 1
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  invoke void @_ZN3JPH17MeshShapeSettingsC1ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS2_EEEENS1_INS_8RefConstINS_15PhysicsMaterialEEENS3_ISA_EEEE(ptr noundef nonnull align 8 dereferenceable(152) %164, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %27)
          to label %166 unwind label %265

166:                                              ; preds = %165
  store i1 false, ptr %28, align 1
  %167 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %168 unwind label %265

168:                                              ; preds = %166
  %169 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %170 = getelementptr inbounds %union.anon.10, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 0
  %172 = extractvalue { double, double } %167, 0
  store double %172, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 1
  %174 = extractvalue { double, double } %167, 1
  store double %174, ptr %173, align 8
  %175 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %176 unwind label %265

176:                                              ; preds = %168
  %177 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %178 = getelementptr inbounds %union.anon.10, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds { double, double }, ptr %178, i32 0, i32 0
  %180 = extractvalue { double, double } %175, 0
  store double %180, ptr %179, align 16
  %181 = getelementptr inbounds { double, double }, ptr %178, i32 0, i32 1
  %182 = extractvalue { double, double } %175, 1
  store double %182, ptr %181, align 8
  %183 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %184 = load double, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %184, double %186, float noundef 0x3FE41B2F80000000)
          to label %188 unwind label %265

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

204:                                              ; preds = %188
  %205 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 16 dereferenceable(256) %26, i32 noundef 1)
          to label %206 unwind label %269

206:                                              ; preds = %204
  %207 = getelementptr inbounds %"class.JPH::BodyID", ptr %32, i32 0, i32 0
  store i32 %205, ptr %207, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %26) #10
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  %208 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %209 unwind label %278

209:                                              ; preds = %206
  store i1 true, ptr %38, align 1
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef 2.000000e+00, float noundef 2.000000e+00, float noundef 2.000000e+00)
          to label %210 unwind label %282

210:                                              ; preds = %209
  %211 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %212 unwind label %282

212:                                              ; preds = %210
  store i1 true, ptr %37, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef @.str.2) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !24
  %213 = getelementptr inbounds %"class.JPH::Color", ptr %36, i32 0, i32 0
  %214 = getelementptr inbounds %union.anon.9, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %211, ptr noundef nonnull align 8 dereferenceable(16) %35, i32 %215, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %216 unwind label %286

216:                                              ; preds = %212
  store i1 false, ptr %37, align 1
  %217 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %218 = load double, ptr %217, align 16
  %219 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %220 = load double, ptr %219, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %208, double %218, double %220, float noundef 0x3FA99999A0000000, ptr noundef %211)
          to label %221 unwind label %286

221:                                              ; preds = %216
  store i1 false, ptr %38, align 1
  invoke void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef %208)
          to label %222 unwind label %286

222:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  %223 = getelementptr inbounds %class.Test, ptr %44, i32 0, i32 3
  %224 = load ptr, ptr %223, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 256, ptr %39) #10
  %225 = invoke noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %226 unwind label %297

226:                                              ; preds = %222
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %40, float noundef 0.000000e+00, float noundef 6.000000e+01, float noundef -7.500000e+01)
          to label %227 unwind label %297

227:                                              ; preds = %226
  %228 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %229 unwind label %297

229:                                              ; preds = %227
  %230 = getelementptr inbounds %"class.JPH::Vec3", ptr %42, i32 0, i32 0
  %231 = getelementptr inbounds %union.anon.10, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds { double, double }, ptr %231, i32 0, i32 0
  %233 = extractvalue { double, double } %228, 0
  store double %233, ptr %232, align 16
  %234 = getelementptr inbounds { double, double }, ptr %231, i32 0, i32 1
  %235 = extractvalue { double, double } %228, 1
  store double %235, ptr %234, align 8
  %236 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %237 = load double, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %239 = load double, ptr %238, align 8
  %240 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %237, double %239, float noundef 0x3FE41B2F80000000)
          to label %241 unwind label %297

241:                                              ; preds = %229
  %242 = getelementptr inbounds %"class.JPH::Quat", ptr %41, i32 0, i32 0
  %243 = getelementptr inbounds %"class.JPH::Vec4", ptr %242, i32 0, i32 0
  %244 = getelementptr inbounds %union.anon.11, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds { double, double }, ptr %244, i32 0, i32 0
  %246 = extractvalue { double, double } %240, 0
  store double %246, ptr %245, align 16
  %247 = getelementptr inbounds { double, double }, ptr %244, i32 0, i32 1
  %248 = extractvalue { double, double } %240, 1
  store double %248, ptr %247, align 8
  %249 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %250 = load double, ptr %249, align 16
  %251 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %252 = load double, ptr %251, align 8
  %253 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %254 = load double, ptr %253, align 16
  %255 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %256 = load double, ptr %255, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %39, ptr noundef %225, double %250, double %252, double %254, double %256, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %257 unwind label %297

257:                                              ; preds = %241
  %258 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %224, ptr noundef nonnull align 16 dereferenceable(256) %39, i32 noundef 0)
          to label %259 unwind label %301

259:                                              ; preds = %257
  %260 = getelementptr inbounds %"class.JPH::BodyID", ptr %43, i32 0, i32 0
  store i32 %258, ptr %260, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %39) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %39) #10
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #10
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  ret void

261:                                              ; preds = %161
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %10, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %11, align 4
  br label %277

265:                                              ; preds = %188, %176, %168, %166, %165
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %10, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %11, align 4
  br label %273

269:                                              ; preds = %204
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %10, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %11, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %26) #10
  br label %273

273:                                              ; preds = %269, %265
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  %274 = load i1, ptr %28, align 1
  br i1 %274, label %275, label %276

275:                                              ; preds = %273
  call void @_ZN3JPH17MeshShapeSettingsdlEPv(ptr noundef %164) #10
  br label %276

276:                                              ; preds = %275, %273
  br label %277

277:                                              ; preds = %276, %261
  call void @llvm.lifetime.end.p0(i64 256, ptr %26) #10
  br label %307

278:                                              ; preds = %206
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %10, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %11, align 4
  br label %306

282:                                              ; preds = %210, %209
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %10, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %11, align 4
  br label %293

286:                                              ; preds = %221, %216, %212
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %10, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #10
  %290 = load i1, ptr %37, align 1
  br i1 %290, label %291, label %292

291:                                              ; preds = %286
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %211) #10
  br label %292

292:                                              ; preds = %291, %286
  br label %293

293:                                              ; preds = %292, %282
  %294 = load i1, ptr %38, align 1
  br i1 %294, label %295, label %296

295:                                              ; preds = %293
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %208) #10
  br label %296

296:                                              ; preds = %295, %293
  br label %306

297:                                              ; preds = %241, %229, %227, %226, %222
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %10, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %11, align 4
  br label %305

301:                                              ; preds = %257
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %10, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %11, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %39) #10
  br label %305

305:                                              ; preds = %301, %297
  call void @llvm.lifetime.end.p0(i64 256, ptr %39) #10
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #10
  br label %306

306:                                              ; preds = %305, %296, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %307

307:                                              ; preds = %306, %277, %160
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #10
  br label %308

308:                                              ; preds = %307, %100
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  br label %309

309:                                              ; preds = %308
  %310 = load ptr, ptr %10, align 8
  %311 = load i32, ptr %11, align 4
  %312 = insertvalue { ptr, i32 } poison, ptr %310, 0
  %313 = insertvalue { ptr, i32 } %312, i32 %311, 1
  resume { ptr, i32 } %313
}

; 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: 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)) #3 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)) #3 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)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ConvertToStringIfEENSt7__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) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(16), i32, float noundef, float noundef) 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 #3 align 2

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

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

; 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 #6 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 #5

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17MeshShapeSettingsdlEPv(ptr noundef) #7 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 #8 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 #3 align 2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress 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 #8 = { 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 #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 = !{!17, !6, i64 24}
!17 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !18, i64 48, !19, i64 56}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !20, i64 0}
!20 = !{!"_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, !21, i64 8, !22, i64 16, !21, i64 24, !23, i64 32, !6, i64 48}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !21, i64 8}
!24 = !{i64 0, i64 4, !25}
!25 = !{!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.9 }
%union.anon.9 = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Float3" = type { float, float, 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 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon = 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::Vec3" = type { %union.anon.10 }
%union.anon.10 = 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 [15 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 @_ZN23FrictionPerTriangleTest10InitializeEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(120) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Array", align 8
  %3 = alloca %"class.JPH::Float3", align 4
  %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::Triangle", align 4
  %8 = alloca %"class.JPH::Triangle", align 4
  %9 = alloca %"class.JPH::Array.4", align 8
  %10 = alloca float, align 4
  %11 = alloca %"class.JPH::RefConst", align 8
  %12 = alloca %"class.std::basic_string_view", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.JPH::BodyCreationSettings", align 16
  %16 = alloca %"class.JPH::Array.4", align 8
  %17 = alloca %"class.JPH::Ref.23", align 8
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.JPH::BodyCreationSettings", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef -1.250000e+02)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef -1.250000e+02)
  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 -1.000000e+02, float noundef 0.000000e+00, float noundef -7.500000e+01)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef -7.500000e+01)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %7)
          to label %22 unwind label %36

22:                                               ; preds = %1
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 0, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %8)
          to label %23 unwind label %38

23:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef -7.500000e+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 1.000000e+02, float noundef 0.000000e+00, float noundef -7.500000e+01)
  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 -1.000000e+02, float noundef 0.000000e+00, float noundef -2.500000e+01)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef -2.500000e+01)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 1, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %7)
          to label %24 unwind label %36

24:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 1, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %8)
          to label %25 unwind label %38

25:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef -2.500000e+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 1.000000e+02, float noundef 0.000000e+00, float noundef -2.500000e+01)
  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 -1.000000e+02, float noundef 0.000000e+00, float noundef 2.500000e+01)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef 2.500000e+01)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 2, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %7)
          to label %26 unwind label %36

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 2, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %8)
          to label %27 unwind label %38

27:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef 2.500000e+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 1.000000e+02, float noundef 0.000000e+00, float noundef 2.500000e+01)
  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 -1.000000e+02, float noundef 0.000000e+00, float noundef 7.500000e+01)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef 7.500000e+01)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 3, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %7)
          to label %28 unwind label %36

28:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 3, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %8)
          to label %29 unwind label %38

29:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef 7.500000e+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 1.000000e+02, float noundef 0.000000e+00, float noundef 7.500000e+01)
  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 -1.000000e+02, float noundef 0.000000e+00, float noundef 1.250000e+02)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef 1.250000e+02)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 4, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %7)
          to label %30 unwind label %36

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 4, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %8)
          to label %31 unwind label %38

31:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef -1.000000e+02, float noundef 0.000000e+00, float noundef 1.250000e+02)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef 1.250000e+02)
  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 -1.000000e+02, float noundef 0.000000e+00, float noundef 1.750000e+02)
  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 1.000000e+02, float noundef 0.000000e+00, float noundef 1.750000e+02)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 5, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %7)
          to label %32 unwind label %36

32:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #9
  call void @_ZN3JPH8TriangleC2ERKNS_6Float3ES3_S3_jj(ptr noundef nonnull align 4 dereferenceable(44) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 5, i32 noundef 0)
  invoke void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(44) %8)
          to label %33 unwind label %38

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %34 = getelementptr inbounds i8, ptr %12, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 0.000000e+00, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %35 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %41 unwind label %121

36:                                               ; preds = %31, %29, %27, %25, %23, %1
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #9
  br label %40

38:                                               ; preds = %32, %30, %28, %26, %24, %22
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #9
  br label %40

40:                                               ; preds = %38, %36
  %.pn68 = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  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
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  br label %197

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %42 unwind label %.thread

42:                                               ; preds = %41
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %43 unwind label %.thread74

43:                                               ; preds = %42
  %44 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %45 = extractvalue { i64, ptr } %44, 0
  store i64 %45, ptr %12, align 8
  %46 = extractvalue { i64, ptr } %44, 1
  store ptr %46, ptr %34, align 8
  %47 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef 0)
          to label %48 unwind label %125

48:                                               ; preds = %43
  %49 = load float, ptr %10, align 4, !tbaa !5
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %35, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 %47, float noundef %49, float noundef 0.000000e+00)
          to label %50 unwind label %125

50:                                               ; preds = %48
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %35)
          to label %51 unwind label %125

51:                                               ; preds = %50
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %52 unwind label %127

52:                                               ; preds = %51
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 0x3FC99999A0000000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %53 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %54 unwind label %121

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %55 unwind label %.thread

55:                                               ; preds = %54
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %56 unwind label %.thread74

56:                                               ; preds = %55
  %57 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %58 = extractvalue { i64, ptr } %57, 0
  store i64 %58, ptr %12, align 8
  %59 = extractvalue { i64, ptr } %57, 1
  store ptr %59, ptr %34, align 8
  %60 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef 1)
          to label %61 unwind label %125

61:                                               ; preds = %56
  %62 = load float, ptr %10, align 4, !tbaa !5
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %53, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 %60, float noundef %62, float noundef 0.000000e+00)
          to label %63 unwind label %125

63:                                               ; preds = %61
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %53)
          to label %64 unwind label %125

64:                                               ; preds = %63
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %65 unwind label %127

65:                                               ; preds = %64
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 0x3FD99999A0000000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %66 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %67 unwind label %121

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %68 unwind label %.thread

68:                                               ; preds = %67
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %69 unwind label %.thread74

69:                                               ; preds = %68
  %70 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %71 = extractvalue { i64, ptr } %70, 0
  store i64 %71, ptr %12, align 8
  %72 = extractvalue { i64, ptr } %70, 1
  store ptr %72, ptr %34, align 8
  %73 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef 2)
          to label %74 unwind label %125

74:                                               ; preds = %69
  %75 = load float, ptr %10, align 4, !tbaa !5
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %66, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 %73, float noundef %75, float noundef 0.000000e+00)
          to label %76 unwind label %125

76:                                               ; preds = %74
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %66)
          to label %77 unwind label %125

77:                                               ; preds = %76
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %78 unwind label %127

78:                                               ; preds = %77
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 0x3FE3333340000000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %79 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %80 unwind label %121

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %81 unwind label %.thread

81:                                               ; preds = %80
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %82 unwind label %.thread74

82:                                               ; preds = %81
  %83 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %84 = extractvalue { i64, ptr } %83, 0
  store i64 %84, ptr %12, align 8
  %85 = extractvalue { i64, ptr } %83, 1
  store ptr %85, ptr %34, align 8
  %86 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef 3)
          to label %87 unwind label %125

87:                                               ; preds = %82
  %88 = load float, ptr %10, align 4, !tbaa !5
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %79, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 %86, float noundef %88, float noundef 0.000000e+00)
          to label %89 unwind label %125

89:                                               ; preds = %87
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %79)
          to label %90 unwind label %125

90:                                               ; preds = %89
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %91 unwind label %127

91:                                               ; preds = %90
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 0x3FE99999A0000000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %92 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %93 unwind label %121

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %94 unwind label %.thread

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

95:                                               ; preds = %94
  %96 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %97 = extractvalue { i64, ptr } %96, 0
  store i64 %97, ptr %12, align 8
  %98 = extractvalue { i64, ptr } %96, 1
  store ptr %98, ptr %34, align 8
  %99 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef 4)
          to label %100 unwind label %125

100:                                              ; preds = %95
  %101 = load float, ptr %10, align 4, !tbaa !5
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %92, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 %99, float noundef %101, float noundef 0.000000e+00)
          to label %102 unwind label %125

102:                                              ; preds = %100
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %92)
          to label %103 unwind label %125

103:                                              ; preds = %102
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %104 unwind label %127

104:                                              ; preds = %103
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 1.000000e+00, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %105 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %106 unwind label %121

106:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  invoke void @_ZN3JPH15ConvertToStringIfEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %107 unwind label %.thread

107:                                              ; preds = %106
  invoke void @_ZStplIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS7_OSA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %108 unwind label %.thread74

108:                                              ; preds = %107
  %109 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  %110 = extractvalue { i64, ptr } %109, 0
  store i64 %110, ptr %12, align 8
  %111 = extractvalue { i64, ptr } %109, 1
  store ptr %111, ptr %34, align 8
  %112 = invoke i32 @_ZN3JPH5Color17sGetDistinctColorEi(i32 noundef 5)
          to label %113 unwind label %125

113:                                              ; preds = %108
  %114 = load float, ptr %10, align 4, !tbaa !5
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %105, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 %112, float noundef %114, float noundef 0.000000e+00)
          to label %115 unwind label %125

115:                                              ; preds = %113
  invoke void @_ZN3JPH8RefConstINS_15PhysicsMaterialEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %105)
          to label %116 unwind label %125

116:                                              ; preds = %115
  invoke void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %117 unwind label %127

117:                                              ; preds = %116
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  %118 = getelementptr inbounds i8, ptr %0, i64 24
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %15) #9
  %120 = invoke noundef ptr @_ZN3JPH17MeshShapeSettingsnwEm(i64 noundef 152)
          to label %134 unwind label %179

121:                                              ; preds = %104, %91, %78, %65, %52, %33
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %133

.thread:                                          ; preds = %106, %93, %80, %67, %54, %41
  %.lcssa = phi ptr [ %35, %41 ], [ %53, %54 ], [ %66, %67 ], [ %79, %80 ], [ %92, %93 ], [ %105, %106 ]
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %131

.thread74:                                        ; preds = %107, %94, %81, %68, %55, %42
  %.lcssa104 = phi ptr [ %35, %42 ], [ %53, %55 ], [ %66, %68 ], [ %79, %81 ], [ %92, %94 ], [ %105, %107 ]
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %131

125:                                              ; preds = %115, %113, %108, %102, %100, %95, %89, %87, %82, %76, %74, %69, %63, %61, %56, %50, %48, %43
  %.lcssa105 = phi ptr [ %35, %50 ], [ %35, %48 ], [ %35, %43 ], [ %53, %56 ], [ %53, %61 ], [ %53, %63 ], [ %66, %69 ], [ %66, %74 ], [ %66, %76 ], [ %79, %82 ], [ %79, %87 ], [ %79, %89 ], [ %92, %95 ], [ %92, %100 ], [ %92, %102 ], [ %105, %108 ], [ %105, %113 ], [ %105, %115 ]
  %.046 = phi i1 [ false, %50 ], [ true, %48 ], [ true, %43 ], [ true, %56 ], [ true, %61 ], [ false, %63 ], [ true, %69 ], [ true, %74 ], [ false, %76 ], [ true, %82 ], [ true, %87 ], [ false, %89 ], [ true, %95 ], [ true, %100 ], [ false, %102 ], [ true, %108 ], [ true, %113 ], [ false, %115 ]
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %116, %103, %90, %77, %64, %51
  %.lcssa106 = phi ptr [ %35, %51 ], [ %53, %64 ], [ %66, %77 ], [ %79, %90 ], [ %92, %103 ], [ %105, %116 ]
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8RefConstINS_15PhysicsMaterialEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %129

129:                                              ; preds = %125, %127
  %130 = phi ptr [ %.lcssa106, %127 ], [ %.lcssa105, %125 ]
  %.147 = phi i1 [ false, %127 ], [ %.046, %125 ]
  %.pn62 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br i1 %.147, label %131, label %133

131:                                              ; preds = %.thread74, %.thread, %129
  %132 = phi ptr [ %.lcssa, %.thread ], [ %130, %129 ], [ %.lcssa104, %.thread74 ]
  %.pn62.pn.pn73 = phi { ptr, i32 } [ %123, %.thread ], [ %.pn62, %129 ], [ %124, %.thread74 ]
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %132) #9
  br label %133

133:                                              ; preds = %129, %131, %121
  %.pn62.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn73, %131 ], [ %.pn62, %129 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %196

134:                                              ; preds = %117
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  invoke void @_ZN3JPH17MeshShapeSettingsC1ERKNS_5ArrayINS_8TriangleENS_12STLAllocatorIS2_EEEENS1_INS_8RefConstINS_15PhysicsMaterialEEENS3_ISA_EEEE(ptr noundef nonnull align 8 dereferenceable(152) %120, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull %16)
          to label %135 unwind label %182

135:                                              ; preds = %134
  %136 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %137 unwind label %.thread80

137:                                              ; preds = %135
  %138 = extractvalue { double, double } %136, 0
  %139 = extractvalue { double, double } %136, 1
  %140 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %141 unwind label %.thread80

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

145:                                              ; preds = %141
  %146 = extractvalue { double, double } %144, 0
  %147 = extractvalue { double, double } %144, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %15, ptr noundef nonnull %120, double %138, double %139, double %146, double %147, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %148 unwind label %.thread80

148:                                              ; preds = %145
  %149 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 16 dereferenceable(256) %15, i32 noundef 1)
          to label %150 unwind label %.thread77

150:                                              ; preds = %148
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %151 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %152 unwind label %184

152:                                              ; preds = %150
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef 2.000000e+00, float noundef 2.000000e+00, float noundef 2.000000e+00)
          to label %153 unwind label %186

153:                                              ; preds = %152
  %154 = invoke noundef ptr @_ZN3JPH21PhysicsMaterialSimplenwEm(i64 noundef 64)
          to label %155 unwind label %186

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.2) #9
  %.sroa.05.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !18
  invoke void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60) %154, ptr noundef nonnull align 8 dereferenceable(16) %19, i32 %.sroa.05.0.copyload, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %156 unwind label %188

156:                                              ; preds = %155
  %157 = load double, ptr %18, align 16
  %158 = getelementptr inbounds i8, ptr %18, i64 8
  %159 = load double, ptr %158, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %151, double %157, double %159, float noundef 0x3FA99999A0000000, ptr noundef nonnull %154)
          to label %160 unwind label %.thread96

.thread96:                                        ; preds = %156
  %lpad.thr_comm8598 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %.thread92

160:                                              ; preds = %156
  invoke void @_ZN3JPH3RefINS_8BoxShapeEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull %151)
          to label %161 unwind label %189

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  %162 = load ptr, ptr %118, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %20) #9
  %163 = call noundef ptr @_ZNK3JPH3RefINS_8BoxShapeEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0.000000e+00, float noundef 6.000000e+01, float noundef -7.500000e+01)
          to label %164 unwind label %190

164:                                              ; preds = %161
  %165 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %166 unwind label %190

166:                                              ; preds = %164
  %167 = extractvalue { double, double } %165, 0
  %168 = extractvalue { double, double } %165, 1
  %169 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %167, double %168, float noundef 0x3FE41B2F80000000)
          to label %170 unwind label %190

170:                                              ; preds = %166
  %171 = extractvalue { double, double } %169, 0
  %172 = extractvalue { double, double } %169, 1
  %173 = load double, ptr %21, align 16
  %174 = getelementptr inbounds i8, ptr %21, i64 8
  %175 = load double, ptr %174, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %20, ptr noundef %163, double %173, double %175, double %171, double %172, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %176 unwind label %190

176:                                              ; preds = %170
  %177 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 16 dereferenceable(256) %20, i32 noundef 0)
          to label %178 unwind label %192

178:                                              ; preds = %176
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %20) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #9
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  ret void

179:                                              ; preds = %117
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

.thread77:                                        ; preds = %148
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #9
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  br label %183

.thread80:                                        ; preds = %145, %141, %137, %135
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  br label %183

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

183:                                              ; preds = %.thread80, %.thread77, %182, %179
  %.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %182 ], [ %180, %179 ], [ %181, %.thread77 ], [ %lpad.thr_comm, %.thread80 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #9
  br label %196

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

186:                                              ; preds = %153, %152
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %.thread92

188:                                              ; preds = %155
  %lpad.thr_comm.split-lp86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @_ZN3JPH21PhysicsMaterialSimpledlEPv(ptr noundef %154) #9
  br label %.thread92

189:                                              ; preds = %160
  %lpad.thr_comm85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %195

.thread92:                                        ; preds = %186, %188, %.thread96
  %.pn5795 = phi { ptr, i32 } [ %lpad.thr_comm8598, %.thread96 ], [ %187, %186 ], [ %lpad.thr_comm.split-lp86, %188 ]
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %151) #9
  br label %195

190:                                              ; preds = %170, %166, %164, %161
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %194

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

194:                                              ; preds = %192, %190
  %.pn59 = phi { ptr, i32 } [ %193, %192 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %20) #9
  call void @_ZN3JPH3RefINS_8BoxShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br label %195

195:                                              ; preds = %189, %.thread92, %194, %184
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %194 ], [ %.pn5795, %.thread92 ], [ %lpad.thr_comm85, %189 ], [ %185, %184 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br label %196

196:                                              ; preds = %195, %183, %133
  %.pn62.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn, %133 ], [ %.pn59.pn, %195 ], [ %.pn.pn, %183 ]
  call void @_ZN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br label %197

197:                                              ; preds = %196, %40
  %.pn68.pn = phi { ptr, i32 } [ %.pn68, %40 ], [ %.pn62.pn.pn.pn.pn, %196 ]
  call void @_ZN3JPH5ArrayINS_8TriangleENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn68.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: 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 #3 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 #3 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 #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ConvertToStringIfEENSt7__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 #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23FrictionPerTriangleTest10MyMaterialC2ERKSt17basic_string_viewIcSt11char_traitsIcEEN3JPH5ColorEff(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(16), i32, float noundef, float noundef) 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 #3 align 2

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

; 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 #6 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 #5

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17MeshShapeSettingsdlEPv(ptr noundef) local_unnamed_addr #7 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 #8 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 #3 align 2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress 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 #8 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"_ZTS4Test", !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !13, i64 56}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_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", !11, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !11, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !6, i64 0, !15, i64 8}
!18 = !{!7, !7, i64 0}


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