; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/SoftBody (SoftBodySkinnedConstraintTest)

; 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::Array" = type { i64, i64, ptr }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%class.anon.21 = type { i8 }
%"class.JPH::Ref" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.24" = type { %"class.std::_Function_base", ptr }
%class.anon.27 = type { i8 }
%"struct.JPH::SoftBodySharedSettings::VertexAttributes" = type { float, float, float, i32, float }
%"class.JPH::SoftBodySharedSettings::InvBind" = type { i32, %"class.JPH::Mat44" }
%class.anon.67 = type { i8 }
%"class.JPH::SoftBodySharedSettings::Skinned" = type { i32, [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], float, float, float, i32 }
%"class.JPH::SoftBodySharedSettings::SkinWeight" = type { i32, float }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.6", [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.6" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::SoftBodySharedSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Array.31", %"class.JPH::Array.34", %"class.JPH::Array.37", %"class.JPH::Array.40", %"class.JPH::Array.43", %"class.JPH::Array.46", %"class.JPH::Array.49", %"class.JPH::Array.52", %"class.JPH::Array.55", float, %"class.JPH::Array.58", %"class.JPH::Array.61", %"class.JPH::Array.64" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic.29" }
%"struct.std::atomic.29" = type { %"struct.std::__atomic_base.30" }
%"struct.std::__atomic_base.30" = type { i32 }
%"class.JPH::Array.31" = type { i64, i64, ptr }
%"class.JPH::Array.34" = type { i64, i64, ptr }
%"class.JPH::Array.37" = type { i64, i64, ptr }
%"class.JPH::Array.40" = type { i64, i64, ptr }
%"class.JPH::Array.43" = type { i64, i64, ptr }
%"class.JPH::Array.46" = type { i64, i64, ptr }
%"class.JPH::Array.49" = type { i64, i64, ptr }
%"class.JPH::Array.52" = type { i64, i64, ptr }
%"class.JPH::Array.55" = type { i64, i64, ptr }
%"class.JPH::Array.58" = type { i64, i64, ptr }
%"class.JPH::Array.61" = type { i64, i64, ptr }
%"class.JPH::Array.64" = type { i64, i64, ptr }
%"struct.JPH::SoftBodySharedSettings::Edge" = type { [2 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", float }
%"class.JPH::Float3" = type { float, float, 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 }
%class.SoftBodySkinnedConstraintTest = type <{ %class.Test, ptr, float, [4 x i8] }>

; 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
declare dso_local void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array") align 8, ptr noundef nonnull align 8 dereferenceable(124), float noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #2 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124), i1 noundef zeroext) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN29SoftBodySkinnedConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(124) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %class.anon.21, align 1
  %5 = alloca %"class.JPH::Ref", align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %"class.std::function.24", align 8
  %8 = alloca %class.anon.27, align 1
  %9 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.JPH::Array", align 8
  %17 = alloca %"class.JPH::Mat44", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca i32, align 4
  %25 = alloca %"class.JPH::SoftBodySharedSettings::InvBind", align 16
  %26 = alloca %"class.JPH::Mat44", align 16
  %27 = alloca %class.anon.67, align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.JPH::SoftBodySharedSettings::Skinned", align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  %38 = alloca float, align 4
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::SoftBodySharedSettings::SkinWeight", align 4
  %41 = alloca %"class.JPH::SoftBodySharedSettings::SkinWeight", align 4
  %42 = alloca %"class.JPH::SoftBodySharedSettings::SkinWeight", align 4
  %43 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Quat", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %46 = load ptr, ptr %2, align 8
  %47 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %46, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #11
  call void @"_ZNSt8functionIFfjjEEC2IRZN29SoftBodySkinnedConstraintTest10InitializeEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) %4) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #11
  call void @"_ZNSt8functionIFN3JPH4Vec3EjjEEC2IN15SoftBodyCreator3$_1EvEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 1 dereferenceable(1) %8) #11
  call void @llvm.lifetime.start.p0(i64 20, ptr %9) #11
  invoke void @_ZN3JPH22SoftBodySharedSettings16VertexAttributesC2EfffNS0_8ELRATypeEf(ptr noundef nonnull align 4 dereferenceable(20) %9, float noundef 0x3EE4F8B580000000, float noundef 0x3EE4F8B580000000, float noundef 0x3EE4F8B580000000, i32 noundef 0, float noundef 1.000000e+00)
          to label %48 unwind label %64

48:                                               ; preds = %1
  invoke void @_ZN15SoftBodyCreator11CreateClothEjjfRKSt8functionIFfjjEERKS0_IFN3JPH4Vec3EjjEENS5_22SoftBodySharedSettings9EBendTypeERKNSB_16VertexAttributesE(ptr dead_on_unwind writable sret(%"class.JPH::Ref") align 8 %5, i32 noundef 10, i32 noundef 50, float noundef 5.000000e-01, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(20) %9)
          to label %49 unwind label %64

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %50 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %51 unwind label %68

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %50, i32 0, i32 3
  store ptr %52, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %55 unwind label %72

55:                                               ; preds = %51
  store ptr %54, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %58 unwind label %76

58:                                               ; preds = %55
  store ptr %57, ptr %14, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %84, %58
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = icmp ne ptr %60, %61
  br i1 %62, label %80, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  br label %89

64:                                               ; preds = %48, %1
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %10, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #11
  br label %382

68:                                               ; preds = %49
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %10, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %11, align 4
  br label %88

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

76:                                               ; preds = %55
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %10, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  br label %87

80:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %81, ptr %15, align 8, !tbaa !5
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %82, i32 0, i32 2
  store float 0x3F50624DE0000000, ptr %83, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  br label %84

84:                                               ; preds = %80
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %85, i32 1
  store ptr %86, ptr %13, align 8, !tbaa !5
  br label %59

87:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  br label %88

88:                                               ; preds = %87, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  br label %381

89:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #11
  invoke void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind writable sret(%"class.JPH::Array") align 8 %16, ptr noundef nonnull align 8 dereferenceable(124) %46, float noundef 0.000000e+00)
          to label %90 unwind label %115

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #11
  %91 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %3)
          to label %92 unwind label %119

92:                                               ; preds = %90
  %93 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon.4, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %91, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %91, 1
  store double %98, ptr %97, align 8
  %99 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %100 = load double, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %17, double %100, double %102)
          to label %103 unwind label %119

103:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  store ptr %16, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = invoke noundef ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
          to label %106 unwind label %123

106:                                              ; preds = %103
  store ptr %105, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = invoke noundef ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107)
          to label %109 unwind label %127

109:                                              ; preds = %106
  store ptr %108, ptr %21, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %136, %109
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = icmp ne ptr %111, %112
  br i1 %113, label %131, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %145

115:                                              ; preds = %89
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %10, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %11, align 4
  br label %380

119:                                              ; preds = %92, %90
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %10, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %11, align 4
  br label %379

123:                                              ; preds = %103
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %10, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %11, align 4
  br label %144

127:                                              ; preds = %106
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %10, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %11, align 4
  br label %143

131:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #11
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %132, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #11
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %23, ptr noundef nonnull align 16 dereferenceable(64) %17, ptr noundef nonnull align 16 dereferenceable(64) %133)
          to label %134 unwind label %139

134:                                              ; preds = %131
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %135, ptr align 16 %23, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %136

