; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/SoftBody (SoftBodySharedSettings)

; 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.77" = type { i64, i64, ptr }
%struct.EdgeHelper = type { [2 x i32], i32 }
%class.anon.80 = type { i8 }
%class.anon.82 = type { ptr }
%class.anon.83 = type <{ ptr, i32, [4 x i8] }>
%"struct.JPH::SoftBodySharedSettings::VertexAttributes" = type { float, float, float, i32, float }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::SoftBodySharedSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Array", %"class.JPH::Array.38", %"class.JPH::Array.41", %"class.JPH::Array.44", %"class.JPH::Array.47", %"class.JPH::Array.50", %"class.JPH::Array.53", %"class.JPH::Array.56", %"class.JPH::Array.59", float, %"class.JPH::Array.62", %"class.JPH::Array.65", %"class.JPH::Array.68" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.38" = type { i64, i64, ptr }
%"class.JPH::Array.41" = type { i64, i64, ptr }
%"class.JPH::Array.44" = type { i64, i64, ptr }
%"class.JPH::Array.47" = type { i64, i64, ptr }
%"class.JPH::Array.50" = type { i64, i64, ptr }
%"class.JPH::Array.53" = type { i64, i64, ptr }
%"class.JPH::Array.56" = type { i64, i64, ptr }
%"class.JPH::Array.59" = type { i64, i64, ptr }
%"class.JPH::Array.62" = type { i64, i64, ptr }
%"class.JPH::Array.65" = type { i64, i64, ptr }
%"class.JPH::Array.68" = type { i64, i64, ptr }
%"struct.JPH::SoftBodySharedSettings::Face" = type { [3 x i32], i32 }
%"struct.JPH::SoftBodySharedSettings::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", float }
%"class.JPH::Float3" = type { float, float, float }
%"struct.JPH::SoftBodySharedSettings::ClosestKinematic" = type { i32, float }

; 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 @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304)) #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEf(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca %"class.JPH::Array.77", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.EdgeHelper, align 4
  %23 = alloca %class.anon.80, align 1
  %24 = alloca %class.anon.82, align 8
  %25 = alloca %class.anon.83, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i64, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %32 = alloca ptr, align 8
  %33 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %34 = alloca i8, align 1
  %35 = alloca i64, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %43 = alloca ptr, align 8
  %44 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Vec3", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca float, align 4
  %68 = alloca i8, align 1
  %69 = alloca ptr, align 8
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca ptr, align 8
  %73 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %74 = alloca float, align 4
  %75 = alloca %"class.JPH::Vec3", align 16
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store float %4, ptr %10, align 4, !tbaa !13
  %79 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  %80 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 2
  %81 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80)
          to label %82 unwind label %97

82:                                               ; preds = %5
  %83 = mul i64 %81, 3
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %83)
          to label %84 unwind label %97

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %85 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 2
  store ptr %85, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %86)
          to label %88 unwind label %101

88:                                               ; preds = %84
  store ptr %87, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %89)
          to label %91 unwind label %105

91:                                               ; preds = %88
  store ptr %90, ptr %16, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %162, %91
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = icmp ne ptr %93, %94
  br i1 %95, label %109, label %96

96:                                               ; preds = %92
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %167

97:                                               ; preds = %171, %169, %167, %82, %5
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %12, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %13, align 4
  br label %909

101:                                              ; preds = %84
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %12, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %13, align 4
  br label %166

105:                                              ; preds = %88
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  br label %165

109:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %110, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %154, %109
  %112 = load i32, ptr %19, align 4, !tbaa !9
  %113 = icmp slt i32 %112, 3
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %161

115:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %116, i32 0, i32 0
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [3 x i32], ptr %117, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !9
  store i32 %121, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %122, i32 0, i32 0
  %124 = load i32, ptr %19, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  %126 = srem i32 %125, 3
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [3 x i32], ptr %123, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !9
  store i32 %129, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #9
  %130 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %131 unwind label %157

131:                                              ; preds = %115
  %132 = load i32, ptr %130, align 4, !tbaa !9
  %133 = getelementptr inbounds %struct.EdgeHelper, ptr %22, i32 0, i32 0
  %134 = getelementptr inbounds [2 x i32], ptr %133, i64 0, i64 0
  store i32 %132, ptr %134, align 4, !tbaa !9
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %136 unwind label %157

136:                                              ; preds = %131
  %137 = load i32, ptr %135, align 4, !tbaa !9
  %138 = getelementptr inbounds %struct.EdgeHelper, ptr %22, i32 0, i32 0
  %139 = getelementptr inbounds [2 x i32], ptr %138, i64 0, i64 1
  store i32 %137, ptr %139, align 4, !tbaa !9
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 2
  %142 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %141)
          to label %143 unwind label %157

143:                                              ; preds = %136
  %144 = ptrtoint ptr %140 to i64
  %145 = ptrtoint ptr %142 to i64
  %146 = sub i64 %144, %145
  %147 = sdiv exact i64 %146, 16
  %148 = trunc i64 %147 to i32
  %149 = mul i32 %148, 3
  %150 = load i32, ptr %19, align 4, !tbaa !9
  %151 = add i32 %149, %150
  %152 = getelementptr inbounds %struct.EdgeHelper, ptr %22, i32 0, i32 1
  store i32 %151, ptr %152, align 4, !tbaa !15
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE9push_backERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %153 unwind label %157

153:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %19, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %19, align 4, !tbaa !9
  br label %111, !llvm.loop !17

157:                                              ; preds = %143, %136, %131, %115
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %12, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %165

161:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %163, i32 1
  store ptr %164, ptr %15, align 8, !tbaa !5
  br label %92

165:                                              ; preds = %157, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %166

166:                                              ; preds = %165, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %909

167:                                              ; preds = %96
  %168 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %169 unwind label %97

169:                                              ; preds = %167
  %170 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %171 unwind label %97

171:                                              ; preds = %169
  invoke void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperZNS1_17CreateConstraintsES4_jS5_fE3$_0EEvT_S9_T0_"(ptr noundef %168, ptr noundef %170)
          to label %172 unwind label %97

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %173 = getelementptr inbounds %class.anon.82, ptr %24, i32 0, i32 0
  store ptr %79, ptr %173, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  %174 = getelementptr inbounds %class.anon.83, ptr %25, i32 0, i32 0
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %175, ptr %174, align 8, !tbaa !21
  %176 = getelementptr inbounds %class.anon.83, ptr %25, i32 0, i32 1
  %177 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %177, ptr %176, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %178 = load float, ptr %10, align 4, !tbaa !13
  %179 = invoke noundef float @_ZN3JPH3SinEf(float noundef %178)
          to label %180 unwind label %200

180:                                              ; preds = %172
  %181 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %179)
          to label %182 unwind label %200

182:                                              ; preds = %180
  store float %181, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %183 = load float, ptr %10, align 4, !tbaa !13
  %184 = invoke noundef float @_ZN3JPH3CosEf(float noundef %183)
          to label %185 unwind label %204

185:                                              ; preds = %182
  %186 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %184)
          to label %187 unwind label %204

187:                                              ; preds = %185
  store float %186, ptr %27, align 4, !tbaa !13
  %188 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 3
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %188)
          to label %189 unwind label %204

189:                                              ; preds = %187
  %190 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 3
  %191 = invoke noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %192 unwind label %204

192:                                              ; preds = %189
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %191)
          to label %193 unwind label %204

193:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  store i64 0, ptr %28, align 8, !tbaa !24
  br label %194

194:                                              ; preds = %745, %193
  %195 = load i64, ptr %28, align 8, !tbaa !24
  %196 = invoke noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %197 unwind label %208

197:                                              ; preds = %194
  %198 = icmp ult i64 %195, %196
  br i1 %198, label %212, label %199

199:                                              ; preds = %197
  store i32 7, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %757

200:                                              ; preds = %180, %172
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %12, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %13, align 4
  br label %908

204:                                              ; preds = %759, %757, %192, %189, %187, %185, %182
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %12, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %13, align 4
  br label %907

208:                                              ; preds = %194
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %12, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %13, align 4
  br label %756

212:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %213 = load i64, ptr %28, align 8, !tbaa !24
  %214 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %213)
          to label %215 unwind label %234

215:                                              ; preds = %212
  store ptr %214, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr %31) #9
  %216 = load ptr, ptr %29, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.EdgeHelper, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds [2 x i32], ptr %217, i64 0, i64 0
  %219 = load i32, ptr %218, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %31, ptr noundef nonnull align 8 dereferenceable(12) %25, i32 noundef %219)
          to label %220 unwind label %238

220:                                              ; preds = %215
  store ptr %31, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr %33) #9
  %221 = load ptr, ptr %29, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.EdgeHelper, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds [2 x i32], ptr %222, i64 0, i64 1
  %224 = load i32, ptr %223, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %33, ptr noundef nonnull align 8 dereferenceable(12) %25, i32 noundef %224)
          to label %225 unwind label %242

225:                                              ; preds = %220
  store ptr %33, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #9
  store i8 0, ptr %34, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %226 = load i64, ptr %28, align 8, !tbaa !24
  %227 = add i64 %226, 1
  store i64 %227, ptr %35, align 8, !tbaa !24
  br label %228

228:                                              ; preds = %705, %225
  %229 = load i64, ptr %35, align 8, !tbaa !24
  %230 = invoke noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %231 unwind label %246

231:                                              ; preds = %228
  %232 = icmp ult i64 %229, %230
  br i1 %232, label %250, label %233

233:                                              ; preds = %231
  store i32 10, ptr %17, align 4
  br label %709

234:                                              ; preds = %212
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %12, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %13, align 4
  br label %755

238:                                              ; preds = %215
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %12, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %13, align 4
  br label %754

242:                                              ; preds = %220
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %12, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %13, align 4
  br label %753

246:                                              ; preds = %228
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %12, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %13, align 4
  br label %710

250:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %251 = load i64, ptr %35, align 8, !tbaa !24
  %252 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %251)
          to label %253 unwind label %567

253:                                              ; preds = %250
  store ptr %252, ptr %36, align 8, !tbaa !5
  %254 = load ptr, ptr %29, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.EdgeHelper, ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds [2 x i32], ptr %255, i64 0, i64 0
  %257 = load i32, ptr %256, align 4, !tbaa !9
  %258 = load ptr, ptr %36, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.EdgeHelper, ptr %258, i32 0, i32 0
  %260 = getelementptr inbounds [2 x i32], ptr %259, i64 0, i64 0
  %261 = load i32, ptr %260, align 4, !tbaa !9
  %262 = icmp eq i32 %257, %261
  br i1 %262, label %263, label %698

