; LLVM IR from jrouwe/JoltPhysics :: 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 float, align 4
  %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 %"class.JPH::Vec3", align 16
  %68 = alloca float, align 4
  %69 = alloca i8, align 1
  %70 = alloca ptr, align 8
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca ptr, align 8
  %74 = alloca %"struct.JPH::SoftBodySharedSettings::VertexAttributes", align 4
  %75 = alloca float, align 4
  %76 = alloca %"class.JPH::Vec3", align 16
  %77 = alloca %"class.JPH::Vec3", align 16
  %78 = alloca %"class.JPH::Vec3", align 16
  %79 = 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
  %80 = 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
  %81 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 2
  %82 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81)
          to label %83 unwind label %98

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

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

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

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

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

97:                                               ; preds = %93
  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 %168

98:                                               ; preds = %172, %170, %168, %83, %5
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  br label %923

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

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

110:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %111, 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 %112

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

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

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %117, i32 0, i32 0
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [3 x i32], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !9
  store i32 %122, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  %127 = srem i32 %126, 3
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [3 x i32], ptr %124, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !9
  store i32 %130, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #9
  %131 = 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 %132 unwind label %158

132:                                              ; preds = %116
  %133 = load i32, ptr %131, align 4, !tbaa !9
  %134 = getelementptr inbounds %struct.EdgeHelper, ptr %22, i32 0, i32 0
  %135 = getelementptr inbounds [2 x i32], ptr %134, i64 0, i64 0
  store i32 %133, ptr %135, align 4, !tbaa !9
  %136 = 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 %137 unwind label %158

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

144:                                              ; preds = %137
  %145 = ptrtoint ptr %141 to i64
  %146 = ptrtoint ptr %143 to i64
  %147 = sub i64 %145, %146
  %148 = sdiv exact i64 %147, 16
  %149 = trunc i64 %148 to i32
  %150 = mul i32 %149, 3
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = add i32 %150, %151
  %153 = getelementptr inbounds %struct.EdgeHelper, ptr %22, i32 0, i32 1
  store i32 %152, ptr %153, 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 %154 unwind label %158

154:                                              ; preds = %144
  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 %155

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

158:                                              ; preds = %144, %137, %132, %116
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, 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 %166

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

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

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

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

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

170:                                              ; preds = %168
  %171 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %172 unwind label %98

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

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

181:                                              ; preds = %173
  %182 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %180)
          to label %183 unwind label %201

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

186:                                              ; preds = %183
  %187 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %185)
          to label %188 unwind label %205

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

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

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

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

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

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

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

201:                                              ; preds = %181, %173
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %12, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %13, align 4
  br label %922

205:                                              ; preds = %773, %771, %193, %190, %188, %186, %183
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  br label %921

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

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

216:                                              ; preds = %213
  store ptr %215, 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
  %217 = load ptr, ptr %29, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.EdgeHelper, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds [2 x i32], ptr %218, i64 0, i64 0
  %220 = load i32, ptr %219, 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 %220)
          to label %221 unwind label %239

221:                                              ; preds = %216
  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
  %222 = load ptr, ptr %29, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.EdgeHelper, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds [2 x i32], ptr %223, i64 0, i64 1
  %225 = load i32, ptr %224, 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 %225)
          to label %226 unwind label %243

226:                                              ; preds = %221
  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
  %227 = load i64, ptr %28, align 8, !tbaa !24
  %228 = add i64 %227, 1
  store i64 %228, ptr %35, align 8, !tbaa !24
  br label %229

229:                                              ; preds = %719, %226
  %230 = load i64, ptr %35, align 8, !tbaa !24
  %231 = invoke noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %232 unwind label %247

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

234:                                              ; preds = %232
  store i32 10, ptr %17, align 4
  br label %723

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

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

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

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

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

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

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

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

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

290:                                              ; preds = %282
  store ptr %289, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %291 = load ptr, ptr %37, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %291, i32 0, i32 0
  %293 = load ptr, ptr %29, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.EdgeHelper, ptr %293, i32 0, i32 1
  %295 = load i32, ptr %294, align 4, !tbaa !15
  %296 = add i32 %295, 2
  %297 = urem i32 %296, 3
  %298 = zext i32 %297 to i64
  %299 = getelementptr inbounds [3 x i32], ptr %292, i64 0, i64 %298
  %300 = load i32, ptr %299, align 4, !tbaa !9
  store i32 %300, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %301 = load ptr, ptr %38, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %301, i32 0, i32 0
  %303 = load ptr, ptr %36, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.EdgeHelper, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !15
  %306 = add i32 %305, 2
  %307 = urem i32 %306, 3
  %308 = zext i32 %307 to i64
  %309 = getelementptr inbounds [3 x i32], ptr %302, i64 0, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !9
  store i32 %310, 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
  %311 = 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 %311)
          to label %312 unwind label %331

312:                                              ; preds = %290
  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
  %313 = 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 %313)
          to label %314 unwind label %335

314:                                              ; preds = %312
  store ptr %44, ptr %43, align 8, !tbaa !5
  %315 = load i32, ptr %39, align 4, !tbaa !9
  %316 = load i32, ptr %40, align 4, !tbaa !9
  %317 = icmp eq i32 %315, %316
  br i1 %317, label %318, label %339

318:                                              ; preds = %314
  store i32 12, ptr %17, align 4
  br label %702

319:                                              ; preds = %251
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %12, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %13, align 4
  br label %722

323:                                              ; preds = %274
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %12, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %13, align 4
  br label %711

327:                                              ; preds = %282
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %12, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %13, align 4
  br label %710

331:                                              ; preds = %290
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %12, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %13, align 4
  br label %709

335:                                              ; preds = %312
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %12, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %13, align 4
  br label %708

339:                                              ; preds = %314
  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
  %340 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %341 = load ptr, ptr %37, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %341, i32 0, i32 0
  %343 = getelementptr inbounds [3 x i32], ptr %342, i64 0, i64 2
  %344 = load i32, ptr %343, align 4, !tbaa !9
  %345 = zext i32 %344 to i64
  %346 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %340, i64 noundef %345)
          to label %347 unwind label %597

347:                                              ; preds = %339
  %348 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %346, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(12) %348)
          to label %349 unwind label %597

349:                                              ; preds = %347
  %350 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %351 = load ptr, ptr %37, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %351, i32 0, i32 0
  %353 = getelementptr inbounds [3 x i32], ptr %352, i64 0, i64 0
  %354 = load i32, ptr %353, align 4, !tbaa !9
  %355 = zext i32 %354 to i64
  %356 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %350, i64 noundef %355)
          to label %357 unwind label %597

357:                                              ; preds = %349
  %358 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %356, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(12) %358)
          to label %359 unwind label %597

359:                                              ; preds = %357
  %360 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %361 = load double, ptr %360, align 16
  %362 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %363 = load double, ptr %362, align 8
  %364 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %47, double %361, double %363)
          to label %365 unwind label %597

365:                                              ; preds = %359
  %366 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %367 = getelementptr inbounds %union.anon, ptr %366, i32 0, i32 0
  %368 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 0
  %369 = extractvalue { double, double } %364, 0
  store double %369, ptr %368, align 16
  %370 = getelementptr inbounds { double, double }, ptr %367, i32 0, i32 1
  %371 = extractvalue { double, double } %364, 1
  store double %371, ptr %370, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #9
  %372 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %373 = load ptr, ptr %37, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %373, i32 0, i32 0
  %375 = getelementptr inbounds [3 x i32], ptr %374, i64 0, i64 1
  %376 = load i32, ptr %375, align 4, !tbaa !9
  %377 = zext i32 %376 to i64
  %378 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %372, i64 noundef %377)
          to label %379 unwind label %601

379:                                              ; preds = %365
  %380 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %378, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(12) %380)
          to label %381 unwind label %601

381:                                              ; preds = %379
  %382 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %383 = load ptr, ptr %37, align 8, !tbaa !5
  %384 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %383, i32 0, i32 0
  %385 = getelementptr inbounds [3 x i32], ptr %384, i64 0, i64 0
  %386 = load i32, ptr %385, align 4, !tbaa !9
  %387 = zext i32 %386 to i64
  %388 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %382, i64 noundef %387)
          to label %389 unwind label %601