136:                                              ; preds = %134
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.JPH::Mat44", ptr %137, i32 1
  store ptr %138, ptr %20, align 8, !tbaa !5
  br label %110

139:                                              ; preds = %131
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %10, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %143

143:                                              ; preds = %139, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  br label %144

144:                                              ; preds = %143, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %379

145:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #11
  store i32 0, ptr %24, align 4, !tbaa !14
  br label %146

146:                                              ; preds = %162, %145
  %147 = load i32, ptr %24, align 4, !tbaa !14
  %148 = icmp slt i32 %147, 11
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  br label %174

150:                                              ; preds = %146
  %151 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %152 unwind label %165

152:                                              ; preds = %150
  %153 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %151, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #11
  %154 = load i32, ptr %24, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #11
  %155 = load i32, ptr %24, align 4, !tbaa !14
  %156 = sext i32 %155 to i64
  %157 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %156)
          to label %158 unwind label %169

158:                                              ; preds = %152
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %26, ptr noundef nonnull align 16 dereferenceable(64) %157)
          to label %159 unwind label %169

159:                                              ; preds = %158
  invoke void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %25, i32 noundef %154, ptr noundef nonnull align 16 dereferenceable(64) %26)
          to label %160 unwind label %169

160:                                              ; preds = %159
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %153, ptr noundef nonnull align 16 dereferenceable(80) %25)
          to label %161 unwind label %169

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #11
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %24, align 4, !tbaa !14
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %24, align 4, !tbaa !14
  br label %146, !llvm.loop !16

165:                                              ; preds = %150
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %10, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %11, align 4
  br label %173

169:                                              ; preds = %160, %159, %158, %152
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %10, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #11
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  br label %379

174:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  store i32 0, ptr %28, align 4, !tbaa !14
  br label %175

175:                                              ; preds = %322, %174
  %176 = load i32, ptr %28, align 4, !tbaa !14
  %177 = icmp slt i32 %176, 50
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  store i32 9, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  br label %325

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #11
  store i32 0, ptr %30, align 4, !tbaa !14
  br label %180

180:                                              ; preds = %315, %179
  %181 = load i32, ptr %30, align 4, !tbaa !14
  %182 = icmp slt i32 %181, 10
  br i1 %182, label %184, label %183

183:                                              ; preds = %180
  store i32 12, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  br label %321

184:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  %185 = load i32, ptr %30, align 4, !tbaa !14
  %186 = load i32, ptr %28, align 4, !tbaa !14
  %187 = invoke noundef i32 @"_ZZN29SoftBodySkinnedConstraintTest10InitializeEvENK3$_1clEjj"(ptr noundef nonnull align 1 dereferenceable(1) %27, i32 noundef %185, i32 noundef %186)
          to label %188 unwind label %207

188:                                              ; preds = %184
  store i32 %187, ptr %31, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 52, ptr %32) #11
  %189 = load i32, ptr %31, align 4, !tbaa !14
  %190 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %191 unwind label %211

191:                                              ; preds = %188
  %192 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %190, i32 0, i32 1
  %193 = load i32, ptr %31, align 4, !tbaa !14
  %194 = zext i32 %193 to i64
  %195 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194)
          to label %196 unwind label %211

196:                                              ; preds = %191
  %197 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %195, i32 0, i32 2
  %198 = load float, ptr %197, align 4, !tbaa !18
  %199 = fcmp ogt float %198, 0.000000e+00
  %200 = zext i1 %199 to i64
  %201 = select i1 %199, float 2.000000e+00, float 0.000000e+00
  invoke void @_ZN3JPH22SoftBodySharedSettings7SkinnedC2Ejfff(ptr noundef nonnull align 4 dereferenceable(52) %32, i32 noundef %189, float noundef %201, float noundef 0x3FB99999A0000000, float noundef 4.000000e+01)
          to label %202 unwind label %211

202:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #11
  store i32 -1, ptr %33, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  store i32 -1, ptr %34, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  store float 0x47EFFFFFE0000000, ptr %35, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #11
  store float 0x47EFFFFFE0000000, ptr %36, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #11
  store i32 0, ptr %37, align 4, !tbaa !14
  br label %203

203:                                              ; preds = %268, %202
  %204 = load i32, ptr %37, align 4, !tbaa !14
  %205 = icmp slt i32 %204, 11
  br i1 %205, label %215, label %206

206:                                              ; preds = %203
  store i32 15, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %272

207:                                              ; preds = %184
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %10, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %11, align 4
  br label %320

211:                                              ; preds = %196, %191, %188
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %10, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %11, align 4
  br label %319

215:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  %216 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %217 unwind label %251

217:                                              ; preds = %215
  %218 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %216, i32 0, i32 1
  %219 = load i32, ptr %31, align 4, !tbaa !14
  %220 = zext i32 %219 to i64
  %221 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %218, i64 noundef %220)
          to label %222 unwind label %251

222:                                              ; preds = %217
  %223 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %221, i32 0, i32 0
  %224 = getelementptr inbounds %"class.JPH::Float3", ptr %223, i32 0, i32 2
  %225 = load float, ptr %224, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #11
  %226 = load i32, ptr %37, align 4, !tbaa !14
  %227 = sext i32 %226 to i64
  %228 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %227)
          to label %229 unwind label %255

229:                                              ; preds = %222
  %230 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %228)
          to label %231 unwind label %255

231:                                              ; preds = %229
  %232 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %233 = getelementptr inbounds %union.anon.4, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 0
  %235 = extractvalue { double, double } %230, 0
  store double %235, ptr %234, align 16
  %236 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 1
  %237 = extractvalue { double, double } %230, 1
  store double %237, ptr %236, align 8
  %238 = invoke noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %39)
          to label %239 unwind label %255

239:                                              ; preds = %231
  %240 = fsub float %225, %238
  %241 = invoke noundef float @_ZSt3absf(float noundef %240)
          to label %242 unwind label %255

242:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #11
  store float %241, ptr %38, align 4, !tbaa !21
  %243 = load float, ptr %38, align 4, !tbaa !21
  %244 = load float, ptr %35, align 4, !tbaa !21
  %245 = fcmp olt float %243, %244
  br i1 %245, label %246, label %259

246:                                              ; preds = %242
  %247 = load i32, ptr %33, align 4, !tbaa !14
  store i32 %247, ptr %34, align 4, !tbaa !14
  %248 = load float, ptr %35, align 4, !tbaa !21
  store float %248, ptr %36, align 4, !tbaa !21
  %249 = load i32, ptr %37, align 4, !tbaa !14
  store i32 %249, ptr %33, align 4, !tbaa !14
  %250 = load float, ptr %38, align 4, !tbaa !21
  store float %250, ptr %35, align 4, !tbaa !21
  br label %267

251:                                              ; preds = %217, %215
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %10, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %11, align 4
  br label %271

255:                                              ; preds = %239, %231, %229, %222
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %10, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #11
  br label %271

259:                                              ; preds = %242
  %260 = load float, ptr %38, align 4, !tbaa !21
  %261 = load float, ptr %36, align 4, !tbaa !21
  %262 = fcmp olt float %260, %261
  br i1 %262, label %263, label %266

263:                                              ; preds = %259
  %264 = load i32, ptr %37, align 4, !tbaa !14
  store i32 %264, ptr %34, align 4, !tbaa !14
  %265 = load float, ptr %38, align 4, !tbaa !21
  store float %265, ptr %36, align 4, !tbaa !21
  br label %266