263:                                              ; preds = %253
  %264 = load ptr, ptr %29, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.EdgeHelper, ptr %264, i32 0, i32 0
  %266 = getelementptr inbounds [2 x i32], ptr %265, i64 0, i64 1
  %267 = load i32, ptr %266, align 4, !tbaa !9
  %268 = load ptr, ptr %36, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.EdgeHelper, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds [2 x i32], ptr %269, i64 0, i64 1
  %271 = load i32, ptr %270, align 4, !tbaa !9
  %272 = icmp eq i32 %267, %271
  br i1 %272, label %273, label %698

273:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %274 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 2
  %275 = load ptr, ptr %29, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.EdgeHelper, ptr %275, i32 0, i32 1
  %277 = load i32, ptr %276, align 4, !tbaa !15
  %278 = udiv i32 %277, 3
  %279 = zext i32 %278 to i64
  %280 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %279)
          to label %281 unwind label %571

281:                                              ; preds = %273
  store ptr %280, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %282 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 2
  %283 = load ptr, ptr %36, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.EdgeHelper, ptr %283, i32 0, i32 1
  %285 = load i32, ptr %284, align 4, !tbaa !15
  %286 = udiv i32 %285, 3
  %287 = zext i32 %286 to i64
  %288 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %282, i64 noundef %287)
          to label %289 unwind label %575

289:                                              ; preds = %281
  store ptr %288, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %290 = load ptr, ptr %37, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %29, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.EdgeHelper, ptr %292, i32 0, i32 1
  %294 = load i32, ptr %293, align 4, !tbaa !15
  %295 = add i32 %294, 2
  %296 = urem i32 %295, 3
  %297 = zext i32 %296 to i64
  %298 = getelementptr inbounds [3 x i32], ptr %291, i64 0, i64 %297
  %299 = load i32, ptr %298, align 4, !tbaa !9
  store i32 %299, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %300 = load ptr, ptr %38, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %300, i32 0, i32 0
  %302 = load ptr, ptr %36, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.EdgeHelper, ptr %302, i32 0, i32 1
  %304 = load i32, ptr %303, align 4, !tbaa !15
  %305 = add i32 %304, 2
  %306 = urem i32 %305, 3
  %307 = zext i32 %306 to i64
  %308 = getelementptr inbounds [3 x i32], ptr %301, i64 0, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !9
  store i32 %309, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr %42) #9
  %310 = load i32, ptr %39, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %42, ptr noundef nonnull align 8 dereferenceable(12) %25, i32 noundef %310)
          to label %311 unwind label %579

311:                                              ; preds = %289
  store ptr %42, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr %44) #9
  %312 = load i32, ptr %40, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %44, ptr noundef nonnull align 8 dereferenceable(12) %25, i32 noundef %312)
          to label %313 unwind label %583

313:                                              ; preds = %311
  store ptr %44, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #9
  %314 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %315 = load ptr, ptr %37, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %315, i32 0, i32 0
  %317 = getelementptr inbounds [3 x i32], ptr %316, i64 0, i64 2
  %318 = load i32, ptr %317, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %314, i64 noundef %319)
          to label %321 unwind label %587

321:                                              ; preds = %313
  %322 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %320, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(12) %322)
          to label %323 unwind label %587

323:                                              ; preds = %321
  %324 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %325 = load ptr, ptr %37, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %325, i32 0, i32 0
  %327 = getelementptr inbounds [3 x i32], ptr %326, i64 0, i64 0
  %328 = load i32, ptr %327, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %324, i64 noundef %329)
          to label %331 unwind label %587

331:                                              ; preds = %323
  %332 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %330, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(12) %332)
          to label %333 unwind label %587

333:                                              ; preds = %331
  %334 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %335 = load double, ptr %334, align 16
  %336 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %337 = load double, ptr %336, align 8
  %338 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %47, double %335, double %337)
          to label %339 unwind label %587

339:                                              ; preds = %333
  %340 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon, ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 0
  %343 = extractvalue { double, double } %338, 0
  store double %343, ptr %342, align 16
  %344 = getelementptr inbounds { double, double }, ptr %341, i32 0, i32 1
  %345 = extractvalue { double, double } %338, 1
  store double %345, ptr %344, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #9
  %346 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %347 = load ptr, ptr %37, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %347, i32 0, i32 0
  %349 = getelementptr inbounds [3 x i32], ptr %348, i64 0, i64 1
  %350 = load i32, ptr %349, align 4, !tbaa !9
  %351 = zext i32 %350 to i64
  %352 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %346, i64 noundef %351)
          to label %353 unwind label %591

353:                                              ; preds = %339
  %354 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %352, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(12) %354)
          to label %355 unwind label %591

355:                                              ; preds = %353
  %356 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %357 = load ptr, ptr %37, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %357, i32 0, i32 0
  %359 = getelementptr inbounds [3 x i32], ptr %358, i64 0, i64 0
  %360 = load i32, ptr %359, align 4, !tbaa !9
  %361 = zext i32 %360 to i64
  %362 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef %361)
          to label %363 unwind label %591

363:                                              ; preds = %355
  %364 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %362, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(12) %364)
          to label %365 unwind label %591

365:                                              ; preds = %363
  %366 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %367 = load double, ptr %366, align 16
  %368 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %369 = load double, ptr %368, align 8
  %370 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %50, double %367, double %369)
          to label %371 unwind label %591

371:                                              ; preds = %365
  %372 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %373 = getelementptr inbounds %union.anon, ptr %372, i32 0, i32 0
  %374 = getelementptr inbounds { double, double }, ptr %373, i32 0, i32 0
  %375 = extractvalue { double, double } %370, 0
  store double %375, ptr %374, align 16
  %376 = getelementptr inbounds { double, double }, ptr %373, i32 0, i32 1
  %377 = extractvalue { double, double } %370, 1
  store double %377, ptr %376, align 8
  %378 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %379 = load double, ptr %378, align 16
  %380 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %381 = load double, ptr %380, align 8
  %382 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %46, double %379, double %381)
          to label %383 unwind label %591

383:                                              ; preds = %371
  %384 = getelementptr inbounds %"class.JPH::Vec3", ptr %45, i32 0, i32 0
  %385 = getelementptr inbounds %union.anon, ptr %384, i32 0, i32 0
  %386 = getelementptr inbounds { double, double }, ptr %385, i32 0, i32 0
  %387 = extractvalue { double, double } %382, 0
  store double %387, ptr %386, align 16
  %388 = getelementptr inbounds { double, double }, ptr %385, i32 0, i32 1
  %389 = extractvalue { double, double } %382, 1
  store double %389, ptr %388, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #9
  %390 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %391 = load ptr, ptr %38, align 8, !tbaa !5
  %392 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %391, i32 0, i32 0
  %393 = getelementptr inbounds [3 x i32], ptr %392, i64 0, i64 2
  %394 = load i32, ptr %393, align 4, !tbaa !9
  %395 = zext i32 %394 to i64
  %396 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %390, i64 noundef %395)
          to label %397 unwind label %596

397:                                              ; preds = %383
  %398 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %396, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(12) %398)
          to label %399 unwind label %596

399:                                              ; preds = %397
  %400 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %401 = load ptr, ptr %38, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %401, i32 0, i32 0
  %403 = getelementptr inbounds [3 x i32], ptr %402, i64 0, i64 0
  %404 = load i32, ptr %403, align 4, !tbaa !9
  %405 = zext i32 %404 to i64
  %406 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %400, i64 noundef %405)
          to label %407 unwind label %596

407:                                              ; preds = %399
  %408 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %406, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(12) %408)
          to label %409 unwind label %596

409:                                              ; preds = %407
  %410 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %411 = load double, ptr %410, align 16
  %412 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %413 = load double, ptr %412, align 8
  %414 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %54, double %411, double %413)
          to label %415 unwind label %596

415:                                              ; preds = %409
  %416 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %417 = getelementptr inbounds %union.anon, ptr %416, i32 0, i32 0
  %418 = getelementptr inbounds { double, double }, ptr %417, i32 0, i32 0
  %419 = extractvalue { double, double } %414, 0
  store double %419, ptr %418, align 16
  %420 = getelementptr inbounds { double, double }, ptr %417, i32 0, i32 1
  %421 = extractvalue { double, double } %414, 1
  store double %421, ptr %420, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #9
  %422 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %423 = load ptr, ptr %38, align 8, !tbaa !5
  %424 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %423, i32 0, i32 0
  %425 = getelementptr inbounds [3 x i32], ptr %424, i64 0, i64 1
  %426 = load i32, ptr %425, align 4, !tbaa !9
  %427 = zext i32 %426 to i64
  %428 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %422, i64 noundef %427)
          to label %429 unwind label %600

429:                                              ; preds = %415
  %430 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %428, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(12) %430)
          to label %431 unwind label %600

431:                                              ; preds = %429
  %432 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %433 = load ptr, ptr %38, align 8, !tbaa !5
  %434 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %433, i32 0, i32 0
  %435 = getelementptr inbounds [3 x i32], ptr %434, i64 0, i64 0
  %436 = load i32, ptr %435, align 4, !tbaa !9
  %437 = zext i32 %436 to i64
  %438 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %432, i64 noundef %437)
          to label %439 unwind label %600

439:                                              ; preds = %431
  %440 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %438, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(12) %440)
          to label %441 unwind label %600

441:                                              ; preds = %439
  %442 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %443 = load double, ptr %442, align 16
  %444 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %445 = load double, ptr %444, align 8
  %446 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %57, double %443, double %445)
          to label %447 unwind label %600

447:                                              ; preds = %441
  %448 = getelementptr inbounds %"class.JPH::Vec3", ptr %56, i32 0, i32 0
  %449 = getelementptr inbounds %union.anon, ptr %448, i32 0, i32 0
  %450 = getelementptr inbounds { double, double }, ptr %449, i32 0, i32 0
  %451 = extractvalue { double, double } %446, 0
  store double %451, ptr %450, align 16
  %452 = getelementptr inbounds { double, double }, ptr %449, i32 0, i32 1
  %453 = extractvalue { double, double } %446, 1
  store double %453, ptr %452, align 8
  %454 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %455 = load double, ptr %454, align 16
  %456 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %457 = load double, ptr %456, align 8
  %458 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %53, double %455, double %457)
          to label %459 unwind label %600