389:                                              ; preds = %381
  %390 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %388, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(12) %390)
          to label %391 unwind label %601

391:                                              ; preds = %389
  %392 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %393 = load double, ptr %392, align 16
  %394 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %395 = load double, ptr %394, align 8
  %396 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %50, double %393, double %395)
          to label %397 unwind label %601

397:                                              ; preds = %391
  %398 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %399 = getelementptr inbounds %union.anon, ptr %398, i32 0, i32 0
  %400 = getelementptr inbounds { double, double }, ptr %399, i32 0, i32 0
  %401 = extractvalue { double, double } %396, 0
  store double %401, ptr %400, align 16
  %402 = getelementptr inbounds { double, double }, ptr %399, i32 0, i32 1
  %403 = extractvalue { double, double } %396, 1
  store double %403, ptr %402, align 8
  %404 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %405 = load double, ptr %404, align 16
  %406 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %407 = load double, ptr %406, align 8
  %408 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %46, double %405, double %407)
          to label %409 unwind label %601

409:                                              ; preds = %397
  %410 = getelementptr inbounds %"class.JPH::Vec3", ptr %45, i32 0, i32 0
  %411 = getelementptr inbounds %union.anon, ptr %410, i32 0, i32 0
  %412 = getelementptr inbounds { double, double }, ptr %411, i32 0, i32 0
  %413 = extractvalue { double, double } %408, 0
  store double %413, ptr %412, align 16
  %414 = getelementptr inbounds { double, double }, ptr %411, i32 0, i32 1
  %415 = extractvalue { double, double } %408, 1
  store double %415, ptr %414, 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
  %416 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %417 = load ptr, ptr %38, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %417, i32 0, i32 0
  %419 = getelementptr inbounds [3 x i32], ptr %418, i64 0, i64 2
  %420 = load i32, ptr %419, align 4, !tbaa !9
  %421 = zext i32 %420 to i64
  %422 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %416, i64 noundef %421)
          to label %423 unwind label %606

423:                                              ; preds = %409
  %424 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %422, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(12) %424)
          to label %425 unwind label %606

425:                                              ; preds = %423
  %426 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %427 = load ptr, ptr %38, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %427, i32 0, i32 0
  %429 = getelementptr inbounds [3 x i32], ptr %428, i64 0, i64 0
  %430 = load i32, ptr %429, align 4, !tbaa !9
  %431 = zext i32 %430 to i64
  %432 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %426, i64 noundef %431)
          to label %433 unwind label %606

433:                                              ; preds = %425
  %434 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %432, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(12) %434)
          to label %435 unwind label %606

435:                                              ; preds = %433
  %436 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %437 = load double, ptr %436, align 16
  %438 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %439 = load double, ptr %438, align 8
  %440 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %54, double %437, double %439)
          to label %441 unwind label %606

441:                                              ; preds = %435
  %442 = getelementptr inbounds %"class.JPH::Vec3", ptr %53, i32 0, i32 0
  %443 = getelementptr inbounds %union.anon, ptr %442, i32 0, i32 0
  %444 = getelementptr inbounds { double, double }, ptr %443, i32 0, i32 0
  %445 = extractvalue { double, double } %440, 0
  store double %445, ptr %444, align 16
  %446 = getelementptr inbounds { double, double }, ptr %443, i32 0, i32 1
  %447 = extractvalue { double, double } %440, 1
  store double %447, ptr %446, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #9
  %448 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %449 = load ptr, ptr %38, align 8, !tbaa !5
  %450 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %449, i32 0, i32 0
  %451 = getelementptr inbounds [3 x i32], ptr %450, i64 0, i64 1
  %452 = load i32, ptr %451, align 4, !tbaa !9
  %453 = zext i32 %452 to i64
  %454 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %448, i64 noundef %453)
          to label %455 unwind label %610

455:                                              ; preds = %441
  %456 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %454, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(12) %456)
          to label %457 unwind label %610

457:                                              ; preds = %455
  %458 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %459 = load ptr, ptr %38, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %459, i32 0, i32 0
  %461 = getelementptr inbounds [3 x i32], ptr %460, i64 0, i64 0
  %462 = load i32, ptr %461, align 4, !tbaa !9
  %463 = zext i32 %462 to i64
  %464 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %458, i64 noundef %463)
          to label %465 unwind label %610

465:                                              ; preds = %457
  %466 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %464, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(12) %466)
          to label %467 unwind label %610

467:                                              ; preds = %465
  %468 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %469 = load double, ptr %468, align 16
  %470 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %471 = load double, ptr %470, align 8
  %472 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %57, double %469, double %471)
          to label %473 unwind label %610

473:                                              ; preds = %467
  %474 = getelementptr inbounds %"class.JPH::Vec3", ptr %56, i32 0, i32 0
  %475 = getelementptr inbounds %union.anon, ptr %474, i32 0, i32 0
  %476 = getelementptr inbounds { double, double }, ptr %475, i32 0, i32 0
  %477 = extractvalue { double, double } %472, 0
  store double %477, ptr %476, align 16
  %478 = getelementptr inbounds { double, double }, ptr %475, i32 0, i32 1
  %479 = extractvalue { double, double } %472, 1
  store double %479, ptr %478, align 8
  %480 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %481 = load double, ptr %480, align 16
  %482 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %483 = load double, ptr %482, align 8
  %484 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %53, double %481, double %483)
          to label %485 unwind label %610

485:                                              ; preds = %473
  %486 = getelementptr inbounds %"class.JPH::Vec3", ptr %52, i32 0, i32 0
  %487 = getelementptr inbounds %union.anon, ptr %486, i32 0, i32 0
  %488 = getelementptr inbounds { double, double }, ptr %487, i32 0, i32 0
  %489 = extractvalue { double, double } %484, 0
  store double %489, ptr %488, align 16
  %490 = getelementptr inbounds { double, double }, ptr %487, i32 0, i32 1
  %491 = extractvalue { double, double } %484, 1
  store double %491, ptr %490, 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.lifetime.start.p0(i64 4, ptr %59) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %52, i64 16, i1 false), !tbaa.struct !28
  %492 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %493 = load double, ptr %492, align 16
  %494 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %495 = load double, ptr %494, align 8
  %496 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %45, double %493, double %495)
          to label %497 unwind label %615

497:                                              ; preds = %485
  store float %496, ptr %59, align 4, !tbaa !13
  %498 = load float, ptr %59, align 4, !tbaa !13
  %499 = fcmp ogt float %498, 0.000000e+00
  br i1 %499, label %500, label %634

500:                                              ; preds = %497
  %501 = load float, ptr %59, align 4, !tbaa !13
  %502 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %501)
          to label %503 unwind label %615

503:                                              ; preds = %500
  %504 = load float, ptr %27, align 4, !tbaa !13
  %505 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %45)
          to label %506 unwind label %615

506:                                              ; preds = %503
  %507 = fmul float %504, %505
  %508 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %52)
          to label %509 unwind label %615

509:                                              ; preds = %506
  %510 = fmul float %507, %508
  %511 = fcmp ogt float %502, %510
  br i1 %511, label %512, label %634

512:                                              ; preds = %509
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #9
  %513 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %514 = load i32, ptr %39, align 4, !tbaa !9
  %515 = zext i32 %514 to i64
  %516 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %513, i64 noundef %515)
          to label %517 unwind label %619

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

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

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

529:                                              ; preds = %527
  %530 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %531 = load double, ptr %530, align 16
  %532 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %533 = load double, ptr %532, align 8
  %534 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %62, double %531, double %533)
          to label %535 unwind label %619

535:                                              ; preds = %529
  %536 = getelementptr inbounds %"class.JPH::Vec3", ptr %61, i32 0, i32 0
  %537 = getelementptr inbounds %union.anon, ptr %536, i32 0, i32 0
  %538 = getelementptr inbounds { double, double }, ptr %537, i32 0, i32 0
  %539 = extractvalue { double, double } %534, 0
  store double %539, ptr %538, align 16
  %540 = getelementptr inbounds { double, double }, ptr %537, i32 0, i32 1
  %541 = extractvalue { double, double } %534, 1
  store double %541, ptr %540, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #9
  %542 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %543 = load i32, ptr %40, align 4, !tbaa !9
  %544 = zext i32 %543 to i64
  %545 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %542, i64 noundef %544)
          to label %546 unwind label %623