266:                                              ; preds = %263, %259
  br label %267

267:                                              ; preds = %266, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %37, align 4, !tbaa !14
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %37, align 4, !tbaa !14
  br label %203, !llvm.loop !23

271:                                              ; preds = %255, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %318

272:                                              ; preds = %206
  %273 = load float, ptr %35, align 4, !tbaa !21
  %274 = fcmp oeq float %273, 0.000000e+00
  br i1 %274, label %275, label %284

275:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #11
  %276 = load i32, ptr %33, align 4, !tbaa !14
  invoke void @_ZN3JPH22SoftBodySharedSettings10SkinWeightC2Ejf(ptr noundef nonnull align 4 dereferenceable(8) %40, i32 noundef %276, float noundef 1.000000e+00)
          to label %277 unwind label %280

277:                                              ; preds = %275
  %278 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %32, i32 0, i32 1
  %279 = getelementptr inbounds [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], ptr %278, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %279, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %310

280:                                              ; preds = %275
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %10, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %318

284:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #11
  %285 = load i32, ptr %33, align 4, !tbaa !14
  %286 = load float, ptr %35, align 4, !tbaa !21
  %287 = fdiv float 1.000000e+00, %286
  invoke void @_ZN3JPH22SoftBodySharedSettings10SkinWeightC2Ejf(ptr noundef nonnull align 4 dereferenceable(8) %41, i32 noundef %285, float noundef %287)
          to label %288 unwind label %298

288:                                              ; preds = %284
  %289 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %32, i32 0, i32 1
  %290 = getelementptr inbounds [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], ptr %289, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %290, ptr align 4 %41, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  %291 = load i32, ptr %34, align 4, !tbaa !14
  %292 = load float, ptr %36, align 4, !tbaa !21
  %293 = fdiv float 1.000000e+00, %292
  invoke void @_ZN3JPH22SoftBodySharedSettings10SkinWeightC2Ejf(ptr noundef nonnull align 4 dereferenceable(8) %42, i32 noundef %291, float noundef %293)
          to label %294 unwind label %302

294:                                              ; preds = %288
  %295 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %32, i32 0, i32 1
  %296 = getelementptr inbounds [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], ptr %295, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %296, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  invoke void @_ZN3JPH22SoftBodySharedSettings7Skinned16NormalizeWeightsEv(ptr noundef nonnull align 4 dereferenceable(52) %32)
          to label %297 unwind label %306

297:                                              ; preds = %294
  br label %310

298:                                              ; preds = %284
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %10, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  br label %318

302:                                              ; preds = %288
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %10, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  br label %318

306:                                              ; preds = %312, %310, %294
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %10, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %11, align 4
  br label %318

310:                                              ; preds = %297, %277
  %311 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %312 unwind label %306

312:                                              ; preds = %310
  %313 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %311, i32 0, i32 6
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %313, ptr noundef nonnull align 4 dereferenceable(52) %32)
          to label %314 unwind label %306

314:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 52, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %30, align 4, !tbaa !14
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %30, align 4, !tbaa !14
  br label %180, !llvm.loop !25

318:                                              ; preds = %306, %302, %298, %280, %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  br label %319

319:                                              ; preds = %318, %211
  call void @llvm.lifetime.end.p0(i64 52, ptr %32) #11
  br label %320

320:                                              ; preds = %319, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  br label %378

321:                                              ; preds = %183
  br label %322

322:                                              ; preds = %321
  %323 = load i32, ptr %28, align 4, !tbaa !14
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %28, align 4, !tbaa !14
  br label %175, !llvm.loop !26

325:                                              ; preds = %178
  %326 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %327 unwind label %365

327:                                              ; preds = %325
  invoke void @_ZN3JPH22SoftBodySharedSettings33CalculateSkinnedConstraintNormalsEv(ptr noundef nonnull align 8 dereferenceable(304) %326)
          to label %328 unwind label %365

328:                                              ; preds = %327
  %329 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %330 unwind label %365

330:                                              ; preds = %328
  invoke void @_ZN3JPH22SoftBodySharedSettings8OptimizeEv(ptr noundef nonnull align 8 dereferenceable(304) %329)
          to label %331 unwind label %365

331:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 112, ptr %43) #11
  %332 = invoke noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %333 unwind label %369

333:                                              ; preds = %331
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %3, i64 16, i1 false), !tbaa.struct !27
  %334 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %335 unwind label %369

335:                                              ; preds = %333
  %336 = getelementptr inbounds %"class.JPH::Quat", ptr %45, i32 0, i32 0
  %337 = getelementptr inbounds %"class.JPH::Vec4", ptr %336, i32 0, i32 0
  %338 = getelementptr inbounds %union.anon, ptr %337, i32 0, i32 0
  %339 = getelementptr inbounds { double, double }, ptr %338, i32 0, i32 0
  %340 = extractvalue { double, double } %334, 0
  store double %340, ptr %339, align 16
  %341 = getelementptr inbounds { double, double }, ptr %338, i32 0, i32 1
  %342 = extractvalue { double, double } %334, 1
  store double %342, ptr %341, align 8
  %343 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %344 = load double, ptr %343, align 16
  %345 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %346 = load double, ptr %345, align 8
  %347 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %348 = load double, ptr %347, align 16
  %349 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %350 = load double, ptr %349, align 8
  invoke void @_ZN3JPH24SoftBodyCreationSettingsC2EPKNS_22SoftBodySharedSettingsENS_4Vec3ENS_4QuatEt(ptr noundef nonnull align 16 dereferenceable(111) %43, ptr noundef %332, double %344, double %346, double %348, double %350, i16 noundef zeroext 1)
          to label %351 unwind label %369

351:                                              ; preds = %335
  %352 = getelementptr inbounds %class.Test, ptr %46, i32 0, i32 3
  %353 = load ptr, ptr %352, align 8, !tbaa !28
  %354 = invoke noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %353, ptr noundef nonnull align 16 dereferenceable(111) %43)
          to label %355 unwind label %373

355:                                              ; preds = %351
  %356 = getelementptr inbounds %class.SoftBodySkinnedConstraintTest, ptr %46, i32 0, i32 1
  store ptr %354, ptr %356, align 8, !tbaa !36
  %357 = getelementptr inbounds %class.Test, ptr %46, i32 0, i32 3
  %358 = load ptr, ptr %357, align 8, !tbaa !28
  %359 = getelementptr inbounds %class.SoftBodySkinnedConstraintTest, ptr %46, i32 0, i32 1
  %360 = load ptr, ptr %359, align 8, !tbaa !36
  %361 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %360)
          to label %362 unwind label %373

362:                                              ; preds = %355
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %358, ptr noundef nonnull align 4 dereferenceable(4) %361, i32 noundef 0)
          to label %363 unwind label %373

363:                                              ; preds = %362
  invoke void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124) %46, i1 noundef zeroext true)
          to label %364 unwind label %373

364:                                              ; preds = %363
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %43) #11
  call void @llvm.lifetime.end.p0(i64 112, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #11
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #11
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #11
  ret void

365:                                              ; preds = %330, %328, %327, %325
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %10, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %11, align 4
  br label %378

369:                                              ; preds = %335, %333, %331
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %10, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %11, align 4
  br label %377

373:                                              ; preds = %363, %362, %355, %351
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %10, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %11, align 4
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %43) #11
  br label %377