459:                                              ; preds = %447
  %460 = getelementptr inbounds %"class.JPH::Vec3", ptr %52, i32 0, i32 0
  %461 = getelementptr inbounds %union.anon, ptr %460, i32 0, i32 0
  %462 = getelementptr inbounds { double, double }, ptr %461, i32 0, i32 0
  %463 = extractvalue { double, double } %458, 0
  store double %463, ptr %462, align 16
  %464 = getelementptr inbounds { double, double }, ptr %461, i32 0, i32 1
  %465 = extractvalue { double, double } %458, 1
  store double %465, ptr %464, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %52, i64 16, i1 false), !tbaa.struct !28
  %466 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %467 = load double, ptr %466, align 16
  %468 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %469 = load double, ptr %468, align 8
  %470 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %45, double %467, double %469)
          to label %471 unwind label %605

471:                                              ; preds = %459
  %472 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %470)
          to label %473 unwind label %605

473:                                              ; preds = %471
  %474 = load float, ptr %27, align 4, !tbaa !13
  %475 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %45)
          to label %476 unwind label %605

476:                                              ; preds = %473
  %477 = fmul float %474, %475
  %478 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %52)
          to label %479 unwind label %605

479:                                              ; preds = %476
  %480 = fmul float %477, %478
  %481 = fcmp ogt float %472, %480
  br i1 %481, label %482, label %624

482:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #9
  %483 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %484 = load i32, ptr %39, align 4, !tbaa !9
  %485 = zext i32 %484 to i64
  %486 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %483, i64 noundef %485)
          to label %487 unwind label %609

487:                                              ; preds = %482
  %488 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %486, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %61, ptr noundef nonnull align 4 dereferenceable(12) %488)
          to label %489 unwind label %609

489:                                              ; preds = %487
  %490 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %491 = load ptr, ptr %29, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.EdgeHelper, ptr %491, i32 0, i32 0
  %493 = getelementptr inbounds [2 x i32], ptr %492, i64 0, i64 0
  %494 = load i32, ptr %493, align 4, !tbaa !9
  %495 = zext i32 %494 to i64
  %496 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %490, i64 noundef %495)
          to label %497 unwind label %609

497:                                              ; preds = %489
  %498 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %496, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(12) %498)
          to label %499 unwind label %609

499:                                              ; preds = %497
  %500 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %501 = load double, ptr %500, align 16
  %502 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %503 = load double, ptr %502, align 8
  %504 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %61, double %501, double %503)
          to label %505 unwind label %609

505:                                              ; preds = %499
  %506 = getelementptr inbounds %"class.JPH::Vec3", ptr %60, i32 0, i32 0
  %507 = getelementptr inbounds %union.anon, ptr %506, i32 0, i32 0
  %508 = getelementptr inbounds { double, double }, ptr %507, i32 0, i32 0
  %509 = extractvalue { double, double } %504, 0
  store double %509, ptr %508, align 16
  %510 = getelementptr inbounds { double, double }, ptr %507, i32 0, i32 1
  %511 = extractvalue { double, double } %504, 1
  store double %511, ptr %510, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #9
  %512 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %513 = load i32, ptr %40, align 4, !tbaa !9
  %514 = zext i32 %513 to i64
  %515 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %512, i64 noundef %514)
          to label %516 unwind label %613

516:                                              ; preds = %505
  %517 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %515, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(12) %517)
          to label %518 unwind label %613

518:                                              ; preds = %516
  %519 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %520 = load ptr, ptr %29, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.EdgeHelper, ptr %520, i32 0, i32 0
  %522 = getelementptr inbounds [2 x i32], ptr %521, i64 0, i64 0
  %523 = load i32, ptr %522, align 4, !tbaa !9
  %524 = zext i32 %523 to i64
  %525 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %519, i64 noundef %524)
          to label %526 unwind label %613

526:                                              ; preds = %518
  %527 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %525, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(12) %527)
          to label %528 unwind label %613

528:                                              ; preds = %526
  %529 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %530 = load double, ptr %529, align 16
  %531 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %532 = load double, ptr %531, align 8
  %533 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %64, double %530, double %532)
          to label %534 unwind label %613

534:                                              ; preds = %528
  %535 = getelementptr inbounds %"class.JPH::Vec3", ptr %63, i32 0, i32 0
  %536 = getelementptr inbounds %union.anon, ptr %535, i32 0, i32 0
  %537 = getelementptr inbounds { double, double }, ptr %536, i32 0, i32 0
  %538 = extractvalue { double, double } %533, 0
  store double %538, ptr %537, align 16
  %539 = getelementptr inbounds { double, double }, ptr %536, i32 0, i32 1
  %540 = extractvalue { double, double } %533, 1
  store double %540, ptr %539, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %63, i64 16, i1 false), !tbaa.struct !28
  %541 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %542 = load double, ptr %541, align 16
  %543 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %544 = load double, ptr %543, align 8
  %545 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %60, double %542, double %544)
          to label %546 unwind label %617

546:                                              ; preds = %534
  %547 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %545)
          to label %548 unwind label %617

548:                                              ; preds = %546
  %549 = load float, ptr %26, align 4, !tbaa !13
  %550 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %60)
          to label %551 unwind label %617

551:                                              ; preds = %548
  %552 = fmul float %549, %550
  %553 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %63)
          to label %554 unwind label %617

554:                                              ; preds = %551
  %555 = fmul float %552, %553
  %556 = fcmp olt float %547, %555
  br i1 %556, label %557, label %621

557:                                              ; preds = %554
  %558 = load i32, ptr %39, align 4, !tbaa !9
  %559 = load i32, ptr %40, align 4, !tbaa !9
  %560 = load ptr, ptr %41, align 8, !tbaa !5
  %561 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %560, i32 0, i32 1
  %562 = load float, ptr %561, align 4, !tbaa !30
  %563 = load ptr, ptr %43, align 8, !tbaa !5
  %564 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %563, i32 0, i32 1
  %565 = load float, ptr %564, align 4, !tbaa !30
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %558, i32 noundef %559, float noundef %562, float noundef %565)
          to label %566 unwind label %617

566:                                              ; preds = %557
  store i8 1, ptr %34, align 1, !tbaa !26
  br label %621

567:                                              ; preds = %250
  %568 = landingpad { ptr, i32 }
          cleanup
  %569 = extractvalue { ptr, i32 } %568, 0
  store ptr %569, ptr %12, align 8
  %570 = extractvalue { ptr, i32 } %568, 1
  store i32 %570, ptr %13, align 4
  br label %708

571:                                              ; preds = %273
  %572 = landingpad { ptr, i32 }
          cleanup
  %573 = extractvalue { ptr, i32 } %572, 0
  store ptr %573, ptr %12, align 8
  %574 = extractvalue { ptr, i32 } %572, 1
  store i32 %574, ptr %13, align 4
  br label %697

575:                                              ; preds = %281
  %576 = landingpad { ptr, i32 }
          cleanup
  %577 = extractvalue { ptr, i32 } %576, 0
  store ptr %577, ptr %12, align 8
  %578 = extractvalue { ptr, i32 } %576, 1
  store i32 %578, ptr %13, align 4
  br label %696

579:                                              ; preds = %289
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %12, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %13, align 4
  br label %695

583:                                              ; preds = %311
  %584 = landingpad { ptr, i32 }
          cleanup
  %585 = extractvalue { ptr, i32 } %584, 0
  store ptr %585, ptr %12, align 8
  %586 = extractvalue { ptr, i32 } %584, 1
  store i32 %586, ptr %13, align 4
  br label %694

587:                                              ; preds = %333, %331, %323, %321, %313
  %588 = landingpad { ptr, i32 }
          cleanup
  %589 = extractvalue { ptr, i32 } %588, 0
  store ptr %589, ptr %12, align 8
  %590 = extractvalue { ptr, i32 } %588, 1
  store i32 %590, ptr %13, align 4
  br label %595

591:                                              ; preds = %371, %365, %363, %355, %353, %339
  %592 = landingpad { ptr, i32 }
          cleanup
  %593 = extractvalue { ptr, i32 } %592, 0
  store ptr %593, ptr %12, align 8
  %594 = extractvalue { ptr, i32 } %592, 1
  store i32 %594, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #9
  br label %595

595:                                              ; preds = %591, %587
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  br label %693

596:                                              ; preds = %409, %407, %399, %397, %383
  %597 = landingpad { ptr, i32 }
          cleanup
  %598 = extractvalue { ptr, i32 } %597, 0
  store ptr %598, ptr %12, align 8
  %599 = extractvalue { ptr, i32 } %597, 1
  store i32 %599, ptr %13, align 4
  br label %604

600:                                              ; preds = %447, %441, %439, %431, %429, %415
  %601 = landingpad { ptr, i32 }
          cleanup
  %602 = extractvalue { ptr, i32 } %601, 0
  store ptr %602, ptr %12, align 8
  %603 = extractvalue { ptr, i32 } %601, 1
  store i32 %603, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #9
  br label %604

604:                                              ; preds = %600, %596
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  br label %692

605:                                              ; preds = %649, %640, %629, %476, %473, %471, %459
  %606 = landingpad { ptr, i32 }
          cleanup
  %607 = extractvalue { ptr, i32 } %606, 0
  store ptr %607, ptr %12, align 8
  %608 = extractvalue { ptr, i32 } %606, 1
  store i32 %608, ptr %13, align 4
  br label %692

609:                                              ; preds = %499, %497, %489, %487, %482
  %610 = landingpad { ptr, i32 }
          cleanup
  %611 = extractvalue { ptr, i32 } %610, 0
  store ptr %611, ptr %12, align 8
  %612 = extractvalue { ptr, i32 } %610, 1
  store i32 %612, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #9
  br label %623

613:                                              ; preds = %528, %526, %518, %516, %505
  %614 = landingpad { ptr, i32 }
          cleanup
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %12, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #9
  br label %622

617:                                              ; preds = %557, %551, %548, %546, %534
  %618 = landingpad { ptr, i32 }
          cleanup
  %619 = extractvalue { ptr, i32 } %618, 0
  store ptr %619, ptr %12, align 8
  %620 = extractvalue { ptr, i32 } %618, 1
  store i32 %620, ptr %13, align 4
  br label %622

621:                                              ; preds = %566, %554
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  br label %624

622:                                              ; preds = %617, %613
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #9
  br label %623

623:                                              ; preds = %622, %609
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  br label %692

624:                                              ; preds = %621, %479
  %625 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %625, label %691 [
    i32 0, label %691
    i32 1, label %626
    i32 2, label %640
  ]

626:                                              ; preds = %624
  %627 = load i8, ptr %34, align 1, !tbaa !26, !range !33, !noundef !34
  %628 = trunc i8 %627 to i1
  br i1 %628, label %639, label %629