546:                                              ; preds = %535
  %547 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %545, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(12) %547)
          to label %548 unwind label %623

548:                                              ; preds = %546
  %549 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %550 = load ptr, ptr %29, align 8, !tbaa !5
  %551 = getelementptr inbounds %struct.EdgeHelper, ptr %550, i32 0, i32 0
  %552 = getelementptr inbounds [2 x i32], ptr %551, i64 0, i64 0
  %553 = load i32, ptr %552, align 4, !tbaa !9
  %554 = zext i32 %553 to i64
  %555 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %549, i64 noundef %554)
          to label %556 unwind label %623

556:                                              ; preds = %548
  %557 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %555, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(12) %557)
          to label %558 unwind label %623

558:                                              ; preds = %556
  %559 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %560 = load double, ptr %559, align 16
  %561 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %562 = load double, ptr %561, align 8
  %563 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %65, double %560, double %562)
          to label %564 unwind label %623

564:                                              ; preds = %558
  %565 = getelementptr inbounds %"class.JPH::Vec3", ptr %64, i32 0, i32 0
  %566 = getelementptr inbounds %union.anon, ptr %565, i32 0, i32 0
  %567 = getelementptr inbounds { double, double }, ptr %566, i32 0, i32 0
  %568 = extractvalue { double, double } %563, 0
  store double %568, ptr %567, align 16
  %569 = getelementptr inbounds { double, double }, ptr %566, i32 0, i32 1
  %570 = extractvalue { double, double } %563, 1
  store double %570, ptr %569, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %64, i64 16, i1 false), !tbaa.struct !28
  %571 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %572 = load double, ptr %571, align 16
  %573 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %574 = load double, ptr %573, align 8
  %575 = invoke noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %61, double %572, double %574)
          to label %576 unwind label %627

576:                                              ; preds = %564
  %577 = invoke noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %575)
          to label %578 unwind label %627

578:                                              ; preds = %576
  %579 = load float, ptr %26, align 4, !tbaa !13
  %580 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %61)
          to label %581 unwind label %627

581:                                              ; preds = %578
  %582 = fmul float %579, %580
  %583 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %64)
          to label %584 unwind label %627

584:                                              ; preds = %581
  %585 = fmul float %582, %583
  %586 = fcmp olt float %577, %585
  br i1 %586, label %587, label %631

587:                                              ; preds = %584
  %588 = load i32, ptr %39, align 4, !tbaa !9
  %589 = load i32, ptr %40, align 4, !tbaa !9
  %590 = load ptr, ptr %41, align 8, !tbaa !5
  %591 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %590, i32 0, i32 1
  %592 = load float, ptr %591, align 4, !tbaa !30
  %593 = load ptr, ptr %43, align 8, !tbaa !5
  %594 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %593, i32 0, i32 1
  %595 = load float, ptr %594, align 4, !tbaa !30
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %588, i32 noundef %589, float noundef %592, float noundef %595)
          to label %596 unwind label %627

596:                                              ; preds = %587
  store i8 1, ptr %34, align 1, !tbaa !26
  br label %631

597:                                              ; preds = %359, %357, %349, %347, %339
  %598 = landingpad { ptr, i32 }
          cleanup
  %599 = extractvalue { ptr, i32 } %598, 0
  store ptr %599, ptr %12, align 8
  %600 = extractvalue { ptr, i32 } %598, 1
  store i32 %600, ptr %13, align 4
  br label %605

601:                                              ; preds = %397, %391, %389, %381, %379, %365
  %602 = landingpad { ptr, i32 }
          cleanup
  %603 = extractvalue { ptr, i32 } %602, 0
  store ptr %603, ptr %12, align 8
  %604 = extractvalue { ptr, i32 } %602, 1
  store i32 %604, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #9
  br label %605

605:                                              ; preds = %601, %597
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #9
  br label %707

606:                                              ; preds = %435, %433, %425, %423, %409
  %607 = landingpad { ptr, i32 }
          cleanup
  %608 = extractvalue { ptr, i32 } %607, 0
  store ptr %608, ptr %12, align 8
  %609 = extractvalue { ptr, i32 } %607, 1
  store i32 %609, ptr %13, align 4
  br label %614

610:                                              ; preds = %473, %467, %465, %457, %455, %441
  %611 = landingpad { ptr, i32 }
          cleanup
  %612 = extractvalue { ptr, i32 } %611, 0
  store ptr %612, ptr %12, align 8
  %613 = extractvalue { ptr, i32 } %611, 1
  store i32 %613, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #9
  br label %614

614:                                              ; preds = %610, %606
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #9
  br label %706

615:                                              ; preds = %659, %650, %639, %506, %503, %500, %485
  %616 = landingpad { ptr, i32 }
          cleanup
  %617 = extractvalue { ptr, i32 } %616, 0
  store ptr %617, ptr %12, align 8
  %618 = extractvalue { ptr, i32 } %616, 1
  store i32 %618, ptr %13, align 4
  br label %705

619:                                              ; preds = %529, %527, %519, %517, %512
  %620 = landingpad { ptr, i32 }
          cleanup
  %621 = extractvalue { ptr, i32 } %620, 0
  store ptr %621, ptr %12, align 8
  %622 = extractvalue { ptr, i32 } %620, 1
  store i32 %622, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #9
  br label %633

623:                                              ; preds = %558, %556, %548, %546, %535
  %624 = landingpad { ptr, i32 }
          cleanup
  %625 = extractvalue { ptr, i32 } %624, 0
  store ptr %625, ptr %12, align 8
  %626 = extractvalue { ptr, i32 } %624, 1
  store i32 %626, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #9
  br label %632

627:                                              ; preds = %587, %581, %578, %576, %564
  %628 = landingpad { ptr, i32 }
          cleanup
  %629 = extractvalue { ptr, i32 } %628, 0
  store ptr %629, ptr %12, align 8
  %630 = extractvalue { ptr, i32 } %628, 1
  store i32 %630, ptr %13, align 4
  br label %632

631:                                              ; preds = %596, %584
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #9
  br label %634

632:                                              ; preds = %627, %623
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #9
  br label %633

633:                                              ; preds = %632, %619
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #9
  br label %705

634:                                              ; preds = %631, %509, %497
  %635 = load i32, ptr %9, align 4, !tbaa !11
  switch i32 %635, label %701 [
    i32 0, label %701
    i32 1, label %636
    i32 2, label %650
  ]

636:                                              ; preds = %634
  %637 = load i8, ptr %34, align 1, !tbaa !26, !range !33, !noundef !34
  %638 = trunc i8 %637 to i1
  br i1 %638, label %649, label %639

639:                                              ; preds = %636
  %640 = load i32, ptr %39, align 4, !tbaa !9
  %641 = load i32, ptr %40, align 4, !tbaa !9
  %642 = load ptr, ptr %30, align 8, !tbaa !5
  %643 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %642, i32 0, i32 2
  %644 = load float, ptr %643, align 4, !tbaa !35
  %645 = load ptr, ptr %32, align 8, !tbaa !5
  %646 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %645, i32 0, i32 2
  %647 = load float, ptr %646, align 4, !tbaa !35
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %640, i32 noundef %641, float noundef %644, float noundef %647)
          to label %648 unwind label %615

648:                                              ; preds = %639
  br label %649

649:                                              ; preds = %648, %636
  br label %701

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

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

659:                                              ; preds = %655
  %660 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %661 = load i32, ptr %40, align 4, !tbaa !9
  %662 = zext i32 %661 to i64
  %663 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %660, i64 noundef %662)
          to label %664 unwind label %615

664:                                              ; preds = %659
  %665 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %663, i32 0, i32 2
  %666 = load float, ptr %665, align 4, !tbaa !36
  %667 = fcmp ogt float %666, 0.000000e+00
  br i1 %667, label %668, label %700

