; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/SoftBody/SoftBodyFrictionTest.ll (ZN20SoftBodyFrictionTest10InitializeEv)

; 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::Ref" = type { ptr }
%"struct.JPH::SoftBodySharedSettings::VertexAttributes" = type { float, float, float, i32, float }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.41", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.41" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.44 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.44 = type { i64, [8 x i8] }
%"class.JPH::SoftBodySharedSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Array", %"class.JPH::Array.8", %"class.JPH::Array.11", %"class.JPH::Array.14", %"class.JPH::Array.17", %"class.JPH::Array.20", %"class.JPH::Array.23", %"class.JPH::Array.26", %"class.JPH::Array.29", float, %"class.JPH::Array.32", %"class.JPH::Array.35", %"class.JPH::Array.38" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.8" = type { i64, i64, ptr }
%"class.JPH::Array.11" = type { i64, i64, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Array.17" = type { i64, i64, ptr }
%"class.JPH::Array.20" = type { i64, i64, ptr }
%"class.JPH::Array.23" = type { i64, i64, ptr }
%"class.JPH::Array.26" = type { i64, i64, ptr }
%"class.JPH::Array.29" = type { i64, i64, ptr }
%"class.JPH::Array.32" = type { i64, i64, ptr }
%"class.JPH::Array.35" = type { i64, i64, ptr }
%"class.JPH::Array.38" = type { i64, i64, ptr }
%"struct.JPH::SoftBodySharedSettings::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", float }
%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 [15 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20SoftBodyFrictionTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.JPH::Ref", align 8
  %5 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.JPH::Float3", align 4
  %13 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Quat", align 16
  %16 = alloca i32, align 4
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::BodyID", align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.JPH::Ref", align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.JPH::Float3", align 4
  %26 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Quat", align 16
  %29 = alloca i32, align 4
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::BodyID", align 4
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %33 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %34 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %33, float noundef 2.000000e+02)
  store ptr %34, ptr %3, align 8, !tbaa !5
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %35, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.start.p0(i64 20, ptr %5) #10
  call void @_ZN3JPH22SoftBodySharedSettings16VertexAttributesC2EfffNS0_8ELRATypeEf(ptr noundef nonnull align 4 dereferenceable(20) %5, float noundef 0x3F1A36E2E0000000, float noundef 0x3F1A36E2E0000000, float noundef 0x3F50624DE0000000, i32 noundef 0, float noundef 1.000000e+00)
  call void @_ZN15SoftBodyCreator12CreateSphereEfjjN3JPH22SoftBodySharedSettings9EBendTypeERKNS1_16VertexAttributesE(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8 %4, float noundef 1.000000e+00, i32 noundef 10, i32 noundef 20, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(20) %5)
  call void @llvm.lifetime.end.p0(i64 20, ptr %5) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %36 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %37 unwind label %50

37:                                               ; preds = %1
  %38 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %36, i32 0, i32 1
  store ptr %38, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %41 unwind label %54

41:                                               ; preds = %37
  store ptr %40, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %44 unwind label %58

44:                                               ; preds = %41
  store ptr %43, ptr %10, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %67, %44
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = icmp ne ptr %46, %47
  br i1 %48, label %62, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  br label %77

50:                                               ; preds = %1
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %76

54:                                               ; preds = %37
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %75

58:                                               ; preds = %41
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %74

62:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %63, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #10
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+01)
          to label %64 unwind label %70

64:                                               ; preds = %62
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %65, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %67

67:                                               ; preds = %64
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %68, i32 1
  store ptr %69, ptr %9, align 8, !tbaa !5
  br label %45

70:                                               ; preds = %62
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %74

74:                                               ; preds = %70, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %75

75:                                               ; preds = %74, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  br label %76

76:                                               ; preds = %75, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  br label %289

77:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 112, ptr %13) #10
  %78 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %79 unwind label %111

79:                                               ; preds = %77
  %80 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %81 unwind label %111

81:                                               ; preds = %79
  %82 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %83 = getelementptr inbounds %union.anon, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %85 = extractvalue { double, double } %80, 0
  store double %85, ptr %84, align 16
  %86 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %87 = extractvalue { double, double } %80, 1
  store double %87, ptr %86, align 8
  %88 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %89 unwind label %111