629:                                              ; preds = %626
  %630 = load i32, ptr %39, align 4, !tbaa !9
  %631 = load i32, ptr %40, align 4, !tbaa !9
  %632 = load ptr, ptr %30, align 8, !tbaa !5
  %633 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %632, i32 0, i32 2
  %634 = load float, ptr %633, align 4, !tbaa !35
  %635 = load ptr, ptr %32, align 8, !tbaa !5
  %636 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %635, i32 0, i32 2
  %637 = load float, ptr %636, align 4, !tbaa !35
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %630, i32 noundef %631, float noundef %634, float noundef %637)
          to label %638 unwind label %605

638:                                              ; preds = %629
  br label %639

639:                                              ; preds = %638, %626
  br label %691

640:                                              ; preds = %624
  %641 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %642 = load i32, ptr %39, align 4, !tbaa !9
  %643 = zext i32 %642 to i64
  %644 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %641, i64 noundef %643)
          to label %645 unwind label %605

645:                                              ; preds = %640
  %646 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %644, i32 0, i32 2
  %647 = load float, ptr %646, align 4, !tbaa !36
  %648 = fcmp ogt float %647, 0.000000e+00
  br i1 %648, label %658, label %649

649:                                              ; preds = %645
  %650 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %651 = load i32, ptr %40, align 4, !tbaa !9
  %652 = zext i32 %651 to i64
  %653 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %650, i64 noundef %652)
          to label %654 unwind label %605

654:                                              ; preds = %649
  %655 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %653, i32 0, i32 2
  %656 = load float, ptr %655, align 4, !tbaa !36
  %657 = fcmp ogt float %656, 0.000000e+00
  br i1 %657, label %658, label %690

658:                                              ; preds = %654, %645
  %659 = load ptr, ptr %30, align 8, !tbaa !5
  %660 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %659, i32 0, i32 2
  %661 = load float, ptr %660, align 4, !tbaa !35
  %662 = fcmp olt float %661, 0x47EFFFFFE0000000
  br i1 %662, label %663, label %690

663:                                              ; preds = %658
  %664 = load ptr, ptr %32, align 8, !tbaa !5
  %665 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %664, i32 0, i32 2
  %666 = load float, ptr %665, align 4, !tbaa !35
  %667 = fcmp olt float %666, 0x47EFFFFFE0000000
  br i1 %667, label %668, label %690

668:                                              ; preds = %663
  %669 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 4
  %670 = load ptr, ptr %29, align 8, !tbaa !5
  %671 = getelementptr inbounds %struct.EdgeHelper, ptr %670, i32 0, i32 0
  %672 = getelementptr inbounds [2 x i32], ptr %671, i64 0, i64 0
  %673 = load ptr, ptr %29, align 8, !tbaa !5
  %674 = getelementptr inbounds %struct.EdgeHelper, ptr %673, i32 0, i32 0
  %675 = getelementptr inbounds [2 x i32], ptr %674, i64 0, i64 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #9
  %676 = load ptr, ptr %30, align 8, !tbaa !5
  %677 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %676, i32 0, i32 2
  %678 = load float, ptr %677, align 4, !tbaa !35
  %679 = load ptr, ptr %32, align 8, !tbaa !5
  %680 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %679, i32 0, i32 2
  %681 = load float, ptr %680, align 4, !tbaa !35
  %682 = fadd float %678, %681
  %683 = fmul float 5.000000e-01, %682
  store float %683, ptr %67, align 4, !tbaa !13
  %684 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE12emplace_backIJRKjS8_RjS9_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %669, ptr noundef nonnull align 4 dereferenceable(4) %672, ptr noundef nonnull align 4 dereferenceable(4) %675, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %67)
          to label %685 unwind label %686

685:                                              ; preds = %668
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #9
  br label %690

686:                                              ; preds = %668
  %687 = landingpad { ptr, i32 }
          cleanup
  %688 = extractvalue { ptr, i32 } %687, 0
  store ptr %688, ptr %12, align 8
  %689 = extractvalue { ptr, i32 } %687, 1
  store i32 %689, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #9
  br label %692

690:                                              ; preds = %685, %663, %658, %654
  br label %691

691:                                              ; preds = %690, %639, %624, %624
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %701

692:                                              ; preds = %686, %623, %605, %604
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #9
  br label %693

693:                                              ; preds = %692, %595
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %44) #9
  br label %694

694:                                              ; preds = %693, %583
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %42) #9
  br label %695

695:                                              ; preds = %694, %579
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %696

696:                                              ; preds = %695, %575
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %697

697:                                              ; preds = %696, %571
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %708

698:                                              ; preds = %263, %253
  %699 = load i64, ptr %35, align 8, !tbaa !24
  %700 = sub i64 %699, 1
  store i64 %700, ptr %28, align 8, !tbaa !24
  store i32 10, ptr %17, align 4
  br label %702

701:                                              ; preds = %691
  store i32 0, ptr %17, align 4
  br label %702

702:                                              ; preds = %701, %698
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  %703 = load i32, ptr %17, align 4
  switch i32 %703, label %709 [
    i32 0, label %704
  ]

704:                                              ; preds = %702
  br label %705

705:                                              ; preds = %704
  %706 = load i64, ptr %35, align 8, !tbaa !24
  %707 = add i64 %706, 1
  store i64 %707, ptr %35, align 8, !tbaa !24
  br label %228, !llvm.loop !39

708:                                              ; preds = %697, %567
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %710

709:                                              ; preds = %702, %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %711

710:                                              ; preds = %708, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %752

711:                                              ; preds = %709
  %712 = load ptr, ptr %29, align 8, !tbaa !5
  %713 = getelementptr inbounds %struct.EdgeHelper, ptr %712, i32 0, i32 0
  %714 = getelementptr inbounds [2 x i32], ptr %713, i64 0, i64 0
  %715 = load i32, ptr %714, align 4, !tbaa !9
  %716 = load ptr, ptr %29, align 8, !tbaa !5
  %717 = getelementptr inbounds %struct.EdgeHelper, ptr %716, i32 0, i32 0
  %718 = getelementptr inbounds [2 x i32], ptr %717, i64 0, i64 1
  %719 = load i32, ptr %718, align 4, !tbaa !9
  %720 = load i8, ptr %34, align 1, !tbaa !26, !range !33, !noundef !34
  %721 = trunc i8 %720 to i1
  br i1 %721, label %722, label %726

722:                                              ; preds = %711
  %723 = load ptr, ptr %30, align 8, !tbaa !5
  %724 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %723, i32 0, i32 1
  %725 = load float, ptr %724, align 4, !tbaa !30
  br label %730

726:                                              ; preds = %711
  %727 = load ptr, ptr %30, align 8, !tbaa !5
  %728 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %727, i32 0, i32 0
  %729 = load float, ptr %728, align 4, !tbaa !40
  br label %730

730:                                              ; preds = %726, %722
  %731 = phi float [ %725, %722 ], [ %729, %726 ]
  %732 = load i8, ptr %34, align 1, !tbaa !26, !range !33, !noundef !34
  %733 = trunc i8 %732 to i1
  br i1 %733, label %734, label %738

734:                                              ; preds = %730
  %735 = load ptr, ptr %32, align 8, !tbaa !5
  %736 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %735, i32 0, i32 1
  %737 = load float, ptr %736, align 4, !tbaa !30
  br label %742

738:                                              ; preds = %730
  %739 = load ptr, ptr %32, align 8, !tbaa !5
  %740 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %739, i32 0, i32 0
  %741 = load float, ptr %740, align 4, !tbaa !40
  br label %742

742:                                              ; preds = %738, %734
  %743 = phi float [ %737, %734 ], [ %741, %738 ]
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %715, i32 noundef %719, float noundef %731, float noundef %743)
          to label %744 unwind label %748

744:                                              ; preds = %742
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %745

745:                                              ; preds = %744
  %746 = load i64, ptr %28, align 8, !tbaa !24
  %747 = add i64 %746, 1
  store i64 %747, ptr %28, align 8, !tbaa !24
  br label %194, !llvm.loop !41

748:                                              ; preds = %742
  %749 = landingpad { ptr, i32 }
          cleanup
  %750 = extractvalue { ptr, i32 } %749, 0
  store ptr %750, ptr %12, align 8
  %751 = extractvalue { ptr, i32 } %749, 1
  store i32 %751, ptr %13, align 4
  br label %752

752:                                              ; preds = %748, %710
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %33) #9
  br label %753

753:                                              ; preds = %752, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %31) #9
  br label %754

754:                                              ; preds = %753, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %755

755:                                              ; preds = %754, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %756

756:                                              ; preds = %755, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %907

757:                                              ; preds = %199
  %758 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 3
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %758)
          to label %759 unwind label %204

759:                                              ; preds = %757
  invoke void @_ZN3JPH22SoftBodySharedSettings32CalculateBendConstraintConstantsEv(ptr noundef nonnull align 8 dereferenceable(304) %79)
          to label %760 unwind label %204

760:                                              ; preds = %759
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #9
  store i8 0, ptr %68, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #9
  %761 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %761, ptr %69, align 8, !tbaa !5
  br label %762

762:                                              ; preds = %777, %760
  %763 = load ptr, ptr %69, align 8, !tbaa !5
  %764 = load ptr, ptr %7, align 8, !tbaa !5
  %765 = load i32, ptr %8, align 4, !tbaa !9
  %766 = zext i32 %765 to i64
  %767 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %764, i64 %766
  %768 = icmp ult ptr %763, %767
  br i1 %768, label %770, label %769

769:                                              ; preds = %762
  store i32 14, ptr %17, align 4
  br label %780

770:                                              ; preds = %762
  %771 = load ptr, ptr %69, align 8, !tbaa !5
  %772 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %771, i32 0, i32 3
  %773 = load i32, ptr %772, align 4, !tbaa !42
  %774 = icmp ne i32 %773, 0
  br i1 %774, label %775, label %776

775:                                              ; preds = %770
  store i8 1, ptr %68, align 1, !tbaa !26
  store i32 14, ptr %17, align 4
  br label %780

776:                                              ; preds = %770
  br label %777

777:                                              ; preds = %776
  %778 = load ptr, ptr %69, align 8, !tbaa !5
  %779 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %778, i32 1
  store ptr %779, ptr %69, align 8, !tbaa !5
  br label %762, !llvm.loop !43

780:                                              ; preds = %775, %769
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #9
  br label %781

781:                                              ; preds = %780
  %782 = load i8, ptr %68, align 1, !tbaa !26, !range !33, !noundef !34
  %783 = trunc i8 %782 to i1
  br i1 %783, label %784, label %905

784:                                              ; preds = %781
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %79)
          to label %785 unwind label %794