668:                                              ; preds = %664, %655
  %669 = load ptr, ptr %30, align 8, !tbaa !5
  %670 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %669, i32 0, i32 2
  %671 = load float, ptr %670, align 4, !tbaa !35
  %672 = fcmp olt float %671, 0x47EFFFFFE0000000
  br i1 %672, label %673, label %700

673:                                              ; preds = %668
  %674 = load ptr, ptr %32, align 8, !tbaa !5
  %675 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %674, i32 0, i32 2
  %676 = load float, ptr %675, align 4, !tbaa !35
  %677 = fcmp olt float %676, 0x47EFFFFFE0000000
  br i1 %677, label %678, label %700

678:                                              ; preds = %673
  %679 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 4
  %680 = load ptr, ptr %29, align 8, !tbaa !5
  %681 = getelementptr inbounds %struct.EdgeHelper, ptr %680, i32 0, i32 0
  %682 = getelementptr inbounds [2 x i32], ptr %681, i64 0, i64 0
  %683 = load ptr, ptr %29, align 8, !tbaa !5
  %684 = getelementptr inbounds %struct.EdgeHelper, ptr %683, i32 0, i32 0
  %685 = getelementptr inbounds [2 x i32], ptr %684, i64 0, i64 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #9
  %686 = load ptr, ptr %30, align 8, !tbaa !5
  %687 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %686, i32 0, i32 2
  %688 = load float, ptr %687, align 4, !tbaa !35
  %689 = load ptr, ptr %32, align 8, !tbaa !5
  %690 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %689, i32 0, i32 2
  %691 = load float, ptr %690, align 4, !tbaa !35
  %692 = fadd float %688, %691
  %693 = fmul float 5.000000e-01, %692
  store float %693, ptr %68, align 4, !tbaa !13
  %694 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE12emplace_backIJRKjS8_RjS9_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %679, ptr noundef nonnull align 4 dereferenceable(4) %682, ptr noundef nonnull align 4 dereferenceable(4) %685, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %695 unwind label %696

695:                                              ; preds = %678
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #9
  br label %700

696:                                              ; preds = %678
  %697 = landingpad { ptr, i32 }
          cleanup
  %698 = extractvalue { ptr, i32 } %697, 0
  store ptr %698, ptr %12, align 8
  %699 = extractvalue { ptr, i32 } %697, 1
  store i32 %699, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #9
  br label %705

700:                                              ; preds = %695, %673, %668, %664
  br label %701

701:                                              ; preds = %700, %649, %634, %634
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  store i32 0, ptr %17, align 4
  br label %702

702:                                              ; preds = %701, %318
  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
  %703 = load i32, ptr %17, align 4
  switch i32 %703, label %716 [
    i32 0, label %704
  ]

704:                                              ; preds = %702
  br label %715

705:                                              ; preds = %696, %633, %615
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  br label %706

706:                                              ; preds = %705, %614
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #9
  br label %707

707:                                              ; preds = %706, %605
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %44) #9
  br label %708

708:                                              ; preds = %707, %335
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %42) #9
  br label %709

709:                                              ; preds = %708, %331
  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 %710

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

711:                                              ; preds = %710, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %722

712:                                              ; preds = %264, %254
  %713 = load i64, ptr %35, align 8, !tbaa !24
  %714 = sub i64 %713, 1
  store i64 %714, ptr %28, align 8, !tbaa !24
  store i32 10, ptr %17, align 4
  br label %716

715:                                              ; preds = %704
  store i32 0, ptr %17, align 4
  br label %716

716:                                              ; preds = %715, %712, %702
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  %717 = load i32, ptr %17, align 4
  switch i32 %717, label %723 [
    i32 0, label %718
    i32 12, label %719
  ]

718:                                              ; preds = %716
  br label %719

719:                                              ; preds = %718, %716
  %720 = load i64, ptr %35, align 8, !tbaa !24
  %721 = add i64 %720, 1
  store i64 %721, ptr %35, align 8, !tbaa !24
  br label %229, !llvm.loop !39

722:                                              ; preds = %711, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %724

723:                                              ; preds = %716, %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %725

724:                                              ; preds = %722, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %766

725:                                              ; preds = %723
  %726 = load ptr, ptr %29, align 8, !tbaa !5
  %727 = getelementptr inbounds %struct.EdgeHelper, ptr %726, i32 0, i32 0
  %728 = getelementptr inbounds [2 x i32], ptr %727, i64 0, i64 0
  %729 = load i32, ptr %728, align 4, !tbaa !9
  %730 = load ptr, ptr %29, align 8, !tbaa !5
  %731 = getelementptr inbounds %struct.EdgeHelper, ptr %730, i32 0, i32 0
  %732 = getelementptr inbounds [2 x i32], ptr %731, i64 0, i64 1
  %733 = load i32, ptr %732, align 4, !tbaa !9
  %734 = load i8, ptr %34, align 1, !tbaa !26, !range !33, !noundef !34
  %735 = trunc i8 %734 to i1
  br i1 %735, label %736, label %740

736:                                              ; preds = %725
  %737 = load ptr, ptr %30, align 8, !tbaa !5
  %738 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %737, i32 0, i32 1
  %739 = load float, ptr %738, align 4, !tbaa !30
  br label %744

740:                                              ; preds = %725
  %741 = load ptr, ptr %30, align 8, !tbaa !5
  %742 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %741, i32 0, i32 0
  %743 = load float, ptr %742, align 4, !tbaa !40
  br label %744

744:                                              ; preds = %740, %736
  %745 = phi float [ %739, %736 ], [ %743, %740 ]
  %746 = load i8, ptr %34, align 1, !tbaa !26, !range !33, !noundef !34
  %747 = trunc i8 %746 to i1
  br i1 %747, label %748, label %752

748:                                              ; preds = %744
  %749 = load ptr, ptr %32, align 8, !tbaa !5
  %750 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %749, i32 0, i32 1
  %751 = load float, ptr %750, align 4, !tbaa !30
  br label %756

752:                                              ; preds = %744
  %753 = load ptr, ptr %32, align 8, !tbaa !5
  %754 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %753, i32 0, i32 0
  %755 = load float, ptr %754, align 4, !tbaa !40
  br label %756

756:                                              ; preds = %752, %748
  %757 = phi float [ %751, %748 ], [ %755, %752 ]
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %729, i32 noundef %733, float noundef %745, float noundef %757)
          to label %758 unwind label %762

758:                                              ; preds = %756
  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 %759

759:                                              ; preds = %758
  %760 = load i64, ptr %28, align 8, !tbaa !24
  %761 = add i64 %760, 1
  store i64 %761, ptr %28, align 8, !tbaa !24
  br label %195, !llvm.loop !41

762:                                              ; preds = %756
  %763 = landingpad { ptr, i32 }
          cleanup
  %764 = extractvalue { ptr, i32 } %763, 0
  store ptr %764, ptr %12, align 8
  %765 = extractvalue { ptr, i32 } %763, 1
  store i32 %765, ptr %13, align 4
  br label %766

766:                                              ; preds = %762, %724
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %33) #9
  br label %767

767:                                              ; preds = %766, %243
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %31) #9
  br label %768

768:                                              ; preds = %767, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %769

769:                                              ; preds = %768, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %770

770:                                              ; preds = %769, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %921

771:                                              ; preds = %200
  %772 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 3
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %772)
          to label %773 unwind label %205

773:                                              ; preds = %771
  invoke void @_ZN3JPH22SoftBodySharedSettings32CalculateBendConstraintConstantsEv(ptr noundef nonnull align 8 dereferenceable(304) %80)
          to label %774 unwind label %205

774:                                              ; preds = %773
  call void @llvm.lifetime.start.p0(i64 1, ptr %69) #9
  store i8 0, ptr %69, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #9
  %775 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %775, ptr %70, align 8, !tbaa !5
  br label %776

776:                                              ; preds = %791, %774
  %777 = load ptr, ptr %70, align 8, !tbaa !5
  %778 = load ptr, ptr %7, align 8, !tbaa !5
  %779 = load i32, ptr %8, align 4, !tbaa !9
  %780 = zext i32 %779 to i64
  %781 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %778, i64 %780
  %782 = icmp ult ptr %777, %781
  br i1 %782, label %784, label %783

783:                                              ; preds = %776
  store i32 14, ptr %17, align 4
  br label %794

