; 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::Float3" = type { float, float, float }
%"class.JPH::Array.93" = type { i64, i64, ptr }
%class.anon.96 = type { ptr }
%"class.JPH::Array.97" = type { i64, i64, ptr }
%"class.JPH::Array.68" = type { i64, i64, ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.103" = type { i64, i64, ptr }
%"struct.JPH::AssertLastParam" = type { i8 }
%class.anon.106 = type { i8 }
%class.anon.108 = type { ptr }
%class.anon.109 = type { ptr }
%class.anon.110 = type { ptr }
%class.anon.111 = type { ptr }
%class.anon.112 = type { ptr }
%"class.JPH::Array.41" = type { i64, i64, ptr }
%"class.JPH::Array.56" = 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 }
%"struct.JPH::SoftBodySharedSettings::UpdateGroup" = type { i32, i32, i32, i32, i32 }
%"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.53" = 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 }
%"struct.JPH::SoftBodySharedSettings::Edge" = type { [2 x i32], float, float }
%"class.JPH::SoftBodySharedSettings::LRA" = type { [2 x i32], float }
%"struct.JPH::SoftBodySharedSettings::DihedralBend" = type { [4 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Volume" = type { [4 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", float }
%struct.Connection = type { i32, i32 }
%struct.Group = type { %"class.JPH::Array.68", %"class.JPH::Array.68", %"class.JPH::Array.68", %"class.JPH::Array.68", %"class.JPH::Array.68" }
%"class.JPH::SoftBodySharedSettings::Skinned" = type { i32, [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], float, float, float, i32 }
%"class.JPH::SoftBodySharedSettings::SkinWeight" = type { i32, float }
%"class.JPH::SoftBodySharedSettings::OptimizationResults" = type { %"class.JPH::Array.68", %"class.JPH::Array.68", %"class.JPH::Array.68", %"class.JPH::Array.68", %"class.JPH::Array.68" }

@.str.11 = external hidden unnamed_addr constant [101 x i8], align 1
@__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position = external hidden unnamed_addr constant %"class.JPH::Float3", align 4
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3 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: 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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 #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: 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(120) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Array.93", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.anon.96, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.JPH::Array.97", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.JPH::Array.68", align 8
  %29 = alloca %"class.JPH::AABox", align 16
  %30 = alloca i32, align 4
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca i32, align 4
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.JPH::Float3", align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca float, align 4
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca float, align 4
  %47 = alloca i32, align 4
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca float, align 4
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Array.103", align 8
  %63 = alloca ptr, align 8
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca %"struct.JPH::AssertLastParam", align 1
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca ptr, align 8
  %73 = alloca ptr, align 8
  %74 = alloca ptr, align 8
  %75 = alloca ptr, align 8
  %76 = alloca i32, align 4
  %77 = alloca i32, align 4
  %78 = alloca %"struct.JPH::AssertLastParam", align 1
  %79 = alloca i32, align 4
  %80 = alloca i32, align 4
  %81 = alloca ptr, align 8
  %82 = alloca ptr, align 8
  %83 = alloca ptr, align 8
  %84 = alloca ptr, align 8
  %85 = alloca i32, align 4
  %86 = alloca i32, align 4
  %87 = alloca i32, align 4
  %88 = alloca i32, align 4
  %89 = alloca %"struct.JPH::AssertLastParam", align 1
  %90 = alloca i32, align 4
  %91 = alloca i32, align 4
  %92 = alloca ptr, align 8
  %93 = alloca ptr, align 8
  %94 = alloca ptr, align 8
  %95 = alloca ptr, align 8
  %96 = alloca i32, align 4
  %97 = alloca i32, align 4
  %98 = alloca i32, align 4
  %99 = alloca i32, align 4
  %100 = alloca %"struct.JPH::AssertLastParam", align 1
  %101 = alloca i32, align 4
  %102 = alloca i32, align 4
  %103 = alloca ptr, align 8
  %104 = alloca ptr, align 8
  %105 = alloca ptr, align 8
  %106 = alloca ptr, align 8
  %107 = alloca i32, align 4
  %108 = alloca %"struct.JPH::AssertLastParam", align 1
  %109 = alloca i32, align 4
  %110 = alloca %class.anon.106, align 1
  %111 = alloca ptr, align 8
  %112 = alloca ptr, align 8
  %113 = alloca ptr, align 8
  %114 = alloca ptr, align 8
  %115 = alloca %class.anon.108, align 8
  %116 = alloca %class.anon.109, align 8
  %117 = alloca %class.anon.110, align 8
  %118 = alloca %class.anon.111, align 8
  %119 = alloca %class.anon.112, align 8
  %120 = alloca %"class.JPH::Array.41", align 8
  %121 = alloca %"class.JPH::Array.56", align 8
  %122 = alloca %"class.JPH::Array.44", align 8
  %123 = alloca %"class.JPH::Array.47", align 8
  %124 = alloca %"class.JPH::Array.50", align 8
  %125 = alloca ptr, align 8
  %126 = alloca ptr, align 8
  %127 = alloca ptr, align 8
  %128 = alloca ptr, align 8
  %129 = alloca ptr, align 8
  %130 = alloca ptr, align 8
  %131 = alloca ptr, align 8
  %132 = alloca i32, align 4
  %133 = alloca ptr, align 8
  %134 = alloca ptr, align 8
  %135 = alloca ptr, align 8
  %136 = alloca i32, align 4
  %137 = alloca ptr, align 8
  %138 = alloca ptr, align 8
  %139 = alloca ptr, align 8
  %140 = alloca i32, align 4
  %141 = alloca ptr, align 8
  %142 = alloca ptr, align 8
  %143 = alloca ptr, align 8
  %144 = alloca i32, align 4
  %145 = alloca ptr, align 8
  %146 = alloca ptr, align 8
  %147 = alloca ptr, align 8
  %148 = alloca i32, align 4
  %149 = alloca %"struct.JPH::SoftBodySharedSettings::UpdateGroup", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %150 = load ptr, ptr %3, align 8
  %151 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 12
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings11UpdateGroupENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %151)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %152 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %153 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %152)
          to label %154 unwind label %169

154:                                              ; preds = %2
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %153)
          to label %155 unwind label %169

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %156 = getelementptr inbounds %class.anon.96, ptr %8, i32 0, i32 0
  store ptr %5, ptr %156, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %157 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  store ptr %157, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %158)
          to label %160 unwind label %173

160:                                              ; preds = %155
  store ptr %159, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %161)
          to label %163 unwind label %177

163:                                              ; preds = %160
  store ptr %162, ptr %11, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %192, %163
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = icmp ne ptr %165, %166
  br i1 %167, label %181, label %168

168:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %201

169:                                              ; preds = %154, %2
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %6, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %7, align 4
  br label %1920

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

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

181:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %182, ptr %12, align 8, !tbaa !5
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds [2 x i32], ptr %184, i64 0, i64 0
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds [2 x i32], ptr %188, i64 0, i64 1
  %190 = load i32, ptr %189, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %186, i32 noundef %190)
          to label %191 unwind label %195

191:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %193, i32 1
  store ptr %194, ptr %10, align 8, !tbaa !5
  br label %164

195:                                              ; preds = %181
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %6, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %199

199:                                              ; preds = %195, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %200

200:                                              ; preds = %199, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %1919

201:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %202 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  store ptr %202, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %203)
          to label %205 unwind label %214

205:                                              ; preds = %201
  store ptr %204, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %206)
          to label %208 unwind label %218

208:                                              ; preds = %205
  store ptr %207, ptr %15, align 8, !tbaa !5
  br label %209

209:                                              ; preds = %233, %208
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = load ptr, ptr %15, align 8, !tbaa !5
  %212 = icmp ne ptr %210, %211
  br i1 %212, label %222, label %213

213:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %242

214:                                              ; preds = %201
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %6, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %7, align 4
  br label %241

218:                                              ; preds = %205
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %6, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %7, align 4
  br label %240

222:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %223, ptr %16, align 8, !tbaa !5
  %224 = load ptr, ptr %16, align 8, !tbaa !5
  %225 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %224, i32 0, i32 0
  %226 = getelementptr inbounds [2 x i32], ptr %225, i64 0, i64 0
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds [2 x i32], ptr %229, i64 0, i64 1
  %231 = load i32, ptr %230, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %227, i32 noundef %231)
          to label %232 unwind label %236

232:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %234, i32 1
  store ptr %235, ptr %14, align 8, !tbaa !5
  br label %209

236:                                              ; preds = %222
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %6, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %240

240:                                              ; preds = %236, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %241

241:                                              ; preds = %240, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %1919

242:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %243 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  store ptr %243, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %244 = load ptr, ptr %17, align 8, !tbaa !5
  %245 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %244)
          to label %246 unwind label %255

246:                                              ; preds = %242
  store ptr %245, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %247 = load ptr, ptr %17, align 8, !tbaa !5
  %248 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %247)
          to label %249 unwind label %259

249:                                              ; preds = %246
  store ptr %248, ptr %19, align 8, !tbaa !5
  br label %250

250:                                              ; preds = %319, %249
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  %253 = icmp ne ptr %251, %252
  br i1 %253, label %263, label %254

254:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %328

255:                                              ; preds = %242
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %6, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %7, align 4
  br label %327

259:                                              ; preds = %246
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %6, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %7, align 4
  br label %326

263:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %264 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %264, ptr %20, align 8, !tbaa !5
  %265 = load ptr, ptr %20, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds [4 x i32], ptr %266, i64 0, i64 0
  %268 = load i32, ptr %267, align 4, !tbaa !9
  %269 = load ptr, ptr %20, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %269, i32 0, i32 0
  %271 = getelementptr inbounds [4 x i32], ptr %270, i64 0, i64 1
  %272 = load i32, ptr %271, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %268, i32 noundef %272)
          to label %273 unwind label %322

273:                                              ; preds = %263
  %274 = load ptr, ptr %20, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds [4 x i32], ptr %275, i64 0, i64 0
  %277 = load i32, ptr %276, align 4, !tbaa !9
  %278 = load ptr, ptr %20, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds [4 x i32], ptr %279, i64 0, i64 2
  %281 = load i32, ptr %280, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %277, i32 noundef %281)
          to label %282 unwind label %322

282:                                              ; preds = %273
  %283 = load ptr, ptr %20, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds [4 x i32], ptr %284, i64 0, i64 0
  %286 = load i32, ptr %285, align 4, !tbaa !9
  %287 = load ptr, ptr %20, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %287, i32 0, i32 0
  %289 = getelementptr inbounds [4 x i32], ptr %288, i64 0, i64 3
  %290 = load i32, ptr %289, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %286, i32 noundef %290)
          to label %291 unwind label %322

291:                                              ; preds = %282
  %292 = load ptr, ptr %20, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %292, i32 0, i32 0
  %294 = getelementptr inbounds [4 x i32], ptr %293, i64 0, i64 1
  %295 = load i32, ptr %294, align 4, !tbaa !9
  %296 = load ptr, ptr %20, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %296, i32 0, i32 0
  %298 = getelementptr inbounds [4 x i32], ptr %297, i64 0, i64 2
  %299 = load i32, ptr %298, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %295, i32 noundef %299)
          to label %300 unwind label %322

300:                                              ; preds = %291
  %301 = load ptr, ptr %20, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %301, i32 0, i32 0
  %303 = getelementptr inbounds [4 x i32], ptr %302, i64 0, i64 1
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = load ptr, ptr %20, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds [4 x i32], ptr %306, i64 0, i64 3
  %308 = load i32, ptr %307, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %304, i32 noundef %308)
          to label %309 unwind label %322

309:                                              ; preds = %300
  %310 = load ptr, ptr %20, align 8, !tbaa !5
  %311 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %310, i32 0, i32 0
  %312 = getelementptr inbounds [4 x i32], ptr %311, i64 0, i64 2
  %313 = load i32, ptr %312, align 4, !tbaa !9
  %314 = load ptr, ptr %20, align 8, !tbaa !5
  %315 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %314, i32 0, i32 0
  %316 = getelementptr inbounds [4 x i32], ptr %315, i64 0, i64 3
  %317 = load i32, ptr %316, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %313, i32 noundef %317)
          to label %318 unwind label %322

318:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %319

319:                                              ; preds = %318
  %320 = load ptr, ptr %18, align 8, !tbaa !5
  %321 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %320, i32 1
  store ptr %321, ptr %18, align 8, !tbaa !5
  br label %250

322:                                              ; preds = %309, %300, %291, %282, %273, %263
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %6, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %326

326:                                              ; preds = %322, %259
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %327

327:                                              ; preds = %326, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %1919

328:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %329 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  store ptr %329, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %330 = load ptr, ptr %21, align 8, !tbaa !5
  %331 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %330)
          to label %332 unwind label %341

332:                                              ; preds = %328
  store ptr %331, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %333 = load ptr, ptr %21, align 8, !tbaa !5
  %334 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %333)
          to label %335 unwind label %345

335:                                              ; preds = %332
  store ptr %334, ptr %23, align 8, !tbaa !5
  br label %336

336:                                              ; preds = %405, %335
  %337 = load ptr, ptr %22, align 8, !tbaa !5
  %338 = load ptr, ptr %23, align 8, !tbaa !5
  %339 = icmp ne ptr %337, %338
  br i1 %339, label %349, label %340

340:                                              ; preds = %336
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %414

341:                                              ; preds = %328
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %6, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %7, align 4
  br label %413

345:                                              ; preds = %332
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %6, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %7, align 4
  br label %412

349:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %350 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %350, ptr %24, align 8, !tbaa !5
  %351 = load ptr, ptr %24, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %351, i32 0, i32 0
  %353 = getelementptr inbounds [4 x i32], ptr %352, i64 0, i64 0
  %354 = load i32, ptr %353, align 4, !tbaa !9
  %355 = load ptr, ptr %24, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %355, i32 0, i32 0
  %357 = getelementptr inbounds [4 x i32], ptr %356, i64 0, i64 1
  %358 = load i32, ptr %357, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %354, i32 noundef %358)
          to label %359 unwind label %408

359:                                              ; preds = %349
  %360 = load ptr, ptr %24, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %360, i32 0, i32 0
  %362 = getelementptr inbounds [4 x i32], ptr %361, i64 0, i64 0
  %363 = load i32, ptr %362, align 4, !tbaa !9
  %364 = load ptr, ptr %24, align 8, !tbaa !5
  %365 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %364, i32 0, i32 0
  %366 = getelementptr inbounds [4 x i32], ptr %365, i64 0, i64 2
  %367 = load i32, ptr %366, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %363, i32 noundef %367)
          to label %368 unwind label %408

368:                                              ; preds = %359
  %369 = load ptr, ptr %24, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %369, i32 0, i32 0
  %371 = getelementptr inbounds [4 x i32], ptr %370, i64 0, i64 0
  %372 = load i32, ptr %371, align 4, !tbaa !9
  %373 = load ptr, ptr %24, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %373, i32 0, i32 0
  %375 = getelementptr inbounds [4 x i32], ptr %374, i64 0, i64 3
  %376 = load i32, ptr %375, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %372, i32 noundef %376)
          to label %377 unwind label %408

377:                                              ; preds = %368
  %378 = load ptr, ptr %24, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %378, i32 0, i32 0
  %380 = getelementptr inbounds [4 x i32], ptr %379, i64 0, i64 1
  %381 = load i32, ptr %380, align 4, !tbaa !9
  %382 = load ptr, ptr %24, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds [4 x i32], ptr %383, i64 0, i64 2
  %385 = load i32, ptr %384, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %381, i32 noundef %385)
          to label %386 unwind label %408

386:                                              ; preds = %377
  %387 = load ptr, ptr %24, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %387, i32 0, i32 0
  %389 = getelementptr inbounds [4 x i32], ptr %388, i64 0, i64 1
  %390 = load i32, ptr %389, align 4, !tbaa !9
  %391 = load ptr, ptr %24, align 8, !tbaa !5
  %392 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %391, i32 0, i32 0
  %393 = getelementptr inbounds [4 x i32], ptr %392, i64 0, i64 3
  %394 = load i32, ptr %393, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %390, i32 noundef %394)
          to label %395 unwind label %408

395:                                              ; preds = %386
  %396 = load ptr, ptr %24, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %396, i32 0, i32 0
  %398 = getelementptr inbounds [4 x i32], ptr %397, i64 0, i64 2
  %399 = load i32, ptr %398, align 4, !tbaa !9
  %400 = load ptr, ptr %24, align 8, !tbaa !5
  %401 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %400, i32 0, i32 0
  %402 = getelementptr inbounds [4 x i32], ptr %401, i64 0, i64 3
  %403 = load i32, ptr %402, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %399, i32 noundef %403)
          to label %404 unwind label %408

404:                                              ; preds = %395
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %405

405:                                              ; preds = %404
  %406 = load ptr, ptr %22, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %406, i32 1
  store ptr %407, ptr %22, align 8, !tbaa !5
  br label %336

408:                                              ; preds = %395, %386, %377, %368, %359, %349
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %6, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %412

412:                                              ; preds = %408, %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %413

413:                                              ; preds = %412, %341
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %1919

414:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %415 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %416 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %415)
          to label %417 unwind label %429

417:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 -1, ptr %26, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %416, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %418 unwind label %433

418:                                              ; preds = %417
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %419

419:                                              ; preds = %850, %418
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %29)
          to label %420 unwind label %437

420:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %421

421:                                              ; preds = %466, %420
  %422 = load i32, ptr %30, align 4, !tbaa !9
  %423 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %424 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %423)
          to label %425 unwind label %441

425:                                              ; preds = %421
  %426 = trunc i64 %424 to i32
  %427 = icmp ult i32 %422, %426
  br i1 %427, label %445, label %428

428:                                              ; preds = %425
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %469

429:                                              ; preds = %414
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %6, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %7, align 4
  br label %1918

433:                                              ; preds = %417
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %6, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %1918

437:                                              ; preds = %469, %419
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %6, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %7, align 4
  br label %855

441:                                              ; preds = %459, %457, %452, %445, %421
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %6, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %855

445:                                              ; preds = %425
  %446 = load i32, ptr %30, align 4, !tbaa !9
  %447 = zext i32 %446 to i64
  %448 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %447)
          to label %449 unwind label %441

449:                                              ; preds = %445
  %450 = load i32, ptr %448, align 4, !tbaa !9
  %451 = icmp eq i32 %450, -1
  br i1 %451, label %452, label %465

452:                                              ; preds = %449
  %453 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %454 = load i32, ptr %30, align 4, !tbaa !9
  %455 = zext i32 %454 to i64
  %456 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %453, i64 noundef %455)
          to label %457 unwind label %441

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

459:                                              ; preds = %457
  %460 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %461 = load double, ptr %460, align 16
  %462 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %463 = load double, ptr %462, align 8
  invoke void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %29, double %461, double %463)
          to label %464 unwind label %441

464:                                              ; preds = %459
  br label %465

465:                                              ; preds = %464, %449
  br label %466

466:                                              ; preds = %465
  %467 = load i32, ptr %30, align 4, !tbaa !9
  %468 = add i32 %467, 1
  store i32 %468, ptr %30, align 4, !tbaa !9
  br label %421, !llvm.loop !11

469:                                              ; preds = %428
  %470 = invoke noundef zeroext i1 @_ZNK3JPH5AABox7IsValidEv(ptr noundef nonnull align 16 dereferenceable(32) %29)
          to label %471 unwind label %437

471:                                              ; preds = %469
  br i1 %470, label %473, label %472

472:                                              ; preds = %471
  store i32 10, ptr %32, align 4
  br label %848

473:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %474 = invoke { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32) %29)
          to label %475 unwind label %493

475:                                              ; preds = %473
  %476 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %477 = getelementptr inbounds %union.anon, ptr %476, i32 0, i32 0
  %478 = getelementptr inbounds { double, double }, ptr %477, i32 0, i32 0
  %479 = extractvalue { double, double } %474, 0
  store double %479, ptr %478, align 16
  %480 = getelementptr inbounds { double, double }, ptr %477, i32 0, i32 1
  %481 = extractvalue { double, double } %474, 1
  store double %481, ptr %480, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %482 = invoke noundef i32 @_ZNK3JPH4Vec324GetHighestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %33)
          to label %483 unwind label %497

483:                                              ; preds = %475
  store i32 %482, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %484 = invoke noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %33)
          to label %485 unwind label %501

485:                                              ; preds = %483
  store i32 %484, ptr %35, align 4, !tbaa !9
  %486 = load i32, ptr %35, align 4, !tbaa !9
  %487 = load i32, ptr %34, align 4, !tbaa !9
  %488 = icmp eq i32 %486, %487
  br i1 %488, label %489, label %505

489:                                              ; preds = %485
  %490 = load i32, ptr %35, align 4, !tbaa !9
  %491 = add i32 %490, 1
  %492 = urem i32 %491, 3
  store i32 %492, ptr %35, align 4, !tbaa !9
  br label %505

493:                                              ; preds = %473
  %494 = landingpad { ptr, i32 }
          cleanup
  %495 = extractvalue { ptr, i32 } %494, 0
  store ptr %495, ptr %6, align 8
  %496 = extractvalue { ptr, i32 } %494, 1
  store i32 %496, ptr %7, align 4
  br label %854

497:                                              ; preds = %475
  %498 = landingpad { ptr, i32 }
          cleanup
  %499 = extractvalue { ptr, i32 } %498, 0
  store ptr %499, ptr %6, align 8
  %500 = extractvalue { ptr, i32 } %498, 1
  store i32 %500, ptr %7, align 4
  br label %853

501:                                              ; preds = %483
  %502 = landingpad { ptr, i32 }
          cleanup
  %503 = extractvalue { ptr, i32 } %502, 0
  store ptr %503, ptr %6, align 8
  %504 = extractvalue { ptr, i32 } %502, 1
  store i32 %504, ptr %7, align 4
  br label %852

505:                                              ; preds = %489, %485
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %506 = load i32, ptr %35, align 4, !tbaa !9
  %507 = sub i32 3, %506
  %508 = load i32, ptr %34, align 4, !tbaa !9
  %509 = sub i32 %507, %508
  store i32 %509, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 -1, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 @__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %510

510:                                              ; preds = %606, %505
  %511 = load i32, ptr %39, align 4, !tbaa !9
  %512 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %513 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %512)
          to label %514 unwind label %518

514:                                              ; preds = %510
  %515 = trunc i64 %513 to i32
  %516 = icmp ult i32 %511, %515
  br i1 %516, label %522, label %517

517:                                              ; preds = %514
  store i32 15, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %610

518:                                              ; preds = %522, %510
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %6, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %7, align 4
  br label %609

522:                                              ; preds = %514
  %523 = load i32, ptr %39, align 4, !tbaa !9
  %524 = zext i32 %523 to i64
  %525 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %524)
          to label %526 unwind label %518

526:                                              ; preds = %522
  %527 = load i32, ptr %525, align 4, !tbaa !9
  %528 = icmp eq i32 %527, -1
  br i1 %528, label %529, label %605

529:                                              ; preds = %526
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %530 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %531 = load i32, ptr %39, align 4, !tbaa !9
  %532 = zext i32 %531 to i64
  %533 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %530, i64 noundef %532)
          to label %534 unwind label %585