377:                                              ; preds = %373, %369
  call void @llvm.lifetime.end.p0(i64 112, ptr %43) #11
  br label %378

378:                                              ; preds = %377, %365, %320
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  br label %379

379:                                              ; preds = %378, %173, %144, %119
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #11
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #11
  br label %380

380:                                              ; preds = %379, %115
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #11
  br label %381

381:                                              ; preds = %380, %88
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #11
  br label %382

382:                                              ; preds = %381, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #11
  br label %383

383:                                              ; preds = %382
  %384 = load ptr, ptr %10, align 8
  %385 = load i32, ptr %11, align 4
  %386 = insertvalue { ptr, i32 } poison, ptr %384, 0
  %387 = insertvalue { ptr, i32 } %386, i32 %385, 1
  resume { ptr, i32 } %387
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFfjjEEC2IRZN29SoftBodySkinnedConstraintTest10InitializeEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFN3JPH4Vec3EjjEEC2IN15SoftBodyCreator3$_1EvEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 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 #8 align 2

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) #9 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZN29SoftBodySkinnedConstraintTest10InitializeEvENK3$_1clEjj"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef) #6 align 2

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

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

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

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

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

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

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

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

declare void @_ZN3JPH22SoftBodySharedSettings33CalculateSkinnedConstraintNormalsEv(ptr noundef nonnull align 8 dereferenceable(304)) #7

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

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

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

declare noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(111)) #7

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { 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 #11 = { 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, !11, i64 12}
!10 = !{!"_ZTSN3JPH22SoftBodySharedSettings4EdgeE", !7, i64 0, !11, i64 8, !11, i64 12}
!11 = !{!"float", !7, i64 0}
!12 = !{i64 0, i64 64, !13}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !11, i64 24}
!19 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !20, i64 0, !20, i64 12, !11, i64 24}
!20 = !{!"_ZTSN3JPH6Float3E", !11, i64 0, !11, i64 4, !11, i64 8}
!21 = !{!11, !11, i64 0}
!22 = !{!19, !11, i64 8}
!23 = distinct !{!23, !17}
!24 = !{i64 0, i64 4, !14, i64 4, i64 4, !21}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = !{i64 0, i64 16, !13}
!28 = !{!29, !6, i64 24}
!29 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !30, i64 48, !31, i64 56}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !32, i64 0}
!32 = !{!"_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, !33, i64 8, !34, i64 16, !33, i64 24, !35, i64 32, !6, i64 48}
!33 = !{!"long", !7, i64 0}
!34 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!35 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !33, i64 8}
!36 = !{!37, !6, i64 112}
!37 = !{!"_ZTS29SoftBodySkinnedConstraintTest", !29, i64 0, !6, i64 112, !11, i64 120}


; 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::Array" = type { i64, i64, ptr }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%class.anon.21 = type { i8 }
%"class.JPH::Ref" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.24" = type { %"class.std::_Function_base", ptr }
%class.anon.27 = type { i8 }
%"struct.JPH::SoftBodySharedSettings::VertexAttributes" = type { float, float, float, i32, float }
%"class.JPH::SoftBodySharedSettings::InvBind" = type { i32, %"class.JPH::Mat44" }
%class.anon.67 = type { i8 }
%"class.JPH::SoftBodySharedSettings::Skinned" = type { i32, [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], float, float, float, i32 }
%"class.JPH::SoftBodySharedSettings::SkinWeight" = type { i32, float }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.6", [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.6" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array") align 8, ptr noundef nonnull align 8 dereferenceable(124), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN29SoftBodySkinnedConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(124) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Vec3", align 16
  %3 = alloca %class.anon.21, align 1
  %4 = alloca %"class.JPH::Ref", align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %"class.std::function.24", align 8
  %7 = alloca %class.anon.27, align 1
  %8 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %9 = alloca %"class.JPH::Array", align 8
  %10 = alloca %"class.JPH::Mat44", align 16
  %11 = alloca %"class.JPH::Mat44", align 16
  %12 = alloca %"class.JPH::SoftBodySharedSettings::InvBind", align 16
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca %class.anon.67, align 1
  %15 = alloca %"class.JPH::SoftBodySharedSettings::Skinned", align 4
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::SoftBodySharedSettings::SkinWeight", align 8
  %18 = alloca %"class.JPH::SoftBodySharedSettings::SkinWeight", align 8
  %19 = alloca %"class.JPH::SoftBodySharedSettings::SkinWeight", align 8
  %20 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %21 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %2, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #11
  call void @"_ZNSt8functionIFfjjEEC2IRZN29SoftBodySkinnedConstraintTest10InitializeEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(1) %3) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #11
  call void @"_ZNSt8functionIFN3JPH4Vec3EjjEEC2IN15SoftBodyCreator3$_1EvEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) %7) #11
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %8) #11
  call void @_ZN3JPH22SoftBodySharedSettings16VertexAttributesC2EfffNS0_8ELRATypeEf(ptr noundef nonnull align 4 dereferenceable(20) %8, float noundef 0x3EE4F8B580000000, float noundef 0x3EE4F8B580000000, float noundef 0x3EE4F8B580000000, i32 noundef 0, float noundef 1.000000e+00)
  invoke void @_ZN15SoftBodyCreator11CreateClothEjjfRKSt8functionIFfjjEERKS0_IFN3JPH4Vec3EjjEENS5_22SoftBodySharedSettings9EBendTypeERKNSB_16VertexAttributesE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref") align 8 %4, i32 noundef 10, i32 noundef 50, float noundef 5.000000e-01, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(20) %8)
          to label %22 unwind label %27

22:                                               ; preds = %1
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  %23 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %24 = getelementptr inbounds i8, ptr %23, i64 56
  %25 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %26 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %.not97 = icmp eq ptr %25, %26
  br i1 %.not97, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #11
  invoke void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Array") align 8 %9, ptr noundef nonnull align 8 dereferenceable(124) %0, float noundef 0.000000e+00)
          to label %31 unwind label %42

27:                                               ; preds = %1
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  br label %396

.lr.ph:                                           ; preds = %22, %.lr.ph
  %.06198 = phi ptr [ %30, %.lr.ph ], [ %25, %22 ]
  %29 = getelementptr inbounds i8, ptr %.06198, i64 12
  store float 0x3F50624DE0000000, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %.06198, i64 16
  %.not = icmp eq ptr %30, %26
  br i1 %.not, label %._crit_edge, label %.lr.ph

31:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #11
  %32 = invoke { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %2)
          to label %33 unwind label %44

33:                                               ; preds = %31
  %34 = extractvalue { double, double } %32, 0
  %35 = extractvalue { double, double } %32, 1
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %10, double %34, double %35)
          to label %36 unwind label %44

36:                                               ; preds = %33
  %37 = call noundef ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %38 = call noundef ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not7799 = icmp eq ptr %37, %38
  br i1 %.not7799, label %.preheader88, label %.lr.ph102

.preheader88:                                     ; preds = %.lr.ph102, %36
  %39 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %40 = getelementptr inbounds i8, ptr %39, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %41 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0)
          to label %47 unwind label %113

42:                                               ; preds = %._crit_edge
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %395

44:                                               ; preds = %33, %31
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %394