784:                                              ; preds = %776
  %785 = load ptr, ptr %70, align 8, !tbaa !5
  %786 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %785, i32 0, i32 3
  %787 = load i32, ptr %786, align 4, !tbaa !42
  %788 = icmp ne i32 %787, 0
  br i1 %788, label %789, label %790

789:                                              ; preds = %784
  store i8 1, ptr %69, align 1, !tbaa !26
  store i32 14, ptr %17, align 4
  br label %794

790:                                              ; preds = %784
  br label %791

791:                                              ; preds = %790
  %792 = load ptr, ptr %70, align 8, !tbaa !5
  %793 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %792, i32 1
  store ptr %793, ptr %70, align 8, !tbaa !5
  br label %776, !llvm.loop !43

794:                                              ; preds = %789, %783
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  br label %795

795:                                              ; preds = %794
  %796 = load i8, ptr %69, align 1, !tbaa !26, !range !33, !noundef !34
  %797 = trunc i8 %796 to i1
  br i1 %797, label %798, label %919

798:                                              ; preds = %795
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %80)
          to label %799 unwind label %808

799:                                              ; preds = %798
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #9
  store i32 0, ptr %71, align 4, !tbaa !9
  br label %800

800:                                              ; preds = %914, %799
  %801 = load i32, ptr %71, align 4, !tbaa !9
  %802 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %803 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %802)
          to label %804 unwind label %812

804:                                              ; preds = %800
  %805 = trunc i64 %803 to i32
  %806 = icmp ult i32 %801, %805
  br i1 %806, label %816, label %807

807:                                              ; preds = %804
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  br label %918

808:                                              ; preds = %798
  %809 = landingpad { ptr, i32 }
          cleanup
  %810 = extractvalue { ptr, i32 } %809, 0
  store ptr %810, ptr %12, align 8
  %811 = extractvalue { ptr, i32 } %809, 1
  store i32 %811, ptr %13, align 4
  br label %920

812:                                              ; preds = %816, %800
  %813 = landingpad { ptr, i32 }
          cleanup
  %814 = extractvalue { ptr, i32 } %813, 0
  store ptr %814, ptr %12, align 8
  %815 = extractvalue { ptr, i32 } %813, 1
  store i32 %815, ptr %13, align 4
  br label %917

816:                                              ; preds = %804
  %817 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %818 = load i32, ptr %71, align 4, !tbaa !9
  %819 = zext i32 %818 to i64
  %820 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %817, i64 noundef %819)
          to label %821 unwind label %812

821:                                              ; preds = %816
  %822 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %820, i32 0, i32 2
  %823 = load float, ptr %822, align 4, !tbaa !36
  %824 = fcmp ogt float %823, 0.000000e+00
  br i1 %824, label %825, label %913

825:                                              ; preds = %821
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #9
  %826 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 11
  %827 = load i32, ptr %71, align 4, !tbaa !9
  %828 = zext i32 %827 to i64
  %829 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %826, i64 noundef %828)
          to label %830 unwind label %841

830:                                              ; preds = %825
  %831 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::ClosestKinematic", ptr %829, i32 0, i32 0
  %832 = load i32, ptr %831, align 4, !tbaa !44
  store i32 %832, ptr %72, align 4, !tbaa !9
  %833 = load i32, ptr %72, align 4, !tbaa !9
  %834 = icmp ne i32 %833, -1
  br i1 %834, label %835, label %911

835:                                              ; preds = %830
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr %74) #9
  %836 = load i32, ptr %71, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_2clEj"(ptr dead_on_unwind writable sret(%"struct.JPH::SoftBodySharedSettings::VertexAttributes") align 4 %74, ptr noundef nonnull align 8 dereferenceable(12) %25, i32 noundef %836)
          to label %837 unwind label %845

837:                                              ; preds = %835
  store ptr %74, ptr %73, align 8, !tbaa !5
  %838 = load ptr, ptr %73, align 8, !tbaa !5
  %839 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %838, i32 0, i32 3
  %840 = load i32, ptr %839, align 4, !tbaa !42
  switch i32 %840, label %908 [
    i32 0, label %908
    i32 1, label %849
    i32 2, label %889
  ]

841:                                              ; preds = %825
  %842 = landingpad { ptr, i32 }
          cleanup
  %843 = extractvalue { ptr, i32 } %842, 0
  store ptr %843, ptr %12, align 8
  %844 = extractvalue { ptr, i32 } %842, 1
  store i32 %844, ptr %13, align 4
  br label %912

845:                                              ; preds = %835
  %846 = landingpad { ptr, i32 }
          cleanup
  %847 = extractvalue { ptr, i32 } %846, 0
  store ptr %847, ptr %12, align 8
  %848 = extractvalue { ptr, i32 } %846, 1
  store i32 %848, ptr %13, align 4
  br label %910

849:                                              ; preds = %837
  %850 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #9
  %851 = load ptr, ptr %73, align 8, !tbaa !5
  %852 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %851, i32 0, i32 4
  %853 = load float, ptr %852, align 4, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #9
  %854 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %855 = load i32, ptr %72, align 4, !tbaa !9
  %856 = zext i32 %855 to i64
  %857 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %854, i64 noundef %856)
          to label %858 unwind label %885

858:                                              ; preds = %849
  %859 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %857, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(12) %859)
          to label %860 unwind label %885

860:                                              ; preds = %858
  %861 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 1
  %862 = load i32, ptr %71, align 4, !tbaa !9
  %863 = zext i32 %862 to i64
  %864 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %861, i64 noundef %863)
          to label %865 unwind label %885

865:                                              ; preds = %860
  %866 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %864, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %78, ptr noundef nonnull align 4 dereferenceable(12) %866)
          to label %867 unwind label %885

867:                                              ; preds = %865
  %868 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 0
  %869 = load double, ptr %868, align 16
  %870 = getelementptr inbounds { double, double }, ptr %78, i32 0, i32 1
  %871 = load double, ptr %870, align 8
  %872 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %77, double %869, double %871)
          to label %873 unwind label %885

873:                                              ; preds = %867
  %874 = getelementptr inbounds %"class.JPH::Vec3", ptr %76, i32 0, i32 0
  %875 = getelementptr inbounds %union.anon, ptr %874, i32 0, i32 0
  %876 = getelementptr inbounds { double, double }, ptr %875, i32 0, i32 0
  %877 = extractvalue { double, double } %872, 0
  store double %877, ptr %876, align 16
  %878 = getelementptr inbounds { double, double }, ptr %875, i32 0, i32 1
  %879 = extractvalue { double, double } %872, 1
  store double %879, ptr %878, align 8
  %880 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %76)
          to label %881 unwind label %885

881:                                              ; preds = %873
  %882 = fmul float %853, %880
  store float %882, ptr %75, align 4, !tbaa !13
  %883 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %850, ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %75)
          to label %884 unwind label %885

884:                                              ; preds = %881
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #9
  br label %908

885:                                              ; preds = %881, %873, %867, %865, %860, %858, %849
  %886 = landingpad { ptr, i32 }
          cleanup
  %887 = extractvalue { ptr, i32 } %886, 0
  store ptr %887, ptr %12, align 8
  %888 = extractvalue { ptr, i32 } %886, 1
  store i32 %888, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #9
  br label %909

889:                                              ; preds = %837
  %890 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #9
  %891 = load ptr, ptr %73, align 8, !tbaa !5
  %892 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %891, i32 0, i32 4
  %893 = load float, ptr %892, align 4, !tbaa !46
  %894 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %80, i32 0, i32 11
  %895 = load i32, ptr %71, align 4, !tbaa !9
  %896 = zext i32 %895 to i64
  %897 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %894, i64 noundef %896)
          to label %898 unwind label %904

898:                                              ; preds = %889
  %899 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::ClosestKinematic", ptr %897, i32 0, i32 1
  %900 = load float, ptr %899, align 4, !tbaa !47
  %901 = fmul float %893, %900
  store float %901, ptr %79, align 4, !tbaa !13
  %902 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %890, ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %79)
          to label %903 unwind label %904

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