534:                                              ; preds = %529
  %535 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %533, i32 0, i32 0
  store ptr %535, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %536 = load ptr, ptr %40, align 8, !tbaa !5
  %537 = load i32, ptr %34, align 4, !tbaa !9
  %538 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %536, i32 noundef %537)
          to label %539 unwind label %589

539:                                              ; preds = %534
  store float %538, ptr %41, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %540 = load ptr, ptr %40, align 8, !tbaa !5
  %541 = load i32, ptr %36, align 4, !tbaa !9
  %542 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %540, i32 noundef %541)
          to label %543 unwind label %593

543:                                              ; preds = %539
  store float %542, ptr %42, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %544 = load ptr, ptr %40, align 8, !tbaa !5
  %545 = load i32, ptr %35, align 4, !tbaa !9
  %546 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %544, i32 noundef %545)
          to label %547 unwind label %597

547:                                              ; preds = %543
  store float %546, ptr %43, align 4, !tbaa !13
  %548 = load float, ptr %41, align 4, !tbaa !13
  %549 = load i32, ptr %34, align 4, !tbaa !9
  %550 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef %549)
          to label %551 unwind label %597

551:                                              ; preds = %547
  %552 = fcmp olt float %548, %550
  br i1 %552, label %577, label %553

553:                                              ; preds = %551
  %554 = load float, ptr %41, align 4, !tbaa !13
  %555 = load i32, ptr %34, align 4, !tbaa !9
  %556 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef %555)
          to label %557 unwind label %597

557:                                              ; preds = %553
  %558 = fcmp oeq float %554, %556
  br i1 %558, label %559, label %601

559:                                              ; preds = %557
  %560 = load float, ptr %42, align 4, !tbaa !13
  %561 = load i32, ptr %36, align 4, !tbaa !9
  %562 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef %561)
          to label %563 unwind label %597

563:                                              ; preds = %559
  %564 = fcmp olt float %560, %562
  br i1 %564, label %577, label %565

565:                                              ; preds = %563
  %566 = load float, ptr %42, align 4, !tbaa !13
  %567 = load i32, ptr %36, align 4, !tbaa !9
  %568 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef %567)
          to label %569 unwind label %597

569:                                              ; preds = %565
  %570 = fcmp oeq float %566, %568
  br i1 %570, label %571, label %601

571:                                              ; preds = %569
  %572 = load float, ptr %43, align 4, !tbaa !13
  %573 = load i32, ptr %35, align 4, !tbaa !9
  %574 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef %573)
          to label %575 unwind label %597

575:                                              ; preds = %571
  %576 = fcmp olt float %572, %574
  br i1 %576, label %577, label %601

577:                                              ; preds = %575, %563, %551
  %578 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %579 = load i32, ptr %39, align 4, !tbaa !9
  %580 = zext i32 %579 to i64
  %581 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %578, i64 noundef %580)
          to label %582 unwind label %597

582:                                              ; preds = %577
  %583 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %581, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %583, i64 12, i1 false), !tbaa.struct !15
  %584 = load i32, ptr %39, align 4, !tbaa !9
  store i32 %584, ptr %37, align 4, !tbaa !9
  br label %601

585:                                              ; preds = %529
  %586 = landingpad { ptr, i32 }
          cleanup
  %587 = extractvalue { ptr, i32 } %586, 0
  store ptr %587, ptr %6, align 8
  %588 = extractvalue { ptr, i32 } %586, 1
  store i32 %588, ptr %7, align 4
  br label %604

589:                                              ; preds = %534
  %590 = landingpad { ptr, i32 }
          cleanup
  %591 = extractvalue { ptr, i32 } %590, 0
  store ptr %591, ptr %6, align 8
  %592 = extractvalue { ptr, i32 } %590, 1
  store i32 %592, ptr %7, align 4
  br label %603

593:                                              ; preds = %539
  %594 = landingpad { ptr, i32 }
          cleanup
  %595 = extractvalue { ptr, i32 } %594, 0
  store ptr %595, ptr %6, align 8
  %596 = extractvalue { ptr, i32 } %594, 1
  store i32 %596, ptr %7, align 4
  br label %602

597:                                              ; preds = %577, %571, %565, %559, %553, %547, %543
  %598 = landingpad { ptr, i32 }
          cleanup
  %599 = extractvalue { ptr, i32 } %598, 0
  store ptr %599, ptr %6, align 8
  %600 = extractvalue { ptr, i32 } %598, 1
  store i32 %600, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %602

601:                                              ; preds = %582, %575, %569, %557
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %605

602:                                              ; preds = %597, %593
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %603

603:                                              ; preds = %602, %589
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %604

604:                                              ; preds = %603, %585
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %609

605:                                              ; preds = %601, %526
  br label %606

606:                                              ; preds = %605
  %607 = load i32, ptr %39, align 4, !tbaa !9
  %608 = add i32 %607, 1
  store i32 %608, ptr %39, align 4, !tbaa !9
  br label %510, !llvm.loop !16

609:                                              ; preds = %604, %518
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %851

610:                                              ; preds = %517
  %611 = load i32, ptr %37, align 4, !tbaa !9
  %612 = icmp eq i32 %611, -1
  br i1 %612, label %613, label %614

613:                                              ; preds = %610
  store i32 10, ptr %32, align 4
  br label %847

614:                                              ; preds = %610
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %615 unwind label %629

615:                                              ; preds = %614
  %616 = load i32, ptr %27, align 4, !tbaa !9
  %617 = load i32, ptr %37, align 4, !tbaa !9
  %618 = zext i32 %617 to i64
  %619 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %618)
          to label %620 unwind label %629

620:                                              ; preds = %615
  store i32 %616, ptr %619, align 4, !tbaa !9
  br label %621

621:                                              ; preds = %844, %620
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 -1, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 0, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  store float 0x47EFFFFFE0000000, ptr %46, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  store i32 0, ptr %47, align 4, !tbaa !9
  br label %622

622:                                              ; preds = %804, %621
  %623 = load i32, ptr %47, align 4, !tbaa !9
  %624 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %625 unwind label %633

625:                                              ; preds = %622
  %626 = trunc i64 %624 to i32
  %627 = icmp ult i32 %623, %626
  br i1 %627, label %637, label %628

628:                                              ; preds = %625
  store i32 20, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %808

629:                                              ; preds = %615, %614
  %630 = landingpad { ptr, i32 }
          cleanup
  %631 = extractvalue { ptr, i32 } %630, 0
  store ptr %631, ptr %6, align 8
  %632 = extractvalue { ptr, i32 } %630, 1
  store i32 %632, ptr %7, align 4
  br label %851

633:                                              ; preds = %622
  %634 = landingpad { ptr, i32 }
          cleanup
  %635 = extractvalue { ptr, i32 } %634, 0
  store ptr %635, ptr %6, align 8
  %636 = extractvalue { ptr, i32 } %634, 1
  store i32 %636, ptr %7, align 4
  br label %807

637:                                              ; preds = %625
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %638 = load i32, ptr %47, align 4, !tbaa !9
  %639 = zext i32 %638 to i64
  %640 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %639)
          to label %641 unwind label %657

641:                                              ; preds = %637
  %642 = load i32, ptr %640, align 4, !tbaa !9
  %643 = zext i32 %642 to i64
  %644 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %643)
          to label %645 unwind label %657

645:                                              ; preds = %641
  store ptr %644, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %646 = load ptr, ptr %48, align 8, !tbaa !5
  %647 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %646)
          to label %648 unwind label %661

648:                                              ; preds = %645
  store ptr %647, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %649 = load ptr, ptr %48, align 8, !tbaa !5
  %650 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %649)
          to label %651 unwind label %665

651:                                              ; preds = %648
  store ptr %650, ptr %50, align 8, !tbaa !5
  br label %652

652:                                              ; preds = %796, %651
  %653 = load ptr, ptr %49, align 8, !tbaa !5
  %654 = load ptr, ptr %50, align 8, !tbaa !5
  %655 = icmp ne ptr %653, %654
  br i1 %655, label %669, label %656

656:                                              ; preds = %652
  store i32 23, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %803

657:                                              ; preds = %641, %637
  %658 = landingpad { ptr, i32 }
          cleanup
  %659 = extractvalue { ptr, i32 } %658, 0
  store ptr %659, ptr %6, align 8
  %660 = extractvalue { ptr, i32 } %658, 1
  store i32 %660, ptr %7, align 4
  br label %802

661:                                              ; preds = %645
  %662 = landingpad { ptr, i32 }
          cleanup
  %663 = extractvalue { ptr, i32 } %662, 0
  store ptr %663, ptr %6, align 8
  %664 = extractvalue { ptr, i32 } %662, 1
  store i32 %664, ptr %7, align 4
  br label %801

665:                                              ; preds = %648
  %666 = landingpad { ptr, i32 }
          cleanup
  %667 = extractvalue { ptr, i32 } %666, 0
  store ptr %667, ptr %6, align 8
  %668 = extractvalue { ptr, i32 } %666, 1
  store i32 %668, ptr %7, align 4
  br label %800

669:                                              ; preds = %652
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %670 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %670, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %671 = load ptr, ptr %51, align 8, !tbaa !5
  %672 = getelementptr inbounds %struct.Connection, ptr %671, i32 0, i32 0
  %673 = load i32, ptr %672, align 4, !tbaa !17
  store i32 %673, ptr %52, align 4, !tbaa !9
  %674 = load i32, ptr %52, align 4, !tbaa !9
  %675 = zext i32 %674 to i64
  %676 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %675)
          to label %677 unwind label %696

677:                                              ; preds = %669
  %678 = load i32, ptr %676, align 4, !tbaa !9
  %679 = icmp eq i32 %678, -1
  br i1 %679, label %680, label %795

680:                                              ; preds = %677
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 0, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %681 = load i32, ptr %52, align 4, !tbaa !9
  %682 = zext i32 %681 to i64
  %683 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %682)
          to label %684 unwind label %700

684:                                              ; preds = %680
  store ptr %683, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %685 = load ptr, ptr %54, align 8, !tbaa !5
  %686 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %685)
          to label %687 unwind label %704

687:                                              ; preds = %684
  store ptr %686, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  %688 = load ptr, ptr %54, align 8, !tbaa !5
  %689 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %688)
          to label %690 unwind label %708

690:                                              ; preds = %687
  store ptr %689, ptr %56, align 8, !tbaa !5
  br label %691

691:                                              ; preds = %734, %690
  %692 = load ptr, ptr %55, align 8, !tbaa !5
  %693 = load ptr, ptr %56, align 8, !tbaa !5
  %694 = icmp ne ptr %692, %693
  br i1 %694, label %712, label %695

695:                                              ; preds = %691
  store i32 25, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  br label %740

696:                                              ; preds = %669
  %697 = landingpad { ptr, i32 }
          cleanup
  %698 = extractvalue { ptr, i32 } %697, 0
  store ptr %698, ptr %6, align 8
  %699 = extractvalue { ptr, i32 } %697, 1
  store i32 %699, ptr %7, align 4
  br label %799

700:                                              ; preds = %680
  %701 = landingpad { ptr, i32 }
          cleanup
  %702 = extractvalue { ptr, i32 } %701, 0
  store ptr %702, ptr %6, align 8
  %703 = extractvalue { ptr, i32 } %701, 1
  store i32 %703, ptr %7, align 4
  br label %739

704:                                              ; preds = %684
  %705 = landingpad { ptr, i32 }
          cleanup
  %706 = extractvalue { ptr, i32 } %705, 0
  store ptr %706, ptr %6, align 8
  %707 = extractvalue { ptr, i32 } %705, 1
  store i32 %707, ptr %7, align 4
  br label %738

708:                                              ; preds = %687
  %709 = landingpad { ptr, i32 }
          cleanup
  %710 = extractvalue { ptr, i32 } %709, 0
  store ptr %710, ptr %6, align 8
  %711 = extractvalue { ptr, i32 } %709, 1
  store i32 %711, ptr %7, align 4
  br label %737

712:                                              ; preds = %691
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  %713 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %713, ptr %57, align 8, !tbaa !5
  %714 = load ptr, ptr %57, align 8, !tbaa !5
  %715 = getelementptr inbounds %struct.Connection, ptr %714, i32 0, i32 0
  %716 = load i32, ptr %715, align 4, !tbaa !17
  %717 = zext i32 %716 to i64
  %718 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %717)
          to label %719 unwind label %729

719:                                              ; preds = %712
  %720 = load i32, ptr %718, align 4, !tbaa !9
  %721 = load i32, ptr %27, align 4, !tbaa !9
  %722 = icmp eq i32 %720, %721
  br i1 %722, label %723, label %733

723:                                              ; preds = %719
  %724 = load ptr, ptr %57, align 8, !tbaa !5
  %725 = getelementptr inbounds %struct.Connection, ptr %724, i32 0, i32 1
  %726 = load i32, ptr %725, align 4, !tbaa !19
  %727 = load i32, ptr %53, align 4, !tbaa !9
  %728 = add i32 %727, %726
  store i32 %728, ptr %53, align 4, !tbaa !9
  br label %733

729:                                              ; preds = %712
  %730 = landingpad { ptr, i32 }
          cleanup
  %731 = extractvalue { ptr, i32 } %730, 0
  store ptr %731, ptr %6, align 8
  %732 = extractvalue { ptr, i32 } %730, 1
  store i32 %732, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %737

733:                                              ; preds = %723, %719
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %734

734:                                              ; preds = %733
  %735 = load ptr, ptr %55, align 8, !tbaa !5
  %736 = getelementptr inbounds %struct.Connection, ptr %735, i32 1
  store ptr %736, ptr %55, align 8, !tbaa !5
  br label %691

737:                                              ; preds = %729, %708
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  br label %738

738:                                              ; preds = %737, %704
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  br label %739

739:                                              ; preds = %738, %700
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  br label %794

740:                                              ; preds = %695
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #8
  %741 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %742 = load i32, ptr %52, align 4, !tbaa !9
  %743 = zext i32 %742 to i64
  %744 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %741, i64 noundef %743)
          to label %745 unwind label %789

745:                                              ; preds = %740
  %746 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %744, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(12) %746)
          to label %747 unwind label %789

747:                                              ; preds = %745
  %748 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %749 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %750 unwind label %789

750:                                              ; preds = %747
  %751 = load i32, ptr %749, align 4, !tbaa !9
  %752 = zext i32 %751 to i64
  %753 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %748, i64 noundef %752)
          to label %754 unwind label %789

754:                                              ; preds = %750
  %755 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %753, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %61, ptr noundef nonnull align 4 dereferenceable(12) %755)
          to label %756 unwind label %789

756:                                              ; preds = %754
  %757 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %758 = load double, ptr %757, align 16
  %759 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %760 = load double, ptr %759, align 8
  %761 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %60, double %758, double %760)
          to label %762 unwind label %789

762:                                              ; preds = %756
  %763 = getelementptr inbounds %"class.JPH::Vec3", ptr %59, i32 0, i32 0
  %764 = getelementptr inbounds %union.anon, ptr %763, i32 0, i32 0
  %765 = getelementptr inbounds { double, double }, ptr %764, i32 0, i32 0
  %766 = extractvalue { double, double } %761, 0
  store double %766, ptr %765, align 16
  %767 = getelementptr inbounds { double, double }, ptr %764, i32 0, i32 1
  %768 = extractvalue { double, double } %761, 1
  store double %768, ptr %767, align 8
  %769 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %59)
          to label %770 unwind label %789

770:                                              ; preds = %762
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  store float %769, ptr %58, align 4, !tbaa !13
  %771 = load i32, ptr %44, align 4, !tbaa !9
  %772 = icmp eq i32 %771, -1
  br i1 %772, label %785, label %773

773:                                              ; preds = %770
  %774 = load i32, ptr %53, align 4, !tbaa !9
  %775 = load i32, ptr %45, align 4, !tbaa !9
  %776 = icmp ugt i32 %774, %775
  br i1 %776, label %785, label %777

777:                                              ; preds = %773
  %778 = load i32, ptr %53, align 4, !tbaa !9
  %779 = load i32, ptr %45, align 4, !tbaa !9
  %780 = icmp eq i32 %778, %779
  br i1 %780, label %781, label %793

781:                                              ; preds = %777
  %782 = load float, ptr %58, align 4, !tbaa !13
  %783 = load float, ptr %46, align 4, !tbaa !13
  %784 = fcmp olt float %782, %783
  br i1 %784, label %785, label %793

785:                                              ; preds = %781, %773, %770
  %786 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %786, ptr %44, align 4, !tbaa !9
  %787 = load i32, ptr %53, align 4, !tbaa !9
  store i32 %787, ptr %45, align 4, !tbaa !9
  %788 = load float, ptr %58, align 4, !tbaa !13
  store float %788, ptr %46, align 4, !tbaa !13
  br label %793

789:                                              ; preds = %762, %756, %754, %750, %747, %745, %740
  %790 = landingpad { ptr, i32 }
          cleanup
  %791 = extractvalue { ptr, i32 } %790, 0
  store ptr %791, ptr %6, align 8
  %792 = extractvalue { ptr, i32 } %790, 1
  store i32 %792, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  br label %794

793:                                              ; preds = %785, %781, %777
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %795

794:                                              ; preds = %789, %739
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %799

795:                                              ; preds = %793, %677
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %796

796:                                              ; preds = %795
  %797 = load ptr, ptr %49, align 8, !tbaa !5
  %798 = getelementptr inbounds %struct.Connection, ptr %797, i32 1
  store ptr %798, ptr %49, align 8, !tbaa !5
  br label %652

799:                                              ; preds = %794, %696
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %800

800:                                              ; preds = %799, %665
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %801

801:                                              ; preds = %800, %661
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  br label %802

802:                                              ; preds = %801, %657
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %807

803:                                              ; preds = %656
  br label %804

804:                                              ; preds = %803
  %805 = load i32, ptr %47, align 4, !tbaa !9
  %806 = add i32 %805, 1
  store i32 %806, ptr %47, align 4, !tbaa !9
  br label %622, !llvm.loop !20

807:                                              ; preds = %802, %633
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %845

808:                                              ; preds = %628
  %809 = load i32, ptr %44, align 4, !tbaa !9
  %810 = icmp ne i32 %809, -1
  br i1 %810, label %811, label %822

811:                                              ; preds = %808
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %812 unwind label %818

812:                                              ; preds = %811
  %813 = load i32, ptr %27, align 4, !tbaa !9
  %814 = load i32, ptr %44, align 4, !tbaa !9
  %815 = zext i32 %814 to i64
  %816 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %815)
          to label %817 unwind label %818

817:                                              ; preds = %812
  store i32 %813, ptr %816, align 4, !tbaa !9
  br label %822

818:                                              ; preds = %833, %826, %822, %812, %811
  %819 = landingpad { ptr, i32 }
          cleanup
  %820 = extractvalue { ptr, i32 } %819, 0
  store ptr %820, ptr %6, align 8
  %821 = extractvalue { ptr, i32 } %819, 1
  store i32 %821, ptr %7, align 4
  br label %845

822:                                              ; preds = %817, %808
  %823 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %824 unwind label %818

824:                                              ; preds = %822
  %825 = icmp uge i64 %823, 256
  br i1 %825, label %833, label %826

826:                                              ; preds = %824
  %827 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %828 unwind label %818

828:                                              ; preds = %826
  %829 = icmp ugt i64 %827, 128
  br i1 %829, label %830, label %837

830:                                              ; preds = %828
  %831 = load i32, ptr %44, align 4, !tbaa !9
  %832 = icmp eq i32 %831, -1
  br i1 %832, label %833, label %837

833:                                              ; preds = %830, %824
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %834 unwind label %818

834:                                              ; preds = %833
  %835 = load i32, ptr %27, align 4, !tbaa !9
  %836 = add nsw i32 %835, 1
  store i32 %836, ptr %27, align 4, !tbaa !9
  store i32 18, ptr %32, align 4
  br label %842

837:                                              ; preds = %830, %828
  %838 = load i32, ptr %44, align 4, !tbaa !9
  %839 = icmp eq i32 %838, -1
  br i1 %839, label %840, label %841

840:                                              ; preds = %837
  store i32 18, ptr %32, align 4
  br label %842

841:                                              ; preds = %837
  store i32 0, ptr %32, align 4
  br label %842

842:                                              ; preds = %841, %840, %834
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  %843 = load i32, ptr %32, align 4
  switch i32 %843, label %1926 [
    i32 0, label %844
    i32 18, label %846
  ]

844:                                              ; preds = %842
  br label %621, !llvm.loop !21

845:                                              ; preds = %818, %807
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %851

846:                                              ; preds = %842
  store i32 0, ptr %32, align 4
  br label %847

847:                                              ; preds = %846, %613
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %848

848:                                              ; preds = %847, %472
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  %849 = load i32, ptr %32, align 4
  switch i32 %849, label %1926 [
    i32 0, label %850
    i32 10, label %856
  ]

850:                                              ; preds = %848
  br label %419, !llvm.loop !22

851:                                              ; preds = %845, %629, %609
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %852

852:                                              ; preds = %851, %501
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %853

853:                                              ; preds = %852, %497
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %854

854:                                              ; preds = %853, %493
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %855

855:                                              ; preds = %854, %441, %437
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %1917

856:                                              ; preds = %848
  %857 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %858 unwind label %863

858:                                              ; preds = %856
  %859 = icmp ugt i64 %857, 128
  br i1 %859, label %860, label %867

860:                                              ; preds = %858
  %861 = load i32, ptr %27, align 4, !tbaa !9
  %862 = add nsw i32 %861, 1
  store i32 %862, ptr %27, align 4, !tbaa !9
  br label %867

863:                                              ; preds = %870, %869, %868, %867, %856
  %864 = landingpad { ptr, i32 }
          cleanup
  %865 = extractvalue { ptr, i32 } %864, 0
  store ptr %865, ptr %6, align 8
  %866 = extractvalue { ptr, i32 } %864, 1
  store i32 %866, ptr %7, align 4
  br label %1917

867:                                              ; preds = %860, %858
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %868 unwind label %863

868:                                              ; preds = %867
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %869 unwind label %863

869:                                              ; preds = %868
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %870 unwind label %863

870:                                              ; preds = %869
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %871 unwind label %863

871:                                              ; preds = %870
  call void @llvm.lifetime.start.p0(i64 24, ptr %62) #8
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  %872 = load i32, ptr %27, align 4, !tbaa !9
  %873 = add nsw i32 %872, 1
  %874 = sext i32 %873 to i64
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %874)
          to label %875 unwind label %888

875:                                              ; preds = %871
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #8
  %876 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  store ptr %876, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  %877 = load ptr, ptr %63, align 8, !tbaa !5
  %878 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %877)
          to label %879 unwind label %892

879:                                              ; preds = %875
  store ptr %878, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  %880 = load ptr, ptr %63, align 8, !tbaa !5
  %881 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %880)
          to label %882 unwind label %896

882:                                              ; preds = %879
  store ptr %881, ptr %65, align 8, !tbaa !5
  br label %883

883:                                              ; preds = %981, %882
  %884 = load ptr, ptr %64, align 8, !tbaa !5
  %885 = load ptr, ptr %65, align 8, !tbaa !5
  %886 = icmp ne ptr %884, %885
  br i1 %886, label %900, label %887