.lr.ph102:                                        ; preds = %36, %.lr.ph102
  %.062100 = phi ptr [ %46, %.lr.ph102 ], [ %37, %36 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #11
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %11, ptr noundef nonnull align 16 dereferenceable(64) %10, ptr noundef nonnull align 16 dereferenceable(64) %.062100)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %.062100, ptr noundef nonnull align 16 dereferenceable(64) %11, i64 64, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #11
  %46 = getelementptr inbounds i8, ptr %.062100, i64 64
  %.not77 = icmp eq ptr %46, %38
  br i1 %.not77, label %.preheader88, label %.lr.ph102

47:                                               ; preds = %.preheader88
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %41)
          to label %48 unwind label %113

48:                                               ; preds = %47
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 0, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %49 unwind label %113

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %50 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %51 = getelementptr inbounds i8, ptr %50, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %52 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1)
          to label %53 unwind label %113

53:                                               ; preds = %49
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %52)
          to label %54 unwind label %113

54:                                               ; preds = %53
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 1, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %55 unwind label %113

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %56 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %57 = getelementptr inbounds i8, ptr %56, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %58 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 2)
          to label %59 unwind label %113

59:                                               ; preds = %55
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %58)
          to label %60 unwind label %113

60:                                               ; preds = %59
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 2, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %61 unwind label %113

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %62 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %63 = getelementptr inbounds i8, ptr %62, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %64 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 3)
          to label %65 unwind label %113

65:                                               ; preds = %61
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %64)
          to label %66 unwind label %113

66:                                               ; preds = %65
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 3, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %67 unwind label %113

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %68 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %69 = getelementptr inbounds i8, ptr %68, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %70 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 4)
          to label %71 unwind label %113

71:                                               ; preds = %67
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %70)
          to label %72 unwind label %113

72:                                               ; preds = %71
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 4, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %73 unwind label %113

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %74 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %75 = getelementptr inbounds i8, ptr %74, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %76 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 5)
          to label %77 unwind label %113

77:                                               ; preds = %73
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %76)
          to label %78 unwind label %113

78:                                               ; preds = %77
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 5, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %79 unwind label %113

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %80 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %81 = getelementptr inbounds i8, ptr %80, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %82 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 6)
          to label %83 unwind label %113

83:                                               ; preds = %79
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %82)
          to label %84 unwind label %113

84:                                               ; preds = %83
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 6, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %85 unwind label %113

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %86 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %87 = getelementptr inbounds i8, ptr %86, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %88 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 7)
          to label %89 unwind label %113

89:                                               ; preds = %85
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %88)
          to label %90 unwind label %113

90:                                               ; preds = %89
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 7, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %91 unwind label %113

91:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %92 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %93 = getelementptr inbounds i8, ptr %92, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %94 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 8)
          to label %95 unwind label %113

95:                                               ; preds = %91
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %94)
          to label %96 unwind label %113

96:                                               ; preds = %95
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 8, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %97 unwind label %113

97:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %98 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %99 = getelementptr inbounds i8, ptr %98, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %100 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 9)
          to label %101 unwind label %113

101:                                              ; preds = %97
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %100)
          to label %102 unwind label %113

102:                                              ; preds = %101
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 9, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %103 unwind label %113

103:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %104 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %105 = getelementptr inbounds i8, ptr %104, i64 152
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #11
  %106 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 10)
          to label %107 unwind label %113

107:                                              ; preds = %103
  invoke void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %106)
          to label %108 unwind label %113

108:                                              ; preds = %107
  call void @_ZN3JPH22SoftBodySharedSettings7InvBindC2EjRKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %12, i32 noundef 10, ptr noundef nonnull align 16 dereferenceable(64) %13)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7InvBindENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 16 dereferenceable(80) %12)
          to label %109 unwind label %113

109:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #11
  %110 = getelementptr inbounds i8, ptr %16, i64 8
  %111 = getelementptr inbounds i8, ptr %15, i64 4
  %112 = getelementptr inbounds i8, ptr %15, i64 12
  br label %.preheader

113:                                              ; preds = %108, %107, %103, %102, %101, %97, %96, %95, %91, %90, %89, %85, %84, %83, %79, %78, %77, %73, %72, %71, %67, %66, %65, %61, %60, %59, %55, %54, %53, %49, %48, %47, %.preheader88
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  br label %394

.preheader:                                       ; preds = %109, %117
  %.073110 = phi i32 [ 0, %109 ], [ %118, %117 ]
  br label %119

115:                                              ; preds = %117
  %116 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN3JPH22SoftBodySharedSettings33CalculateSkinnedConstraintNormalsEv(ptr noundef nonnull align 8 dereferenceable(304) %116)
          to label %368 unwind label %386

117:                                              ; preds = %365
  %118 = add nuw nsw i32 %.073110, 1
  %exitcond113.not = icmp eq i32 %118, 50
  br i1 %exitcond113.not, label %115, label %.preheader, !llvm.loop !12

119:                                              ; preds = %.preheader, %365
  %.074109 = phi i32 [ 0, %.preheader ], [ %366, %365 ]
  %120 = call noundef i32 @"_ZZN29SoftBodySkinnedConstraintTest10InitializeEvENK3$_1clEjj"(ptr noundef nonnull align 1 dereferenceable(1) %14, i32 noundef %.074109, i32 noundef %.073110)
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %15) #11
  %121 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  %123 = zext i32 %120 to i64
  %124 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %123)
          to label %125 unwind label %133

125:                                              ; preds = %119
  %126 = getelementptr inbounds i8, ptr %124, i64 24
  %127 = load float, ptr %126, align 4, !tbaa !14
  %128 = fcmp ogt float %127, 0.000000e+00
  %129 = select i1 %128, float 2.000000e+00, float 0.000000e+00
  call void @_ZN3JPH22SoftBodySharedSettings7SkinnedC2Ejfff(ptr noundef nonnull align 4 dereferenceable(52) %15, i32 noundef %120, float noundef %129, float noundef 0x3FB99999A0000000, float noundef 4.000000e+01)
  %130 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  %132 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %123)
          to label %135 unwind label %151

133:                                              ; preds = %119
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %367

135:                                              ; preds = %125
  %136 = getelementptr inbounds i8, ptr %132, i64 8
  %137 = load float, ptr %136, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %138 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0)
          to label %139 unwind label %153

139:                                              ; preds = %135
  %140 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %138)
          to label %141 unwind label %153

141:                                              ; preds = %139
  %142 = extractvalue { double, double } %140, 0
  store double %142, ptr %16, align 16
  %143 = extractvalue { double, double } %140, 1
  store double %143, ptr %110, align 8
  %144 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %145 = fsub float %137, %144
  %146 = call noundef float @_ZSt3absf(float noundef %145)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %147 = fcmp uge float %146, 0x47EFFFFFE0000000
  %.172 = sext i1 %147 to i32
  %.168 = select i1 %147, float 0x47EFFFFFE0000000, float %146
  %148 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  %150 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %123)
          to label %155 unwind label %151

151:                                              ; preds = %331, %311, %291, %271, %251, %231, %211, %191, %171, %141, %125
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %367

153:                                              ; preds = %339, %335, %319, %315, %299, %295, %279, %275, %259, %255, %239, %235, %219, %215, %199, %195, %179, %175, %159, %155, %139, %135
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  br label %367