904:                                              ; preds = %898, %889
  %905 = landingpad { ptr, i32 }
          cleanup
  %906 = extractvalue { ptr, i32 } %905, 0
  store ptr %906, ptr %12, align 8
  %907 = extractvalue { ptr, i32 } %905, 1
  store i32 %907, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #9
  br label %909

908:                                              ; preds = %903, %884, %837, %837
  call void @llvm.lifetime.end.p0(i64 20, ptr %74) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  br label %911

909:                                              ; preds = %904, %885
  call void @llvm.lifetime.end.p0(i64 20, ptr %74) #9
  br label %910

910:                                              ; preds = %909, %845
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  br label %912

911:                                              ; preds = %908, %830
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #9
  br label %913

912:                                              ; preds = %910, %841
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #9
  br label %917

913:                                              ; preds = %911, %821
  br label %914

914:                                              ; preds = %913
  %915 = load i32, ptr %71, align 4, !tbaa !9
  %916 = add i32 %915, 1
  store i32 %916, ptr %71, align 4, !tbaa !9
  br label %800, !llvm.loop !48

917:                                              ; preds = %912, %812
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  br label %920

918:                                              ; preds = %807
  br label %919

919:                                              ; preds = %918, %795
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #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

920:                                              ; preds = %917, %808
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #9
  br label %921

921:                                              ; preds = %920, %770, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %922

922:                                              ; preds = %921, %201
  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 %923

923:                                              ; preds = %922, %167, %98
  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 %924

924:                                              ; preds = %923
  %925 = load ptr, ptr %12, align 8
  %926 = load i32, ptr %13, align 4
  %927 = insertvalue { ptr, i32 } poison, ptr %925, 0
  %928 = insertvalue { ptr, i32 } %927, i32 %926, 1
  resume { ptr, i32 } %928
}

; 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)
  %.not174 = icmp eq ptr %49, %50
  br i1 %.not174, label %._crit_edge, label %.preheader160.lr.ph

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

.preheader160:                                    ; preds = %.preheader160.lr.ph, %100
  %.0113175 = phi ptr [ %49, %.preheader160.lr.ph ], [ %101, %100 ]
  %53 = ptrtoint ptr %.0113175 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %54 = load i32, ptr %.0113175, 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 %.0113175, 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 %499

71:                                               ; preds = %.preheader160
  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 %.0113175, 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 %.0113175, 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 %.0113175, i64 16
  %.not = icmp eq ptr %101, %50
  br i1 %.not, label %._crit_edge, label %.preheader160

102:                                              ; preds = %86, %71, %.preheader160
  %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 %499

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 %.preheader159 unwind label %138

.preheader159:                                    ; preds = %113
  %115 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %.not196 = icmp eq i64 %115, 0
  br i1 %.not196, label %._crit_edge190, label %.lr.ph189

.lr.ph189:                                        ; preds = %.preheader159
  %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_edge190:                                   ; preds = %400, %.preheader159
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %112)
          to label %407 unwind label %138

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

138:                                              ; preds = %407, %._crit_edge190, %113, %110, %107
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %498

140:                                              ; preds = %.lr.ph189, %400
  %.0117188 = phi i64 [ 0, %.lr.ph189 ], [ %401, %400 ]
  %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 %.0117188)
          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)
  %.0127176 = add nuw i64 %.0117188, 1
  %146 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %147 = icmp ult i64 %.0127176, %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 %498

151:                                              ; preds = %.lr.ph, %388
  %.0127179 = phi i64 [ %.0127176, %.lr.ph ], [ %.0127, %388 ]
  %.0121178 = phi i8 [ 0, %.lr.ph ], [ %.3124, %388 ]
  %.0127.in177 = phi i64 [ %.0117188, %.lr.ph ], [ %.0127179, %388 ]
  %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 %.0127179)
          to label %153 unwind label %190

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 %192

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 %194

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)
  %187 = load i32, ptr %14, align 4, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !5
  %189 = icmp eq i32 %187, %188
  br i1 %189, label %388, label %196

190:                                              ; preds = %151
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %406

192:                                              ; preds = %162
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %406

194:                                              ; preds = %167
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %406

196:                                              ; preds = %173
  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
  %197 = getelementptr inbounds i8, ptr %166, i64 8
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = zext i32 %198 to i64
  %200 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %199)
          to label %201 unwind label %327

201:                                              ; preds = %196
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(12) %200)
          to label %202 unwind label %327

202:                                              ; preds = %201
  %203 = load i32, ptr %166, align 4, !tbaa !5
  %204 = zext i32 %203 to i64
  %205 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %204)
          to label %206 unwind label %327

206:                                              ; preds = %202
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(12) %205)
          to label %207 unwind label %327

207:                                              ; preds = %206
  %208 = load double, ptr %21, align 16
  %209 = load double, ptr %117, align 8
  %210 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %208, double %209)
          to label %211 unwind label %327

211:                                              ; preds = %207
  %212 = extractvalue { double, double } %210, 0
  store double %212, ptr %19, align 16
  %213 = extractvalue { double, double } %210, 1
  store double %213, ptr %118, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %214 = getelementptr inbounds i8, ptr %166, i64 4
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = zext i32 %215 to i64
  %217 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %216)
          to label %218 unwind label %329

218:                                              ; preds = %211
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(12) %217)
          to label %219 unwind label %329

219:                                              ; preds = %218
  %220 = load i32, ptr %166, align 4, !tbaa !5
  %221 = zext i32 %220 to i64
  %222 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %221)
          to label %223 unwind label %329

223:                                              ; preds = %219
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(12) %222)
          to label %224 unwind label %329

224:                                              ; preds = %223
  %225 = load double, ptr %23, align 16
  %226 = load double, ptr %119, align 8
  %227 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %225, double %226)
          to label %228 unwind label %329

228:                                              ; preds = %224
  %229 = extractvalue { double, double } %227, 0
  %230 = extractvalue { double, double } %227, 1
  %231 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %19, double %229, double %230)
          to label %232 unwind label %329

232:                                              ; preds = %228
  %233 = extractvalue { double, double } %231, 0
  store double %233, ptr %18, align 16
  %234 = extractvalue { double, double } %231, 1
  store double %234, 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
  %235 = getelementptr inbounds i8, ptr %172, i64 8
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = zext i32 %236 to i64
  %238 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %237)
          to label %239 unwind label %332

239:                                              ; preds = %232
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(12) %238)
          to label %240 unwind label %332

240:                                              ; preds = %239
  %241 = load i32, ptr %172, align 4, !tbaa !5
  %242 = zext i32 %241 to i64
  %243 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %242)
          to label %244 unwind label %332

244:                                              ; preds = %240
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(12) %243)
          to label %245 unwind label %332

245:                                              ; preds = %244
  %246 = load double, ptr %27, align 16
  %247 = load double, ptr %121, align 8
  %248 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %246, double %247)
          to label %249 unwind label %332

249:                                              ; preds = %245
  %250 = extractvalue { double, double } %248, 0
  store double %250, ptr %25, align 16
  %251 = extractvalue { double, double } %248, 1
  store double %251, ptr %122, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #8
  %252 = getelementptr inbounds i8, ptr %172, i64 4
  %253 = load i32, ptr %252, align 4, !tbaa !5
  %254 = zext i32 %253 to i64
  %255 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %254)
          to label %256 unwind label %334

256:                                              ; preds = %249
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(12) %255)
          to label %257 unwind label %334

257:                                              ; preds = %256
  %258 = load i32, ptr %172, align 4, !tbaa !5
  %259 = zext i32 %258 to i64
  %260 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %259)
          to label %261 unwind label %334

261:                                              ; preds = %257
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(12) %260)
          to label %262 unwind label %334

262:                                              ; preds = %261
  %263 = load double, ptr %29, align 16
  %264 = load double, ptr %123, align 8
  %265 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %28, double %263, double %264)
          to label %266 unwind label %334

266:                                              ; preds = %262
  %267 = extractvalue { double, double } %265, 0
  %268 = extractvalue { double, double } %265, 1
  %269 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %267, double %268)
          to label %270 unwind label %334

270:                                              ; preds = %266
  %271 = extractvalue { double, double } %269, 0
  store double %271, ptr %24, align 16
  %272 = extractvalue { double, double } %269, 1
  store double %272, 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
  %273 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %271, double %272)
  %274 = fcmp ogt float %273, 0.000000e+00
  br i1 %274, label %275, label %348