785:                                              ; preds = %784
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #9
  store i32 0, ptr %70, align 4, !tbaa !9
  br label %786

786:                                              ; preds = %900, %785
  %787 = load i32, ptr %70, align 4, !tbaa !9
  %788 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %789 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %788)
          to label %790 unwind label %798

790:                                              ; preds = %786
  %791 = trunc i64 %789 to i32
  %792 = icmp ult i32 %787, %791
  br i1 %792, label %802, label %793

793:                                              ; preds = %790
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  br label %904

794:                                              ; preds = %784
  %795 = landingpad { ptr, i32 }
          cleanup
  %796 = extractvalue { ptr, i32 } %795, 0
  store ptr %796, ptr %12, align 8
  %797 = extractvalue { ptr, i32 } %795, 1
  store i32 %797, ptr %13, align 4
  br label %906

798:                                              ; preds = %802, %786
  %799 = landingpad { ptr, i32 }
          cleanup
  %800 = extractvalue { ptr, i32 } %799, 0
  store ptr %800, ptr %12, align 8
  %801 = extractvalue { ptr, i32 } %799, 1
  store i32 %801, ptr %13, align 4
  br label %903

802:                                              ; preds = %790
  %803 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %804 = load i32, ptr %70, align 4, !tbaa !9
  %805 = zext i32 %804 to i64
  %806 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %803, i64 noundef %805)
          to label %807 unwind label %798

807:                                              ; preds = %802
  %808 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %806, i32 0, i32 2
  %809 = load float, ptr %808, align 4, !tbaa !36
  %810 = fcmp ogt float %809, 0.000000e+00
  br i1 %810, label %811, label %899

811:                                              ; preds = %807
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #9
  %812 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 11
  %813 = load i32, ptr %70, align 4, !tbaa !9
  %814 = zext i32 %813 to i64
  %815 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %812, i64 noundef %814)
          to label %816 unwind label %827

816:                                              ; preds = %811
  %817 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::ClosestKinematic", ptr %815, i32 0, i32 0
  %818 = load i32, ptr %817, align 4, !tbaa !44
  store i32 %818, ptr %71, align 4, !tbaa !9
  %819 = load i32, ptr %71, align 4, !tbaa !9
  %820 = icmp ne i32 %819, -1
  br i1 %820, label %821, label %897

821:                                              ; preds = %816
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr %73) #9
  %822 = load i32, ptr %70, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %73, ptr noundef nonnull align 8 dereferenceable(12) %25, i32 noundef %822)
          to label %823 unwind label %831

823:                                              ; preds = %821
  store ptr %73, ptr %72, align 8, !tbaa !5
  %824 = load ptr, ptr %72, align 8, !tbaa !5
  %825 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %824, i32 0, i32 3
  %826 = load i32, ptr %825, align 4, !tbaa !42
  switch i32 %826, label %894 [
    i32 0, label %894
    i32 1, label %835
    i32 2, label %875
  ]

827:                                              ; preds = %811
  %828 = landingpad { ptr, i32 }
          cleanup
  %829 = extractvalue { ptr, i32 } %828, 0
  store ptr %829, ptr %12, align 8
  %830 = extractvalue { ptr, i32 } %828, 1
  store i32 %830, ptr %13, align 4
  br label %898

831:                                              ; preds = %821
  %832 = landingpad { ptr, i32 }
          cleanup
  %833 = extractvalue { ptr, i32 } %832, 0
  store ptr %833, ptr %12, align 8
  %834 = extractvalue { ptr, i32 } %832, 1
  store i32 %834, ptr %13, align 4
  br label %896

835:                                              ; preds = %823
  %836 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #9
  %837 = load ptr, ptr %72, align 8, !tbaa !5
  %838 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %837, i32 0, i32 4
  %839 = load float, ptr %838, align 4, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 16, ptr %75) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %76) #9
  %840 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %841 = load i32, ptr %71, align 4, !tbaa !9
  %842 = zext i32 %841 to i64
  %843 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %840, i64 noundef %842)
          to label %844 unwind label %871

844:                                              ; preds = %835
  %845 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %843, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %76, ptr noundef nonnull align 4 dereferenceable(12) %845)
          to label %846 unwind label %871

846:                                              ; preds = %844
  %847 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 1
  %848 = load i32, ptr %70, align 4, !tbaa !9
  %849 = zext i32 %848 to i64
  %850 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %847, i64 noundef %849)
          to label %851 unwind label %871

851:                                              ; preds = %846
  %852 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %850, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(12) %852)
          to label %853 unwind label %871

853:                                              ; preds = %851
  %854 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %855 = load double, ptr %854, align 16
  %856 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %857 = load double, ptr %856, align 8
  %858 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %76, double %855, double %857)
          to label %859 unwind label %871

859:                                              ; preds = %853
  %860 = getelementptr inbounds %"class.JPH::Vec3", ptr %75, i32 0, i32 0
  %861 = getelementptr inbounds %union.anon, ptr %860, i32 0, i32 0
  %862 = getelementptr inbounds { double, double }, ptr %861, i32 0, i32 0
  %863 = extractvalue { double, double } %858, 0
  store double %863, ptr %862, align 16
  %864 = getelementptr inbounds { double, double }, ptr %861, i32 0, i32 1
  %865 = extractvalue { double, double } %858, 1
  store double %865, ptr %864, align 8
  %866 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %75)
          to label %867 unwind label %871

867:                                              ; preds = %859
  %868 = fmul float %839, %866
  store float %868, ptr %74, align 4, !tbaa !13
  %869 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %836, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %74)
          to label %870 unwind label %871

870:                                              ; preds = %867
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #9
  br label %894

871:                                              ; preds = %867, %859, %853, %851, %846, %844, %835
  %872 = landingpad { ptr, i32 }
          cleanup
  %873 = extractvalue { ptr, i32 } %872, 0
  store ptr %873, ptr %12, align 8
  %874 = extractvalue { ptr, i32 } %872, 1
  store i32 %874, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %75) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #9
  br label %895

875:                                              ; preds = %823
  %876 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #9
  %877 = load ptr, ptr %72, align 8, !tbaa !5
  %878 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %877, i32 0, i32 4
  %879 = load float, ptr %878, align 4, !tbaa !46
  %880 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %79, i32 0, i32 11
  %881 = load i32, ptr %70, align 4, !tbaa !9
  %882 = zext i32 %881 to i64
  %883 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %880, i64 noundef %882)
          to label %884 unwind label %890

884:                                              ; preds = %875
  %885 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::ClosestKinematic", ptr %883, i32 0, i32 1
  %886 = load float, ptr %885, align 4, !tbaa !47
  %887 = fmul float %879, %886
  store float %887, ptr %78, align 4, !tbaa !13
  %888 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %876, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %78)
          to label %889 unwind label %890

889:                                              ; preds = %884
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #9
  br label %894

890:                                              ; preds = %884, %875
  %891 = landingpad { ptr, i32 }
          cleanup
  %892 = extractvalue { ptr, i32 } %891, 0
  store ptr %892, ptr %12, align 8
  %893 = extractvalue { ptr, i32 } %891, 1
  store i32 %893, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #9
  br label %895

894:                                              ; preds = %889, %870, %823, %823
  call void @llvm.lifetime.end.p0(i64 20, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  br label %897

895:                                              ; preds = %890, %871
  call void @llvm.lifetime.end.p0(i64 20, ptr %73) #9
  br label %896

896:                                              ; preds = %895, %831
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  br label %898

897:                                              ; preds = %894, %816
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  br label %899

898:                                              ; preds = %896, %827
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  br label %903

899:                                              ; preds = %897, %807
  br label %900

900:                                              ; preds = %899
  %901 = load i32, ptr %70, align 4, !tbaa !9
  %902 = add i32 %901, 1
  store i32 %902, ptr %70, align 4, !tbaa !9
  br label %786, !llvm.loop !48

903:                                              ; preds = %898, %798
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  br label %906

904:                                              ; preds = %793
  br label %905

905:                                              ; preds = %904, %781
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  ret void

906:                                              ; preds = %903, %794
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #9
  br label %907

907:                                              ; preds = %906, %756, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %908

908:                                              ; preds = %907, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %909

909:                                              ; preds = %908, %166, %97
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  br label %910

910:                                              ; preds = %909
  %911 = load ptr, ptr %12, align 8
  %912 = load i32, ptr %13, align 4
  %913 = insertvalue { ptr, i32 } poison, ptr %911, 0
  %914 = insertvalue { ptr, i32 } %913, i32 %912, 1
  resume { ptr, i32 } %914
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE9push_backERKS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperZNS1_17CreateConstraintsES4_jS5_fE3$_0EEvT_S9_T0_"(ptr noundef, ptr noundef) #3

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) #6

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind noalias writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4, ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #2 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #8 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, float noundef, float noundef) #3 align 2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3JPH22SoftBodySharedSettings9EBendTypeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfE10EdgeHelper", !7, i64 0, !10, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfE3$_1", !6, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfE3$_2", !6, i64 0, !10, i64 8}
!23 = !{!22, !10, i64 8}
!24 = !{!25, !25, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{i64 0, i64 16, !29}
!29 = !{!7, !7, i64 0}
!30 = !{!31, !14, i64 4}
!31 = !{!"_ZTSN3JPH22SoftBodySharedSettings16VertexAttributesE", !14, i64 0, !14, i64 4, !14, i64 8, !32, i64 12, !14, i64 16}
!32 = !{!"_ZTSN3JPH22SoftBodySharedSettings8ELRATypeE", !7, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!31, !14, i64 8}
!36 = !{!37, !14, i64 24}
!37 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !38, i64 0, !38, i64 12, !14, i64 24}
!38 = !{!"_ZTSN3JPH6Float3E", !14, i64 0, !14, i64 4, !14, i64 8}
!39 = distinct !{!39, !18}
!40 = !{!31, !14, i64 0}
!41 = distinct !{!41, !18}
!42 = !{!31, !32, i64 12}
!43 = distinct !{!43, !18}
!44 = !{!45, !10, i64 0}
!45 = !{!"_ZTSN3JPH22SoftBodySharedSettings16ClosestKinematicE", !10, i64 0, !14, i64 4}
!46 = !{!31, !14, i64 16}
!47 = !{!45, !14, i64 4}
!48 = distinct !{!48, !18}


; 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.77" = type { i64, i64, ptr }
%struct.EdgeHelper = type { [2 x i32], i32 }
%class.anon.82 = type { ptr }
%class.anon.83 = type <{ ptr, i32, [4 x i8] }>
%"struct.JPH::SoftBodySharedSettings::VertexAttributes" = type { float, float, float, i32, float }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