155:                                              ; preds = %141
  %156 = getelementptr inbounds i8, ptr %150, i64 8
  %157 = load float, ptr %156, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %158 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1)
          to label %159 unwind label %153

159:                                              ; preds = %155
  %160 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %158)
          to label %161 unwind label %153

161:                                              ; preds = %159
  %162 = extractvalue { double, double } %160, 0
  store double %162, ptr %16, align 16
  %163 = extractvalue { double, double } %160, 1
  store double %163, ptr %110, align 8
  %164 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %165 = fsub float %157, %164
  %166 = call noundef float @_ZSt3absf(float noundef %165)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %167 = fcmp olt float %166, %.168
  br i1 %167, label %171, label %168

168:                                              ; preds = %161
  %169 = fcmp olt float %166, 0x47EFFFFFE0000000
  br i1 %169, label %170, label %171

170:                                              ; preds = %168
  br label %171

171:                                              ; preds = %170, %168, %161
  %.172.1 = phi i32 [ %.172, %170 ], [ %.172, %168 ], [ 1, %161 ]
  %.170.1 = phi i32 [ 1, %170 ], [ -1, %168 ], [ %.172, %161 ]
  %.168.1 = phi float [ %.168, %170 ], [ %.168, %168 ], [ %166, %161 ]
  %.166.1 = phi float [ %166, %170 ], [ 0x47EFFFFFE0000000, %168 ], [ %.168, %161 ]
  %172 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %123)
          to label %175 unwind label %151

175:                                              ; preds = %171
  %176 = getelementptr inbounds i8, ptr %174, i64 8
  %177 = load float, ptr %176, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %178 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 2)
          to label %179 unwind label %153

179:                                              ; preds = %175
  %180 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %178)
          to label %181 unwind label %153

181:                                              ; preds = %179
  %182 = extractvalue { double, double } %180, 0
  store double %182, ptr %16, align 16
  %183 = extractvalue { double, double } %180, 1
  store double %183, ptr %110, align 8
  %184 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %185 = fsub float %177, %184
  %186 = call noundef float @_ZSt3absf(float noundef %185)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %187 = fcmp olt float %186, %.168.1
  br i1 %187, label %191, label %188

188:                                              ; preds = %181
  %189 = fcmp olt float %186, %.166.1
  br i1 %189, label %190, label %191

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190, %188, %181
  %.172.2 = phi i32 [ %.172.1, %190 ], [ %.172.1, %188 ], [ 2, %181 ]
  %.170.2 = phi i32 [ 2, %190 ], [ %.170.1, %188 ], [ %.172.1, %181 ]
  %.168.2 = phi float [ %.168.1, %190 ], [ %.168.1, %188 ], [ %186, %181 ]
  %.166.2 = phi float [ %186, %190 ], [ %.166.1, %188 ], [ %.168.1, %181 ]
  %192 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %193 = getelementptr inbounds i8, ptr %192, i64 8
  %194 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %123)
          to label %195 unwind label %151

195:                                              ; preds = %191
  %196 = getelementptr inbounds i8, ptr %194, i64 8
  %197 = load float, ptr %196, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %198 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 3)
          to label %199 unwind label %153

199:                                              ; preds = %195
  %200 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %198)
          to label %201 unwind label %153

201:                                              ; preds = %199
  %202 = extractvalue { double, double } %200, 0
  store double %202, ptr %16, align 16
  %203 = extractvalue { double, double } %200, 1
  store double %203, ptr %110, align 8
  %204 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %205 = fsub float %197, %204
  %206 = call noundef float @_ZSt3absf(float noundef %205)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %207 = fcmp olt float %206, %.168.2
  br i1 %207, label %211, label %208

208:                                              ; preds = %201
  %209 = fcmp olt float %206, %.166.2
  br i1 %209, label %210, label %211

210:                                              ; preds = %208
  br label %211

211:                                              ; preds = %210, %208, %201
  %.172.3 = phi i32 [ %.172.2, %210 ], [ %.172.2, %208 ], [ 3, %201 ]
  %.170.3 = phi i32 [ 3, %210 ], [ %.170.2, %208 ], [ %.172.2, %201 ]
  %.168.3 = phi float [ %.168.2, %210 ], [ %.168.2, %208 ], [ %206, %201 ]
  %.166.3 = phi float [ %206, %210 ], [ %.166.2, %208 ], [ %.168.2, %201 ]
  %212 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %213 = getelementptr inbounds i8, ptr %212, i64 8
  %214 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %123)
          to label %215 unwind label %151

215:                                              ; preds = %211
  %216 = getelementptr inbounds i8, ptr %214, i64 8
  %217 = load float, ptr %216, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %218 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 4)
          to label %219 unwind label %153

219:                                              ; preds = %215
  %220 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %218)
          to label %221 unwind label %153

221:                                              ; preds = %219
  %222 = extractvalue { double, double } %220, 0
  store double %222, ptr %16, align 16
  %223 = extractvalue { double, double } %220, 1
  store double %223, ptr %110, align 8
  %224 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %225 = fsub float %217, %224
  %226 = call noundef float @_ZSt3absf(float noundef %225)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %227 = fcmp olt float %226, %.168.3
  br i1 %227, label %231, label %228

228:                                              ; preds = %221
  %229 = fcmp olt float %226, %.166.3
  br i1 %229, label %230, label %231

230:                                              ; preds = %228
  br label %231

231:                                              ; preds = %230, %228, %221
  %.172.4 = phi i32 [ %.172.3, %230 ], [ %.172.3, %228 ], [ 4, %221 ]
  %.170.4 = phi i32 [ 4, %230 ], [ %.170.3, %228 ], [ %.172.3, %221 ]
  %.168.4 = phi float [ %.168.3, %230 ], [ %.168.3, %228 ], [ %226, %221 ]
  %.166.4 = phi float [ %226, %230 ], [ %.166.3, %228 ], [ %.168.3, %221 ]
  %232 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %233 = getelementptr inbounds i8, ptr %232, i64 8
  %234 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %233, i64 noundef %123)
          to label %235 unwind label %151

235:                                              ; preds = %231
  %236 = getelementptr inbounds i8, ptr %234, i64 8
  %237 = load float, ptr %236, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %238 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 5)
          to label %239 unwind label %153

239:                                              ; preds = %235
  %240 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %238)
          to label %241 unwind label %153

241:                                              ; preds = %239
  %242 = extractvalue { double, double } %240, 0
  store double %242, ptr %16, align 16
  %243 = extractvalue { double, double } %240, 1
  store double %243, ptr %110, align 8
  %244 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %245 = fsub float %237, %244
  %246 = call noundef float @_ZSt3absf(float noundef %245)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %247 = fcmp olt float %246, %.168.4
  br i1 %247, label %251, label %248

248:                                              ; preds = %241
  %249 = fcmp olt float %246, %.166.4
  br i1 %249, label %250, label %251

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %248, %241
  %.172.5 = phi i32 [ %.172.4, %250 ], [ %.172.4, %248 ], [ 5, %241 ]
  %.170.5 = phi i32 [ 5, %250 ], [ %.170.4, %248 ], [ %.172.4, %241 ]
  %.168.5 = phi float [ %.168.4, %250 ], [ %.168.4, %248 ], [ %246, %241 ]
  %.166.5 = phi float [ %246, %250 ], [ %.166.4, %248 ], [ %.168.4, %241 ]
  %252 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %253 = getelementptr inbounds i8, ptr %252, i64 8
  %254 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %123)
          to label %255 unwind label %151