275:                                              ; preds = %270
  %276 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %273)
  %277 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %278 = fmul float %111, %277
  %279 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %24)
  %280 = fmul float %278, %279
  %281 = fcmp ogt float %276, %280
  br i1 %281, label %282, label %348

282:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #8
  %283 = load i32, ptr %14, align 4, !tbaa !5
  %284 = zext i32 %283 to i64
  %285 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %284)
          to label %286 unwind label %339

286:                                              ; preds = %282
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(12) %285)
          to label %287 unwind label %339

287:                                              ; preds = %286
  %288 = load i32, ptr %141, align 4, !tbaa !5
  %289 = zext i32 %288 to i64
  %290 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %289)
          to label %291 unwind label %339

291:                                              ; preds = %287
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %290)
          to label %292 unwind label %339

292:                                              ; preds = %291
  %293 = load double, ptr %32, align 16
  %294 = load double, ptr %125, align 8
  %295 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %31, double %293, double %294)
          to label %296 unwind label %339

296:                                              ; preds = %292
  %297 = extractvalue { double, double } %295, 0
  store double %297, ptr %30, align 16
  %298 = extractvalue { double, double } %295, 1
  store double %298, 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
  %299 = load i32, ptr %15, align 4, !tbaa !5
  %300 = zext i32 %299 to i64
  %301 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %300)
          to label %302 unwind label %341

302:                                              ; preds = %296
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(12) %301)
          to label %303 unwind label %341

303:                                              ; preds = %302
  %304 = load i32, ptr %141, align 4, !tbaa !5
  %305 = zext i32 %304 to i64
  %306 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %305)
          to label %307 unwind label %341

307:                                              ; preds = %303
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(12) %306)
          to label %308 unwind label %341

308:                                              ; preds = %307
  %309 = load double, ptr %35, align 16
  %310 = load double, ptr %127, align 8
  %311 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %34, double %309, double %310)
          to label %312 unwind label %341

312:                                              ; preds = %308
  %313 = extractvalue { double, double } %311, 0
  store double %313, ptr %33, align 16
  %314 = extractvalue { double, double } %311, 1
  store double %314, ptr %128, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #8
  %315 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %30, double %313, double %314)
  %316 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %315)
  %317 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %30)
  %318 = fmul float %108, %317
  %319 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %33)
  %320 = fmul float %318, %319
  %321 = fcmp olt float %316, %320
  br i1 %321, label %322, label %345

322:                                              ; preds = %312
  %323 = load i32, ptr %14, align 4, !tbaa !5
  %324 = load i32, ptr %15, align 4, !tbaa !5
  %325 = load float, ptr %129, align 4, !tbaa !17
  %326 = load float, ptr %130, align 4, !tbaa !17
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %323, i32 noundef %324, float noundef %325, float noundef %326)
          to label %345 unwind label %343

327:                                              ; preds = %207, %206, %202, %201, %196
  %328 = landingpad { ptr, i32 }
          cleanup
  br label %331

329:                                              ; preds = %228, %224, %223, %219, %218, %211
  %330 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  br label %331

331:                                              ; preds = %329, %327
  %.pn135 = phi { ptr, i32 } [ %330, %329 ], [ %328, %327 ]
  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 %387

332:                                              ; preds = %245, %244, %240, %239, %232
  %333 = landingpad { ptr, i32 }
          cleanup
  br label %336

334:                                              ; preds = %266, %262, %261, %257, %256, %249
  %335 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #8
  br label %336

336:                                              ; preds = %334, %332
  %.pn137 = phi { ptr, i32 } [ %335, %334 ], [ %333, %332 ]
  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 %386

337:                                              ; preds = %364, %356, %351
  %338 = landingpad { ptr, i32 }
          cleanup
  br label %386

339:                                              ; preds = %292, %291, %287, %286, %282
  %340 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #8
  br label %347

341:                                              ; preds = %308, %307, %303, %302, %296
  %342 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #8
  br label %346

343:                                              ; preds = %322
  %344 = landingpad { ptr, i32 }
          cleanup
  br label %346

345:                                              ; preds = %322, %312
  %.1122 = phi i8 [ %.0121178, %312 ], [ 1, %322 ]
  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 %348

346:                                              ; preds = %343, %341
  %.pn139 = phi { ptr, i32 } [ %344, %343 ], [ %342, %341 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #8
  br label %347

347:                                              ; preds = %346, %339
  %.pn139.pn = phi { ptr, i32 } [ %.pn139, %346 ], [ %340, %339 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #8
  br label %386

348:                                              ; preds = %345, %275, %270
  %.2123 = phi i8 [ %.1122, %345 ], [ %.0121178, %275 ], [ %.0121178, %270 ]
  switch i32 %3, label %385 [
    i32 2, label %356
    i32 1, label %349
  ]

349:                                              ; preds = %348
  %350 = trunc nuw i8 %.2123 to i1
  br i1 %350, label %385, label %351

351:                                              ; preds = %349
  %352 = load i32, ptr %14, align 4, !tbaa !5
  %353 = load i32, ptr %15, align 4, !tbaa !5
  %354 = load float, ptr %131, align 4, !tbaa !21
  %355 = load float, ptr %132, align 4, !tbaa !21
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %352, i32 noundef %353, float noundef %354, float noundef %355)
          to label %385 unwind label %337

356:                                              ; preds = %348
  %357 = load i32, ptr %14, align 4, !tbaa !5
  %358 = zext i32 %357 to i64
  %359 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %358)
          to label %360 unwind label %337

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

364:                                              ; preds = %360
  %365 = load i32, ptr %15, align 4, !tbaa !5
  %366 = zext i32 %365 to i64
  %367 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %366)
          to label %368 unwind label %337

368:                                              ; preds = %364
  %369 = getelementptr inbounds i8, ptr %367, i64 24
  %370 = load float, ptr %369, align 4, !tbaa !22
  %371 = fcmp ogt float %370, 0.000000e+00
  br i1 %371, label %372, label %385

372:                                              ; preds = %368, %360
  %373 = load float, ptr %131, align 4, !tbaa !21
  %374 = fcmp olt float %373, 0x47EFFFFFE0000000
  br i1 %374, label %375, label %385

375:                                              ; preds = %372
  %376 = load float, ptr %132, align 4, !tbaa !21
  %377 = fcmp olt float %376, 0x47EFFFFFE0000000
  br i1 %377, label %378, label %385

378:                                              ; preds = %375
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #8
  %379 = fadd float %373, %376
  %380 = fmul float %379, 5.000000e-01
  store float %380, ptr %36, align 4, !tbaa !25
  %381 = 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 %382 unwind label %383

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

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

385:                                              ; preds = %368, %372, %375, %382, %349, %351, %348
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  br label %388