887:                                              ; preds = %883
  store i32 27, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  br label %988

888:                                              ; preds = %1470, %1468, %1466, %1464, %871
  %889 = landingpad { ptr, i32 }
          cleanup
  %890 = extractvalue { ptr, i32 } %889, 0
  store ptr %890, ptr %6, align 8
  %891 = extractvalue { ptr, i32 } %889, 1
  store i32 %891, ptr %7, align 4
  br label %1916

892:                                              ; preds = %875
  %893 = landingpad { ptr, i32 }
          cleanup
  %894 = extractvalue { ptr, i32 } %893, 0
  store ptr %894, ptr %6, align 8
  %895 = extractvalue { ptr, i32 } %893, 1
  store i32 %895, ptr %7, align 4
  br label %987

896:                                              ; preds = %879
  %897 = landingpad { ptr, i32 }
          cleanup
  %898 = extractvalue { ptr, i32 } %897, 0
  store ptr %898, ptr %6, align 8
  %899 = extractvalue { ptr, i32 } %897, 1
  store i32 %899, ptr %7, align 4
  br label %986

900:                                              ; preds = %883
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %901 = load ptr, ptr %64, align 8, !tbaa !5
  store ptr %901, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #8
  %902 = load ptr, ptr %66, align 8, !tbaa !5
  %903 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %902, i32 0, i32 0
  %904 = getelementptr inbounds [2 x i32], ptr %903, i64 0, i64 0
  %905 = load i32, ptr %904, align 4, !tbaa !9
  %906 = zext i32 %905 to i64
  %907 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %906)
          to label %908 unwind label %928

908:                                              ; preds = %900
  %909 = load i32, ptr %907, align 4, !tbaa !9
  store i32 %909, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #8
  %910 = load ptr, ptr %66, align 8, !tbaa !5
  %911 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %910, i32 0, i32 0
  %912 = getelementptr inbounds [2 x i32], ptr %911, i64 0, i64 1
  %913 = load i32, ptr %912, align 4, !tbaa !9
  %914 = zext i32 %913 to i64
  %915 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %914)
          to label %916 unwind label %932

916:                                              ; preds = %908
  %917 = load i32, ptr %915, align 4, !tbaa !9
  store i32 %917, ptr %68, align 4, !tbaa !9
  br label %918

918:                                              ; preds = %916
  %919 = load i32, ptr %67, align 4, !tbaa !9
  %920 = icmp sge i32 %919, 0
  br i1 %920, label %921, label %924

921:                                              ; preds = %918
  %922 = load i32, ptr %68, align 4, !tbaa !9
  %923 = icmp sge i32 %922, 0
  br i1 %923, label %936, label %924

924:                                              ; preds = %921, %918
  %925 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.16, ptr noundef @.str.11, i32 noundef 677)
          to label %926 unwind label %932

926:                                              ; preds = %924
  br i1 %925, label %927, label %936

927:                                              ; preds = %926
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !23
  br label %936

928:                                              ; preds = %900
  %929 = landingpad { ptr, i32 }
          cleanup
  %930 = extractvalue { ptr, i32 } %929, 0
  store ptr %930, ptr %6, align 8
  %931 = extractvalue { ptr, i32 } %929, 1
  store i32 %931, ptr %7, align 4
  br label %985

932:                                              ; preds = %962, %942, %924, %908
  %933 = landingpad { ptr, i32 }
          cleanup
  %934 = extractvalue { ptr, i32 } %933, 0
  store ptr %934, ptr %6, align 8
  %935 = extractvalue { ptr, i32 } %933, 1
  store i32 %935, ptr %7, align 4
  br label %984

936:                                              ; preds = %927, %926, %921
  br label %937

937:                                              ; preds = %936
  br label %938

938:                                              ; preds = %937
  %939 = load i32, ptr %67, align 4, !tbaa !9
  %940 = load i32, ptr %68, align 4, !tbaa !9
  %941 = icmp eq i32 %939, %940
  br i1 %941, label %942, label %962

942:                                              ; preds = %938
  %943 = load i32, ptr %67, align 4, !tbaa !9
  %944 = sext i32 %943 to i64
  %945 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %944)
          to label %946 unwind label %932

946:                                              ; preds = %942
  %947 = getelementptr inbounds %struct.Group, ptr %945, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #8
  %948 = load ptr, ptr %66, align 8, !tbaa !5
  %949 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %950 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %949)
          to label %951 unwind label %958

951:                                              ; preds = %946
  %952 = ptrtoint ptr %948 to i64
  %953 = ptrtoint ptr %950 to i64
  %954 = sub i64 %952, %953
  %955 = sdiv exact i64 %954, 16
  %956 = trunc i64 %955 to i32
  store i32 %956, ptr %70, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %947, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %957 unwind label %958

957:                                              ; preds = %951
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  br label %980

958:                                              ; preds = %951, %946
  %959 = landingpad { ptr, i32 }
          cleanup
  %960 = extractvalue { ptr, i32 } %959, 0
  store ptr %960, ptr %6, align 8
  %961 = extractvalue { ptr, i32 } %959, 1
  store i32 %961, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #8
  br label %984

962:                                              ; preds = %938
  %963 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %964 unwind label %932

964:                                              ; preds = %962
  %965 = getelementptr inbounds %struct.Group, ptr %963, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #8
  %966 = load ptr, ptr %66, align 8, !tbaa !5
  %967 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %968 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %967)
          to label %969 unwind label %976

969:                                              ; preds = %964
  %970 = ptrtoint ptr %966 to i64
  %971 = ptrtoint ptr %968 to i64
  %972 = sub i64 %970, %971
  %973 = sdiv exact i64 %972, 16
  %974 = trunc i64 %973 to i32
  store i32 %974, ptr %71, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %965, ptr noundef nonnull align 4 dereferenceable(4) %71)
          to label %975 unwind label %976

975:                                              ; preds = %969
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #8
  br label %980

976:                                              ; preds = %969, %964
  %977 = landingpad { ptr, i32 }
          cleanup
  %978 = extractvalue { ptr, i32 } %977, 0
  store ptr %978, ptr %6, align 8
  %979 = extractvalue { ptr, i32 } %977, 1
  store i32 %979, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #8
  br label %984

980:                                              ; preds = %975, %957
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  br label %981

981:                                              ; preds = %980
  %982 = load ptr, ptr %64, align 8, !tbaa !5
  %983 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %982, i32 1
  store ptr %983, ptr %64, align 8, !tbaa !5
  br label %883

984:                                              ; preds = %976, %958, %932
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #8
  br label %985

985:                                              ; preds = %984, %928
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  br label %986

986:                                              ; preds = %985, %896
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  br label %987

987:                                              ; preds = %986, %892
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  br label %1916

988:                                              ; preds = %887
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  %989 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  store ptr %989, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #8
  %990 = load ptr, ptr %72, align 8, !tbaa !5
  %991 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %990)
          to label %992 unwind label %1001

992:                                              ; preds = %988
  store ptr %991, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #8
  %993 = load ptr, ptr %72, align 8, !tbaa !5
  %994 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %993)
          to label %995 unwind label %1005

995:                                              ; preds = %992
  store ptr %994, ptr %74, align 8, !tbaa !5
  br label %996

996:                                              ; preds = %1090, %995
  %997 = load ptr, ptr %73, align 8, !tbaa !5
  %998 = load ptr, ptr %74, align 8, !tbaa !5
  %999 = icmp ne ptr %997, %998
  br i1 %999, label %1009, label %1000

1000:                                             ; preds = %996
  store i32 31, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %1097

1001:                                             ; preds = %988
  %1002 = landingpad { ptr, i32 }
          cleanup
  %1003 = extractvalue { ptr, i32 } %1002, 0
  store ptr %1003, ptr %6, align 8
  %1004 = extractvalue { ptr, i32 } %1002, 1
  store i32 %1004, ptr %7, align 4
  br label %1096

1005:                                             ; preds = %992
  %1006 = landingpad { ptr, i32 }
          cleanup
  %1007 = extractvalue { ptr, i32 } %1006, 0
  store ptr %1007, ptr %6, align 8
  %1008 = extractvalue { ptr, i32 } %1006, 1
  store i32 %1008, ptr %7, align 4
  br label %1095

1009:                                             ; preds = %996
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #8
  %1010 = load ptr, ptr %73, align 8, !tbaa !5
  store ptr %1010, ptr %75, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #8
  %1011 = load ptr, ptr %75, align 8, !tbaa !5
  %1012 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %1011, i32 0, i32 0
  %1013 = getelementptr inbounds [2 x i32], ptr %1012, i64 0, i64 0
  %1014 = load i32, ptr %1013, align 4, !tbaa !9
  %1015 = zext i32 %1014 to i64
  %1016 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1015)
          to label %1017 unwind label %1037

1017:                                             ; preds = %1009
  %1018 = load i32, ptr %1016, align 4, !tbaa !9
  store i32 %1018, ptr %76, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #8
  %1019 = load ptr, ptr %75, align 8, !tbaa !5
  %1020 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %1019, i32 0, i32 0
  %1021 = getelementptr inbounds [2 x i32], ptr %1020, i64 0, i64 1
  %1022 = load i32, ptr %1021, align 4, !tbaa !9
  %1023 = zext i32 %1022 to i64
  %1024 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1023)
          to label %1025 unwind label %1041

1025:                                             ; preds = %1017
  %1026 = load i32, ptr %1024, align 4, !tbaa !9
  store i32 %1026, ptr %77, align 4, !tbaa !9
  br label %1027

1027:                                             ; preds = %1025
  %1028 = load i32, ptr %76, align 4, !tbaa !9
  %1029 = icmp sge i32 %1028, 0
  br i1 %1029, label %1030, label %1033

1030:                                             ; preds = %1027
  %1031 = load i32, ptr %77, align 4, !tbaa !9
  %1032 = icmp sge i32 %1031, 0
  br i1 %1032, label %1045, label %1033

1033:                                             ; preds = %1030, %1027
  %1034 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.16, ptr noundef @.str.11, i32 noundef 687)
          to label %1035 unwind label %1041

1035:                                             ; preds = %1033
  br i1 %1034, label %1036, label %1045

1036:                                             ; preds = %1035
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !24
  br label %1045

1037:                                             ; preds = %1009
  %1038 = landingpad { ptr, i32 }
          cleanup
  %1039 = extractvalue { ptr, i32 } %1038, 0
  store ptr %1039, ptr %6, align 8
  %1040 = extractvalue { ptr, i32 } %1038, 1
  store i32 %1040, ptr %7, align 4
  br label %1094

1041:                                             ; preds = %1071, %1051, %1033, %1017
  %1042 = landingpad { ptr, i32 }
          cleanup
  %1043 = extractvalue { ptr, i32 } %1042, 0
  store ptr %1043, ptr %6, align 8
  %1044 = extractvalue { ptr, i32 } %1042, 1
  store i32 %1044, ptr %7, align 4
  br label %1093

1045:                                             ; preds = %1036, %1035, %1030
  br label %1046

1046:                                             ; preds = %1045
  br label %1047

1047:                                             ; preds = %1046
  %1048 = load i32, ptr %76, align 4, !tbaa !9
  %1049 = load i32, ptr %77, align 4, !tbaa !9
  %1050 = icmp eq i32 %1048, %1049
  br i1 %1050, label %1051, label %1071

1051:                                             ; preds = %1047
  %1052 = load i32, ptr %76, align 4, !tbaa !9
  %1053 = sext i32 %1052 to i64
  %1054 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1053)
          to label %1055 unwind label %1041

1055:                                             ; preds = %1051
  %1056 = getelementptr inbounds %struct.Group, ptr %1054, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #8
  %1057 = load ptr, ptr %75, align 8, !tbaa !5
  %1058 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1059 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1058)
          to label %1060 unwind label %1067

1060:                                             ; preds = %1055
  %1061 = ptrtoint ptr %1057 to i64
  %1062 = ptrtoint ptr %1059 to i64
  %1063 = sub i64 %1061, %1062
  %1064 = sdiv exact i64 %1063, 12
  %1065 = trunc i64 %1064 to i32
  store i32 %1065, ptr %79, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1056, ptr noundef nonnull align 4 dereferenceable(4) %79)
          to label %1066 unwind label %1067

1066:                                             ; preds = %1060
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #8
  br label %1089

1067:                                             ; preds = %1060, %1055
  %1068 = landingpad { ptr, i32 }
          cleanup
  %1069 = extractvalue { ptr, i32 } %1068, 0
  store ptr %1069, ptr %6, align 8
  %1070 = extractvalue { ptr, i32 } %1068, 1
  store i32 %1070, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #8
  br label %1093

1071:                                             ; preds = %1047
  %1072 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1073 unwind label %1041

1073:                                             ; preds = %1071
  %1074 = getelementptr inbounds %struct.Group, ptr %1072, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #8
  %1075 = load ptr, ptr %75, align 8, !tbaa !5
  %1076 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1077 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1076)
          to label %1078 unwind label %1085

1078:                                             ; preds = %1073
  %1079 = ptrtoint ptr %1075 to i64
  %1080 = ptrtoint ptr %1077 to i64
  %1081 = sub i64 %1079, %1080
  %1082 = sdiv exact i64 %1081, 12
  %1083 = trunc i64 %1082 to i32
  store i32 %1083, ptr %80, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1074, ptr noundef nonnull align 4 dereferenceable(4) %80)
          to label %1084 unwind label %1085

1084:                                             ; preds = %1078
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  br label %1089

1085:                                             ; preds = %1078, %1073
  %1086 = landingpad { ptr, i32 }
          cleanup
  %1087 = extractvalue { ptr, i32 } %1086, 0
  store ptr %1087, ptr %6, align 8
  %1088 = extractvalue { ptr, i32 } %1086, 1
  store i32 %1088, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  br label %1093

1089:                                             ; preds = %1084, %1066
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  br label %1090

1090:                                             ; preds = %1089
  %1091 = load ptr, ptr %73, align 8, !tbaa !5
  %1092 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %1091, i32 1
  store ptr %1092, ptr %73, align 8, !tbaa !5
  br label %996

1093:                                             ; preds = %1085, %1067, %1041
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #8
  br label %1094

1094:                                             ; preds = %1093, %1037
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  br label %1095

1095:                                             ; preds = %1094, %1005
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  br label %1096

1096:                                             ; preds = %1095, %1001
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %1916

1097:                                             ; preds = %1000
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #8
  %1098 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  store ptr %1098, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #8
  %1099 = load ptr, ptr %81, align 8, !tbaa !5
  %1100 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1099)
          to label %1101 unwind label %1110

1101:                                             ; preds = %1097
  store ptr %1100, ptr %82, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #8
  %1102 = load ptr, ptr %81, align 8, !tbaa !5
  %1103 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1102)
          to label %1104 unwind label %1114

1104:                                             ; preds = %1101
  store ptr %1103, ptr %83, align 8, !tbaa !5
  br label %1105

1105:                                             ; preds = %1237, %1104
  %1106 = load ptr, ptr %82, align 8, !tbaa !5
  %1107 = load ptr, ptr %83, align 8, !tbaa !5
  %1108 = icmp ne ptr %1106, %1107
  br i1 %1108, label %1118, label %1109

1109:                                             ; preds = %1105
  store i32 35, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  br label %1246

1110:                                             ; preds = %1097
  %1111 = landingpad { ptr, i32 }
          cleanup
  %1112 = extractvalue { ptr, i32 } %1111, 0
  store ptr %1112, ptr %6, align 8
  %1113 = extractvalue { ptr, i32 } %1111, 1
  store i32 %1113, ptr %7, align 4
  br label %1245

1114:                                             ; preds = %1101
  %1115 = landingpad { ptr, i32 }
          cleanup
  %1116 = extractvalue { ptr, i32 } %1115, 0
  store ptr %1116, ptr %6, align 8
  %1117 = extractvalue { ptr, i32 } %1115, 1
  store i32 %1117, ptr %7, align 4
  br label %1244

1118:                                             ; preds = %1105
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #8
  %1119 = load ptr, ptr %82, align 8, !tbaa !5
  store ptr %1119, ptr %84, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #8
  %1120 = load ptr, ptr %84, align 8, !tbaa !5
  %1121 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %1120, i32 0, i32 0
  %1122 = getelementptr inbounds [4 x i32], ptr %1121, i64 0, i64 0
  %1123 = load i32, ptr %1122, align 4, !tbaa !9
  %1124 = zext i32 %1123 to i64
  %1125 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1124)
          to label %1126 unwind label %1168

1126:                                             ; preds = %1118
  %1127 = load i32, ptr %1125, align 4, !tbaa !9
  store i32 %1127, ptr %85, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #8
  %1128 = load ptr, ptr %84, align 8, !tbaa !5
  %1129 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %1128, i32 0, i32 0
  %1130 = getelementptr inbounds [4 x i32], ptr %1129, i64 0, i64 1
  %1131 = load i32, ptr %1130, align 4, !tbaa !9
  %1132 = zext i32 %1131 to i64
  %1133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1132)
          to label %1134 unwind label %1172

1134:                                             ; preds = %1126
  %1135 = load i32, ptr %1133, align 4, !tbaa !9
  store i32 %1135, ptr %86, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %87) #8
  %1136 = load ptr, ptr %84, align 8, !tbaa !5
  %1137 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %1136, i32 0, i32 0
  %1138 = getelementptr inbounds [4 x i32], ptr %1137, i64 0, i64 2
  %1139 = load i32, ptr %1138, align 4, !tbaa !9
  %1140 = zext i32 %1139 to i64
  %1141 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1140)
          to label %1142 unwind label %1176

1142:                                             ; preds = %1134
  %1143 = load i32, ptr %1141, align 4, !tbaa !9
  store i32 %1143, ptr %87, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #8
  %1144 = load ptr, ptr %84, align 8, !tbaa !5
  %1145 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %1144, i32 0, i32 0
  %1146 = getelementptr inbounds [4 x i32], ptr %1145, i64 0, i64 3
  %1147 = load i32, ptr %1146, align 4, !tbaa !9
  %1148 = zext i32 %1147 to i64
  %1149 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1148)
          to label %1150 unwind label %1180

1150:                                             ; preds = %1142
  %1151 = load i32, ptr %1149, align 4, !tbaa !9
  store i32 %1151, ptr %88, align 4, !tbaa !9
  br label %1152

1152:                                             ; preds = %1150
  %1153 = load i32, ptr %85, align 4, !tbaa !9
  %1154 = icmp sge i32 %1153, 0
  br i1 %1154, label %1155, label %1164

1155:                                             ; preds = %1152
  %1156 = load i32, ptr %86, align 4, !tbaa !9
  %1157 = icmp sge i32 %1156, 0
  br i1 %1157, label %1158, label %1164

1158:                                             ; preds = %1155
  %1159 = load i32, ptr %87, align 4, !tbaa !9
  %1160 = icmp sge i32 %1159, 0
  br i1 %1160, label %1161, label %1164

1161:                                             ; preds = %1158
  %1162 = load i32, ptr %88, align 4, !tbaa !9
  %1163 = icmp sge i32 %1162, 0
  br i1 %1163, label %1184, label %1164

1164:                                             ; preds = %1161, %1158, %1155, %1152
  %1165 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.17, ptr noundef @.str.11, i32 noundef 699)
          to label %1166 unwind label %1180

1166:                                             ; preds = %1164
  br i1 %1165, label %1167, label %1184

1167:                                             ; preds = %1166
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !25
  br label %1184

1168:                                             ; preds = %1118
  %1169 = landingpad { ptr, i32 }
          cleanup
  %1170 = extractvalue { ptr, i32 } %1169, 0
  store ptr %1170, ptr %6, align 8
  %1171 = extractvalue { ptr, i32 } %1169, 1
  store i32 %1171, ptr %7, align 4
  br label %1243

1172:                                             ; preds = %1126
  %1173 = landingpad { ptr, i32 }
          cleanup
  %1174 = extractvalue { ptr, i32 } %1173, 0
  store ptr %1174, ptr %6, align 8
  %1175 = extractvalue { ptr, i32 } %1173, 1
  store i32 %1175, ptr %7, align 4
  br label %1242

1176:                                             ; preds = %1134
  %1177 = landingpad { ptr, i32 }
          cleanup
  %1178 = extractvalue { ptr, i32 } %1177, 0
  store ptr %1178, ptr %6, align 8
  %1179 = extractvalue { ptr, i32 } %1177, 1
  store i32 %1179, ptr %7, align 4
  br label %1241

1180:                                             ; preds = %1218, %1198, %1164, %1142
  %1181 = landingpad { ptr, i32 }
          cleanup
  %1182 = extractvalue { ptr, i32 } %1181, 0
  store ptr %1182, ptr %6, align 8
  %1183 = extractvalue { ptr, i32 } %1181, 1
  store i32 %1183, ptr %7, align 4
  br label %1240

1184:                                             ; preds = %1167, %1166, %1161
  br label %1185

1185:                                             ; preds = %1184
  br label %1186

1186:                                             ; preds = %1185
  %1187 = load i32, ptr %85, align 4, !tbaa !9
  %1188 = load i32, ptr %86, align 4, !tbaa !9
  %1189 = icmp eq i32 %1187, %1188
  br i1 %1189, label %1190, label %1218

1190:                                             ; preds = %1186
  %1191 = load i32, ptr %85, align 4, !tbaa !9
  %1192 = load i32, ptr %87, align 4, !tbaa !9
  %1193 = icmp eq i32 %1191, %1192
  br i1 %1193, label %1194, label %1218

1194:                                             ; preds = %1190
  %1195 = load i32, ptr %85, align 4, !tbaa !9
  %1196 = load i32, ptr %88, align 4, !tbaa !9
  %1197 = icmp eq i32 %1195, %1196
  br i1 %1197, label %1198, label %1218

1198:                                             ; preds = %1194
  %1199 = load i32, ptr %85, align 4, !tbaa !9
  %1200 = sext i32 %1199 to i64
  %1201 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1200)
          to label %1202 unwind label %1180

1202:                                             ; preds = %1198
  %1203 = getelementptr inbounds %struct.Group, ptr %1201, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #8
  %1204 = load ptr, ptr %84, align 8, !tbaa !5
  %1205 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1206 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1205)
          to label %1207 unwind label %1214

1207:                                             ; preds = %1202
  %1208 = ptrtoint ptr %1204 to i64
  %1209 = ptrtoint ptr %1206 to i64
  %1210 = sub i64 %1208, %1209
  %1211 = sdiv exact i64 %1210, 24
  %1212 = trunc i64 %1211 to i32
  store i32 %1212, ptr %90, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1203, ptr noundef nonnull align 4 dereferenceable(4) %90)
          to label %1213 unwind label %1214

1213:                                             ; preds = %1207
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #8
  br label %1236

1214:                                             ; preds = %1207, %1202
  %1215 = landingpad { ptr, i32 }
          cleanup
  %1216 = extractvalue { ptr, i32 } %1215, 0
  store ptr %1216, ptr %6, align 8
  %1217 = extractvalue { ptr, i32 } %1215, 1
  store i32 %1217, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #8
  br label %1240

1218:                                             ; preds = %1194, %1190, %1186
  %1219 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1220 unwind label %1180