89:                                               ; preds = %81
  %90 = getelementptr inbounds %"class.JPH::Quat", ptr %15, i32 0, i32 0
  %91 = getelementptr inbounds %"class.JPH::Vec4", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon.4, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %94 = extractvalue { double, double } %88, 0
  store double %94, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %96 = extractvalue { double, double } %88, 1
  store double %96, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %102 = load double, ptr %101, align 16
  %103 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %104 = load double, ptr %103, align 8
  invoke void @_ZN3JPH24SoftBodyCreationSettingsC2EPKNS_22SoftBodySharedSettingsENS_4Vec3ENS_4QuatEt(ptr noundef nonnull align 16 dereferenceable(111) %13, ptr noundef %78, double %98, double %100, double %102, double %104, i16 noundef zeroext 1)
          to label %105 unwind label %111

105:                                              ; preds = %89
  %106 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %13, i32 0, i32 13
  store float 2.000000e+03, ptr %106, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !24
  br label %107

107:                                              ; preds = %135, %105
  %108 = load i32, ptr %16, align 4, !tbaa !24
  %109 = icmp sle i32 %108, 10
  br i1 %109, label %115, label %110

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %157

111:                                              ; preds = %89, %81, %79, %77
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  br label %288

115:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #10
  %116 = load i32, ptr %16, align 4, !tbaa !24
  %117 = sitofp i32 %116 to float
  %118 = call float @llvm.fmuladd.f32(float %117, float 1.000000e+01, float -5.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef %118, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %119 unwind label %138

119:                                              ; preds = %115
  %120 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %13, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %120, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  %121 = load i32, ptr %16, align 4, !tbaa !24
  %122 = sitofp i32 %121 to float
  %123 = fmul float 0x3FB99999A0000000, %122
  %124 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %13, i32 0, i32 12
  store float %123, ptr %124, align 16, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %125 = getelementptr inbounds %class.Test, ptr %33, i32 0, i32 3
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = invoke i32 @_ZN3JPH13BodyInterface20CreateAndAddSoftBodyERKNS_24SoftBodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 16 dereferenceable(111) %13, i32 noundef 0)
          to label %128 unwind label %142

128:                                              ; preds = %119
  %129 = getelementptr inbounds %"class.JPH::BodyID", ptr %18, i32 0, i32 0
  store i32 %127, ptr %129, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #10
  %130 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %13, i32 0, i32 12
  %131 = load float, ptr %130, align 16, !tbaa !27
  %132 = fpext float %131 to double
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef @.str.1, double noundef %132)
          to label %133 unwind label %146

133:                                              ; preds = %128
  invoke void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112) %33, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %134 unwind label %150

134:                                              ; preds = %133
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %16, align 4, !tbaa !24
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %16, align 4, !tbaa !24
  br label %107, !llvm.loop !34

138:                                              ; preds = %115
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  br label %156

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

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

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

154:                                              ; preds = %150, %146
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  br label %155

155:                                              ; preds = %154, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %156

156:                                              ; preds = %155, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %287

157:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  invoke void @_ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8 %20, i32 noundef 5, float noundef 5.000000e-01)
          to label %158 unwind label %173

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %159 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %160 unwind label %177

160:                                              ; preds = %158
  %161 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %159, i32 0, i32 1
  store ptr %161, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %162)
          to label %164 unwind label %181

164:                                              ; preds = %160
  store ptr %163, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %165 = load ptr, ptr %21, align 8, !tbaa !5
  %166 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %165)
          to label %167 unwind label %185

167:                                              ; preds = %164
  store ptr %166, ptr %23, align 8, !tbaa !5
  br label %168

168:                                              ; preds = %194, %167
  %169 = load ptr, ptr %22, align 8, !tbaa !5
  %170 = load ptr, ptr %23, align 8, !tbaa !5
  %171 = icmp ne ptr %169, %170
  br i1 %171, label %189, label %172

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %204

173:                                              ; preds = %157
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %7, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %8, align 4
  br label %286

177:                                              ; preds = %158
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  br label %203

181:                                              ; preds = %160
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %7, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %8, align 4
  br label %202

185:                                              ; preds = %164
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  br label %201

189:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %190, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #10
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %25, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+01)
          to label %191 unwind label %197

191:                                              ; preds = %189
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %192, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %194