; 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 @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEf(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.JPH::Array.77", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.EdgeHelper, align 4
  %10 = alloca %class.anon.82, align 8
  %11 = alloca %class.anon.83, align 8
  %12 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %13 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %17 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %40 = alloca float, align 4
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  %46 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %47 = mul i64 %46, 3
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %47)
          to label %48 unwind label %69

48:                                               ; preds = %5
  %49 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %50 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %.not166 = icmp eq ptr %49, %50
  br i1 %.not166, label %._crit_edge, label %.preheader152.lr.ph

.preheader152.lr.ph:                              ; preds = %48
  %51 = getelementptr inbounds i8, ptr %9, i64 4
  %52 = getelementptr inbounds i8, ptr %9, i64 8
  br label %.preheader152

.preheader152:                                    ; preds = %.preheader152.lr.ph, %100
  %.0109167 = phi ptr [ %49, %.preheader152.lr.ph ], [ %101, %100 ]
  %53 = ptrtoint ptr %.0109167 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %54 = load i32, ptr %.0109167, align 4, !tbaa !5
  store i32 %54, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %55 = getelementptr inbounds i8, ptr %.0109167, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %56, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %58 = load i32, ptr %57, align 4, !tbaa !5
  store i32 %58, ptr %9, align 4, !tbaa !5
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %60 = load i32, ptr %59, align 4, !tbaa !5
  store i32 %60, ptr %51, align 4, !tbaa !5
  %61 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %62 = ptrtoint ptr %61 to i64
  %63 = sub i64 %53, %62
  %64 = lshr exact i64 %63, 4
  %65 = trunc i64 %64 to i32
  %66 = mul i32 %65, 3
  store i32 %66, ptr %52, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE9push_backERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %71 unwind label %102

._crit_edge:                                      ; preds = %100, %48
  %67 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %68 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  invoke void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperZNS1_17CreateConstraintsES4_jS5_fE3$_0EEvT_S9_T0_"(ptr noundef %67, ptr noundef %68)
          to label %104 unwind label %69

69:                                               ; preds = %._crit_edge, %5
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %492

71:                                               ; preds = %.preheader152
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %72 = load i32, ptr %55, align 4, !tbaa !5
  store i32 %72, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %73 = getelementptr inbounds i8, ptr %.0109167, i64 8
  %74 = load i32, ptr %73, align 4, !tbaa !5
  store i32 %74, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %76 = load i32, ptr %75, align 4, !tbaa !5
  store i32 %76, ptr %9, align 4, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %78 = load i32, ptr %77, align 4, !tbaa !5
  store i32 %78, ptr %51, align 4, !tbaa !5
  %79 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %80 = ptrtoint ptr %79 to i64
  %81 = sub i64 %53, %80
  %82 = lshr exact i64 %81, 4
  %83 = trunc i64 %82 to i32
  %84 = mul i32 %83, 3
  %85 = add i32 %84, 1
  store i32 %85, ptr %52, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE9push_backERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %86 unwind label %102

86:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %87 = load i32, ptr %73, align 4, !tbaa !5
  store i32 %87, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %88 = load i32, ptr %.0109167, align 4, !tbaa !5
  store i32 %88, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %90 = load i32, ptr %89, align 4, !tbaa !5
  store i32 %90, ptr %9, align 4, !tbaa !5
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %92 = load i32, ptr %91, align 4, !tbaa !5
  store i32 %92, ptr %51, align 4, !tbaa !5
  %93 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %94 = ptrtoint ptr %93 to i64
  %95 = sub i64 %53, %94
  %96 = lshr exact i64 %95, 4
  %97 = trunc i64 %96 to i32
  %98 = mul i32 %97, 3
  %99 = add i32 %98, 2
  store i32 %99, ptr %52, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE9push_backERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %100 unwind label %102

100:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %101 = getelementptr inbounds i8, ptr %.0109167, i64 16
  %.not = icmp eq ptr %101, %50
  br i1 %.not, label %._crit_edge, label %.preheader152

102:                                              ; preds = %86, %71, %.preheader152
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %492

104:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store ptr %0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  store ptr %1, ptr %11, align 8, !tbaa !14
  %105 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %2, ptr %105, align 8, !tbaa !16
  %106 = invoke noundef float @_ZN3JPH3SinEf(float noundef %4)
          to label %107 unwind label %136

107:                                              ; preds = %104
  %108 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %106)
  %109 = invoke noundef float @_ZN3JPH3CosEf(float noundef %4)
          to label %110 unwind label %138

110:                                              ; preds = %107
  %111 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %109)
  %112 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %112)
          to label %113 unwind label %138

113:                                              ; preds = %110
  %114 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114)
          to label %.preheader151 unwind label %138

.preheader151:                                    ; preds = %113
  %115 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %.not188 = icmp eq i64 %115, 0
  br i1 %.not188, label %._crit_edge182, label %.lr.ph181

.lr.ph181:                                        ; preds = %.preheader151
  %116 = getelementptr inbounds i8, ptr %0, i64 8
  %117 = getelementptr inbounds i8, ptr %21, i64 8
  %118 = getelementptr inbounds i8, ptr %19, i64 8
  %119 = getelementptr inbounds i8, ptr %23, i64 8
  %120 = getelementptr inbounds i8, ptr %18, i64 8
  %121 = getelementptr inbounds i8, ptr %27, i64 8
  %122 = getelementptr inbounds i8, ptr %25, i64 8
  %123 = getelementptr inbounds i8, ptr %29, i64 8
  %124 = getelementptr inbounds i8, ptr %24, i64 8
  %125 = getelementptr inbounds i8, ptr %32, i64 8
  %126 = getelementptr inbounds i8, ptr %30, i64 8
  %127 = getelementptr inbounds i8, ptr %35, i64 8
  %128 = getelementptr inbounds i8, ptr %33, i64 8
  %129 = getelementptr inbounds i8, ptr %16, i64 4
  %130 = getelementptr inbounds i8, ptr %17, i64 4
  %131 = getelementptr inbounds i8, ptr %12, i64 8
  %132 = getelementptr inbounds i8, ptr %13, i64 8
  %133 = getelementptr inbounds i8, ptr %0, i64 80
  %134 = getelementptr inbounds i8, ptr %12, i64 4
  %135 = getelementptr inbounds i8, ptr %13, i64 4
  br label %140

._crit_edge182:                                   ; preds = %393, %.preheader151
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %112)
          to label %400 unwind label %138

136:                                              ; preds = %104
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %491

138:                                              ; preds = %400, %._crit_edge182, %113, %110, %107
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %491

140:                                              ; preds = %.lr.ph181, %393
  %.0112180 = phi i64 [ 0, %.lr.ph181 ], [ %394, %393 ]
  %141 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.0112180)
          to label %142 unwind label %149

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %12) #8
  %143 = load i32, ptr %141, align 4, !tbaa !5
  call void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind nonnull writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %12, ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %143)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %13) #8
  %144 = getelementptr inbounds i8, ptr %141, i64 4
  %145 = load i32, ptr %144, align 4, !tbaa !5
  call void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind nonnull writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %13, ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %145)
  %.0121168 = add nuw i64 %.0112180, 1
  %146 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %147 = icmp ult i64 %.0121168, %146
  br i1 %147, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %142
  %148 = getelementptr inbounds i8, ptr %141, i64 8
  br label %151

149:                                              ; preds = %140
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %491

151:                                              ; preds = %.lr.ph, %381
  %.0121171 = phi i64 [ %.0121168, %.lr.ph ], [ %.0121, %381 ]
  %.0116170 = phi i8 [ 0, %.lr.ph ], [ %.2118, %381 ]
  %.0121.in169 = phi i64 [ %.0112180, %.lr.ph ], [ %.0121171, %381 ]
  %152 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.0121171)
          to label %153 unwind label %315

153:                                              ; preds = %151
  %154 = load i32, ptr %141, align 4, !tbaa !5
  %155 = load i32, ptr %152, align 4, !tbaa !5
  %156 = icmp eq i32 %154, %155
  br i1 %156, label %157, label %.thread

157:                                              ; preds = %153
  %158 = load i32, ptr %144, align 4, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %152, i64 4
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = icmp eq i32 %158, %160
  br i1 %161, label %162, label %.thread

162:                                              ; preds = %157
  %163 = load i32, ptr %148, align 4, !tbaa !9
  %164 = udiv i32 %163, 3
  %165 = zext nneg i32 %164 to i64
  %166 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %165)
          to label %167 unwind label %317

167:                                              ; preds = %162
  %168 = getelementptr inbounds i8, ptr %152, i64 8
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = udiv i32 %169, 3
  %171 = zext nneg i32 %170 to i64
  %172 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %171)
          to label %173 unwind label %319

173:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %174 = load i32, ptr %148, align 4, !tbaa !9
  %175 = add i32 %174, 2
  %176 = urem i32 %175, 3
  %177 = zext nneg i32 %176 to i64
  %178 = getelementptr inbounds [3 x i32], ptr %166, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  store i32 %179, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %180 = load i32, ptr %168, align 4, !tbaa !9
  %181 = add i32 %180, 2
  %182 = urem i32 %181, 3
  %183 = zext nneg i32 %182 to i64
  %184 = getelementptr inbounds [3 x i32], ptr %172, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  store i32 %185, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %16) #8
  call void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind nonnull writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %16, ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %179)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %17) #8
  %186 = load i32, ptr %15, align 4, !tbaa !5
  call void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind nonnull writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %17, ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %186)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  %187 = getelementptr inbounds i8, ptr %166, i64 8
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = zext i32 %188 to i64
  %190 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %189)
          to label %191 unwind label %321

191:                                              ; preds = %173
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(12) %190)
          to label %192 unwind label %321

192:                                              ; preds = %191
  %193 = load i32, ptr %166, align 4, !tbaa !5
  %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) %116, i64 noundef %194)
          to label %196 unwind label %321

196:                                              ; preds = %192
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(12) %195)
          to label %197 unwind label %321

197:                                              ; preds = %196
  %198 = load double, ptr %21, align 16
  %199 = load double, ptr %117, align 8
  %200 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %198, double %199)
          to label %201 unwind label %321

201:                                              ; preds = %197
  %202 = extractvalue { double, double } %200, 0
  store double %202, ptr %19, align 16
  %203 = extractvalue { double, double } %200, 1
  store double %203, ptr %118, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %204 = getelementptr inbounds i8, ptr %166, i64 4
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = zext i32 %205 to i64
  %207 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %206)
          to label %208 unwind label %323