255:                                              ; preds = %251
  %256 = getelementptr inbounds i8, ptr %254, i64 8
  %257 = load float, ptr %256, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %258 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 6)
          to label %259 unwind label %153

259:                                              ; preds = %255
  %260 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %258)
          to label %261 unwind label %153

261:                                              ; preds = %259
  %262 = extractvalue { double, double } %260, 0
  store double %262, ptr %16, align 16
  %263 = extractvalue { double, double } %260, 1
  store double %263, ptr %110, align 8
  %264 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %265 = fsub float %257, %264
  %266 = call noundef float @_ZSt3absf(float noundef %265)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %267 = fcmp olt float %266, %.168.5
  br i1 %267, label %271, label %268

268:                                              ; preds = %261
  %269 = fcmp olt float %266, %.166.5
  br i1 %269, label %270, label %271

270:                                              ; preds = %268
  br label %271

271:                                              ; preds = %270, %268, %261
  %.172.6 = phi i32 [ %.172.5, %270 ], [ %.172.5, %268 ], [ 6, %261 ]
  %.170.6 = phi i32 [ 6, %270 ], [ %.170.5, %268 ], [ %.172.5, %261 ]
  %.168.6 = phi float [ %.168.5, %270 ], [ %.168.5, %268 ], [ %266, %261 ]
  %.166.6 = phi float [ %266, %270 ], [ %.166.5, %268 ], [ %.168.5, %261 ]
  %272 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %273 = getelementptr inbounds i8, ptr %272, i64 8
  %274 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %123)
          to label %275 unwind label %151

275:                                              ; preds = %271
  %276 = getelementptr inbounds i8, ptr %274, i64 8
  %277 = load float, ptr %276, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %278 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 7)
          to label %279 unwind label %153

279:                                              ; preds = %275
  %280 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %278)
          to label %281 unwind label %153

281:                                              ; preds = %279
  %282 = extractvalue { double, double } %280, 0
  store double %282, ptr %16, align 16
  %283 = extractvalue { double, double } %280, 1
  store double %283, ptr %110, align 8
  %284 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %285 = fsub float %277, %284
  %286 = call noundef float @_ZSt3absf(float noundef %285)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %287 = fcmp olt float %286, %.168.6
  br i1 %287, label %291, label %288

288:                                              ; preds = %281
  %289 = fcmp olt float %286, %.166.6
  br i1 %289, label %290, label %291

290:                                              ; preds = %288
  br label %291

291:                                              ; preds = %290, %288, %281
  %.172.7 = phi i32 [ %.172.6, %290 ], [ %.172.6, %288 ], [ 7, %281 ]
  %.170.7 = phi i32 [ 7, %290 ], [ %.170.6, %288 ], [ %.172.6, %281 ]
  %.168.7 = phi float [ %.168.6, %290 ], [ %.168.6, %288 ], [ %286, %281 ]
  %.166.7 = phi float [ %286, %290 ], [ %.166.6, %288 ], [ %.168.6, %281 ]
  %292 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %293 = getelementptr inbounds i8, ptr %292, i64 8
  %294 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %293, i64 noundef %123)
          to label %295 unwind label %151

295:                                              ; preds = %291
  %296 = getelementptr inbounds i8, ptr %294, i64 8
  %297 = load float, ptr %296, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %298 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 8)
          to label %299 unwind label %153

299:                                              ; preds = %295
  %300 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %298)
          to label %301 unwind label %153

301:                                              ; preds = %299
  %302 = extractvalue { double, double } %300, 0
  store double %302, ptr %16, align 16
  %303 = extractvalue { double, double } %300, 1
  store double %303, ptr %110, align 8
  %304 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %305 = fsub float %297, %304
  %306 = call noundef float @_ZSt3absf(float noundef %305)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %307 = fcmp olt float %306, %.168.7
  br i1 %307, label %311, label %308

308:                                              ; preds = %301
  %309 = fcmp olt float %306, %.166.7
  br i1 %309, label %310, label %311

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310, %308, %301
  %.172.8 = phi i32 [ %.172.7, %310 ], [ %.172.7, %308 ], [ 8, %301 ]
  %.170.8 = phi i32 [ 8, %310 ], [ %.170.7, %308 ], [ %.172.7, %301 ]
  %.168.8 = phi float [ %.168.7, %310 ], [ %.168.7, %308 ], [ %306, %301 ]
  %.166.8 = phi float [ %306, %310 ], [ %.166.7, %308 ], [ %.168.7, %301 ]
  %312 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %313 = getelementptr inbounds i8, ptr %312, i64 8
  %314 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %313, i64 noundef %123)
          to label %315 unwind label %151

315:                                              ; preds = %311
  %316 = getelementptr inbounds i8, ptr %314, i64 8
  %317 = load float, ptr %316, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %318 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 9)
          to label %319 unwind label %153

319:                                              ; preds = %315
  %320 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %318)
          to label %321 unwind label %153

321:                                              ; preds = %319
  %322 = extractvalue { double, double } %320, 0
  store double %322, ptr %16, align 16
  %323 = extractvalue { double, double } %320, 1
  store double %323, ptr %110, align 8
  %324 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %325 = fsub float %317, %324
  %326 = call noundef float @_ZSt3absf(float noundef %325)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %327 = fcmp olt float %326, %.168.8
  br i1 %327, label %331, label %328

328:                                              ; preds = %321
  %329 = fcmp olt float %326, %.166.8
  br i1 %329, label %330, label %331

330:                                              ; preds = %328
  br label %331

331:                                              ; preds = %330, %328, %321
  %.172.9 = phi i32 [ %.172.8, %330 ], [ %.172.8, %328 ], [ 9, %321 ]
  %.170.9 = phi i32 [ 9, %330 ], [ %.170.8, %328 ], [ %.172.8, %321 ]
  %.168.9 = phi float [ %.168.8, %330 ], [ %.168.8, %328 ], [ %326, %321 ]
  %.166.9 = phi float [ %326, %330 ], [ %.166.8, %328 ], [ %.168.8, %321 ]
  %332 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %333 = getelementptr inbounds i8, ptr %332, i64 8
  %334 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %333, i64 noundef %123)
          to label %335 unwind label %151

335:                                              ; preds = %331
  %336 = getelementptr inbounds i8, ptr %334, i64 8
  %337 = load float, ptr %336, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %338 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 10)
          to label %339 unwind label %153

339:                                              ; preds = %335
  %340 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %338)
          to label %341 unwind label %153

341:                                              ; preds = %339
  %342 = extractvalue { double, double } %340, 0
  store double %342, ptr %16, align 16
  %343 = extractvalue { double, double } %340, 1
  store double %343, ptr %110, align 8
  %344 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %345 = fsub float %337, %344
  %346 = call noundef float @_ZSt3absf(float noundef %345)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %347 = fcmp olt float %346, %.168.9
  br i1 %347, label %351, label %348

348:                                              ; preds = %341
  %349 = fcmp olt float %346, %.166.9
  br i1 %349, label %350, label %351

350:                                              ; preds = %348
  br label %351