194:                                              ; preds = %191
  %195 = load ptr, ptr %22, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %195, i32 1
  store ptr %196, ptr %22, align 8, !tbaa !5
  br label %168

197:                                              ; preds = %189
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %7, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %201

201:                                              ; preds = %197, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %202

202:                                              ; preds = %201, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %203

203:                                              ; preds = %202, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %285

204:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 112, ptr %26) #10
  %205 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %206 unwind label %237

206:                                              ; preds = %204
  %207 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %208 unwind label %237

208:                                              ; preds = %206
  %209 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %210 = getelementptr inbounds %union.anon, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 0
  %212 = extractvalue { double, double } %207, 0
  store double %212, ptr %211, align 16
  %213 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 1
  %214 = extractvalue { double, double } %207, 1
  store double %214, ptr %213, align 8
  %215 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %216 unwind label %237

216:                                              ; preds = %208
  %217 = getelementptr inbounds %"class.JPH::Quat", ptr %28, i32 0, i32 0
  %218 = getelementptr inbounds %"class.JPH::Vec4", ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds %union.anon.4, ptr %218, i32 0, i32 0
  %220 = getelementptr inbounds { double, double }, ptr %219, i32 0, i32 0
  %221 = extractvalue { double, double } %215, 0
  store double %221, ptr %220, align 16
  %222 = getelementptr inbounds { double, double }, ptr %219, i32 0, i32 1
  %223 = extractvalue { double, double } %215, 1
  store double %223, ptr %222, align 8
  %224 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %225 = load double, ptr %224, align 16
  %226 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %227 = load double, ptr %226, align 8
  %228 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %229 = load double, ptr %228, align 16
  %230 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %231 = load double, ptr %230, align 8
  invoke void @_ZN3JPH24SoftBodyCreationSettingsC2EPKNS_22SoftBodySharedSettingsENS_4Vec3ENS_4QuatEt(ptr noundef nonnull align 16 dereferenceable(111) %26, ptr noundef %205, double %225, double %227, double %229, double %231, i16 noundef zeroext 1)
          to label %232 unwind label %237

232:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 0, ptr %29, align 4, !tbaa !24
  br label %233

233:                                              ; preds = %261, %232
  %234 = load i32, ptr %29, align 4, !tbaa !24
  %235 = icmp sle i32 %234, 10
  br i1 %235, label %241, label %236

236:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %283

237:                                              ; preds = %216, %208, %206, %204
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %7, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %8, align 4
  br label %284

241:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #10
  %242 = load i32, ptr %29, align 4, !tbaa !24
  %243 = sitofp i32 %242 to float
  %244 = call float @llvm.fmuladd.f32(float %243, float 1.000000e+01, float -5.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef %244, float noundef 1.000000e+00, float noundef -5.000000e+00)
          to label %245 unwind label %264

245:                                              ; preds = %241
  %246 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %26, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %246, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  %247 = load i32, ptr %29, align 4, !tbaa !24
  %248 = sitofp i32 %247 to float
  %249 = fmul float 0x3FB99999A0000000, %248
  %250 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %26, i32 0, i32 12
  store float %249, ptr %250, align 16, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  %251 = getelementptr inbounds %class.Test, ptr %33, i32 0, i32 3
  %252 = load ptr, ptr %251, align 8, !tbaa !28
  %253 = invoke i32 @_ZN3JPH13BodyInterface20CreateAndAddSoftBodyERKNS_24SoftBodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %252, ptr noundef nonnull align 16 dereferenceable(111) %26, i32 noundef 0)
          to label %254 unwind label %268

254:                                              ; preds = %245
  %255 = getelementptr inbounds %"class.JPH::BodyID", ptr %31, i32 0, i32 0
  store i32 %253, ptr %255, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #10
  %256 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %26, i32 0, i32 12
  %257 = load float, ptr %256, align 16, !tbaa !27
  %258 = fpext float %257 to double
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef @.str.1, double noundef %258)
          to label %259 unwind label %272

259:                                              ; preds = %254
  invoke void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112) %33, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %260 unwind label %276

260:                                              ; preds = %259
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %29, align 4, !tbaa !24
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %29, align 4, !tbaa !24
  br label %233, !llvm.loop !36

264:                                              ; preds = %241
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %7, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  br label %282

268:                                              ; preds = %245
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %7, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %8, align 4
  br label %281