208:                                              ; preds = %201
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(12) %207)
          to label %209 unwind label %323

209:                                              ; preds = %208
  %210 = load i32, ptr %166, align 4, !tbaa !5
  %211 = zext i32 %210 to i64
  %212 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %211)
          to label %213 unwind label %323

213:                                              ; preds = %209
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(12) %212)
          to label %214 unwind label %323

214:                                              ; preds = %213
  %215 = load double, ptr %23, align 16
  %216 = load double, ptr %119, align 8
  %217 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %215, double %216)
          to label %218 unwind label %323

218:                                              ; preds = %214
  %219 = extractvalue { double, double } %217, 0
  %220 = extractvalue { double, double } %217, 1
  %221 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %219, double %220)
          to label %222 unwind label %323

222:                                              ; preds = %218
  %223 = extractvalue { double, double } %221, 0
  store double %223, ptr %18, align 16
  %224 = extractvalue { double, double } %221, 1
  store double %224, ptr %120, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #8
  %225 = getelementptr inbounds i8, ptr %172, i64 8
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = zext i32 %226 to i64
  %228 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %227)
          to label %229 unwind label %326

229:                                              ; preds = %222
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(12) %228)
          to label %230 unwind label %326

230:                                              ; preds = %229
  %231 = load i32, ptr %172, align 4, !tbaa !5
  %232 = zext i32 %231 to i64
  %233 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %232)
          to label %234 unwind label %326

234:                                              ; preds = %230
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(12) %233)
          to label %235 unwind label %326

235:                                              ; preds = %234
  %236 = load double, ptr %27, align 16
  %237 = load double, ptr %121, align 8
  %238 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %236, double %237)
          to label %239 unwind label %326

239:                                              ; preds = %235
  %240 = extractvalue { double, double } %238, 0
  store double %240, ptr %25, align 16
  %241 = extractvalue { double, double } %238, 1
  store double %241, ptr %122, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #8
  %242 = getelementptr inbounds i8, ptr %172, i64 4
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = zext i32 %243 to i64
  %245 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %244)
          to label %246 unwind label %328

246:                                              ; preds = %239
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(12) %245)
          to label %247 unwind label %328

247:                                              ; preds = %246
  %248 = load i32, ptr %172, align 4, !tbaa !5
  %249 = zext i32 %248 to i64
  %250 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %249)
          to label %251 unwind label %328

251:                                              ; preds = %247
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(12) %250)
          to label %252 unwind label %328

252:                                              ; preds = %251
  %253 = load double, ptr %29, align 16
  %254 = load double, ptr %123, align 8
  %255 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %253, double %254)
          to label %256 unwind label %328

256:                                              ; preds = %252
  %257 = extractvalue { double, double } %255, 0
  %258 = extractvalue { double, double } %255, 1
  %259 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %257, double %258)
          to label %260 unwind label %328

260:                                              ; preds = %256
  %261 = extractvalue { double, double } %259, 0
  store double %261, ptr %24, align 16
  %262 = extractvalue { double, double } %259, 1
  store double %262, ptr %124, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  %263 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %261, double %262)
  %264 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %263)
  %265 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %266 = fmul float %111, %265
  %267 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %24)
  %268 = fmul float %266, %267
  %269 = fcmp ogt float %264, %268
  br i1 %269, label %270, label %342

270:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #8
  %271 = load i32, ptr %14, align 4, !tbaa !5
  %272 = zext i32 %271 to i64
  %273 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %272)
          to label %274 unwind label %333

274:                                              ; preds = %270
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(12) %273)
          to label %275 unwind label %333

275:                                              ; preds = %274
  %276 = load i32, ptr %141, align 4, !tbaa !5
  %277 = zext i32 %276 to i64
  %278 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %277)
          to label %279 unwind label %333

279:                                              ; preds = %275
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %278)
          to label %280 unwind label %333

280:                                              ; preds = %279
  %281 = load double, ptr %32, align 16
  %282 = load double, ptr %125, align 8
  %283 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %281, double %282)
          to label %284 unwind label %333

284:                                              ; preds = %280
  %285 = extractvalue { double, double } %283, 0
  store double %285, ptr %30, align 16
  %286 = extractvalue { double, double } %283, 1
  store double %286, ptr %126, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #8
  %287 = load i32, ptr %15, align 4, !tbaa !5
  %288 = zext i32 %287 to i64
  %289 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %288)
          to label %290 unwind label %335

290:                                              ; preds = %284
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(12) %289)
          to label %291 unwind label %335

291:                                              ; preds = %290
  %292 = load i32, ptr %141, align 4, !tbaa !5
  %293 = zext i32 %292 to i64
  %294 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %293)
          to label %295 unwind label %335

295:                                              ; preds = %291
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(12) %294)
          to label %296 unwind label %335

296:                                              ; preds = %295
  %297 = load double, ptr %35, align 16
  %298 = load double, ptr %127, align 8
  %299 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %34, double %297, double %298)
          to label %300 unwind label %335

300:                                              ; preds = %296
  %301 = extractvalue { double, double } %299, 0
  store double %301, ptr %33, align 16
  %302 = extractvalue { double, double } %299, 1
  store double %302, ptr %128, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #8
  %303 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %30, double %301, double %302)
  %304 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %303)
  %305 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %30)
  %306 = fmul float %108, %305
  %307 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %33)
  %308 = fmul float %306, %307
  %309 = fcmp olt float %304, %308
  br i1 %309, label %310, label %339

310:                                              ; preds = %300
  %311 = load i32, ptr %14, align 4, !tbaa !5
  %312 = load i32, ptr %15, align 4, !tbaa !5
  %313 = load float, ptr %129, align 4, !tbaa !17
  %314 = load float, ptr %130, align 4, !tbaa !17
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %311, i32 noundef %312, float noundef %313, float noundef %314)
          to label %339 unwind label %337

315:                                              ; preds = %151
  %316 = landingpad { ptr, i32 }
          cleanup
  br label %399

317:                                              ; preds = %162
  %318 = landingpad { ptr, i32 }
          cleanup
  br label %399

319:                                              ; preds = %167
  %320 = landingpad { ptr, i32 }
          cleanup
  br label %399

321:                                              ; preds = %197, %196, %192, %191, %173
  %322 = landingpad { ptr, i32 }
          cleanup
  br label %325

323:                                              ; preds = %218, %214, %213, %209, %208, %201
  %324 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  br label %325

325:                                              ; preds = %323, %321
  %.pn128 = phi { ptr, i32 } [ %324, %323 ], [ %322, %321 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  br label %380

326:                                              ; preds = %235, %234, %230, %229, %222
  %327 = landingpad { ptr, i32 }
          cleanup
  br label %330

328:                                              ; preds = %256, %252, %251, %247, %246, %239
  %329 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #8
  br label %330

330:                                              ; preds = %328, %326
  %.pn130 = phi { ptr, i32 } [ %329, %328 ], [ %327, %326 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  br label %379

331:                                              ; preds = %358, %350, %345
  %332 = landingpad { ptr, i32 }
          cleanup
  br label %379

333:                                              ; preds = %280, %279, %275, %274, %270
  %334 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #8
  br label %341

335:                                              ; preds = %296, %295, %291, %290, %284
  %336 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #8
  br label %340

337:                                              ; preds = %310
  %338 = landingpad { ptr, i32 }
          cleanup
  br label %340

339:                                              ; preds = %310, %300
  %.1117 = phi i8 [ %.0116170, %300 ], [ 1, %310 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #8
  br label %342

340:                                              ; preds = %337, %335
  %.pn132 = phi { ptr, i32 } [ %338, %337 ], [ %336, %335 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #8
  br label %341

341:                                              ; preds = %340, %333
  %.pn132.pn = phi { ptr, i32 } [ %.pn132, %340 ], [ %334, %333 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #8
  br label %379

342:                                              ; preds = %339, %260
  %.2118 = phi i8 [ %.1117, %339 ], [ %.0116170, %260 ]
  switch i32 %3, label %381 [
    i32 2, label %350
    i32 1, label %343
  ]

343:                                              ; preds = %342
  %344 = trunc nuw i8 %.2118 to i1
  br i1 %344, label %381, label %345

345:                                              ; preds = %343
  %346 = load i32, ptr %14, align 4, !tbaa !5
  %347 = load i32, ptr %15, align 4, !tbaa !5
  %348 = load float, ptr %131, align 4, !tbaa !21
  %349 = load float, ptr %132, align 4, !tbaa !21
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %346, i32 noundef %347, float noundef %348, float noundef %349)
          to label %381 unwind label %331

350:                                              ; preds = %342
  %351 = load i32, ptr %14, align 4, !tbaa !5
  %352 = zext i32 %351 to i64
  %353 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %352)
          to label %354 unwind label %331

354:                                              ; preds = %350
  %355 = getelementptr inbounds i8, ptr %353, i64 24
  %356 = load float, ptr %355, align 4, !tbaa !22
  %357 = fcmp ogt float %356, 0.000000e+00
  br i1 %357, label %366, label %358

358:                                              ; preds = %354
  %359 = load i32, ptr %15, align 4, !tbaa !5
  %360 = zext i32 %359 to i64
  %361 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %360)
          to label %362 unwind label %331

362:                                              ; preds = %358
  %363 = getelementptr inbounds i8, ptr %361, i64 24
  %364 = load float, ptr %363, align 4, !tbaa !22
  %365 = fcmp ogt float %364, 0.000000e+00
  br i1 %365, label %366, label %381

366:                                              ; preds = %362, %354
  %367 = load float, ptr %131, align 4, !tbaa !21
  %368 = fcmp olt float %367, 0x47EFFFFFE0000000
  br i1 %368, label %369, label %381

369:                                              ; preds = %366
  %370 = load float, ptr %132, align 4, !tbaa !21
  %371 = fcmp olt float %370, 0x47EFFFFFE0000000
  br i1 %371, label %372, label %381

372:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #8
  %373 = fadd float %367, %370
  %374 = fmul float %373, 5.000000e-01
  store float %374, ptr %36, align 4, !tbaa !25
  %375 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE12emplace_backIJRKjS8_RjS9_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 4 dereferenceable(4) %141, ptr noundef nonnull align 4 dereferenceable(4) %144, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %376 unwind label %377

376:                                              ; preds = %372
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #8
  br label %381

377:                                              ; preds = %372
  %378 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #8
  br label %379

379:                                              ; preds = %377, %341, %331, %330
  %.pn135 = phi { ptr, i32 } [ %332, %331 ], [ %378, %377 ], [ %.pn132.pn, %341 ], [ %.pn130, %330 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  br label %380

380:                                              ; preds = %379, %325
  %.pn135.pn = phi { ptr, i32 } [ %.pn135, %379 ], [ %.pn128, %325 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %399

381:                                              ; preds = %342, %345, %343, %376, %369, %366, %362
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  %.0121 = add nuw i64 %.0121171, 1
  %382 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %383 = icmp ult i64 %.0121, %382
  br i1 %383, label %151, label %.thread, !llvm.loop !26

.thread:                                          ; preds = %381, %157, %153, %142
  %.0116.lcssa = phi i8 [ 0, %142 ], [ %.0116170, %153 ], [ %.0116170, %157 ], [ %.2118, %381 ]
  %.3115 = phi i64 [ %.0112180, %142 ], [ %.0121.in169, %153 ], [ %.0121.in169, %157 ], [ %.0112180, %381 ]
  %384 = load i32, ptr %141, align 4, !tbaa !5
  %385 = load i32, ptr %144, align 4, !tbaa !5
  %386 = trunc nuw i8 %.0116.lcssa to i1
  %387 = load float, ptr %134, align 4
  %388 = load float, ptr %12, align 4
  %389 = select i1 %386, float %387, float %388
  %390 = load float, ptr %135, align 4
  %391 = load float, ptr %13, align 4
  %392 = select i1 %386, float %390, float %391
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %384, i32 noundef %385, float noundef %389, float noundef %392)
          to label %393 unwind label %397

393:                                              ; preds = %.thread
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %12) #8
  %394 = add i64 %.3115, 1
  %395 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %396 = icmp ult i64 %394, %395
  br i1 %396, label %140, label %._crit_edge182, !llvm.loop !28

397:                                              ; preds = %.thread
  %398 = landingpad { ptr, i32 }
          cleanup
  br label %399

399:                                              ; preds = %315, %319, %380, %317, %397
  %.pn141 = phi { ptr, i32 } [ %398, %397 ], [ %316, %315 ], [ %318, %317 ], [ %.pn135.pn, %380 ], [ %320, %319 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %12) #8
  br label %491

400:                                              ; preds = %._crit_edge182
  invoke void @_ZN3JPH22SoftBodySharedSettings32CalculateBendConstraintConstantsEv(ptr noundef nonnull align 8 dereferenceable(304) %0)
          to label %.preheader unwind label %138

.preheader:                                       ; preds = %400
  %401 = zext i32 %2 to i64
  %402 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %1, i64 %401
  %.not189 = icmp eq i32 %2, 0
  br i1 %.not189, label %.critedge, label %.lr.ph184

403:                                              ; preds = %.lr.ph184
  %404 = getelementptr inbounds i8, ptr %.089183, i64 20
  %405 = icmp ult ptr %404, %402
  br i1 %405, label %.lr.ph184, label %.critedge, !llvm.loop !29

.lr.ph184:                                        ; preds = %.preheader, %403
  %.089183 = phi ptr [ %404, %403 ], [ %1, %.preheader ]
  %406 = getelementptr inbounds i8, ptr %.089183, i64 12
  %407 = load i32, ptr %406, align 4, !tbaa !30
  %.not122 = icmp eq i32 %407, 0
  br i1 %.not122, label %403, label %408

408:                                              ; preds = %.lr.ph184
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %0)
          to label %409 unwind label %419

409:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #8
  %410 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %37, align 4, !tbaa !5
  %411 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %410)
  %412 = and i64 %411, 4294967295
  %.not190 = icmp eq i64 %412, 0
  br i1 %.not190, label %._crit_edge187, label %.lr.ph186