1220:                                             ; preds = %1218
  %1221 = getelementptr inbounds %struct.Group, ptr %1219, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #8
  %1222 = load ptr, ptr %84, align 8, !tbaa !5
  %1223 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1224 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1223)
          to label %1225 unwind label %1232

1225:                                             ; preds = %1220
  %1226 = ptrtoint ptr %1222 to i64
  %1227 = ptrtoint ptr %1224 to i64
  %1228 = sub i64 %1226, %1227
  %1229 = sdiv exact i64 %1228, 24
  %1230 = trunc i64 %1229 to i32
  store i32 %1230, ptr %91, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1221, ptr noundef nonnull align 4 dereferenceable(4) %91)
          to label %1231 unwind label %1232

1231:                                             ; preds = %1225
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #8
  br label %1236

1232:                                             ; preds = %1225, %1220
  %1233 = landingpad { ptr, i32 }
          cleanup
  %1234 = extractvalue { ptr, i32 } %1233, 0
  store ptr %1234, ptr %6, align 8
  %1235 = extractvalue { ptr, i32 } %1233, 1
  store i32 %1235, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #8
  br label %1240

1236:                                             ; preds = %1231, %1213
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #8
  br label %1237

1237:                                             ; preds = %1236
  %1238 = load ptr, ptr %82, align 8, !tbaa !5
  %1239 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %1238, i32 1
  store ptr %1239, ptr %82, align 8, !tbaa !5
  br label %1105

1240:                                             ; preds = %1232, %1214, %1180
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #8
  br label %1241

1241:                                             ; preds = %1240, %1176
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #8
  br label %1242

1242:                                             ; preds = %1241, %1172
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #8
  br label %1243

1243:                                             ; preds = %1242, %1168
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #8
  br label %1244

1244:                                             ; preds = %1243, %1114
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #8
  br label %1245

1245:                                             ; preds = %1244, %1110
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  br label %1916

1246:                                             ; preds = %1109
  call void @llvm.lifetime.start.p0(i64 8, ptr %92) #8
  %1247 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  store ptr %1247, ptr %92, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %93) #8
  %1248 = load ptr, ptr %92, align 8, !tbaa !5
  %1249 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1248)
          to label %1250 unwind label %1259

1250:                                             ; preds = %1246
  store ptr %1249, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %94) #8
  %1251 = load ptr, ptr %92, align 8, !tbaa !5
  %1252 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1251)
          to label %1253 unwind label %1263

1253:                                             ; preds = %1250
  store ptr %1252, ptr %94, align 8, !tbaa !5
  br label %1254

1254:                                             ; preds = %1386, %1253
  %1255 = load ptr, ptr %93, align 8, !tbaa !5
  %1256 = load ptr, ptr %94, align 8, !tbaa !5
  %1257 = icmp ne ptr %1255, %1256
  br i1 %1257, label %1267, label %1258

1258:                                             ; preds = %1254
  store i32 39, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #8
  br label %1395

1259:                                             ; preds = %1246
  %1260 = landingpad { ptr, i32 }
          cleanup
  %1261 = extractvalue { ptr, i32 } %1260, 0
  store ptr %1261, ptr %6, align 8
  %1262 = extractvalue { ptr, i32 } %1260, 1
  store i32 %1262, ptr %7, align 4
  br label %1394

1263:                                             ; preds = %1250
  %1264 = landingpad { ptr, i32 }
          cleanup
  %1265 = extractvalue { ptr, i32 } %1264, 0
  store ptr %1265, ptr %6, align 8
  %1266 = extractvalue { ptr, i32 } %1264, 1
  store i32 %1266, ptr %7, align 4
  br label %1393

1267:                                             ; preds = %1254
  call void @llvm.lifetime.start.p0(i64 8, ptr %95) #8
  %1268 = load ptr, ptr %93, align 8, !tbaa !5
  store ptr %1268, ptr %95, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #8
  %1269 = load ptr, ptr %95, align 8, !tbaa !5
  %1270 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %1269, i32 0, i32 0
  %1271 = getelementptr inbounds [4 x i32], ptr %1270, i64 0, i64 0
  %1272 = load i32, ptr %1271, align 4, !tbaa !9
  %1273 = zext i32 %1272 to i64
  %1274 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1273)
          to label %1275 unwind label %1317

1275:                                             ; preds = %1267
  %1276 = load i32, ptr %1274, align 4, !tbaa !9
  store i32 %1276, ptr %96, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #8
  %1277 = load ptr, ptr %95, align 8, !tbaa !5
  %1278 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %1277, i32 0, i32 0
  %1279 = getelementptr inbounds [4 x i32], ptr %1278, i64 0, i64 1
  %1280 = load i32, ptr %1279, align 4, !tbaa !9
  %1281 = zext i32 %1280 to i64
  %1282 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1281)
          to label %1283 unwind label %1321

1283:                                             ; preds = %1275
  %1284 = load i32, ptr %1282, align 4, !tbaa !9
  store i32 %1284, ptr %97, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %98) #8
  %1285 = load ptr, ptr %95, align 8, !tbaa !5
  %1286 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %1285, i32 0, i32 0
  %1287 = getelementptr inbounds [4 x i32], ptr %1286, i64 0, i64 2
  %1288 = load i32, ptr %1287, align 4, !tbaa !9
  %1289 = zext i32 %1288 to i64
  %1290 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1289)
          to label %1291 unwind label %1325

1291:                                             ; preds = %1283
  %1292 = load i32, ptr %1290, align 4, !tbaa !9
  store i32 %1292, ptr %98, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #8
  %1293 = load ptr, ptr %95, align 8, !tbaa !5
  %1294 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %1293, i32 0, i32 0
  %1295 = getelementptr inbounds [4 x i32], ptr %1294, i64 0, i64 3
  %1296 = load i32, ptr %1295, align 4, !tbaa !9
  %1297 = zext i32 %1296 to i64
  %1298 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1297)
          to label %1299 unwind label %1329

1299:                                             ; preds = %1291
  %1300 = load i32, ptr %1298, align 4, !tbaa !9
  store i32 %1300, ptr %99, align 4, !tbaa !9
  br label %1301

1301:                                             ; preds = %1299
  %1302 = load i32, ptr %96, align 4, !tbaa !9
  %1303 = icmp sge i32 %1302, 0
  br i1 %1303, label %1304, label %1313

1304:                                             ; preds = %1301
  %1305 = load i32, ptr %97, align 4, !tbaa !9
  %1306 = icmp sge i32 %1305, 0
  br i1 %1306, label %1307, label %1313

1307:                                             ; preds = %1304
  %1308 = load i32, ptr %98, align 4, !tbaa !9
  %1309 = icmp sge i32 %1308, 0
  br i1 %1309, label %1310, label %1313

1310:                                             ; preds = %1307
  %1311 = load i32, ptr %99, align 4, !tbaa !9
  %1312 = icmp sge i32 %1311, 0
  br i1 %1312, label %1333, label %1313

1313:                                             ; preds = %1310, %1307, %1304, %1301
  %1314 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.17, ptr noundef @.str.11, i32 noundef 711)
          to label %1315 unwind label %1329

1315:                                             ; preds = %1313
  br i1 %1314, label %1316, label %1333

1316:                                             ; preds = %1315
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !26
  br label %1333

1317:                                             ; preds = %1267
  %1318 = landingpad { ptr, i32 }
          cleanup
  %1319 = extractvalue { ptr, i32 } %1318, 0
  store ptr %1319, ptr %6, align 8
  %1320 = extractvalue { ptr, i32 } %1318, 1
  store i32 %1320, ptr %7, align 4
  br label %1392

1321:                                             ; preds = %1275
  %1322 = landingpad { ptr, i32 }
          cleanup
  %1323 = extractvalue { ptr, i32 } %1322, 0
  store ptr %1323, ptr %6, align 8
  %1324 = extractvalue { ptr, i32 } %1322, 1
  store i32 %1324, ptr %7, align 4
  br label %1391

1325:                                             ; preds = %1283
  %1326 = landingpad { ptr, i32 }
          cleanup
  %1327 = extractvalue { ptr, i32 } %1326, 0
  store ptr %1327, ptr %6, align 8
  %1328 = extractvalue { ptr, i32 } %1326, 1
  store i32 %1328, ptr %7, align 4
  br label %1390

1329:                                             ; preds = %1367, %1347, %1313, %1291
  %1330 = landingpad { ptr, i32 }
          cleanup
  %1331 = extractvalue { ptr, i32 } %1330, 0
  store ptr %1331, ptr %6, align 8
  %1332 = extractvalue { ptr, i32 } %1330, 1
  store i32 %1332, ptr %7, align 4
  br label %1389

1333:                                             ; preds = %1316, %1315, %1310
  br label %1334

1334:                                             ; preds = %1333
  br label %1335

1335:                                             ; preds = %1334
  %1336 = load i32, ptr %96, align 4, !tbaa !9
  %1337 = load i32, ptr %97, align 4, !tbaa !9
  %1338 = icmp eq i32 %1336, %1337
  br i1 %1338, label %1339, label %1367

1339:                                             ; preds = %1335
  %1340 = load i32, ptr %96, align 4, !tbaa !9
  %1341 = load i32, ptr %98, align 4, !tbaa !9
  %1342 = icmp eq i32 %1340, %1341
  br i1 %1342, label %1343, label %1367

1343:                                             ; preds = %1339
  %1344 = load i32, ptr %96, align 4, !tbaa !9
  %1345 = load i32, ptr %99, align 4, !tbaa !9
  %1346 = icmp eq i32 %1344, %1345
  br i1 %1346, label %1347, label %1367

1347:                                             ; preds = %1343
  %1348 = load i32, ptr %96, align 4, !tbaa !9
  %1349 = sext i32 %1348 to i64
  %1350 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1349)
          to label %1351 unwind label %1329

1351:                                             ; preds = %1347
  %1352 = getelementptr inbounds %struct.Group, ptr %1350, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %101) #8
  %1353 = load ptr, ptr %95, align 8, !tbaa !5
  %1354 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1355 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1354)
          to label %1356 unwind label %1363

1356:                                             ; preds = %1351
  %1357 = ptrtoint ptr %1353 to i64
  %1358 = ptrtoint ptr %1355 to i64
  %1359 = sub i64 %1357, %1358
  %1360 = sdiv exact i64 %1359, 24
  %1361 = trunc i64 %1360 to i32
  store i32 %1361, ptr %101, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1352, ptr noundef nonnull align 4 dereferenceable(4) %101)
          to label %1362 unwind label %1363

1362:                                             ; preds = %1356
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #8
  br label %1385

1363:                                             ; preds = %1356, %1351
  %1364 = landingpad { ptr, i32 }
          cleanup
  %1365 = extractvalue { ptr, i32 } %1364, 0
  store ptr %1365, ptr %6, align 8
  %1366 = extractvalue { ptr, i32 } %1364, 1
  store i32 %1366, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #8
  br label %1389

1367:                                             ; preds = %1343, %1339, %1335
  %1368 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1369 unwind label %1329

1369:                                             ; preds = %1367
  %1370 = getelementptr inbounds %struct.Group, ptr %1368, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %102) #8
  %1371 = load ptr, ptr %95, align 8, !tbaa !5
  %1372 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1373 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1372)
          to label %1374 unwind label %1381

1374:                                             ; preds = %1369
  %1375 = ptrtoint ptr %1371 to i64
  %1376 = ptrtoint ptr %1373 to i64
  %1377 = sub i64 %1375, %1376
  %1378 = sdiv exact i64 %1377, 24
  %1379 = trunc i64 %1378 to i32
  store i32 %1379, ptr %102, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1370, ptr noundef nonnull align 4 dereferenceable(4) %102)
          to label %1380 unwind label %1381

1380:                                             ; preds = %1374
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #8
  br label %1385

1381:                                             ; preds = %1374, %1369
  %1382 = landingpad { ptr, i32 }
          cleanup
  %1383 = extractvalue { ptr, i32 } %1382, 0
  store ptr %1383, ptr %6, align 8
  %1384 = extractvalue { ptr, i32 } %1382, 1
  store i32 %1384, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #8
  br label %1389

1385:                                             ; preds = %1380, %1362
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %98) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #8
  br label %1386

1386:                                             ; preds = %1385
  %1387 = load ptr, ptr %93, align 8, !tbaa !5
  %1388 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %1387, i32 1
  store ptr %1388, ptr %93, align 8, !tbaa !5
  br label %1254

1389:                                             ; preds = %1381, %1363, %1329
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #8
  br label %1390

1390:                                             ; preds = %1389, %1325
  call void @llvm.lifetime.end.p0(i64 4, ptr %98) #8
  br label %1391

1391:                                             ; preds = %1390, %1321
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #8
  br label %1392

1392:                                             ; preds = %1391, %1317
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #8
  br label %1393

1393:                                             ; preds = %1392, %1263
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #8
  br label %1394

1394:                                             ; preds = %1393, %1259
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #8
  br label %1916

1395:                                             ; preds = %1258
  call void @llvm.lifetime.start.p0(i64 8, ptr %103) #8
  %1396 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  store ptr %1396, ptr %103, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %104) #8
  %1397 = load ptr, ptr %103, align 8, !tbaa !5
  %1398 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1397)
          to label %1399 unwind label %1408

1399:                                             ; preds = %1395
  store ptr %1398, ptr %104, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %105) #8
  %1400 = load ptr, ptr %103, align 8, !tbaa !5
  %1401 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1400)
          to label %1402 unwind label %1412

1402:                                             ; preds = %1399
  store ptr %1401, ptr %105, align 8, !tbaa !5
  br label %1403

1403:                                             ; preds = %1454, %1402
  %1404 = load ptr, ptr %104, align 8, !tbaa !5
  %1405 = load ptr, ptr %105, align 8, !tbaa !5
  %1406 = icmp ne ptr %1404, %1405
  br i1 %1406, label %1416, label %1407

1407:                                             ; preds = %1403
  store i32 43, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #8
  br label %1464

1408:                                             ; preds = %1395
  %1409 = landingpad { ptr, i32 }
          cleanup
  %1410 = extractvalue { ptr, i32 } %1409, 0
  store ptr %1410, ptr %6, align 8
  %1411 = extractvalue { ptr, i32 } %1409, 1
  store i32 %1411, ptr %7, align 4
  br label %1463

1412:                                             ; preds = %1399
  %1413 = landingpad { ptr, i32 }
          cleanup
  %1414 = extractvalue { ptr, i32 } %1413, 0
  store ptr %1414, ptr %6, align 8
  %1415 = extractvalue { ptr, i32 } %1413, 1
  store i32 %1415, ptr %7, align 4
  br label %1462

1416:                                             ; preds = %1403
  call void @llvm.lifetime.start.p0(i64 8, ptr %106) #8
  %1417 = load ptr, ptr %104, align 8, !tbaa !5
  store ptr %1417, ptr %106, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %107) #8
  %1418 = load ptr, ptr %106, align 8, !tbaa !5
  %1419 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %1418, i32 0, i32 0
  %1420 = load i32, ptr %1419, align 4, !tbaa !27
  %1421 = zext i32 %1420 to i64
  %1422 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1421)
          to label %1423 unwind label %1432

1423:                                             ; preds = %1416
  %1424 = load i32, ptr %1422, align 4, !tbaa !9
  store i32 %1424, ptr %107, align 4, !tbaa !9
  br label %1425

1425:                                             ; preds = %1423
  %1426 = load i32, ptr %107, align 4, !tbaa !9
  %1427 = icmp sge i32 %1426, 0
  br i1 %1427, label %1436, label %1428

1428:                                             ; preds = %1425
  %1429 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.18, ptr noundef @.str.11, i32 noundef 720)
          to label %1430 unwind label %1432

1430:                                             ; preds = %1428
  br i1 %1429, label %1431, label %1436

1431:                                             ; preds = %1430
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !29
  br label %1436

1432:                                             ; preds = %1438, %1428, %1416
  %1433 = landingpad { ptr, i32 }
          cleanup
  %1434 = extractvalue { ptr, i32 } %1433, 0
  store ptr %1434, ptr %6, align 8
  %1435 = extractvalue { ptr, i32 } %1433, 1
  store i32 %1435, ptr %7, align 4
  br label %1461

1436:                                             ; preds = %1431, %1430, %1425
  br label %1437

1437:                                             ; preds = %1436
  br label %1438

1438:                                             ; preds = %1437
  %1439 = load i32, ptr %107, align 4, !tbaa !9
  %1440 = sext i32 %1439 to i64
  %1441 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1440)
          to label %1442 unwind label %1432

1442:                                             ; preds = %1438
  %1443 = getelementptr inbounds %struct.Group, ptr %1441, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %109) #8
  %1444 = load ptr, ptr %106, align 8, !tbaa !5
  %1445 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  %1446 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1445)
          to label %1447 unwind label %1457

1447:                                             ; preds = %1442
  %1448 = ptrtoint ptr %1444 to i64
  %1449 = ptrtoint ptr %1446 to i64
  %1450 = sub i64 %1448, %1449
  %1451 = sdiv exact i64 %1450, 52
  %1452 = trunc i64 %1451 to i32
  store i32 %1452, ptr %109, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %1443, ptr noundef nonnull align 4 dereferenceable(4) %109)
          to label %1453 unwind label %1457

1453:                                             ; preds = %1447
  call void @llvm.lifetime.end.p0(i64 4, ptr %109) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %107) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #8
  br label %1454

1454:                                             ; preds = %1453
  %1455 = load ptr, ptr %104, align 8, !tbaa !5
  %1456 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %1455, i32 1
  store ptr %1456, ptr %104, align 8, !tbaa !5
  br label %1403

1457:                                             ; preds = %1447, %1442
  %1458 = landingpad { ptr, i32 }
          cleanup
  %1459 = extractvalue { ptr, i32 } %1458, 0
  store ptr %1459, ptr %6, align 8
  %1460 = extractvalue { ptr, i32 } %1458, 1
  store i32 %1460, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %109) #8
  br label %1461

1461:                                             ; preds = %1457, %1432
  call void @llvm.lifetime.end.p0(i64 4, ptr %107) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #8
  br label %1462

1462:                                             ; preds = %1461, %1412
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #8
  br label %1463

1463:                                             ; preds = %1462, %1408
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #8
  br label %1916

1464:                                             ; preds = %1407
  %1465 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1466 unwind label %888

1466:                                             ; preds = %1464
  %1467 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1468 unwind label %888

1468:                                             ; preds = %1466
  %1469 = getelementptr inbounds %struct.Group, ptr %1467, i64 -1
  invoke void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupZNS1_8OptimizeES3_E3$_1EEvT_S7_T0_"(ptr noundef %1465, ptr noundef %1469)
          to label %1470 unwind label %888

1470:                                             ; preds = %1468
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %150)
          to label %1471 unwind label %888

1471:                                             ; preds = %1470
  call void @llvm.lifetime.start.p0(i64 8, ptr %111) #8
  store ptr %62, ptr %111, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %112) #8
  %1472 = load ptr, ptr %111, align 8, !tbaa !5
  %1473 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1472)
          to label %1474 unwind label %1483

1474:                                             ; preds = %1471
  store ptr %1473, ptr %112, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %113) #8
  %1475 = load ptr, ptr %111, align 8, !tbaa !5
  %1476 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1475)
          to label %1477 unwind label %1487

1477:                                             ; preds = %1474
  store ptr %1476, ptr %113, align 8, !tbaa !5
  br label %1478

1478:                                             ; preds = %1553, %1477
  %1479 = load ptr, ptr %112, align 8, !tbaa !5
  %1480 = load ptr, ptr %113, align 8, !tbaa !5
  %1481 = icmp ne ptr %1479, %1480
  br i1 %1481, label %1491, label %1482

1482:                                             ; preds = %1478
  store i32 47, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %111) #8
  br label %1562

1483:                                             ; preds = %1471
  %1484 = landingpad { ptr, i32 }
          cleanup
  %1485 = extractvalue { ptr, i32 } %1484, 0
  store ptr %1485, ptr %6, align 8
  %1486 = extractvalue { ptr, i32 } %1484, 1
  store i32 %1486, ptr %7, align 4
  br label %1561

1487:                                             ; preds = %1474
  %1488 = landingpad { ptr, i32 }
          cleanup
  %1489 = extractvalue { ptr, i32 } %1488, 0
  store ptr %1489, ptr %6, align 8
  %1490 = extractvalue { ptr, i32 } %1488, 1
  store i32 %1490, ptr %7, align 4
  br label %1560

1491:                                             ; preds = %1478
  call void @llvm.lifetime.start.p0(i64 8, ptr %114) #8
  %1492 = load ptr, ptr %112, align 8, !tbaa !5
  store ptr %1492, ptr %114, align 8, !tbaa !5
  %1493 = load ptr, ptr %114, align 8, !tbaa !5
  %1494 = getelementptr inbounds %struct.Group, ptr %1493, i32 0, i32 0
  %1495 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1494)
          to label %1496 unwind label %1556

1496:                                             ; preds = %1491
  %1497 = load ptr, ptr %114, align 8, !tbaa !5
  %1498 = getelementptr inbounds %struct.Group, ptr %1497, i32 0, i32 0
  %1499 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1498)
          to label %1500 unwind label %1556

1500:                                             ; preds = %1496
  %1501 = getelementptr inbounds %class.anon.108, ptr %115, i32 0, i32 0
  store ptr %150, ptr %1501, align 8, !tbaa !30
  %1502 = getelementptr inbounds %class.anon.108, ptr %115, i32 0, i32 0
  %1503 = load ptr, ptr %1502, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_2EEvT_S6_T0_"(ptr noundef %1495, ptr noundef %1499, ptr %1503)
          to label %1504 unwind label %1556

1504:                                             ; preds = %1500
  %1505 = load ptr, ptr %114, align 8, !tbaa !5
  %1506 = getelementptr inbounds %struct.Group, ptr %1505, i32 0, i32 1
  %1507 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1506)
          to label %1508 unwind label %1556

1508:                                             ; preds = %1504
  %1509 = load ptr, ptr %114, align 8, !tbaa !5
  %1510 = getelementptr inbounds %struct.Group, ptr %1509, i32 0, i32 1
  %1511 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1510)
          to label %1512 unwind label %1556

1512:                                             ; preds = %1508
  %1513 = getelementptr inbounds %class.anon.109, ptr %116, i32 0, i32 0
  store ptr %150, ptr %1513, align 8, !tbaa !32
  %1514 = getelementptr inbounds %class.anon.109, ptr %116, i32 0, i32 0
  %1515 = load ptr, ptr %1514, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_3EEvT_S6_T0_"(ptr noundef %1507, ptr noundef %1511, ptr %1515)
          to label %1516 unwind label %1556

1516:                                             ; preds = %1512
  %1517 = load ptr, ptr %114, align 8, !tbaa !5
  %1518 = getelementptr inbounds %struct.Group, ptr %1517, i32 0, i32 2
  %1519 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1518)
          to label %1520 unwind label %1556

1520:                                             ; preds = %1516
  %1521 = load ptr, ptr %114, align 8, !tbaa !5
  %1522 = getelementptr inbounds %struct.Group, ptr %1521, i32 0, i32 2
  %1523 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1522)
          to label %1524 unwind label %1556