272:                                              ; preds = %254
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %7, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %8, align 4
  br label %280

276:                                              ; preds = %259
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %7, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  br label %280

280:                                              ; preds = %276, %272
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #10
  br label %281

281:                                              ; preds = %280, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %282

282:                                              ; preds = %281, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %26) #10
  br label %284

283:                                              ; preds = %236
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %26) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %26) #10
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %13) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #10
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

284:                                              ; preds = %282, %237
  call void @llvm.lifetime.end.p0(i64 112, ptr %26) #10
  br label %285

285:                                              ; preds = %284, %203
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #10
  br label %286

286:                                              ; preds = %285, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %287

287:                                              ; preds = %286, %156
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %13) #10
  br label %288

288:                                              ; preds = %287, %111
  call void @llvm.lifetime.end.p0(i64 112, ptr %13) #10
  br label %289

289:                                              ; preds = %288, %76
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %290

290:                                              ; preds = %289
  %291 = load ptr, ptr %7, align 8
  %292 = load i32, ptr %8, align 4
  %293 = insertvalue { ptr, i32 } poison, ptr %291, 0
  %294 = insertvalue { ptr, i32 } %293, i32 %292, 1
  resume { ptr, i32 } %294
}

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122), float noundef) #3 align 2

declare void @_ZN15SoftBodyCreator12CreateSphereEfjjN3JPH22SoftBodySharedSettings9EBendTypeERKNS1_16VertexAttributesE(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8, float noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(20)) #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 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 #3 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) #5

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) #2

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

declare void @_ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8, i32 noundef, float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111)) unnamed_addr #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { alwaysinline mustprogress nounwind 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 #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 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 100}
!13 = !{!"_ZTSN3JPH24SoftBodyCreationSettingsE", !14, i64 0, !15, i64 16, !16, i64 32, !18, i64 48, !19, i64 56, !20, i64 64, !22, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !23, i64 108, !23, i64 109, !23, i64 110}
!14 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !6, i64 0}
!15 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!16 = !{!"_ZTSN3JPH4QuatE", !17, i64 0}
!17 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTSN3JPH14CollisionGroupE", !21, i64 0, !22, i64 8, !22, i64 12}
!21 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!22, !22, i64 0}
!25 = !{i64 0, i64 16, !26}
!26 = !{!7, !7, i64 0}
!27 = !{!13, !11, i64 96}
!28 = !{!29, !6, i64 24}
!29 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !23, i64 48, !30, i64 56}
!30 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !31, i64 0}
!31 = !{!"_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, !18, i64 8, !32, i64 16, !18, i64 24, !33, i64 32, !6, i64 48}
!32 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!33 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !18, i64 8}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


; 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::Ref" = type { ptr }
%"struct.JPH::SoftBodySharedSettings::VertexAttributes" = type { float, float, float, i32, float }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.41", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.41" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.44 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.44 = type { i64, [8 x i8] }

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20SoftBodyFrictionTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref", align 8
  %3 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %4 = alloca %"class.JPH::Float3", align 4
  %5 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::BodyID", align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.JPH::Ref", align 8
  %10 = alloca %"class.JPH::Float3", align 4
  %11 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::BodyID", align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  tail call void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122) %15, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #10
  call void @_ZN3JPH22SoftBodySharedSettings16VertexAttributesC2EfffNS0_8ELRATypeEf(ptr noundef nonnull align 4 dereferenceable(20) %3, float noundef 0x3F1A36E2E0000000, float noundef 0x3F1A36E2E0000000, float noundef 0x3F50624DE0000000, i32 noundef 0, float noundef 1.000000e+00)
  call void @_ZN15SoftBodyCreator12CreateSphereEfjjN3JPH22SoftBodySharedSettings9EBendTypeERKNS1_16VertexAttributesE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref") align 8 %2, float noundef 1.000000e+00, i32 noundef 10, i32 noundef 20, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(20) %3)
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #10
  %16 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %19 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %.not53 = icmp eq ptr %18, %19
  br i1 %.not53, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %5) #10
  %20 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %21 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %24 unwind label %37

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.04054 = phi ptr [ %23, %.lr.ph ], [ %18, %1 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #10
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+01)
  %22 = getelementptr inbounds i8, ptr %.04054, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #10
  %23 = getelementptr inbounds i8, ptr %.04054, i64 28
  %.not = icmp eq ptr %23, %19
  br i1 %.not, label %._crit_edge, label %.lr.ph

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