386:                                              ; preds = %337, %347, %383, %336
  %.pn142.pn = phi { ptr, i32 } [ %.pn137, %336 ], [ %338, %337 ], [ %384, %383 ], [ %.pn139.pn, %347 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  br label %387

387:                                              ; preds = %386, %331
  %.pn142.pn.pn = phi { ptr, i32 } [ %.pn142.pn, %386 ], [ %.pn135, %331 ]
  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 %406

388:                                              ; preds = %173, %385
  %.3124 = phi i8 [ %.2123, %385 ], [ %.0121178, %173 ]
  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
  %.0127 = add nuw i64 %.0127179, 1
  %389 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %390 = icmp ult i64 %.0127, %389
  br i1 %390, label %151, label %.thread, !llvm.loop !26

.thread:                                          ; preds = %388, %157, %153, %142
  %.0121.lcssa = phi i8 [ 0, %142 ], [ %.0121178, %153 ], [ %.0121178, %157 ], [ %.3124, %388 ]
  %.3120 = phi i64 [ %.0117188, %142 ], [ %.0127.in177, %153 ], [ %.0127.in177, %157 ], [ %.0117188, %388 ]
  %391 = load i32, ptr %141, align 4, !tbaa !5
  %392 = load i32, ptr %144, align 4, !tbaa !5
  %393 = trunc nuw i8 %.0121.lcssa to i1
  %394 = load float, ptr %134, align 4
  %395 = load float, ptr %12, align 4
  %396 = select i1 %393, float %394, float %395
  %397 = load float, ptr %135, align 4
  %398 = load float, ptr %13, align 4
  %399 = select i1 %393, float %397, float %398
  invoke void @"_ZZN3JPH22SoftBodySharedSettings17CreateConstraintsEPKNS0_16VertexAttributesEjNS0_9EBendTypeEfENK3$_1clEjjff"(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %391, i32 noundef %392, float noundef %396, float noundef %399)
          to label %400 unwind label %404

400:                                              ; 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
  %401 = add i64 %.3120, 1
  %402 = call noundef i64 @_ZNK3JPH5ArrayIZNS_22SoftBodySharedSettings17CreateConstraintsEPKNS1_16VertexAttributesEjNS1_9EBendTypeEfE10EdgeHelperNS_12STLAllocatorIS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %403 = icmp ult i64 %401, %402
  br i1 %403, label %140, label %._crit_edge190, !llvm.loop !28

404:                                              ; preds = %.thread
  %405 = landingpad { ptr, i32 }
          cleanup
  br label %406

406:                                              ; preds = %190, %194, %387, %192, %404
  %.pn149 = phi { ptr, i32 } [ %405, %404 ], [ %191, %190 ], [ %193, %192 ], [ %.pn142.pn.pn, %387 ], [ %195, %194 ]
  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 %498

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

.preheader:                                       ; preds = %407
  %408 = zext i32 %2 to i64
  %409 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::VertexAttributes", ptr %1, i64 %408
  %.not197 = icmp eq i32 %2, 0
  br i1 %.not197, label %.critedge, label %.lr.ph192

410:                                              ; preds = %.lr.ph192
  %411 = getelementptr inbounds i8, ptr %.092191, i64 20
  %412 = icmp ult ptr %411, %409
  br i1 %412, label %.lr.ph192, label %.critedge, !llvm.loop !29

.lr.ph192:                                        ; preds = %.preheader, %410
  %.092191 = phi ptr [ %411, %410 ], [ %1, %.preheader ]
  %413 = getelementptr inbounds i8, ptr %.092191, i64 12
  %414 = load i32, ptr %413, align 4, !tbaa !30
  %.not129 = icmp eq i32 %414, 0
  br i1 %.not129, label %410, label %415

415:                                              ; preds = %.lr.ph192
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %0)
          to label %416 unwind label %426

416:                                              ; preds = %415
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #8
  %417 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %37, align 4, !tbaa !5
  %418 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %417)
  %419 = and i64 %418, 4294967295
  %.not198 = icmp eq i64 %419, 0
  br i1 %.not198, label %._crit_edge195, label %.lr.ph194

.lr.ph194:                                        ; preds = %416
  %420 = getelementptr inbounds i8, ptr %0, i64 232
  %421 = getelementptr inbounds i8, ptr %39, i64 12
  %422 = getelementptr inbounds i8, ptr %0, i64 176
  %423 = getelementptr inbounds i8, ptr %39, i64 16
  %424 = getelementptr inbounds i8, ptr %43, i64 8
  %425 = getelementptr inbounds i8, ptr %41, i64 8
  br label %430

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

426:                                              ; preds = %415
  %427 = landingpad { ptr, i32 }
          cleanup
  br label %498

428:                                              ; preds = %430
  %429 = landingpad { ptr, i32 }
          cleanup
  br label %497

430:                                              ; preds = %.lr.ph194, %491
  %431 = load i32, ptr %37, align 4, !tbaa !5
  %432 = zext i32 %431 to i64
  %433 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef %432)
          to label %434 unwind label %428

434:                                              ; preds = %430
  %435 = getelementptr inbounds i8, ptr %433, i64 24
  %436 = load float, ptr %435, align 4, !tbaa !22
  %437 = fcmp ogt float %436, 0.000000e+00
  br i1 %437, label %438, label %491

438:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #8
  %439 = load i32, ptr %37, align 4, !tbaa !5
  %440 = zext i32 %439 to i64
  %441 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %420, i64 noundef %440)
          to label %442 unwind label %447

442:                                              ; preds = %438
  %443 = load i32, ptr %441, align 4, !tbaa !31
  store i32 %443, ptr %38, align 4, !tbaa !5
  %.not130 = icmp eq i32 %443, -1
  br i1 %.not130, label %489, label %444

444:                                              ; preds = %442
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %39) #8
  %445 = 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 %445)
  %446 = load i32, ptr %421, align 4, !tbaa !30
  switch i32 %446, label %487 [
    i32 2, label %474
    i32 1, label %449
  ]

447:                                              ; preds = %438
  %448 = landingpad { ptr, i32 }
          cleanup
  br label %490

449:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #8
  %450 = load float, ptr %423, 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
  %451 = load i32, ptr %38, align 4, !tbaa !5
  %452 = zext i32 %451 to i64
  %453 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef %452)
          to label %454 unwind label %472

454:                                              ; preds = %449
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(12) %453)
          to label %455 unwind label %472

455:                                              ; preds = %454
  %456 = load i32, ptr %37, align 4, !tbaa !5
  %457 = zext i32 %456 to i64
  %458 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef %457)
          to label %459 unwind label %472

459:                                              ; preds = %455
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(12) %458)
          to label %460 unwind label %472

460:                                              ; preds = %459
  %461 = load double, ptr %43, align 16
  %462 = load double, ptr %424, align 8
  %463 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %42, double %461, double %462)
          to label %464 unwind label %472

464:                                              ; preds = %460
  %465 = extractvalue { double, double } %463, 0
  store double %465, ptr %41, align 16
  %466 = extractvalue { double, double } %463, 1
  store double %466, ptr %425, align 8
  %467 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
          to label %468 unwind label %472

468:                                              ; preds = %464
  %469 = fmul float %450, %467
  store float %469, ptr %40, align 4, !tbaa !25
  %470 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %422, 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 %471 unwind label %472

471:                                              ; preds = %468
  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 %487

472:                                              ; preds = %468, %464, %460, %459, %455, %454, %449
  %473 = 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 %488

474:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #8
  %475 = load float, ptr %423, align 4, !tbaa !33
  %476 = load i32, ptr %37, align 4, !tbaa !5
  %477 = zext i32 %476 to i64
  %478 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %420, i64 noundef %477)
          to label %479 unwind label %485

479:                                              ; preds = %474
  %480 = getelementptr inbounds i8, ptr %478, i64 4
  %481 = load float, ptr %480, align 4, !tbaa !34
  %482 = fmul float %475, %481
  store float %482, ptr %44, align 4, !tbaa !25
  %483 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE12emplace_backIJRjS7_fEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %422, 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 %484 unwind label %485

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

485:                                              ; preds = %479, %474
  %486 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #8
  br label %488

487:                                              ; preds = %484, %471, %444
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %39) #8
  br label %489

488:                                              ; preds = %485, %472
  %.pn = phi { ptr, i32 } [ %473, %472 ], [ %486, %485 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %39) #8
  br label %490

489:                                              ; preds = %487, %442
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #8
  br label %491

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

491:                                              ; preds = %434, %489
  %492 = load i32, ptr %37, align 4, !tbaa !5
  %493 = add i32 %492, 1
  store i32 %493, ptr %37, align 4, !tbaa !5
  %494 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %417)
  %495 = trunc i64 %494 to i32
  %496 = icmp ult i32 %493, %495
  br i1 %496, label %430, label %._crit_edge195, !llvm.loop !35

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

.critedge:                                        ; preds = %410, %.preheader, %._crit_edge195
  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

498:                                              ; preds = %138, %406, %149, %497, %426, %136
  %.pn149.pn.pn.pn = phi { ptr, i32 } [ %137, %136 ], [ %139, %138 ], [ %.pn149, %406 ], [ %150, %149 ], [ %.pn.pn.pn, %497 ], [ %427, %426 ]
  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 %499

499:                                              ; preds = %498, %102, %69
  %.pn154 = phi { ptr, i32 } [ %103, %102 ], [ %.pn149.pn.pn.pn, %498 ], [ %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 } %.pn154
}

; 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