1524:                                             ; preds = %1520
  %1525 = getelementptr inbounds %class.anon.110, ptr %117, i32 0, i32 0
  store ptr %150, ptr %1525, align 8, !tbaa !34
  %1526 = getelementptr inbounds %class.anon.110, ptr %117, i32 0, i32 0
  %1527 = load ptr, ptr %1526, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_4EEvT_S6_T0_"(ptr noundef %1519, ptr noundef %1523, ptr %1527)
          to label %1528 unwind label %1556

1528:                                             ; preds = %1524
  %1529 = load ptr, ptr %114, align 8, !tbaa !5
  %1530 = getelementptr inbounds %struct.Group, ptr %1529, i32 0, i32 3
  %1531 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1530)
          to label %1532 unwind label %1556

1532:                                             ; preds = %1528
  %1533 = load ptr, ptr %114, align 8, !tbaa !5
  %1534 = getelementptr inbounds %struct.Group, ptr %1533, i32 0, i32 3
  %1535 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1534)
          to label %1536 unwind label %1556

1536:                                             ; preds = %1532
  %1537 = getelementptr inbounds %class.anon.111, ptr %118, i32 0, i32 0
  store ptr %150, ptr %1537, align 8, !tbaa !36
  %1538 = getelementptr inbounds %class.anon.111, ptr %118, i32 0, i32 0
  %1539 = load ptr, ptr %1538, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_5EEvT_S6_T0_"(ptr noundef %1531, ptr noundef %1535, ptr %1539)
          to label %1540 unwind label %1556

1540:                                             ; preds = %1536
  %1541 = load ptr, ptr %114, align 8, !tbaa !5
  %1542 = getelementptr inbounds %struct.Group, ptr %1541, i32 0, i32 4
  %1543 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1542)
          to label %1544 unwind label %1556

1544:                                             ; preds = %1540
  %1545 = load ptr, ptr %114, align 8, !tbaa !5
  %1546 = getelementptr inbounds %struct.Group, ptr %1545, i32 0, i32 4
  %1547 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1546)
          to label %1548 unwind label %1556

1548:                                             ; preds = %1544
  %1549 = getelementptr inbounds %class.anon.112, ptr %119, i32 0, i32 0
  store ptr %150, ptr %1549, align 8, !tbaa !38
  %1550 = getelementptr inbounds %class.anon.112, ptr %119, i32 0, i32 0
  %1551 = load ptr, ptr %1550, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_6EEvT_S6_T0_"(ptr noundef %1543, ptr noundef %1547, ptr %1551)
          to label %1552 unwind label %1556

1552:                                             ; preds = %1548
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #8
  br label %1553

1553:                                             ; preds = %1552
  %1554 = load ptr, ptr %112, align 8, !tbaa !5
  %1555 = getelementptr inbounds %struct.Group, ptr %1554, i32 1
  store ptr %1555, ptr %112, align 8, !tbaa !5
  br label %1478

1556:                                             ; preds = %1548, %1544, %1540, %1536, %1532, %1528, %1524, %1520, %1516, %1512, %1508, %1504, %1500, %1496, %1491
  %1557 = landingpad { ptr, i32 }
          cleanup
  %1558 = extractvalue { ptr, i32 } %1557, 0
  store ptr %1558, ptr %6, align 8
  %1559 = extractvalue { ptr, i32 } %1557, 1
  store i32 %1559, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #8
  br label %1560

1560:                                             ; preds = %1556, %1487
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #8
  br label %1561

1561:                                             ; preds = %1560, %1483
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %111) #8
  br label %1916

1562:                                             ; preds = %1482
  call void @llvm.lifetime.start.p0(i64 24, ptr %120) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  %1563 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %1563) #8
  %1564 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %1565 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %1566 unwind label %1624

1566:                                             ; preds = %1562
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1564, i64 noundef %1565)
          to label %1567 unwind label %1624

1567:                                             ; preds = %1566
  %1568 = load ptr, ptr %4, align 8, !tbaa !5
  %1569 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1568, i32 0, i32 0
  %1570 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %1571 unwind label %1624

1571:                                             ; preds = %1567
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1569, i64 noundef %1570)
          to label %1572 unwind label %1624

1572:                                             ; preds = %1571
  call void @llvm.lifetime.start.p0(i64 24, ptr %121) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  %1573 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 8 dereferenceable(24) %1573) #8
  %1574 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1575 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121)
          to label %1576 unwind label %1628

1576:                                             ; preds = %1572
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1574, i64 noundef %1575)
          to label %1577 unwind label %1628

1577:                                             ; preds = %1576
  %1578 = load ptr, ptr %4, align 8, !tbaa !5
  %1579 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1578, i32 0, i32 1
  %1580 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121)
          to label %1581 unwind label %1628

1581:                                             ; preds = %1577
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1579, i64 noundef %1580)
          to label %1582 unwind label %1628

1582:                                             ; preds = %1581
  call void @llvm.lifetime.start.p0(i64 24, ptr %122) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  %1583 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 8 dereferenceable(24) %1583) #8
  %1584 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1585 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122)
          to label %1586 unwind label %1632

1586:                                             ; preds = %1582
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1584, i64 noundef %1585)
          to label %1587 unwind label %1632

1587:                                             ; preds = %1586
  %1588 = load ptr, ptr %4, align 8, !tbaa !5
  %1589 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1588, i32 0, i32 2
  %1590 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122)
          to label %1591 unwind label %1632

1591:                                             ; preds = %1587
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1589, i64 noundef %1590)
          to label %1592 unwind label %1632

1592:                                             ; preds = %1591
  call void @llvm.lifetime.start.p0(i64 24, ptr %123) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #8
  %1593 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(24) %1593) #8
  %1594 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1595 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
          to label %1596 unwind label %1636

1596:                                             ; preds = %1592
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1594, i64 noundef %1595)
          to label %1597 unwind label %1636

1597:                                             ; preds = %1596
  %1598 = load ptr, ptr %4, align 8, !tbaa !5
  %1599 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1598, i32 0, i32 3
  %1600 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
          to label %1601 unwind label %1636

1601:                                             ; preds = %1597
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1599, i64 noundef %1600)
          to label %1602 unwind label %1636

1602:                                             ; preds = %1601
  call void @llvm.lifetime.start.p0(i64 24, ptr %124) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  %1603 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(24) %1603) #8
  %1604 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  %1605 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %1606 unwind label %1640

1606:                                             ; preds = %1602
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1604, i64 noundef %1605)
          to label %1607 unwind label %1640

1607:                                             ; preds = %1606
  %1608 = load ptr, ptr %4, align 8, !tbaa !5
  %1609 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1608, i32 0, i32 4
  %1610 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %1611 unwind label %1640

1611:                                             ; preds = %1607
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1609, i64 noundef %1610)
          to label %1612 unwind label %1640

1612:                                             ; preds = %1611
  call void @llvm.lifetime.start.p0(i64 8, ptr %125) #8
  store ptr %62, ptr %125, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %126) #8
  %1613 = load ptr, ptr %125, align 8, !tbaa !5
  %1614 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1613)
          to label %1615 unwind label %1644

1615:                                             ; preds = %1612
  store ptr %1614, ptr %126, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %127) #8
  %1616 = load ptr, ptr %125, align 8, !tbaa !5
  %1617 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1616)
          to label %1618 unwind label %1648

1618:                                             ; preds = %1615
  store ptr %1617, ptr %127, align 8, !tbaa !5
  br label %1619

1619:                                             ; preds = %1896, %1618
  %1620 = load ptr, ptr %126, align 8, !tbaa !5
  %1621 = load ptr, ptr %127, align 8, !tbaa !5
  %1622 = icmp ne ptr %1620, %1621
  br i1 %1622, label %1652, label %1623

1623:                                             ; preds = %1619
  store i32 49, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %127) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %126) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #8
  br label %1906

1624:                                             ; preds = %1571, %1567, %1566, %1562
  %1625 = landingpad { ptr, i32 }
          cleanup
  %1626 = extractvalue { ptr, i32 } %1625, 0
  store ptr %1626, ptr %6, align 8
  %1627 = extractvalue { ptr, i32 } %1625, 1
  store i32 %1627, ptr %7, align 4
  br label %1915

1628:                                             ; preds = %1581, %1577, %1576, %1572
  %1629 = landingpad { ptr, i32 }
          cleanup
  %1630 = extractvalue { ptr, i32 } %1629, 0
  store ptr %1630, ptr %6, align 8
  %1631 = extractvalue { ptr, i32 } %1629, 1
  store i32 %1631, ptr %7, align 4
  br label %1914

1632:                                             ; preds = %1591, %1587, %1586, %1582
  %1633 = landingpad { ptr, i32 }
          cleanup
  %1634 = extractvalue { ptr, i32 } %1633, 0
  store ptr %1634, ptr %6, align 8
  %1635 = extractvalue { ptr, i32 } %1633, 1
  store i32 %1635, ptr %7, align 4
  br label %1913

1636:                                             ; preds = %1601, %1597, %1596, %1592
  %1637 = landingpad { ptr, i32 }
          cleanup
  %1638 = extractvalue { ptr, i32 } %1637, 0
  store ptr %1638, ptr %6, align 8
  %1639 = extractvalue { ptr, i32 } %1637, 1
  store i32 %1639, ptr %7, align 4
  br label %1912

1640:                                             ; preds = %1908, %1906, %1611, %1607, %1606, %1602
  %1641 = landingpad { ptr, i32 }
          cleanup
  %1642 = extractvalue { ptr, i32 } %1641, 0
  store ptr %1642, ptr %6, align 8
  %1643 = extractvalue { ptr, i32 } %1641, 1
  store i32 %1643, ptr %7, align 4
  br label %1911

1644:                                             ; preds = %1612
  %1645 = landingpad { ptr, i32 }
          cleanup
  %1646 = extractvalue { ptr, i32 } %1645, 0
  store ptr %1646, ptr %6, align 8
  %1647 = extractvalue { ptr, i32 } %1645, 1
  store i32 %1647, ptr %7, align 4
  br label %1905

1648:                                             ; preds = %1615
  %1649 = landingpad { ptr, i32 }
          cleanup
  %1650 = extractvalue { ptr, i32 } %1649, 0
  store ptr %1650, ptr %6, align 8
  %1651 = extractvalue { ptr, i32 } %1649, 1
  store i32 %1651, ptr %7, align 4
  br label %1904

1652:                                             ; preds = %1619
  call void @llvm.lifetime.start.p0(i64 8, ptr %128) #8
  %1653 = load ptr, ptr %126, align 8, !tbaa !5
  store ptr %1653, ptr %128, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %129) #8
  %1654 = load ptr, ptr %128, align 8, !tbaa !5
  %1655 = getelementptr inbounds %struct.Group, ptr %1654, i32 0, i32 0
  store ptr %1655, ptr %129, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %130) #8
  %1656 = load ptr, ptr %129, align 8, !tbaa !5
  %1657 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1656)
          to label %1658 unwind label %1667

1658:                                             ; preds = %1652
  store ptr %1657, ptr %130, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %131) #8
  %1659 = load ptr, ptr %129, align 8, !tbaa !5
  %1660 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1659)
          to label %1661 unwind label %1671

1661:                                             ; preds = %1658
  store ptr %1660, ptr %131, align 8, !tbaa !5
  br label %1662

1662:                                             ; preds = %1687, %1661
  %1663 = load ptr, ptr %130, align 8, !tbaa !5
  %1664 = load ptr, ptr %131, align 8, !tbaa !5
  %1665 = icmp ne ptr %1663, %1664
  br i1 %1665, label %1675, label %1666

1666:                                             ; preds = %1662
  store i32 51, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %131) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %130) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %129) #8
  br label %1696

1667:                                             ; preds = %1652
  %1668 = landingpad { ptr, i32 }
          cleanup
  %1669 = extractvalue { ptr, i32 } %1668, 0
  store ptr %1669, ptr %6, align 8
  %1670 = extractvalue { ptr, i32 } %1668, 1
  store i32 %1670, ptr %7, align 4
  br label %1695

1671:                                             ; preds = %1658
  %1672 = landingpad { ptr, i32 }
          cleanup
  %1673 = extractvalue { ptr, i32 } %1672, 0
  store ptr %1673, ptr %6, align 8
  %1674 = extractvalue { ptr, i32 } %1672, 1
  store i32 %1674, ptr %7, align 4
  br label %1694

1675:                                             ; preds = %1662
  call void @llvm.lifetime.start.p0(i64 4, ptr %132) #8
  %1676 = load ptr, ptr %130, align 8, !tbaa !5
  %1677 = load i32, ptr %1676, align 4, !tbaa !9
  store i32 %1677, ptr %132, align 4, !tbaa !9
  %1678 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %1679 = load i32, ptr %132, align 4, !tbaa !9
  %1680 = zext i32 %1679 to i64
  %1681 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %1680)
          to label %1682 unwind label %1690

1682:                                             ; preds = %1675
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1678, ptr noundef nonnull align 4 dereferenceable(16) %1681)
          to label %1683 unwind label %1690

1683:                                             ; preds = %1682
  %1684 = load ptr, ptr %4, align 8, !tbaa !5
  %1685 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1684, i32 0, i32 0
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1685, ptr noundef nonnull align 4 dereferenceable(4) %132)
          to label %1686 unwind label %1690

1686:                                             ; preds = %1683
  call void @llvm.lifetime.end.p0(i64 4, ptr %132) #8
  br label %1687

1687:                                             ; preds = %1686
  %1688 = load ptr, ptr %130, align 8, !tbaa !5
  %1689 = getelementptr inbounds i32, ptr %1688, i32 1
  store ptr %1689, ptr %130, align 8, !tbaa !5
  br label %1662

1690:                                             ; preds = %1683, %1682, %1675
  %1691 = landingpad { ptr, i32 }
          cleanup
  %1692 = extractvalue { ptr, i32 } %1691, 0
  store ptr %1692, ptr %6, align 8
  %1693 = extractvalue { ptr, i32 } %1691, 1
  store i32 %1693, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %132) #8
  br label %1694

1694:                                             ; preds = %1690, %1671
  call void @llvm.lifetime.end.p0(i64 8, ptr %131) #8
  br label %1695

1695:                                             ; preds = %1694, %1667
  call void @llvm.lifetime.end.p0(i64 8, ptr %130) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %129) #8
  br label %1903

1696:                                             ; preds = %1666
  call void @llvm.lifetime.start.p0(i64 8, ptr %133) #8
  %1697 = load ptr, ptr %128, align 8, !tbaa !5
  %1698 = getelementptr inbounds %struct.Group, ptr %1697, i32 0, i32 1
  store ptr %1698, ptr %133, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %134) #8
  %1699 = load ptr, ptr %133, align 8, !tbaa !5
  %1700 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1699)
          to label %1701 unwind label %1710

1701:                                             ; preds = %1696
  store ptr %1700, ptr %134, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %135) #8
  %1702 = load ptr, ptr %133, align 8, !tbaa !5
  %1703 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1702)
          to label %1704 unwind label %1714

1704:                                             ; preds = %1701
  store ptr %1703, ptr %135, align 8, !tbaa !5
  br label %1705

1705:                                             ; preds = %1730, %1704
  %1706 = load ptr, ptr %134, align 8, !tbaa !5
  %1707 = load ptr, ptr %135, align 8, !tbaa !5
  %1708 = icmp ne ptr %1706, %1707
  br i1 %1708, label %1718, label %1709

1709:                                             ; preds = %1705
  store i32 53, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %135) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %134) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %133) #8
  br label %1739

1710:                                             ; preds = %1696
  %1711 = landingpad { ptr, i32 }
          cleanup
  %1712 = extractvalue { ptr, i32 } %1711, 0
  store ptr %1712, ptr %6, align 8
  %1713 = extractvalue { ptr, i32 } %1711, 1
  store i32 %1713, ptr %7, align 4
  br label %1738

1714:                                             ; preds = %1701
  %1715 = landingpad { ptr, i32 }
          cleanup
  %1716 = extractvalue { ptr, i32 } %1715, 0
  store ptr %1716, ptr %6, align 8
  %1717 = extractvalue { ptr, i32 } %1715, 1
  store i32 %1717, ptr %7, align 4
  br label %1737

1718:                                             ; preds = %1705
  call void @llvm.lifetime.start.p0(i64 4, ptr %136) #8
  %1719 = load ptr, ptr %134, align 8, !tbaa !5
  %1720 = load i32, ptr %1719, align 4, !tbaa !9
  store i32 %1720, ptr %136, align 4, !tbaa !9
  %1721 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1722 = load i32, ptr %136, align 4, !tbaa !9
  %1723 = zext i32 %1722 to i64
  %1724 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %1723)
          to label %1725 unwind label %1733

1725:                                             ; preds = %1718
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1721, ptr noundef nonnull align 4 dereferenceable(12) %1724)
          to label %1726 unwind label %1733

1726:                                             ; preds = %1725
  %1727 = load ptr, ptr %4, align 8, !tbaa !5
  %1728 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1727, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1728, ptr noundef nonnull align 4 dereferenceable(4) %136)
          to label %1729 unwind label %1733

1729:                                             ; preds = %1726
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #8
  br label %1730

1730:                                             ; preds = %1729
  %1731 = load ptr, ptr %134, align 8, !tbaa !5
  %1732 = getelementptr inbounds i32, ptr %1731, i32 1
  store ptr %1732, ptr %134, align 8, !tbaa !5
  br label %1705

1733:                                             ; preds = %1726, %1725, %1718
  %1734 = landingpad { ptr, i32 }
          cleanup
  %1735 = extractvalue { ptr, i32 } %1734, 0
  store ptr %1735, ptr %6, align 8
  %1736 = extractvalue { ptr, i32 } %1734, 1
  store i32 %1736, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #8
  br label %1737

1737:                                             ; preds = %1733, %1714
  call void @llvm.lifetime.end.p0(i64 8, ptr %135) #8
  br label %1738

1738:                                             ; preds = %1737, %1710
  call void @llvm.lifetime.end.p0(i64 8, ptr %134) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %133) #8
  br label %1903

1739:                                             ; preds = %1709
  call void @llvm.lifetime.start.p0(i64 8, ptr %137) #8
  %1740 = load ptr, ptr %128, align 8, !tbaa !5
  %1741 = getelementptr inbounds %struct.Group, ptr %1740, i32 0, i32 2
  store ptr %1741, ptr %137, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %138) #8
  %1742 = load ptr, ptr %137, align 8, !tbaa !5
  %1743 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1742)
          to label %1744 unwind label %1753

1744:                                             ; preds = %1739
  store ptr %1743, ptr %138, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %139) #8
  %1745 = load ptr, ptr %137, align 8, !tbaa !5
  %1746 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1745)
          to label %1747 unwind label %1757

1747:                                             ; preds = %1744
  store ptr %1746, ptr %139, align 8, !tbaa !5
  br label %1748

1748:                                             ; preds = %1773, %1747
  %1749 = load ptr, ptr %138, align 8, !tbaa !5
  %1750 = load ptr, ptr %139, align 8, !tbaa !5
  %1751 = icmp ne ptr %1749, %1750
  br i1 %1751, label %1761, label %1752

1752:                                             ; preds = %1748
  store i32 55, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %139) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %138) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %137) #8
  br label %1782

1753:                                             ; preds = %1739
  %1754 = landingpad { ptr, i32 }
          cleanup
  %1755 = extractvalue { ptr, i32 } %1754, 0
  store ptr %1755, ptr %6, align 8
  %1756 = extractvalue { ptr, i32 } %1754, 1
  store i32 %1756, ptr %7, align 4
  br label %1781

1757:                                             ; preds = %1744
  %1758 = landingpad { ptr, i32 }
          cleanup
  %1759 = extractvalue { ptr, i32 } %1758, 0
  store ptr %1759, ptr %6, align 8
  %1760 = extractvalue { ptr, i32 } %1758, 1
  store i32 %1760, ptr %7, align 4
  br label %1780

1761:                                             ; preds = %1748
  call void @llvm.lifetime.start.p0(i64 4, ptr %140) #8
  %1762 = load ptr, ptr %138, align 8, !tbaa !5
  %1763 = load i32, ptr %1762, align 4, !tbaa !9
  store i32 %1763, ptr %140, align 4, !tbaa !9
  %1764 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1765 = load i32, ptr %140, align 4, !tbaa !9
  %1766 = zext i32 %1765 to i64
  %1767 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %1766)
          to label %1768 unwind label %1776

1768:                                             ; preds = %1761
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1764, ptr noundef nonnull align 4 dereferenceable(24) %1767)
          to label %1769 unwind label %1776

1769:                                             ; preds = %1768
  %1770 = load ptr, ptr %4, align 8, !tbaa !5
  %1771 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1770, i32 0, i32 2
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1771, ptr noundef nonnull align 4 dereferenceable(4) %140)
          to label %1772 unwind label %1776

1772:                                             ; preds = %1769
  call void @llvm.lifetime.end.p0(i64 4, ptr %140) #8
  br label %1773

1773:                                             ; preds = %1772
  %1774 = load ptr, ptr %138, align 8, !tbaa !5
  %1775 = getelementptr inbounds i32, ptr %1774, i32 1
  store ptr %1775, ptr %138, align 8, !tbaa !5
  br label %1748

1776:                                             ; preds = %1769, %1768, %1761
  %1777 = landingpad { ptr, i32 }
          cleanup
  %1778 = extractvalue { ptr, i32 } %1777, 0
  store ptr %1778, ptr %6, align 8
  %1779 = extractvalue { ptr, i32 } %1777, 1
  store i32 %1779, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %140) #8
  br label %1780

1780:                                             ; preds = %1776, %1757
  call void @llvm.lifetime.end.p0(i64 8, ptr %139) #8
  br label %1781

1781:                                             ; preds = %1780, %1753
  call void @llvm.lifetime.end.p0(i64 8, ptr %138) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %137) #8
  br label %1903

1782:                                             ; preds = %1752
  call void @llvm.lifetime.start.p0(i64 8, ptr %141) #8
  %1783 = load ptr, ptr %128, align 8, !tbaa !5
  %1784 = getelementptr inbounds %struct.Group, ptr %1783, i32 0, i32 3
  store ptr %1784, ptr %141, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %142) #8
  %1785 = load ptr, ptr %141, align 8, !tbaa !5
  %1786 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1785)
          to label %1787 unwind label %1796

1787:                                             ; preds = %1782
  store ptr %1786, ptr %142, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %143) #8
  %1788 = load ptr, ptr %141, align 8, !tbaa !5
  %1789 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1788)
          to label %1790 unwind label %1800

1790:                                             ; preds = %1787
  store ptr %1789, ptr %143, align 8, !tbaa !5
  br label %1791

1791:                                             ; preds = %1816, %1790
  %1792 = load ptr, ptr %142, align 8, !tbaa !5
  %1793 = load ptr, ptr %143, align 8, !tbaa !5
  %1794 = icmp ne ptr %1792, %1793
  br i1 %1794, label %1804, label %1795

1795:                                             ; preds = %1791
  store i32 57, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %143) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %142) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %141) #8
  br label %1825

1796:                                             ; preds = %1782
  %1797 = landingpad { ptr, i32 }
          cleanup
  %1798 = extractvalue { ptr, i32 } %1797, 0
  store ptr %1798, ptr %6, align 8
  %1799 = extractvalue { ptr, i32 } %1797, 1
  store i32 %1799, ptr %7, align 4
  br label %1824