26:                                               ; preds = %24
  %27 = extractvalue { double, double } %21, 1
  %28 = extractvalue { double, double } %21, 0
  %29 = extractvalue { double, double } %25, 0
  %30 = extractvalue { double, double } %25, 1
  invoke void @_ZN3JPH24SoftBodyCreationSettingsC2EPKNS_22SoftBodySharedSettingsENS_4Vec3ENS_4QuatEt(ptr noundef nonnull align 16 dereferenceable(111) %5, ptr noundef %20, double %28, double %27, double %29, double %30, i16 noundef zeroext 1)
          to label %31 unwind label %37

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %5, i64 100
  store float 2.000000e+03, ptr %32, align 4, !tbaa !10
  %33 = getelementptr inbounds i8, ptr %5, i64 16
  %34 = getelementptr inbounds i8, ptr %5, i64 96
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  br label %39

36:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  invoke void @_ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref") align 8 %9, i32 noundef 5, float noundef 5.000000e-01)
          to label %59 unwind label %66

37:                                               ; preds = %26, %24, %._crit_edge
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %105

39:                                               ; preds = %31, %49
  %.04155 = phi i32 [ 0, %31 ], [ %50, %49 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %40 = uitofp nneg i32 %.04155 to float
  %41 = call float @llvm.fmuladd.f32(float %40, float 1.000000e+01, float -5.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %41, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  %42 = fmul float %40, 0x3FB99999A0000000
  store float %42, ptr %34, align 16, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #10
  %43 = load ptr, ptr %35, align 8, !tbaa !26
  %44 = invoke i32 @_ZN3JPH13BodyInterface20CreateAndAddSoftBodyERKNS_24SoftBodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 16 dereferenceable(111) %5, i32 noundef 0)
          to label %45 unwind label %51

45:                                               ; preds = %39
  store i32 %44, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  %46 = load float, ptr %34, align 16, !tbaa !25
  %47 = fpext float %46 to double
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.1, double noundef %47)
          to label %48 unwind label %53

48:                                               ; preds = %45
  invoke void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %49 unwind label %55

49:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  %50 = add nuw nsw i32 %.04155, 1
  %exitcond.not = icmp eq i32 %50, 11
  br i1 %exitcond.not, label %36, label %39, !llvm.loop !32

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %58

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %48
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %57

57:                                               ; preds = %55, %53
  %.pn48 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  br label %58

58:                                               ; preds = %57, %51
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %57 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  br label %104

59:                                               ; preds = %36
  %60 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %63 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %.not4356 = icmp eq ptr %62, %63
  br i1 %.not4356, label %._crit_edge60, label %.lr.ph59

._crit_edge60:                                    ; preds = %.lr.ph59, %59
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %11) #10
  %64 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %65 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %70 unwind label %80

66:                                               ; preds = %36
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %103

.lr.ph59:                                         ; preds = %59, %.lr.ph59
  %.04257 = phi ptr [ %69, %.lr.ph59 ], [ %62, %59 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #10
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+01)
  %68 = getelementptr inbounds i8, ptr %.04257, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %68, ptr noundef nonnull align 4 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #10
  %69 = getelementptr inbounds i8, ptr %.04257, i64 28
  %.not43 = icmp eq ptr %69, %63
  br i1 %.not43, label %._crit_edge60, label %.lr.ph59

70:                                               ; preds = %._crit_edge60
  %71 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %72 unwind label %80

72:                                               ; preds = %70
  %73 = extractvalue { double, double } %65, 1
  %74 = extractvalue { double, double } %65, 0
  %75 = extractvalue { double, double } %71, 0
  %76 = extractvalue { double, double } %71, 1
  invoke void @_ZN3JPH24SoftBodyCreationSettingsC2EPKNS_22SoftBodySharedSettingsENS_4Vec3ENS_4QuatEt(ptr noundef nonnull align 16 dereferenceable(111) %11, ptr noundef %64, double %74, double %73, double %75, double %76, i16 noundef zeroext 1)
          to label %.preheader unwind label %80

.preheader:                                       ; preds = %72
  %77 = getelementptr inbounds i8, ptr %11, i64 16
  %78 = getelementptr inbounds i8, ptr %11, i64 96
  br label %82