351:                                              ; preds = %350, %348, %341
  %.172.10 = phi i32 [ %.172.9, %350 ], [ %.172.9, %348 ], [ 10, %341 ]
  %.170.10 = phi i32 [ 10, %350 ], [ %.170.9, %348 ], [ %.172.9, %341 ]
  %.168.10 = phi float [ %.168.9, %350 ], [ %.168.9, %348 ], [ %346, %341 ]
  %.166.10 = phi float [ %346, %350 ], [ %.166.9, %348 ], [ %.168.9, %341 ]
  %352 = fcmp oeq float %.168.10, 0.000000e+00
  br i1 %352, label %353, label %355

353:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #11
  call void @_ZN3JPH22SoftBodySharedSettings10SkinWeightC2Ejf(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %.172.10, float noundef 1.000000e+00)
  %354 = load i64, ptr %17, align 8
  store i64 %354, ptr %111, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #11
  br label %362

355:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #11
  %356 = fdiv float 1.000000e+00, %.168.10
  call void @_ZN3JPH22SoftBodySharedSettings10SkinWeightC2Ejf(ptr noundef nonnull align 4 dereferenceable(8) %18, i32 noundef %.172.10, float noundef %356)
  %357 = load i64, ptr %18, align 8
  store i64 %357, ptr %111, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #11
  %358 = fdiv float 1.000000e+00, %.166.10
  call void @_ZN3JPH22SoftBodySharedSettings10SkinWeightC2Ejf(ptr noundef nonnull align 4 dereferenceable(8) %19, i32 noundef %.170.10, float noundef %358)
  %359 = load i64, ptr %19, align 8
  store i64 %359, ptr %112, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #11
  call void @_ZN3JPH22SoftBodySharedSettings7Skinned16NormalizeWeightsEv(ptr noundef nonnull align 4 dereferenceable(52) %15)
  br label %362

360:                                              ; preds = %362
  %361 = landingpad { ptr, i32 }
          cleanup
  br label %367

362:                                              ; preds = %355, %353
  %363 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %364 = getelementptr inbounds i8, ptr %363, i64 128
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %364, ptr noundef nonnull align 4 dereferenceable(52) %15)
          to label %365 unwind label %360

365:                                              ; preds = %362
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %15) #11
  %366 = add nuw nsw i32 %.074109, 1
  %exitcond.not = icmp eq i32 %366, 10
  br i1 %exitcond.not, label %117, label %119, !llvm.loop !18

367:                                              ; preds = %360, %153, %151, %133
  %.pn79.pn.pn = phi { ptr, i32 } [ %134, %133 ], [ %361, %360 ], [ %154, %153 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %15) #11
  br label %393

368:                                              ; preds = %115
  %369 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZN3JPH22SoftBodySharedSettings8OptimizeEv(ptr noundef nonnull align 8 dereferenceable(304) %369)
          to label %370 unwind label %386

370:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %20) #11
  %371 = call noundef ptr @_ZNK3JPH3RefINS_22SoftBodySharedSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %.sroa.01.0.copyload = load double, ptr %2, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !11
  %372 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %373 unwind label %388

373:                                              ; preds = %370
  %374 = extractvalue { double, double } %372, 0
  %375 = extractvalue { double, double } %372, 1
  invoke void @_ZN3JPH24SoftBodyCreationSettingsC2EPKNS_22SoftBodySharedSettingsENS_4Vec3ENS_4QuatEt(ptr noundef nonnull align 16 dereferenceable(111) %20, ptr noundef %371, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %374, double %375, i16 noundef zeroext 1)
          to label %376 unwind label %388

376:                                              ; preds = %373
  %377 = getelementptr inbounds i8, ptr %0, i64 24
  %378 = load ptr, ptr %377, align 8, !tbaa !19
  %379 = invoke noundef ptr @_ZN3JPH13BodyInterface14CreateSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %378, ptr noundef nonnull align 16 dereferenceable(111) %20)
          to label %380 unwind label %390

380:                                              ; preds = %376
  %381 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %379, ptr %381, align 8, !tbaa !28
  %382 = load ptr, ptr %377, align 8, !tbaa !19
  %383 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %379)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %382, ptr noundef nonnull align 4 dereferenceable(4) %383, i32 noundef 0)
          to label %384 unwind label %390

384:                                              ; preds = %380
  invoke void @_ZN29SoftBodySkinnedConstraintTest12SkinVerticesEb(ptr noundef nonnull align 8 dereferenceable(124) %0, i1 noundef zeroext true)
          to label %385 unwind label %390

385:                                              ; preds = %384
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %20) #11
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #11
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #11
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #11
  ret void

386:                                              ; preds = %368, %115
  %387 = landingpad { ptr, i32 }
          cleanup
  br label %393

388:                                              ; preds = %373, %370
  %389 = landingpad { ptr, i32 }
          cleanup
  br label %392

390:                                              ; preds = %384, %380, %376
  %391 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %20) #11
  br label %392

392:                                              ; preds = %390, %388
  %.pn = phi { ptr, i32 } [ %391, %390 ], [ %389, %388 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %20) #11
  br label %393

393:                                              ; preds = %392, %386, %367
  %.pn79.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn, %367 ], [ %.pn, %392 ], [ %387, %386 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #11
  br label %394

394:                                              ; preds = %393, %113, %44
  %.pn84 = phi { ptr, i32 } [ %114, %113 ], [ %.pn79.pn.pn.pn, %393 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #11
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #11
  br label %395

395:                                              ; preds = %394, %42
  %.pn84.pn = phi { ptr, i32 } [ %.pn84, %394 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #11
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #11
  br label %396

396:                                              ; preds = %395, %27
  %.pn84.pn.pn = phi { ptr, i32 } [ %.pn84.pn, %395 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn84.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFfjjEEC2IRZN29SoftBodySkinnedConstraintTest10InitializeEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFN3JPH4Vec3EjjEEC2IN15SoftBodyCreator3$_1EvEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 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 #8 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 #6 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #9 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZN29SoftBodySkinnedConstraintTest10InitializeEvENK3$_1clEjj"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, i32 noundef) local_unnamed_addr #6 align 2

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

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

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

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

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

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

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

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

declare void @_ZN3JPH22SoftBodySharedSettings33CalculateSkinnedConstraintNormalsEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #7

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { 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 #11 = { 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, !9, i64 12}
!6 = !{!"_ZTSN3JPH22SoftBodySharedSettings4EdgeE", !7, i64 0, !9, i64 8, !9, i64 12}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"float", !7, i64 0}
!10 = !{i64 0, i64 64, !11}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !9, i64 24}
!15 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !16, i64 0, !16, i64 12, !9, i64 24}
!16 = !{!"_ZTSN3JPH6Float3E", !9, i64 0, !9, i64 4, !9, i64 8}
!17 = !{!15, !9, i64 8}
!18 = distinct !{!18, !13}
!19 = !{!20, !21, i64 24}
!20 = !{!"_ZTS4Test", !21, i64 8, !21, i64 16, !21, i64 24, !21, i64 32, !21, i64 40, !22, i64 48, !23, i64 56}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !24, i64 0}
!24 = !{!"_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", !21, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !21, i64 48}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !21, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !9, i64 0, !25, i64 8}
!28 = !{!29, !21, i64 112}
!29 = !{!"_ZTS29SoftBodySkinnedConstraintTest", !20, i64 0, !21, i64 112, !9, i64 120}


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