1800:                                             ; preds = %1787
  %1801 = landingpad { ptr, i32 }
          cleanup
  %1802 = extractvalue { ptr, i32 } %1801, 0
  store ptr %1802, ptr %6, align 8
  %1803 = extractvalue { ptr, i32 } %1801, 1
  store i32 %1803, ptr %7, align 4
  br label %1823

1804:                                             ; preds = %1791
  call void @llvm.lifetime.start.p0(i64 4, ptr %144) #8
  %1805 = load ptr, ptr %142, align 8, !tbaa !5
  %1806 = load i32, ptr %1805, align 4, !tbaa !9
  store i32 %1806, ptr %144, align 4, !tbaa !9
  %1807 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1808 = load i32, ptr %144, align 4, !tbaa !9
  %1809 = zext i32 %1808 to i64
  %1810 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %1809)
          to label %1811 unwind label %1819

1811:                                             ; preds = %1804
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1807, ptr noundef nonnull align 4 dereferenceable(24) %1810)
          to label %1812 unwind label %1819

1812:                                             ; preds = %1811
  %1813 = load ptr, ptr %4, align 8, !tbaa !5
  %1814 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1813, i32 0, i32 3
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1814, ptr noundef nonnull align 4 dereferenceable(4) %144)
          to label %1815 unwind label %1819

1815:                                             ; preds = %1812
  call void @llvm.lifetime.end.p0(i64 4, ptr %144) #8
  br label %1816

1816:                                             ; preds = %1815
  %1817 = load ptr, ptr %142, align 8, !tbaa !5
  %1818 = getelementptr inbounds i32, ptr %1817, i32 1
  store ptr %1818, ptr %142, align 8, !tbaa !5
  br label %1791

1819:                                             ; preds = %1812, %1811, %1804
  %1820 = landingpad { ptr, i32 }
          cleanup
  %1821 = extractvalue { ptr, i32 } %1820, 0
  store ptr %1821, ptr %6, align 8
  %1822 = extractvalue { ptr, i32 } %1820, 1
  store i32 %1822, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %144) #8
  br label %1823

1823:                                             ; preds = %1819, %1800
  call void @llvm.lifetime.end.p0(i64 8, ptr %143) #8
  br label %1824

1824:                                             ; preds = %1823, %1796
  call void @llvm.lifetime.end.p0(i64 8, ptr %142) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %141) #8
  br label %1903

1825:                                             ; preds = %1795
  call void @llvm.lifetime.start.p0(i64 8, ptr %145) #8
  %1826 = load ptr, ptr %128, align 8, !tbaa !5
  %1827 = getelementptr inbounds %struct.Group, ptr %1826, i32 0, i32 4
  store ptr %1827, ptr %145, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %146) #8
  %1828 = load ptr, ptr %145, align 8, !tbaa !5
  %1829 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1828)
          to label %1830 unwind label %1839

1830:                                             ; preds = %1825
  store ptr %1829, ptr %146, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %147) #8
  %1831 = load ptr, ptr %145, align 8, !tbaa !5
  %1832 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1831)
          to label %1833 unwind label %1843

1833:                                             ; preds = %1830
  store ptr %1832, ptr %147, align 8, !tbaa !5
  br label %1834

1834:                                             ; preds = %1859, %1833
  %1835 = load ptr, ptr %146, align 8, !tbaa !5
  %1836 = load ptr, ptr %147, align 8, !tbaa !5
  %1837 = icmp ne ptr %1835, %1836
  br i1 %1837, label %1847, label %1838

1838:                                             ; preds = %1834
  store i32 59, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %147) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %146) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %145) #8
  br label %1868

1839:                                             ; preds = %1825
  %1840 = landingpad { ptr, i32 }
          cleanup
  %1841 = extractvalue { ptr, i32 } %1840, 0
  store ptr %1841, ptr %6, align 8
  %1842 = extractvalue { ptr, i32 } %1840, 1
  store i32 %1842, ptr %7, align 4
  br label %1867

1843:                                             ; preds = %1830
  %1844 = landingpad { ptr, i32 }
          cleanup
  %1845 = extractvalue { ptr, i32 } %1844, 0
  store ptr %1845, ptr %6, align 8
  %1846 = extractvalue { ptr, i32 } %1844, 1
  store i32 %1846, ptr %7, align 4
  br label %1866

1847:                                             ; preds = %1834
  call void @llvm.lifetime.start.p0(i64 4, ptr %148) #8
  %1848 = load ptr, ptr %146, align 8, !tbaa !5
  %1849 = load i32, ptr %1848, align 4, !tbaa !9
  store i32 %1849, ptr %148, align 4, !tbaa !9
  %1850 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  %1851 = load i32, ptr %148, align 4, !tbaa !9
  %1852 = zext i32 %1851 to i64
  %1853 = invoke noundef nonnull align 4 dereferenceable(52) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %1852)
          to label %1854 unwind label %1862

1854:                                             ; preds = %1847
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1850, ptr noundef nonnull align 4 dereferenceable(52) %1853)
          to label %1855 unwind label %1862

1855:                                             ; preds = %1854
  %1856 = load ptr, ptr %4, align 8, !tbaa !5
  %1857 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1856, i32 0, i32 4
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1857, ptr noundef nonnull align 4 dereferenceable(4) %148)
          to label %1858 unwind label %1862

1858:                                             ; preds = %1855
  call void @llvm.lifetime.end.p0(i64 4, ptr %148) #8
  br label %1859

1859:                                             ; preds = %1858
  %1860 = load ptr, ptr %146, align 8, !tbaa !5
  %1861 = getelementptr inbounds i32, ptr %1860, i32 1
  store ptr %1861, ptr %146, align 8, !tbaa !5
  br label %1834

1862:                                             ; preds = %1855, %1854, %1847
  %1863 = landingpad { ptr, i32 }
          cleanup
  %1864 = extractvalue { ptr, i32 } %1863, 0
  store ptr %1864, ptr %6, align 8
  %1865 = extractvalue { ptr, i32 } %1863, 1
  store i32 %1865, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %148) #8
  br label %1866

1866:                                             ; preds = %1862, %1843
  call void @llvm.lifetime.end.p0(i64 8, ptr %147) #8
  br label %1867

1867:                                             ; preds = %1866, %1839
  call void @llvm.lifetime.end.p0(i64 8, ptr %146) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %145) #8
  br label %1903

1868:                                             ; preds = %1838
  %1869 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 20, ptr %149) #8
  %1870 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 0
  %1871 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %1872 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1871)
          to label %1873 unwind label %1899

1873:                                             ; preds = %1868
  %1874 = trunc i64 %1872 to i32
  store i32 %1874, ptr %1870, align 4, !tbaa !40
  %1875 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 1
  %1876 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1877 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1876)
          to label %1878 unwind label %1899

1878:                                             ; preds = %1873
  %1879 = trunc i64 %1877 to i32
  store i32 %1879, ptr %1875, align 4, !tbaa !42
  %1880 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 2
  %1881 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1882 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1881)
          to label %1883 unwind label %1899

1883:                                             ; preds = %1878
  %1884 = trunc i64 %1882 to i32
  store i32 %1884, ptr %1880, align 4, !tbaa !43
  %1885 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 3
  %1886 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1887 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1886)
          to label %1888 unwind label %1899

1888:                                             ; preds = %1883
  %1889 = trunc i64 %1887 to i32
  store i32 %1889, ptr %1885, align 4, !tbaa !44
  %1890 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 4
  %1891 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  %1892 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1891)
          to label %1893 unwind label %1899

1893:                                             ; preds = %1888
  %1894 = trunc i64 %1892 to i32
  store i32 %1894, ptr %1890, align 4, !tbaa !45
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings11UpdateGroupENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %1869, ptr noundef nonnull align 4 dereferenceable(20) %149)
          to label %1895 unwind label %1899

1895:                                             ; preds = %1893
  call void @llvm.lifetime.end.p0(i64 20, ptr %149) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %128) #8
  br label %1896

1896:                                             ; preds = %1895
  %1897 = load ptr, ptr %126, align 8, !tbaa !5
  %1898 = getelementptr inbounds %struct.Group, ptr %1897, i32 1
  store ptr %1898, ptr %126, align 8, !tbaa !5
  br label %1619

1899:                                             ; preds = %1893, %1888, %1883, %1878, %1873, %1868
  %1900 = landingpad { ptr, i32 }
          cleanup
  %1901 = extractvalue { ptr, i32 } %1900, 0
  store ptr %1901, ptr %6, align 8
  %1902 = extractvalue { ptr, i32 } %1900, 1
  store i32 %1902, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %149) #8
  br label %1903

1903:                                             ; preds = %1899, %1867, %1824, %1781, %1738, %1695
  call void @llvm.lifetime.end.p0(i64 8, ptr %128) #8
  br label %1904

1904:                                             ; preds = %1903, %1648
  call void @llvm.lifetime.end.p0(i64 8, ptr %127) #8
  br label %1905

1905:                                             ; preds = %1904, %1644
  call void @llvm.lifetime.end.p0(i64 8, ptr %126) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #8
  br label %1911

1906:                                             ; preds = %1623
  %1907 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 11
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1907)
          to label %1908 unwind label %1640

1908:                                             ; preds = %1906
  %1909 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 11
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %1909)
          to label %1910 unwind label %1640

1910:                                             ; preds = %1908
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %124) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %123) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %122) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %121) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %120) #8
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #8
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  ret void

1911:                                             ; preds = %1905, %1640
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %124) #8
  br label %1912

1912:                                             ; preds = %1911, %1636
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %123) #8
  br label %1913

1913:                                             ; preds = %1912, %1632
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %122) #8
  br label %1914

1914:                                             ; preds = %1913, %1628
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %121) #8
  br label %1915

1915:                                             ; preds = %1914, %1624
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %120) #8
  br label %1916

1916:                                             ; preds = %1915, %1561, %1463, %1394, %1245, %1096, %987, %888
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #8
  br label %1917

1917:                                             ; preds = %1916, %863, %855
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %1918

1918:                                             ; preds = %1917, %433, %429
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br label %1919

1919:                                             ; preds = %1918, %413, %327, %241, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %1920

1920:                                             ; preds = %1919, %169
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %1921

1921:                                             ; preds = %1920
  %1922 = load ptr, ptr %6, align 8
  %1923 = load i32, ptr %7, align 4
  %1924 = insertvalue { ptr, i32 } poison, ptr %1922, 0
  %1925 = insertvalue { ptr, i32 } %1924, i32 %1923, 1
  resume { ptr, i32 } %1925

1926:                                             ; preds = %848, %842
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5AABox7IsValidEv(ptr noundef nonnull align 16 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_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(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_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 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 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 4, !13, i64 4, i64 4, !13, i64 8, i64 4, !13}
!16 = distinct !{!16, !12}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE10Connection", !10, i64 0, !10, i64 4}
!19 = !{!18, !10, i64 4}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = !{i64 2157803125}
!24 = !{i64 2157803470}
!25 = !{i64 2157803859}
!26 = !{i64 2157804248}
!27 = !{!28, !10, i64 0}
!28 = !{!"_ZTSN3JPH22SoftBodySharedSettings7SkinnedE", !10, i64 0, !7, i64 4, !14, i64 36, !14, i64 40, !14, i64 44, !10, i64 48}
!29 = !{i64 2157804571}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE3$_2", !6, i64 0}
!32 = !{!33, !6, i64 0}
!33 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE3$_3", !6, i64 0}
!34 = !{!35, !6, i64 0}
!35 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE3$_4", !6, i64 0}
!36 = !{!37, !6, i64 0}
!37 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE3$_5", !6, i64 0}
!38 = !{!39, !6, i64 0}
!39 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE3$_6", !6, i64 0}
!40 = !{!41, !10, i64 0}
!41 = !{!"_ZTSN3JPH22SoftBodySharedSettings11UpdateGroupE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!42 = !{!41, !10, i64 4}
!43 = !{!41, !10, i64 8}
!44 = !{!41, !10, i64 12}
!45 = !{!41, !10, i64 16}


; 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::Float3" = type { float, float, float }
%"class.JPH::Array.93" = type { i64, i64, ptr }
%class.anon.96 = type { ptr }
%"class.JPH::Array.97" = type { i64, i64, ptr }
%"class.JPH::Array.68" = type { i64, i64, ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.103" = type { i64, i64, ptr }
%"class.JPH::Array.41" = type { i64, i64, ptr }
%"class.JPH::Array.56" = 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 }
%"struct.JPH::SoftBodySharedSettings::UpdateGroup" = type { i32, i32, i32, i32, i32 }

@.str.11 = external hidden unnamed_addr constant [101 x i8], align 1
@__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position = external hidden unnamed_addr constant %"class.JPH::Float3", align 4
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #5 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 #5 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_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_22SoftBodySharedSettings3LRAENS_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 ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_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_22SoftBodySharedSettings12DihedralBendENS_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 ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_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_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(120) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Array.93", align 8
  %4 = alloca %class.anon.96, align 8
  %5 = alloca %"class.JPH::Array.97", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Array.68", align 8
  %8 = alloca %"class.JPH::AABox", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca i32, align 4
  %12 = alloca %"class.JPH::Float3", align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Array.103", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"class.JPH::Array.41", align 8
  %28 = alloca %"class.JPH::Array.56", align 8
  %29 = alloca %"class.JPH::Array.44", align 8
  %30 = alloca %"class.JPH::Array.47", align 8
  %31 = alloca %"class.JPH::Array.50", align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"struct.JPH::SoftBodySharedSettings::UpdateGroup", align 4
  %38 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings11UpdateGroupENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %40)
          to label %41 unwind label %48

41:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store ptr %3, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %0, i64 56
  %43 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %44 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %.not494 = icmp eq ptr %43, %44
  br i1 %.not494, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %53, %41
  %45 = getelementptr inbounds i8, ptr %0, i64 176
  %46 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %47 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %.not383496 = icmp eq ptr %46, %47
  br i1 %.not383496, label %._crit_edge500, label %.lr.ph499

48:                                               ; preds = %2
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %776

.lr.ph:                                           ; preds = %41, %53
  %.0335495 = phi ptr [ %54, %53 ], [ %43, %41 ]
  %50 = load i32, ptr %.0335495, align 4, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %.0335495, i64 4
  %52 = load i32, ptr %51, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %50, i32 noundef %52)
          to label %53 unwind label %55

53:                                               ; preds = %.lr.ph
  %54 = getelementptr inbounds i8, ptr %.0335495, i64 16
  %.not = icmp eq ptr %54, %44
  br i1 %.not, label %._crit_edge, label %.lr.ph

55:                                               ; preds = %.lr.ph
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %775

._crit_edge500:                                   ; preds = %63, %._crit_edge
  %57 = getelementptr inbounds i8, ptr %0, i64 80
  %58 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %59 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %.not384501 = icmp eq ptr %58, %59
  br i1 %.not384501, label %._crit_edge505, label %.lr.ph504

.lr.ph499:                                        ; preds = %._crit_edge, %63
  %.0337497 = phi ptr [ %64, %63 ], [ %46, %._crit_edge ]
  %60 = load i32, ptr %.0337497, align 4, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %.0337497, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %60, i32 noundef %62)
          to label %63 unwind label %65

63:                                               ; preds = %.lr.ph499
  %64 = getelementptr inbounds i8, ptr %.0337497, i64 12
  %.not383 = icmp eq ptr %64, %47
  br i1 %.not383, label %._crit_edge500, label %.lr.ph499

65:                                               ; preds = %.lr.ph499
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %775

._crit_edge505:                                   ; preds = %90, %._crit_edge500
  %67 = getelementptr inbounds i8, ptr %0, i64 104
  %68 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %69 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %.not385506 = icmp eq ptr %68, %69
  br i1 %.not385506, label %._crit_edge510, label %.lr.ph509

.lr.ph504:                                        ; preds = %._crit_edge500, %90
  %.0338502 = phi ptr [ %91, %90 ], [ %58, %._crit_edge500 ]
  %70 = load i32, ptr %.0338502, align 4, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %.0338502, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %70, i32 noundef %72)
          to label %73 unwind label %92

73:                                               ; preds = %.lr.ph504
  %74 = load i32, ptr %.0338502, align 4, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %.0338502, i64 8
  %76 = load i32, ptr %75, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %74, i32 noundef %76)
          to label %77 unwind label %92

77:                                               ; preds = %73
  %78 = load i32, ptr %.0338502, align 4, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %.0338502, i64 12
  %80 = load i32, ptr %79, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %78, i32 noundef %80)
          to label %81 unwind label %92

81:                                               ; preds = %77
  %82 = load i32, ptr %71, align 4, !tbaa !9
  %83 = load i32, ptr %75, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %82, i32 noundef %83)
          to label %84 unwind label %92

84:                                               ; preds = %81
  %85 = load i32, ptr %71, align 4, !tbaa !9
  %86 = load i32, ptr %79, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %85, i32 noundef %86)
          to label %87 unwind label %92

87:                                               ; preds = %84
  %88 = load i32, ptr %75, align 4, !tbaa !9
  %89 = load i32, ptr %79, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %88, i32 noundef %89)
          to label %90 unwind label %92

90:                                               ; preds = %87
  %91 = getelementptr inbounds i8, ptr %.0338502, i64 24
  %.not384 = icmp eq ptr %91, %59
  br i1 %.not384, label %._crit_edge505, label %.lr.ph504

92:                                               ; preds = %87, %84, %81, %77, %73, %.lr.ph504
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %775

._crit_edge510:                                   ; preds = %115, %._crit_edge505
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %94 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 -1, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %94, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %119 unwind label %128

.lr.ph509:                                        ; preds = %._crit_edge505, %115
  %.0340507 = phi ptr [ %116, %115 ], [ %68, %._crit_edge505 ]
  %95 = load i32, ptr %.0340507, align 4, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %.0340507, i64 4
  %97 = load i32, ptr %96, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %95, i32 noundef %97)
          to label %98 unwind label %117

98:                                               ; preds = %.lr.ph509
  %99 = load i32, ptr %.0340507, align 4, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %.0340507, i64 8
  %101 = load i32, ptr %100, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %99, i32 noundef %101)
          to label %102 unwind label %117

102:                                              ; preds = %98
  %103 = load i32, ptr %.0340507, align 4, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %.0340507, i64 12
  %105 = load i32, ptr %104, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %103, i32 noundef %105)
          to label %106 unwind label %117

106:                                              ; preds = %102
  %107 = load i32, ptr %96, align 4, !tbaa !9
  %108 = load i32, ptr %100, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %107, i32 noundef %108)
          to label %109 unwind label %117

109:                                              ; preds = %106
  %110 = load i32, ptr %96, align 4, !tbaa !9
  %111 = load i32, ptr %104, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %110, i32 noundef %111)
          to label %112 unwind label %117

112:                                              ; preds = %109
  %113 = load i32, ptr %100, align 4, !tbaa !9
  %114 = load i32, ptr %104, align 4, !tbaa !9
  invoke void @"_ZZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEENK3$_0clEjj"(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %113, i32 noundef %114)
          to label %115 unwind label %117

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %.0340507, i64 24
  %.not385 = icmp eq ptr %116, %69
  br i1 %.not385, label %._crit_edge510, label %.lr.ph509

117:                                              ; preds = %112, %109, %106, %102, %98, %.lr.ph509
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %775

119:                                              ; preds = %._crit_edge510
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %120 = getelementptr inbounds i8, ptr %9, i64 8
  %121 = getelementptr inbounds i8, ptr %10, i64 8
  %122 = getelementptr inbounds i8, ptr %16, i64 8
  %123 = getelementptr inbounds i8, ptr %14, i64 8
  br label %124

124:                                              ; preds = %select.unfold, %119
  %.0341 = phi i32 [ 0, %119 ], [ %.2343.ph, %select.unfold ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  invoke void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %.preheader unwind label %130

.preheader:                                       ; preds = %124
  %125 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  %126 = and i64 %125, 4294967295
  %.not599 = icmp eq i64 %126, 0
  br i1 %.not599, label %._crit_edge513, label %.lr.ph512

._crit_edge513:                                   ; preds = %144, %.preheader
  %127 = invoke noundef zeroext i1 @_ZNK3JPH5AABox7IsValidEv(ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %148 unwind label %130

128:                                              ; preds = %._crit_edge510
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %774

130:                                              ; preds = %._crit_edge513, %124
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %323

132:                                              ; preds = %141, %140, %138, %.lr.ph512
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %323

.lr.ph512:                                        ; preds = %.preheader, %144
  %indvars.iv = phi i64 [ %indvars.iv.next, %144 ], [ 0, %.preheader ]
  %134 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv)
          to label %135 unwind label %132

135:                                              ; preds = %.lr.ph512
  %136 = load i32, ptr %134, align 4, !tbaa !9
  %137 = icmp eq i32 %136, -1
  br i1 %137, label %138, label %144

138:                                              ; preds = %135
  %139 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv)
          to label %140 unwind label %132

140:                                              ; preds = %138
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %139)
          to label %141 unwind label %132

141:                                              ; preds = %140
  %142 = load double, ptr %9, align 16
  %143 = load double, ptr %120, align 8
  invoke void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %8, double %142, double %143)
          to label %144 unwind label %132

144:                                              ; preds = %135, %141
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %145 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  %146 = and i64 %145, 4294967295
  %147 = icmp ult i64 %indvars.iv.next, %146
  br i1 %147, label %.lr.ph512, label %._crit_edge513, !llvm.loop !11

148:                                              ; preds = %._crit_edge513
  br i1 %127, label %149, label %.thread457

.thread457:                                       ; preds = %148
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %324

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %150 = invoke { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %151 unwind label %160

151:                                              ; preds = %149
  %152 = extractvalue { double, double } %150, 0
  store double %152, ptr %10, align 16
  %153 = extractvalue { double, double } %150, 1
  store double %153, ptr %121, align 8
  %154 = call noundef i32 @_ZNK3JPH4Vec324GetHighestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %155 = call noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %156 = icmp eq i32 %155, %154
  br i1 %156, label %157, label %162

157:                                              ; preds = %151
  %158 = add i32 %154, 1
  %159 = urem i32 %158, 3
  br label %162

160:                                              ; preds = %149
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %322

162:                                              ; preds = %157, %151
  %.0353 = phi i32 [ %159, %157 ], [ %155, %151 ]
  %163 = add i32 %154, %.0353
  %164 = sub i32 3, %163
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  store i32 -1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position, i64 12, i1 false)
  %165 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  %166 = and i64 %165, 4294967295
  %.not600 = icmp eq i64 %166, 0
  br i1 %.not600, label %._crit_edge517, label %.lr.ph516

._crit_edge517:                                   ; preds = %215, %162
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = icmp eq i32 %167, -1
  br i1 %168, label %.thread462, label %219

.thread462:                                       ; preds = %._crit_edge517
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %324

169:                                              ; preds = %.lr.ph516
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %321

.lr.ph516:                                        ; preds = %162, %215
  %indvars.iv621 = phi i64 [ %indvars.iv.next622, %215 ], [ 0, %162 ]
  %171 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv621)
          to label %172 unwind label %169

172:                                              ; preds = %.lr.ph516
  %173 = load i32, ptr %171, align 4, !tbaa !9
  %174 = icmp eq i32 %173, -1
  br i1 %174, label %175, label %215