79:                                               ; preds = %92
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %11) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %11) #10
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %5) #10
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #10
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  ret void

80:                                               ; preds = %72, %70, %._crit_edge60
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %102

82:                                               ; preds = %.preheader, %92
  %.061 = phi i32 [ 0, %.preheader ], [ %93, %92 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  %83 = uitofp nneg i32 %.061 to float
  %84 = call float @llvm.fmuladd.f32(float %83, float 1.000000e+01, float -5.000000e+01)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %12, float noundef %84, float noundef 1.000000e+00, float noundef -5.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %77, ptr noundef nonnull align 16 dereferenceable(16) %12, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  %85 = fmul float %83, 0x3FB99999A0000000
  store float %85, ptr %78, align 16, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #10
  %86 = load ptr, ptr %35, align 8, !tbaa !26
  %87 = invoke i32 @_ZN3JPH13BodyInterface20CreateAndAddSoftBodyERKNS_24SoftBodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 16 dereferenceable(111) %11, i32 noundef 0)
          to label %88 unwind label %94

88:                                               ; preds = %82
  store i32 %87, ptr %13, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #10
  %89 = load float, ptr %78, align 16, !tbaa !25
  %90 = fpext float %89 to double
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull @.str.1, double noundef %90)
          to label %91 unwind label %96

91:                                               ; preds = %88
  invoke void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %92 unwind label %98

92:                                               ; preds = %91
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  %93 = add nuw nsw i32 %.061, 1
  %exitcond62.not = icmp eq i32 %93, 11
  br i1 %exitcond62.not, label %79, label %82, !llvm.loop !34

94:                                               ; preds = %82
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %101

96:                                               ; preds = %88
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %91
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  br label %100

100:                                              ; preds = %98, %96
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #10
  br label %101

101:                                              ; preds = %100, %94
  %.pn.pn = phi { ptr, i32 } [ %.pn, %100 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %11) #10
  br label %102

102:                                              ; preds = %101, %80
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %101 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %11) #10
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  br label %103

103:                                              ; preds = %102, %66
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %102 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %104

104:                                              ; preds = %103, %58
  %.pn48.pn.pn = phi { ptr, i32 } [ %.pn48.pn, %58 ], [ %.pn.pn.pn.pn, %103 ]
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %5) #10
  br label %105

105:                                              ; preds = %104, %37
  %.pn48.pn.pn.pn = phi { ptr, i32 } [ %.pn48.pn.pn, %104 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %5) #10
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn48.pn.pn.pn
}

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Body11SetFrictionEf(ptr noundef nonnull align 16 dereferenceable(122), float noundef) local_unnamed_addr #3 align 2

declare void @_ZN15SoftBodyCreator12CreateSphereEfjjN3JPH22SoftBodySharedSettings9EBendTypeERKNS1_16VertexAttributesE(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8, float noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 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 #3 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Test12SetBodyLabelERKN3JPH6BodyIDERKNSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) local_unnamed_addr #2

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

declare void @_ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8, i32 noundef, float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { alwaysinline mustprogress nounwind 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 #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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 100}
!11 = !{!"_ZTSN3JPH24SoftBodyCreationSettingsE", !12, i64 0, !14, i64 16, !15, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !21, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !22, i64 108, !22, i64 109, !22, i64 110}
!12 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!15 = !{!"_ZTSN3JPH4QuatE", !16, i64 0}
!16 = !{!"_ZTSN3JPH4Vec4E", !8, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = !{!"_ZTSN3JPH14CollisionGroupE", !20, i64 0, !21, i64 8, !21, i64 12}
!20 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !13, i64 0}
!21 = !{!"int", !8, i64 0}
!22 = !{!"bool", !8, i64 0}
!23 = !{i64 0, i64 16, !24}
!24 = !{!8, !8, i64 0}
!25 = !{!11, !7, i64 96}
!26 = !{!27, !13, i64 24}
!27 = !{!"_ZTS4Test", !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !22, i64 48, !28, i64 56}
!28 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !29, i64 0}
!29 = !{!"_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", !13, i64 0, !17, i64 8, !30, i64 16, !17, i64 24, !31, i64 32, !13, i64 48}
!30 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!31 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !7, i64 0, !17, i64 8}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


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