.lr.ph186:                                        ; preds = %409
  %413 = getelementptr inbounds i8, ptr %0, i64 232
  %414 = getelementptr inbounds i8, ptr %39, i64 12
  %415 = getelementptr inbounds i8, ptr %0, i64 176
  %416 = getelementptr inbounds i8, ptr %39, i64 16
  %417 = getelementptr inbounds i8, ptr %43, i64 8
  %418 = getelementptr inbounds i8, ptr %41, i64 8
  br label %423

._crit_edge187:                                   ; preds = %484, %409
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #8
  br label %.critedge

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

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

423:                                              ; preds = %.lr.ph186, %484
  %424 = load i32, ptr %37, align 4, !tbaa !5
  %425 = zext i32 %424 to i64
  %426 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %410, i64 noundef %425)
          to label %427 unwind label %421

427:                                              ; preds = %423
  %428 = getelementptr inbounds i8, ptr %426, i64 24
  %429 = load float, ptr %428, align 4, !tbaa !22
  %430 = fcmp ogt float %429, 0.000000e+00
  br i1 %430, label %431, label %484

431:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #8
  %432 = load i32, ptr %37, align 4, !tbaa !5
  %433 = zext i32 %432 to i64
  %434 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %413, i64 noundef %433)
          to label %435 unwind label %440

435:                                              ; preds = %431
  %436 = load i32, ptr %434, align 4, !tbaa !31
  store i32 %436, ptr %38, align 4, !tbaa !5
  %.not123 = icmp eq i32 %436, -1
  br i1 %.not123, label %482, label %437

437:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %39) #8
  %438 = load i32, ptr %37, align 4, !tbaa !5
  call void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind nonnull writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %39, ptr noundef nonnull align 8 dereferenceable(12) %11, i32 noundef %438)
  %439 = load i32, ptr %414, align 4, !tbaa !30
  switch i32 %439, label %480 [
    i32 2, label %467
    i32 1, label %442
  ]

440:                                              ; preds = %431
  %441 = landingpad { ptr, i32 }
          cleanup
  br label %483

442:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #8
  %443 = load float, ptr %416, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %41) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #8
  %444 = load i32, ptr %38, align 4, !tbaa !5
  %445 = zext i32 %444 to i64
  %446 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %410, i64 noundef %445)
          to label %447 unwind label %465

447:                                              ; preds = %442
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(12) %446)
          to label %448 unwind label %465

448:                                              ; preds = %447
  %449 = load i32, ptr %37, align 4, !tbaa !5
  %450 = zext i32 %449 to i64
  %451 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %410, i64 noundef %450)
          to label %452 unwind label %465

452:                                              ; preds = %448
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(12) %451)
          to label %453 unwind label %465

453:                                              ; preds = %452
  %454 = load double, ptr %43, align 16
  %455 = load double, ptr %417, align 8
  %456 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %42, double %454, double %455)
          to label %457 unwind label %465

457:                                              ; preds = %453
  %458 = extractvalue { double, double } %456, 0
  store double %458, ptr %41, align 16
  %459 = extractvalue { double, double } %456, 1
  store double %459, ptr %418, align 8
  %460 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
          to label %461 unwind label %465

461:                                              ; preds = %457
  %462 = fmul float %443, %460
  store float %462, ptr %40, align 4, !tbaa !25
  %463 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %415, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %464 unwind label %465

464:                                              ; preds = %461
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #8
  br label %480

465:                                              ; preds = %461, %457, %453, %452, %448, %447, %442
  %466 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #8
  br label %481

467:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #8
  %468 = load float, ptr %416, align 4, !tbaa !33
  %469 = load i32, ptr %37, align 4, !tbaa !5
  %470 = zext i32 %469 to i64
  %471 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %413, i64 noundef %470)
          to label %472 unwind label %478

472:                                              ; preds = %467
  %473 = getelementptr inbounds i8, ptr %471, i64 4
  %474 = load float, ptr %473, align 4, !tbaa !34
  %475 = fmul float %468, %474
  store float %475, ptr %44, align 4, !tbaa !25
  %476 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %415, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %477 unwind label %478

477:                                              ; preds = %472
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #8
  br label %480

478:                                              ; preds = %472, %467
  %479 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #8
  br label %481

480:                                              ; preds = %477, %464, %437
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %39) #8
  br label %482

481:                                              ; preds = %478, %465
  %.pn = phi { ptr, i32 } [ %466, %465 ], [ %479, %478 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %39) #8
  br label %483

482:                                              ; preds = %480, %435
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #8
  br label %484

483:                                              ; preds = %481, %440
  %.pn.pn = phi { ptr, i32 } [ %.pn, %481 ], [ %441, %440 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #8
  br label %490

484:                                              ; preds = %427, %482
  %485 = load i32, ptr %37, align 4, !tbaa !5
  %486 = add i32 %485, 1
  store i32 %486, ptr %37, align 4, !tbaa !5
  %487 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %410)
  %488 = trunc i64 %487 to i32
  %489 = icmp ult i32 %486, %488
  br i1 %489, label %423, label %._crit_edge187, !llvm.loop !35

490:                                              ; preds = %483, %421
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %483 ], [ %422, %421 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #8
  br label %491

.critedge:                                        ; preds = %403, %.preheader, %._crit_edge187
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  ret void

491:                                              ; preds = %138, %399, %149, %490, %419, %136
  %.pn141.pn.pn.pn = phi { ptr, i32 } [ %137, %136 ], [ %139, %138 ], [ %.pn141, %399 ], [ %150, %149 ], [ %.pn.pn.pn, %490 ], [ %420, %419 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %492

492:                                              ; preds = %491, %102, %69
  %.pn146 = phi { ptr, i32 } [ %103, %102 ], [ %.pn141.pn.pn.pn, %491 ], [ %70, %69 ]
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn146
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE9push_backERKS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperZNS1_17CreateConstraintsES4_jS5_fE3$_0EEvT_S9_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #7

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind noalias writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4, ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfE10EdgeHelper", !7, i64 0, !6, i64 8}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfE3$_1", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTSZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfE3$_2", !13, i64 0, !6, i64 8}
!16 = !{!15, !6, i64 8}
!17 = !{!18, !19, i64 4}
!18 = !{!"_ZTSN3JPH22SoftBodySharedSettings16VertexAttributesE", !19, i64 0, !19, i64 4, !19, i64 8, !20, i64 12, !19, i64 16}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN3JPH22SoftBodySharedSettings8ELRATypeE", !7, i64 0}
!21 = !{!18, !19, i64 8}
!22 = !{!23, !19, i64 24}
!23 = !{!"_ZTSN3JPH22SoftBodySharedSettings6VertexE", !24, i64 0, !24, i64 12, !19, i64 24}
!24 = !{!"_ZTSN3JPH6Float3E", !19, i64 0, !19, i64 4, !19, i64 8}
!25 = !{!19, !19, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = !{!18, !20, i64 12}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTSN3JPH22SoftBodySharedSettings16ClosestKinematicE", !6, i64 0, !19, i64 4}
!33 = !{!18, !19, i64 16}
!34 = !{!32, !19, i64 4}
!35 = distinct !{!35, !27}


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