175:                                              ; preds = %172
  %176 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv621)
          to label %177 unwind label %207

177:                                              ; preds = %175
  %178 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %176, i32 noundef %154)
          to label %179 unwind label %209

179:                                              ; preds = %177
  %180 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %176, i32 noundef %164)
          to label %181 unwind label %211

181:                                              ; preds = %179
  %182 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %176, i32 noundef %.0353)
          to label %183 unwind label %213

183:                                              ; preds = %181
  %184 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %154)
          to label %185 unwind label %213

185:                                              ; preds = %183
  %186 = fcmp olt float %178, %184
  br i1 %186, label %203, label %187

187:                                              ; preds = %185
  %188 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %154)
          to label %189 unwind label %213

189:                                              ; preds = %187
  %190 = fcmp oeq float %178, %188
  br i1 %190, label %191, label %215

191:                                              ; preds = %189
  %192 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %164)
          to label %193 unwind label %213

193:                                              ; preds = %191
  %194 = fcmp olt float %180, %192
  br i1 %194, label %203, label %195

195:                                              ; preds = %193
  %196 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %164)
          to label %197 unwind label %213

197:                                              ; preds = %195
  %198 = fcmp oeq float %180, %196
  br i1 %198, label %199, label %215

199:                                              ; preds = %197
  %200 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %.0353)
          to label %201 unwind label %213

201:                                              ; preds = %199
  %202 = fcmp olt float %182, %200
  br i1 %202, label %203, label %215

203:                                              ; preds = %201, %193, %185
  %204 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv621)
          to label %205 unwind label %213

205:                                              ; preds = %203
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %204, i64 12, i1 false), !tbaa.struct !13
  %206 = trunc nuw i64 %indvars.iv621 to i32
  store i32 %206, ptr %11, align 4, !tbaa !9
  br label %215

207:                                              ; preds = %175
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %321

209:                                              ; preds = %177
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %321

211:                                              ; preds = %179
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %321

213:                                              ; preds = %203, %199, %195, %191, %187, %183, %181
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %321

215:                                              ; preds = %189, %197, %201, %205, %172
  %indvars.iv.next622 = add nuw nsw i64 %indvars.iv621, 1
  %216 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  %217 = and i64 %216, 4294967295
  %218 = icmp ult i64 %indvars.iv.next622, %217
  br i1 %218, label %.lr.ph516, label %._crit_edge517, !llvm.loop !16

219:                                              ; preds = %._crit_edge517
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %220 unwind label %229

220:                                              ; preds = %219
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %222)
          to label %224 unwind label %229

224:                                              ; preds = %220
  store i32 %.0341, ptr %223, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %319, %224
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  store i32 -1, ptr %13, align 4, !tbaa !9
  %226 = call noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %227 = and i64 %226, 4294967295
  %.not601 = icmp eq i64 %227, 0
  br i1 %.not601, label %._crit_edge538, label %.lr.ph537

._crit_edge538:                                   ; preds = %._crit_edge530, %225
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %.not386 = icmp eq i32 %228, -1
  br i1 %.not386, label %307, label %301

229:                                              ; preds = %220, %219
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %321

.lr.ph537:                                        ; preds = %225, %._crit_edge530
  %indvars.iv624 = phi i64 [ %indvars.iv.next625, %._crit_edge530 ], [ 0, %225 ]
  %.0355535 = phi i32 [ %.1356.lcssa, %._crit_edge530 ], [ 0, %225 ]
  %.0360534 = phi float [ %.1361.lcssa, %._crit_edge530 ], [ 0x47EFFFFFE0000000, %225 ]
  %231 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv624)
          to label %232 unwind label %242

232:                                              ; preds = %.lr.ph537
  %233 = load i32, ptr %231, align 4, !tbaa !9
  %234 = zext i32 %233 to i64
  %235 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %234)
          to label %236 unwind label %242

236:                                              ; preds = %232
  %237 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %235)
  %238 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %235)
  %.not387524 = icmp eq ptr %237, %238
  br i1 %.not387524, label %._crit_edge530, label %.lr.ph529

._crit_edge530:                                   ; preds = %299, %236
  %.1361.lcssa = phi float [ %.0360534, %236 ], [ %.3363, %299 ]
  %.1356.lcssa = phi i32 [ %.0355535, %236 ], [ %.3358, %299 ]
  %indvars.iv.next625 = add nuw nsw i64 %indvars.iv624, 1
  %239 = call noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %240 = and i64 %239, 4294967295
  %241 = icmp ult i64 %indvars.iv.next625, %240
  br i1 %241, label %.lr.ph537, label %._crit_edge538, !llvm.loop !17

242:                                              ; preds = %232, %.lr.ph537
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %320

.lr.ph529:                                        ; preds = %236, %299
  %.1356527 = phi i32 [ %.3358, %299 ], [ %.0355535, %236 ]
  %.1361526 = phi float [ %.3363, %299 ], [ %.0360534, %236 ]
  %.0365525 = phi ptr [ %300, %299 ], [ %237, %236 ]
  %244 = load i32, ptr %.0365525, align 4, !tbaa !18
  %245 = zext i32 %244 to i64
  %246 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %245)
          to label %247 unwind label %256

247:                                              ; preds = %.lr.ph529
  %248 = load i32, ptr %246, align 4, !tbaa !9
  %249 = icmp eq i32 %248, -1
  br i1 %249, label %250, label %299

250:                                              ; preds = %247
  %251 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %245)
          to label %252 unwind label %258

252:                                              ; preds = %250
  %253 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %251)
  %254 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %251)
  %.not388518 = icmp eq ptr %253, %254
  br i1 %.not388518, label %._crit_edge523, label %.lr.ph522

._crit_edge523:                                   ; preds = %272, %252
  %.0366.lcssa = phi i32 [ 0, %252 ], [ %.1367, %272 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  %255 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %245)
          to label %274 unwind label %297

256:                                              ; preds = %.lr.ph529
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %320

258:                                              ; preds = %250
  %259 = landingpad { ptr, i32 }
          cleanup
  br label %320

.lr.ph522:                                        ; preds = %252, %272
  %.0366520 = phi i32 [ %.1367, %272 ], [ 0, %252 ]
  %.0368519 = phi ptr [ %273, %272 ], [ %253, %252 ]
  %260 = load i32, ptr %.0368519, align 4, !tbaa !18
  %261 = zext i32 %260 to i64
  %262 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %261)
          to label %263 unwind label %270

263:                                              ; preds = %.lr.ph522
  %264 = load i32, ptr %262, align 4, !tbaa !9
  %265 = icmp eq i32 %264, %.0341
  br i1 %265, label %266, label %272

266:                                              ; preds = %263
  %267 = getelementptr inbounds i8, ptr %.0368519, i64 4
  %268 = load i32, ptr %267, align 4, !tbaa !20
  %269 = add i32 %268, %.0366520
  br label %272

270:                                              ; preds = %.lr.ph522
  %271 = landingpad { ptr, i32 }
          cleanup
  br label %320

272:                                              ; preds = %266, %263
  %.1367 = phi i32 [ %269, %266 ], [ %.0366520, %263 ]
  %273 = getelementptr inbounds i8, ptr %.0368519, i64 8
  %.not388 = icmp eq ptr %273, %254
  br i1 %.not388, label %._crit_edge523, label %.lr.ph522

274:                                              ; preds = %._crit_edge523
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(12) %255)
          to label %275 unwind label %297

275:                                              ; preds = %274
  %276 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %277 unwind label %297

277:                                              ; preds = %275
  %278 = load i32, ptr %276, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %279)
          to label %281 unwind label %297

281:                                              ; preds = %277
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(12) %280)
          to label %282 unwind label %297

282:                                              ; preds = %281
  %283 = load double, ptr %16, align 16
  %284 = load double, ptr %122, align 8
  %285 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %283, double %284)
          to label %286 unwind label %297

286:                                              ; preds = %282
  %287 = extractvalue { double, double } %285, 0
  store double %287, ptr %14, align 16
  %288 = extractvalue { double, double } %285, 1
  store double %288, ptr %123, align 8
  %289 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  %290 = load i32, ptr %13, align 4, !tbaa !9
  %291 = icmp eq i32 %290, -1
  %292 = icmp ugt i32 %.0366.lcssa, %.1356527
  %or.cond446 = select i1 %291, i1 true, i1 %292
  br i1 %or.cond446, label %296, label %293

293:                                              ; preds = %286
  %294 = icmp eq i32 %.0366.lcssa, %.1356527
  %295 = fcmp olt float %289, %.1361526
  %or.cond447 = select i1 %294, i1 %295, i1 false
  br i1 %or.cond447, label %296, label %299

296:                                              ; preds = %293, %286
  store i32 %244, ptr %13, align 4, !tbaa !9
  br label %299

297:                                              ; preds = %282, %281, %277, %275, %274, %._crit_edge523
  %298 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  br label %320

299:                                              ; preds = %293, %296, %247
  %.3363 = phi float [ %.1361526, %247 ], [ %289, %296 ], [ %.1361526, %293 ]
  %.3358 = phi i32 [ %.1356527, %247 ], [ %.0366.lcssa, %296 ], [ %.1356527, %293 ]
  %300 = getelementptr inbounds i8, ptr %.0365525, i64 8
  %.not387 = icmp eq ptr %300, %238
  br i1 %.not387, label %._crit_edge530, label %.lr.ph529

301:                                              ; preds = %._crit_edge538
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %302 unwind label %.loopexit

302:                                              ; preds = %301
  %303 = load i32, ptr %13, align 4, !tbaa !9
  %304 = zext i32 %303 to i64
  %305 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %304)
          to label %306 unwind label %.loopexit

306:                                              ; preds = %302
  store i32 %.0341, ptr %305, align 4, !tbaa !9
  br label %307

.loopexit:                                        ; preds = %301, %302
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %320

.loopexit.split-lp:                               ; preds = %315
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %320

307:                                              ; preds = %306, %._crit_edge538
  %308 = call noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %309 = icmp ugt i64 %308, 255
  br i1 %309, label %315, label %310

310:                                              ; preds = %307
  %311 = call noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %312 = icmp ugt i64 %311, 128
  %313 = load i32, ptr %13, align 4
  %314 = icmp eq i32 %313, -1
  %or.cond = select i1 %312, i1 %314, i1 false
  br i1 %or.cond, label %315, label %318

315:                                              ; preds = %310, %307
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %316 unwind label %.loopexit.split-lp

316:                                              ; preds = %315
  %317 = add nsw i32 %.0341, 1
  br label %select.unfold

318:                                              ; preds = %310
  br i1 %314, label %select.unfold, label %319

319:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %225

320:                                              ; preds = %.loopexit, %.loopexit.split-lp, %242, %297, %270, %258, %256
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %243, %242 ], [ %257, %256 ], [ %298, %297 ], [ %271, %270 ], [ %259, %258 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %321

select.unfold:                                    ; preds = %318, %316
  %.2343.ph = phi i32 [ %317, %316 ], [ %.0341, %318 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %124

321:                                              ; preds = %169, %209, %213, %211, %207, %320, %229
  %.pn432.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %320 ], [ %230, %229 ], [ %170, %169 ], [ %208, %207 ], [ %210, %209 ], [ %214, %213 ], [ %212, %211 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %322

322:                                              ; preds = %321, %160
  %.pn432.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn432.pn.pn.pn.pn, %321 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %323

323:                                              ; preds = %322, %132, %130
  %.pn439 = phi { ptr, i32 } [ %133, %132 ], [ %.pn432.pn.pn.pn.pn.pn, %322 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %773

324:                                              ; preds = %.thread462, %.thread457
  %325 = call noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %326 = icmp ugt i64 %325, 128
  %327 = zext i1 %326 to i32
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %330 unwind label %328

328:                                              ; preds = %331, %330, %324
  %329 = landingpad { ptr, i32 }
          cleanup
  br label %773

330:                                              ; preds = %324
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %331 unwind label %328

331:                                              ; preds = %330
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %332 unwind label %328

332:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %spec.select = add i32 %.0341, 1
  %333 = add i32 %spec.select, %327
  %334 = sext i32 %333 to i64
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %334)
          to label %335 unwind label %340

335:                                              ; preds = %332
  %336 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %337 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %.not394539 = icmp eq ptr %336, %337
  br i1 %.not394539, label %._crit_edge543, label %.lr.ph542

._crit_edge543:                                   ; preds = %390, %335
  %338 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %339 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %.not395544 = icmp eq ptr %338, %339
  br i1 %.not395544, label %._crit_edge548, label %.lr.ph547

340:                                              ; preds = %625, %._crit_edge563, %332
  %341 = landingpad { ptr, i32 }
          cleanup
  br label %772

.lr.ph542:                                        ; preds = %335, %390
  %.0369540 = phi ptr [ %391, %390 ], [ %336, %335 ]
  %342 = load i32, ptr %.0369540, align 4, !tbaa !9
  %343 = zext i32 %342 to i64
  %344 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %343)
          to label %345 unwind label %359

345:                                              ; preds = %.lr.ph542
  %346 = load i32, ptr %344, align 4, !tbaa !9
  %347 = getelementptr inbounds i8, ptr %.0369540, i64 4
  %348 = load i32, ptr %347, align 4, !tbaa !9
  %349 = zext i32 %348 to i64
  %350 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %349)
          to label %351 unwind label %361

351:                                              ; preds = %345
  %352 = load i32, ptr %350, align 4, !tbaa !9
  %353 = icmp sgt i32 %346, -1
  %354 = icmp sgt i32 %352, -1
  %or.cond3 = select i1 %353, i1 %354, i1 false
  br i1 %or.cond3, label %363, label %355

355:                                              ; preds = %351
  %356 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.11, i32 noundef 677)
          to label %357 unwind label %361

357:                                              ; preds = %355
  br i1 %356, label %358, label %363

358:                                              ; preds = %357
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !21
  br label %363

359:                                              ; preds = %.lr.ph542
  %360 = landingpad { ptr, i32 }
          cleanup
  br label %772

361:                                              ; preds = %378, %365, %355, %345
  %362 = landingpad { ptr, i32 }
          cleanup
  br label %772

363:                                              ; preds = %351, %358, %357
  %364 = icmp eq i32 %346, %352
  br i1 %364, label %365, label %378

365:                                              ; preds = %363
  %366 = sext i32 %346 to i64
  %367 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %366)
          to label %368 unwind label %361

368:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  %369 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %370 = ptrtoint ptr %.0369540 to i64
  %371 = ptrtoint ptr %369 to i64
  %372 = sub i64 %370, %371
  %373 = lshr exact i64 %372, 4
  %374 = trunc i64 %373 to i32
  store i32 %374, ptr %18, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %367, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %375 unwind label %376

375:                                              ; preds = %368
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %390

376:                                              ; preds = %368
  %377 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %772

378:                                              ; preds = %363
  %379 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %380 unwind label %361

380:                                              ; preds = %378
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  %381 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %382 = ptrtoint ptr %.0369540 to i64
  %383 = ptrtoint ptr %381 to i64
  %384 = sub i64 %382, %383
  %385 = lshr exact i64 %384, 4
  %386 = trunc i64 %385 to i32
  store i32 %386, ptr %19, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %379, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %387 unwind label %388

387:                                              ; preds = %380
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  br label %390

388:                                              ; preds = %380
  %389 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  br label %772

390:                                              ; preds = %387, %375
  %391 = getelementptr inbounds i8, ptr %.0369540, i64 16
  %.not394 = icmp eq ptr %391, %337
  br i1 %.not394, label %._crit_edge543, label %.lr.ph542

._crit_edge548:                                   ; preds = %444, %._crit_edge543
  %392 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %393 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %.not396549 = icmp eq ptr %392, %393
  br i1 %.not396549, label %._crit_edge553, label %.lr.ph552

.lr.ph547:                                        ; preds = %._crit_edge543, %444
  %.0370545 = phi ptr [ %445, %444 ], [ %338, %._crit_edge543 ]
  %394 = load i32, ptr %.0370545, align 4, !tbaa !9
  %395 = zext i32 %394 to i64
  %396 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %395)
          to label %397 unwind label %411

397:                                              ; preds = %.lr.ph547
  %398 = load i32, ptr %396, align 4, !tbaa !9
  %399 = getelementptr inbounds i8, ptr %.0370545, i64 4
  %400 = load i32, ptr %399, align 4, !tbaa !9
  %401 = zext i32 %400 to i64
  %402 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %401)
          to label %403 unwind label %413

403:                                              ; preds = %397
  %404 = load i32, ptr %402, align 4, !tbaa !9
  %405 = icmp sgt i32 %398, -1
  %406 = icmp sgt i32 %404, -1
  %or.cond5 = select i1 %405, i1 %406, i1 false
  br i1 %or.cond5, label %415, label %407

407:                                              ; preds = %403
  %408 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.11, i32 noundef 687)
          to label %409 unwind label %413

409:                                              ; preds = %407
  br i1 %408, label %410, label %415

410:                                              ; preds = %409
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !22
  br label %415

411:                                              ; preds = %.lr.ph547
  %412 = landingpad { ptr, i32 }
          cleanup
  br label %772

413:                                              ; preds = %431, %417, %407, %397
  %414 = landingpad { ptr, i32 }
          cleanup
  br label %772

415:                                              ; preds = %403, %410, %409
  %416 = icmp eq i32 %398, %404
  br i1 %416, label %417, label %431

417:                                              ; preds = %415
  %418 = sext i32 %398 to i64
  %419 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %418)
          to label %420 unwind label %413

420:                                              ; preds = %417
  %421 = getelementptr inbounds i8, ptr %419, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  %422 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %423 = ptrtoint ptr %.0370545 to i64
  %424 = ptrtoint ptr %422 to i64
  %425 = sub i64 %423, %424
  %426 = sdiv exact i64 %425, 12
  %427 = trunc i64 %426 to i32
  store i32 %427, ptr %20, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %421, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %428 unwind label %429

428:                                              ; preds = %420
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %444

429:                                              ; preds = %420
  %430 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %772

431:                                              ; preds = %415
  %432 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %433 unwind label %413

433:                                              ; preds = %431
  %434 = getelementptr inbounds i8, ptr %432, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #8
  %435 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %436 = ptrtoint ptr %.0370545 to i64
  %437 = ptrtoint ptr %435 to i64
  %438 = sub i64 %436, %437
  %439 = sdiv exact i64 %438, 12
  %440 = trunc i64 %439 to i32
  store i32 %440, ptr %21, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %434, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %441 unwind label %442

441:                                              ; preds = %433
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  br label %444

442:                                              ; preds = %433
  %443 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  br label %772

444:                                              ; preds = %441, %428
  %445 = getelementptr inbounds i8, ptr %.0370545, i64 12
  %.not395 = icmp eq ptr %445, %339
  br i1 %.not395, label %._crit_edge548, label %.lr.ph547

._crit_edge553:                                   ; preds = %518, %._crit_edge548
  %446 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %447 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %.not397554 = icmp eq ptr %446, %447
  br i1 %.not397554, label %._crit_edge558, label %.lr.ph557

.lr.ph552:                                        ; preds = %._crit_edge548, %518
  %.0371550 = phi ptr [ %519, %518 ], [ %392, %._crit_edge548 ]
  %448 = load i32, ptr %.0371550, align 4, !tbaa !9
  %449 = zext i32 %448 to i64
  %450 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %449)
          to label %451 unwind label %479

451:                                              ; preds = %.lr.ph552
  %452 = load i32, ptr %450, align 4, !tbaa !9
  %453 = getelementptr inbounds i8, ptr %.0371550, i64 4
  %454 = load i32, ptr %453, align 4, !tbaa !9
  %455 = zext i32 %454 to i64
  %456 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %455)
          to label %457 unwind label %481

457:                                              ; preds = %451
  %458 = load i32, ptr %456, align 4, !tbaa !9
  %459 = getelementptr inbounds i8, ptr %.0371550, i64 8
  %460 = load i32, ptr %459, align 4, !tbaa !9
  %461 = zext i32 %460 to i64
  %462 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %461)
          to label %463 unwind label %483

463:                                              ; preds = %457
  %464 = load i32, ptr %462, align 4, !tbaa !9
  %465 = getelementptr inbounds i8, ptr %.0371550, i64 12
  %466 = load i32, ptr %465, align 4, !tbaa !9
  %467 = zext i32 %466 to i64
  %468 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %467)
          to label %469 unwind label %485

469:                                              ; preds = %463
  %470 = load i32, ptr %468, align 4, !tbaa !9
  %471 = icmp sgt i32 %452, -1
  %472 = icmp sgt i32 %458, -1
  %or.cond7 = select i1 %471, i1 %472, i1 false
  %473 = icmp sgt i32 %464, -1
  %or.cond9 = select i1 %or.cond7, i1 %473, i1 false
  %474 = icmp sgt i32 %470, -1
  %or.cond11 = select i1 %or.cond9, i1 %474, i1 false
  br i1 %or.cond11, label %487, label %475

475:                                              ; preds = %469
  %476 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.11, i32 noundef 699)
          to label %477 unwind label %485

477:                                              ; preds = %475
  br i1 %476, label %478, label %487

478:                                              ; preds = %477
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !23
  br label %487

479:                                              ; preds = %.lr.ph552
  %480 = landingpad { ptr, i32 }
          cleanup
  br label %772

481:                                              ; preds = %451
  %482 = landingpad { ptr, i32 }
          cleanup
  br label %772

483:                                              ; preds = %457
  %484 = landingpad { ptr, i32 }
          cleanup
  br label %772

485:                                              ; preds = %505, %491, %475, %463
  %486 = landingpad { ptr, i32 }
          cleanup
  br label %772

487:                                              ; preds = %469, %478, %477
  %488 = icmp eq i32 %452, %458
  %489 = icmp eq i32 %452, %464
  %or.cond450 = select i1 %488, i1 %489, i1 false
  %490 = icmp eq i32 %452, %470
  %or.cond451 = select i1 %or.cond450, i1 %490, i1 false
  br i1 %or.cond451, label %491, label %505

491:                                              ; preds = %487
  %492 = sext i32 %452 to i64
  %493 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %492)
          to label %494 unwind label %485

494:                                              ; preds = %491
  %495 = getelementptr inbounds i8, ptr %493, i64 48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  %496 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %497 = ptrtoint ptr %.0371550 to i64
  %498 = ptrtoint ptr %496 to i64
  %499 = sub i64 %497, %498
  %500 = sdiv exact i64 %499, 24
  %501 = trunc i64 %500 to i32
  store i32 %501, ptr %22, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %495, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %502 unwind label %503

502:                                              ; preds = %494
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  br label %518

503:                                              ; preds = %494
  %504 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  br label %772

505:                                              ; preds = %487
  %506 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %507 unwind label %485

507:                                              ; preds = %505
  %508 = getelementptr inbounds i8, ptr %506, i64 48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  %509 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %510 = ptrtoint ptr %.0371550 to i64
  %511 = ptrtoint ptr %509 to i64
  %512 = sub i64 %510, %511
  %513 = sdiv exact i64 %512, 24
  %514 = trunc i64 %513 to i32
  store i32 %514, ptr %23, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %508, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %515 unwind label %516

515:                                              ; preds = %507
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  br label %518

516:                                              ; preds = %507
  %517 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  br label %772

518:                                              ; preds = %515, %502
  %519 = getelementptr inbounds i8, ptr %.0371550, i64 24
  %.not396 = icmp eq ptr %519, %393
  br i1 %.not396, label %._crit_edge553, label %.lr.ph552

._crit_edge558:                                   ; preds = %593, %._crit_edge553
  %520 = getelementptr inbounds i8, ptr %0, i64 128
  %521 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %520)
  %522 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %520)
  %.not398559 = icmp eq ptr %521, %522
  br i1 %.not398559, label %._crit_edge563, label %.lr.ph562

.lr.ph557:                                        ; preds = %._crit_edge553, %593
  %.0373555 = phi ptr [ %594, %593 ], [ %446, %._crit_edge553 ]
  %523 = load i32, ptr %.0373555, align 4, !tbaa !9
  %524 = zext i32 %523 to i64
  %525 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %524)
          to label %526 unwind label %554

526:                                              ; preds = %.lr.ph557
  %527 = load i32, ptr %525, align 4, !tbaa !9
  %528 = getelementptr inbounds i8, ptr %.0373555, i64 4
  %529 = load i32, ptr %528, align 4, !tbaa !9
  %530 = zext i32 %529 to i64
  %531 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %530)
          to label %532 unwind label %556

532:                                              ; preds = %526
  %533 = load i32, ptr %531, align 4, !tbaa !9
  %534 = getelementptr inbounds i8, ptr %.0373555, i64 8
  %535 = load i32, ptr %534, align 4, !tbaa !9
  %536 = zext i32 %535 to i64
  %537 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %536)
          to label %538 unwind label %558

538:                                              ; preds = %532
  %539 = load i32, ptr %537, align 4, !tbaa !9
  %540 = getelementptr inbounds i8, ptr %.0373555, i64 12
  %541 = load i32, ptr %540, align 4, !tbaa !9
  %542 = zext i32 %541 to i64
  %543 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %542)
          to label %544 unwind label %560

544:                                              ; preds = %538
  %545 = load i32, ptr %543, align 4, !tbaa !9
  %546 = icmp sgt i32 %527, -1
  %547 = icmp sgt i32 %533, -1
  %or.cond13 = select i1 %546, i1 %547, i1 false
  %548 = icmp sgt i32 %539, -1
  %or.cond15 = select i1 %or.cond13, i1 %548, i1 false
  %549 = icmp sgt i32 %545, -1
  %or.cond17 = select i1 %or.cond15, i1 %549, i1 false
  br i1 %or.cond17, label %562, label %550

550:                                              ; preds = %544
  %551 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.11, i32 noundef 711)
          to label %552 unwind label %560

552:                                              ; preds = %550
  br i1 %551, label %553, label %562

553:                                              ; preds = %552
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !24
  br label %562

554:                                              ; preds = %.lr.ph557
  %555 = landingpad { ptr, i32 }
          cleanup
  br label %772

556:                                              ; preds = %526
  %557 = landingpad { ptr, i32 }
          cleanup
  br label %772

558:                                              ; preds = %532
  %559 = landingpad { ptr, i32 }
          cleanup
  br label %772

560:                                              ; preds = %580, %566, %550, %538
  %561 = landingpad { ptr, i32 }
          cleanup
  br label %772

562:                                              ; preds = %544, %553, %552
  %563 = icmp eq i32 %527, %533
  %564 = icmp eq i32 %527, %539
  %or.cond452 = select i1 %563, i1 %564, i1 false
  %565 = icmp eq i32 %527, %545
  %or.cond453 = select i1 %or.cond452, i1 %565, i1 false
  br i1 %or.cond453, label %566, label %580

566:                                              ; preds = %562
  %567 = sext i32 %527 to i64
  %568 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %567)
          to label %569 unwind label %560

569:                                              ; preds = %566
  %570 = getelementptr inbounds i8, ptr %568, i64 72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  %571 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %572 = ptrtoint ptr %.0373555 to i64
  %573 = ptrtoint ptr %571 to i64
  %574 = sub i64 %572, %573
  %575 = sdiv exact i64 %574, 24
  %576 = trunc i64 %575 to i32
  store i32 %576, ptr %24, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %570, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %577 unwind label %578

577:                                              ; preds = %569
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  br label %593

578:                                              ; preds = %569
  %579 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  br label %772

580:                                              ; preds = %562
  %581 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %582 unwind label %560

582:                                              ; preds = %580
  %583 = getelementptr inbounds i8, ptr %581, i64 72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #8
  %584 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %585 = ptrtoint ptr %.0373555 to i64
  %586 = ptrtoint ptr %584 to i64
  %587 = sub i64 %585, %586
  %588 = sdiv exact i64 %587, 24
  %589 = trunc i64 %588 to i32
  store i32 %589, ptr %25, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %583, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %590 unwind label %591

590:                                              ; preds = %582
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #8
  br label %593

591:                                              ; preds = %582
  %592 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #8
  br label %772

593:                                              ; preds = %590, %577
  %594 = getelementptr inbounds i8, ptr %.0373555, i64 24
  %.not397 = icmp eq ptr %594, %447
  br i1 %.not397, label %._crit_edge558, label %.lr.ph557

._crit_edge563:                                   ; preds = %621, %._crit_edge558
  %595 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %596 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %597 = getelementptr inbounds i8, ptr %596, i64 -120
  invoke void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupZNS1_8OptimizeES3_E3$_1EEvT_S7_T0_"(ptr noundef %595, ptr noundef nonnull %597)
          to label %625 unwind label %340

.lr.ph562:                                        ; preds = %._crit_edge558, %621
  %.0374560 = phi ptr [ %622, %621 ], [ %521, %._crit_edge558 ]
  %598 = load i32, ptr %.0374560, align 4, !tbaa !25
  %599 = zext i32 %598 to i64
  %600 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %599)
          to label %601 unwind label %608

601:                                              ; preds = %.lr.ph562
  %602 = load i32, ptr %600, align 4, !tbaa !9
  %603 = icmp sgt i32 %602, -1
  br i1 %603, label %610, label %604

604:                                              ; preds = %601
  %605 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.11, i32 noundef 720)
          to label %606 unwind label %608

606:                                              ; preds = %604
  br i1 %605, label %607, label %610

607:                                              ; preds = %606
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !27
  br label %610

608:                                              ; preds = %610, %604, %.lr.ph562
  %609 = landingpad { ptr, i32 }
          cleanup
  br label %772

610:                                              ; preds = %607, %606, %601
  %611 = sext i32 %602 to i64
  %612 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %611)
          to label %613 unwind label %608

613:                                              ; preds = %610
  %614 = getelementptr inbounds i8, ptr %612, i64 96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #8
  %615 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %520)
  %616 = ptrtoint ptr %.0374560 to i64
  %617 = ptrtoint ptr %615 to i64
  %618 = sub i64 %616, %617
  %619 = sdiv exact i64 %618, 52
  %620 = trunc i64 %619 to i32
  store i32 %620, ptr %26, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %614, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %621 unwind label %623

621:                                              ; preds = %613
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #8
  %622 = getelementptr inbounds i8, ptr %.0374560, i64 52
  %.not398 = icmp eq ptr %622, %522
  br i1 %.not398, label %._crit_edge563, label %.lr.ph562

623:                                              ; preds = %613
  %624 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #8
  br label %772

625:                                              ; preds = %._crit_edge563
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %0)
          to label %626 unwind label %340

626:                                              ; preds = %625
  %627 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %628 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %.not399564 = icmp eq ptr %627, %628
  br i1 %.not399564, label %._crit_edge568, label %.lr.ph567

._crit_edge568:                                   ; preds = %648, %626
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %42) #8
  %629 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %629)
          to label %652 unwind label %682

.lr.ph567:                                        ; preds = %626, %648
  %.0372565 = phi ptr [ %649, %648 ], [ %627, %626 ]
  %630 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.0372565)
  %631 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.0372565)
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_2EEvT_S6_T0_"(ptr noundef %630, ptr noundef %631, ptr nonnull %0)
          to label %632 unwind label %650

632:                                              ; preds = %.lr.ph567
  %633 = getelementptr inbounds i8, ptr %.0372565, i64 24
  %634 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %633)
  %635 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %633)
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_3EEvT_S6_T0_"(ptr noundef %634, ptr noundef %635, ptr nonnull %0)
          to label %636 unwind label %650

636:                                              ; preds = %632
  %637 = getelementptr inbounds i8, ptr %.0372565, i64 48
  %638 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %637)
  %639 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %637)
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_4EEvT_S6_T0_"(ptr noundef %638, ptr noundef %639, ptr nonnull %0)
          to label %640 unwind label %650

640:                                              ; preds = %636
  %641 = getelementptr inbounds i8, ptr %.0372565, i64 72
  %642 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %641)
  %643 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %641)
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_5EEvT_S6_T0_"(ptr noundef %642, ptr noundef %643, ptr nonnull %0)
          to label %644 unwind label %650

644:                                              ; preds = %640
  %645 = getelementptr inbounds i8, ptr %.0372565, i64 96
  %646 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %645)
  %647 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %645)
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_6EEvT_S6_T0_"(ptr noundef %646, ptr noundef %647, ptr nonnull %0)
          to label %648 unwind label %650

648:                                              ; preds = %644
  %649 = getelementptr inbounds i8, ptr %.0372565, i64 120
  %.not399 = icmp eq ptr %649, %628
  br i1 %.not399, label %._crit_edge568, label %.lr.ph567

650:                                              ; preds = %644, %640, %636, %632, %.lr.ph567
  %651 = landingpad { ptr, i32 }
          cleanup
  br label %772

652:                                              ; preds = %._crit_edge568
  %653 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %653)
          to label %654 unwind label %682

654:                                              ; preds = %652
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  %655 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %655)
          to label %656 unwind label %684

656:                                              ; preds = %654
  %657 = getelementptr inbounds i8, ptr %1, i64 24
  %658 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %657, i64 noundef %658)
          to label %659 unwind label %684

659:                                              ; preds = %656
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %57) #8
  %660 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %660)
          to label %661 unwind label %686

661:                                              ; preds = %659
  %662 = getelementptr inbounds i8, ptr %1, i64 48
  %663 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %662, i64 noundef %663)
          to label %664 unwind label %686

664:                                              ; preds = %661
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %67) #8
  %665 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %665)
          to label %666 unwind label %688

666:                                              ; preds = %664
  %667 = getelementptr inbounds i8, ptr %1, i64 72
  %668 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %667, i64 noundef %668)
          to label %669 unwind label %688

669:                                              ; preds = %666
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %520) #8
  %670 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %520, i64 noundef %670)
          to label %671 unwind label %690

671:                                              ; preds = %669
  %672 = getelementptr inbounds i8, ptr %1, i64 96
  %673 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %672, i64 noundef %673)
          to label %674 unwind label %690

674:                                              ; preds = %671
  %675 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %676 = call noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %.not400594 = icmp eq ptr %675, %676
  br i1 %.not400594, label %._crit_edge598, label %.lr.ph597

.lr.ph597:                                        ; preds = %674
  %677 = getelementptr inbounds i8, ptr %37, i64 4
  %678 = getelementptr inbounds i8, ptr %37, i64 8
  %679 = getelementptr inbounds i8, ptr %37, i64 12
  %680 = getelementptr inbounds i8, ptr %37, i64 16
  br label %692

._crit_edge598:                                   ; preds = %762, %674
  %681 = getelementptr inbounds i8, ptr %0, i64 232
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %681)
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %681)
          to label %766 unwind label %690

682:                                              ; preds = %652, %._crit_edge568
  %683 = landingpad { ptr, i32 }
          cleanup
  br label %771

684:                                              ; preds = %656, %654
  %685 = landingpad { ptr, i32 }
          cleanup
  br label %770

686:                                              ; preds = %661, %659
  %687 = landingpad { ptr, i32 }
          cleanup
  br label %769

688:                                              ; preds = %666, %664
  %689 = landingpad { ptr, i32 }
          cleanup
  br label %768

690:                                              ; preds = %._crit_edge598, %671, %669
  %691 = landingpad { ptr, i32 }
          cleanup
  br label %767

692:                                              ; preds = %.lr.ph597, %762
  %.0359595 = phi ptr [ %675, %.lr.ph597 ], [ %763, %762 ]
  %693 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.0359595)
  %694 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.0359595)
  %.not401569 = icmp eq ptr %693, %694
  br i1 %.not401569, label %._crit_edge573, label %.lr.ph572

._crit_edge573:                                   ; preds = %703, %692
  %695 = getelementptr inbounds i8, ptr %.0359595, i64 24
  %696 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %695)
  %697 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %695)
  %.not402574 = icmp eq ptr %696, %697
  br i1 %.not402574, label %._crit_edge578, label %.lr.ph577

.lr.ph572:                                        ; preds = %692, %703
  %.0352570 = phi ptr [ %704, %703 ], [ %693, %692 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #8
  %698 = load i32, ptr %.0352570, align 4, !tbaa !9
  store i32 %698, ptr %32, align 4, !tbaa !9
  %699 = zext i32 %698 to i64
  %700 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %699)
          to label %701 unwind label %705

701:                                              ; preds = %.lr.ph572
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(16) %700)
          to label %702 unwind label %705

702:                                              ; preds = %701
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %703 unwind label %705

703:                                              ; preds = %702
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #8
  %704 = getelementptr inbounds i8, ptr %.0352570, i64 4
  %.not401 = icmp eq ptr %704, %694
  br i1 %.not401, label %._crit_edge573, label %.lr.ph572

705:                                              ; preds = %702, %701, %.lr.ph572
  %706 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #8
  br label %767

._crit_edge578:                                   ; preds = %715, %._crit_edge573
  %707 = getelementptr inbounds i8, ptr %.0359595, i64 48
  %708 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %707)
  %709 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %707)
  %.not403579 = icmp eq ptr %708, %709
  br i1 %.not403579, label %._crit_edge583, label %.lr.ph582

.lr.ph577:                                        ; preds = %._crit_edge573, %715
  %.0347575 = phi ptr [ %716, %715 ], [ %696, %._crit_edge573 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #8
  %710 = load i32, ptr %.0347575, align 4, !tbaa !9
  store i32 %710, ptr %33, align 4, !tbaa !9
  %711 = zext i32 %710 to i64
  %712 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %711)
          to label %713 unwind label %717

713:                                              ; preds = %.lr.ph577
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 4 dereferenceable(12) %712)
          to label %714 unwind label %717

714:                                              ; preds = %713
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %657, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %715 unwind label %717

715:                                              ; preds = %714
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #8
  %716 = getelementptr inbounds i8, ptr %.0347575, i64 4
  %.not402 = icmp eq ptr %716, %697
  br i1 %.not402, label %._crit_edge578, label %.lr.ph577

717:                                              ; preds = %714, %713, %.lr.ph577
  %718 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #8
  br label %767

._crit_edge583:                                   ; preds = %727, %._crit_edge578
  %719 = getelementptr inbounds i8, ptr %.0359595, i64 72
  %720 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %719)
  %721 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %719)
  %.not404584 = icmp eq ptr %720, %721
  br i1 %.not404584, label %._crit_edge588, label %.lr.ph587

.lr.ph582:                                        ; preds = %._crit_edge578, %727
  %.0339580 = phi ptr [ %728, %727 ], [ %708, %._crit_edge578 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #8
  %722 = load i32, ptr %.0339580, align 4, !tbaa !9
  store i32 %722, ptr %34, align 4, !tbaa !9
  %723 = zext i32 %722 to i64
  %724 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %723)
          to label %725 unwind label %729

725:                                              ; preds = %.lr.ph582
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 4 dereferenceable(24) %724)
          to label %726 unwind label %729

726:                                              ; preds = %725
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %662, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %727 unwind label %729

727:                                              ; preds = %726
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #8
  %728 = getelementptr inbounds i8, ptr %.0339580, i64 4
  %.not403 = icmp eq ptr %728, %709
  br i1 %.not403, label %._crit_edge583, label %.lr.ph582

729:                                              ; preds = %726, %725, %.lr.ph582
  %730 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #8
  br label %767

._crit_edge588:                                   ; preds = %739, %._crit_edge583
  %731 = getelementptr inbounds i8, ptr %.0359595, i64 96
  %732 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %731)
  %733 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %731)
  %.not405589 = icmp eq ptr %732, %733
  br i1 %.not405589, label %._crit_edge593, label %.lr.ph592

.lr.ph587:                                        ; preds = %._crit_edge583, %739
  %.0336585 = phi ptr [ %740, %739 ], [ %720, %._crit_edge583 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #8
  %734 = load i32, ptr %.0336585, align 4, !tbaa !9
  store i32 %734, ptr %35, align 4, !tbaa !9
  %735 = zext i32 %734 to i64
  %736 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %735)
          to label %737 unwind label %741

737:                                              ; preds = %.lr.ph587
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 4 dereferenceable(24) %736)
          to label %738 unwind label %741

738:                                              ; preds = %737
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %667, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %739 unwind label %741

739:                                              ; preds = %738
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #8
  %740 = getelementptr inbounds i8, ptr %.0336585, i64 4
  %.not404 = icmp eq ptr %740, %721
  br i1 %.not404, label %._crit_edge588, label %.lr.ph587

741:                                              ; preds = %738, %737, %.lr.ph587
  %742 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #8
  br label %767

._crit_edge593:                                   ; preds = %758, %._crit_edge588
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %37) #8
  %743 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %744 = trunc i64 %743 to i32
  store i32 %744, ptr %37, align 4, !tbaa !28
  %745 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %746 = trunc i64 %745 to i32
  store i32 %746, ptr %677, align 4, !tbaa !30
  %747 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %748 = trunc i64 %747 to i32
  store i32 %748, ptr %678, align 4, !tbaa !31
  %749 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %750 = trunc i64 %749 to i32
  store i32 %750, ptr %679, align 4, !tbaa !32
  %751 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %520)
  %752 = trunc i64 %751 to i32
  store i32 %752, ptr %680, align 4, !tbaa !33
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings11UpdateGroupENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 4 dereferenceable(20) %37)
          to label %762 unwind label %764

.lr.ph592:                                        ; preds = %._crit_edge588, %758
  %.0298590 = phi ptr [ %759, %758 ], [ %732, %._crit_edge588 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #8
  %753 = load i32, ptr %.0298590, align 4, !tbaa !9
  store i32 %753, ptr %36, align 4, !tbaa !9
  %754 = zext i32 %753 to i64
  %755 = invoke noundef nonnull align 4 dereferenceable(52) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %754)
          to label %756 unwind label %760

756:                                              ; preds = %.lr.ph592
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %520, ptr noundef nonnull align 4 dereferenceable(52) %755)
          to label %757 unwind label %760

757:                                              ; preds = %756
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %672, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %758 unwind label %760

758:                                              ; preds = %757
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #8
  %759 = getelementptr inbounds i8, ptr %.0298590, i64 4
  %.not405 = icmp eq ptr %759, %733
  br i1 %.not405, label %._crit_edge593, label %.lr.ph592

760:                                              ; preds = %757, %756, %.lr.ph592
  %761 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #8
  br label %767

762:                                              ; preds = %._crit_edge593
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %37) #8
  %763 = getelementptr inbounds i8, ptr %.0359595, i64 120
  %.not400 = icmp eq ptr %763, %676
  br i1 %.not400, label %._crit_edge598, label %692

764:                                              ; preds = %._crit_edge593
  %765 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %37) #8
  br label %767

766:                                              ; preds = %._crit_edge598
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #8
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

767:                                              ; preds = %705, %717, %729, %741, %760, %764, %690
  %.pn406.pn = phi { ptr, i32 } [ %691, %690 ], [ %706, %705 ], [ %718, %717 ], [ %730, %729 ], [ %742, %741 ], [ %761, %760 ], [ %765, %764 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  br label %768

768:                                              ; preds = %767, %688
  %.pn406.pn.pn = phi { ptr, i32 } [ %.pn406.pn, %767 ], [ %689, %688 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  br label %769

769:                                              ; preds = %768, %686
  %.pn406.pn.pn.pn = phi { ptr, i32 } [ %.pn406.pn.pn, %768 ], [ %687, %686 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #8
  br label %770

770:                                              ; preds = %769, %684
  %.pn406.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn406.pn.pn.pn, %769 ], [ %685, %684 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  br label %771

771:                                              ; preds = %770, %682
  %.pn406.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn406.pn.pn.pn.pn, %770 ], [ %683, %682 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #8
  br label %772

772:                                              ; preds = %608, %623, %554, %558, %591, %578, %560, %556, %479, %483, %516, %503, %485, %481, %411, %442, %429, %413, %359, %388, %376, %361, %771, %650, %340
  %.pn428.pn.pn = phi { ptr, i32 } [ %651, %650 ], [ %.pn406.pn.pn.pn.pn.pn, %771 ], [ %341, %340 ], [ %360, %359 ], [ %377, %376 ], [ %362, %361 ], [ %389, %388 ], [ %412, %411 ], [ %430, %429 ], [ %414, %413 ], [ %443, %442 ], [ %480, %479 ], [ %482, %481 ], [ %484, %483 ], [ %504, %503 ], [ %486, %485 ], [ %517, %516 ], [ %555, %554 ], [ %557, %556 ], [ %559, %558 ], [ %579, %578 ], [ %561, %560 ], [ %592, %591 ], [ %624, %623 ], [ %609, %608 ]
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %773

773:                                              ; preds = %772, %328, %323
  %.pn439.pn = phi { ptr, i32 } [ %.pn439, %323 ], [ %.pn428.pn.pn, %772 ], [ %329, %328 ]
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %774

774:                                              ; preds = %773, %128
  %.pn439.pn.pn = phi { ptr, i32 } [ %.pn439.pn, %773 ], [ %129, %128 ]
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %775

775:                                              ; preds = %774, %117, %92, %65, %55
  %.pn443 = phi { ptr, i32 } [ %56, %55 ], [ %66, %65 ], [ %93, %92 ], [ %118, %117 ], [ %.pn439.pn.pn, %774 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %776

776:                                              ; preds = %775, %48
  %.pn443.pn = phi { ptr, i32 } [ %.pn443, %775 ], [ %49, %48 ]
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn443.pn
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5AABox7IsValidEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH4Vec324GetHighestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_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(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_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 void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE9push_backERKS2_(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 dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_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 void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_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 = { mustprogress 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 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 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTSZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsEE10Connection", !10, i64 0, !10, i64 4}
!20 = !{!19, !10, i64 4}
!21 = !{i64 2157803125}
!22 = !{i64 2157803470}
!23 = !{i64 2157803859}
!24 = !{i64 2157804248}
!25 = !{!26, !10, i64 0}
!26 = !{!"_ZTSN3JPH22SoftBodySharedSettings7SkinnedE", !10, i64 0, !7, i64 4, !15, i64 36, !15, i64 40, !15, i64 44, !10, i64 48}
!27 = !{i64 2157804571}
!28 = !{!29, !10, i64 0}
!29 = !{!"_ZTSN3JPH22SoftBodySharedSettings11UpdateGroupE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!30 = !{!29, !10, i64 4}
!31 = !{!29, !10, i64 8}
!32 = !{!29, !10, i64 12}
!33 = !{!29, !10, i64 16}


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