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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Array.101" = type { i64, i64, ptr }
%class.anon.104 = type { ptr }
%"class.JPH::Array.105" = 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.111" = type { i64, i64, ptr }
%"struct.JPH::AssertLastParam" = type { i8 }
%class.anon.114 = type { i8 }
%class.anon.116 = type { ptr }
%class.anon.117 = type { ptr }
%class.anon.118 = type { ptr }
%class.anon.119 = type { ptr }
%class.anon.120 = 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 [108 x i8], align 1
@__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position = external hidden unnamed_addr constant %"class.JPH::Float3", align 4
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = 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 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 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 @_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.101", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.anon.104, 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.105", 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 %"class.JPH::Vec3", align 16
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.JPH::Float3", align 4
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca float, align 4
  %43 = alloca i32, 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.111", 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.114, 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.116, align 8
  %116 = alloca %class.anon.117, align 8
  %117 = alloca %class.anon.118, align 8
  %118 = alloca %class.anon.119, align 8
  %119 = alloca %class.anon.120, 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) #9
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %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) #9
  %156 = getelementptr inbounds %class.anon.104, 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) #9
  %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) #9
  %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) #9
  %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) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  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 %1915

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) #9
  %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) #9
  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) #9
  br label %199

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

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

201:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %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) #9
  %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) #9
  %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) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  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) #9
  %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) #9
  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) #9
  br label %240

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

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

242:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %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) #9
  %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) #9
  %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) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  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) #9
  %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) #9
  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) #9
  br label %326

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

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

328:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %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) #9
  %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) #9
  %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) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  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) #9
  %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) #9
  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) #9
  br label %412

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

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

414:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #9
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  %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) #9
  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) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #9
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  br label %419

419:                                              ; preds = %845, %418
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #9
  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) #9
  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) #9
  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 %1913

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) #9
  br label %1913

437:                                              ; preds = %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 %850

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) #9
  br label %850

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
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  %470 = invoke { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32) %29)
          to label %471 unwind label %489

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

479:                                              ; preds = %471
  store i32 %478, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %480 = invoke noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
          to label %481 unwind label %497

481:                                              ; preds = %479
  store i32 %480, ptr %34, align 4, !tbaa !9
  %482 = load i32, ptr %34, align 4, !tbaa !9
  %483 = load i32, ptr %33, align 4, !tbaa !9
  %484 = icmp eq i32 %482, %483
  br i1 %484, label %485, label %501

485:                                              ; preds = %481
  %486 = load i32, ptr %34, align 4, !tbaa !9
  %487 = add i32 %486, 1
  %488 = urem i32 %487, 3
  store i32 %488, ptr %34, align 4, !tbaa !9
  br label %501

489:                                              ; preds = %469
  %490 = landingpad { ptr, i32 }
          cleanup
  %491 = extractvalue { ptr, i32 } %490, 0
  store ptr %491, ptr %6, align 8
  %492 = extractvalue { ptr, i32 } %490, 1
  store i32 %492, ptr %7, align 4
  br label %849

493:                                              ; preds = %471
  %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 %848

497:                                              ; preds = %479
  %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 %847

501:                                              ; preds = %485, %481
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %502 = load i32, ptr %34, align 4, !tbaa !9
  %503 = sub i32 3, %502
  %504 = load i32, ptr %33, align 4, !tbaa !9
  %505 = sub i32 %503, %504
  store i32 %505, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store i32 -1, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 @__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %506

506:                                              ; preds = %602, %501
  %507 = load i32, ptr %38, align 4, !tbaa !9
  %508 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %509 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %508)
          to label %510 unwind label %514

510:                                              ; preds = %506
  %511 = trunc i64 %509 to i32
  %512 = icmp ult i32 %507, %511
  br i1 %512, label %518, label %513

513:                                              ; preds = %510
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %606

514:                                              ; preds = %518, %506
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %6, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %7, align 4
  br label %605

518:                                              ; preds = %510
  %519 = load i32, ptr %38, align 4, !tbaa !9
  %520 = zext i32 %519 to i64
  %521 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %520)
          to label %522 unwind label %514

522:                                              ; preds = %518
  %523 = load i32, ptr %521, align 4, !tbaa !9
  %524 = icmp eq i32 %523, -1
  br i1 %524, label %525, label %601

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

530:                                              ; preds = %525
  %531 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %529, i32 0, i32 0
  store ptr %531, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %532 = load ptr, ptr %39, align 8, !tbaa !5
  %533 = load i32, ptr %33, align 4, !tbaa !9
  %534 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %532, i32 noundef %533)
          to label %535 unwind label %585

535:                                              ; preds = %530
  store float %534, ptr %40, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %536 = load ptr, ptr %39, align 8, !tbaa !5
  %537 = load i32, ptr %35, 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 = %535
  store float %538, ptr %41, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  %540 = load ptr, ptr %39, align 8, !tbaa !5
  %541 = load i32, ptr %34, 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
  %544 = load float, ptr %40, align 4, !tbaa !13
  %545 = load i32, ptr %33, align 4, !tbaa !9
  %546 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %37, i32 noundef %545)
          to label %547 unwind label %593

547:                                              ; preds = %543
  %548 = fcmp olt float %544, %546
  br i1 %548, label %573, label %549

549:                                              ; preds = %547
  %550 = load float, ptr %40, align 4, !tbaa !13
  %551 = load i32, ptr %33, align 4, !tbaa !9
  %552 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %37, i32 noundef %551)
          to label %553 unwind label %593

553:                                              ; preds = %549
  %554 = fcmp oeq float %550, %552
  br i1 %554, label %555, label %597

555:                                              ; preds = %553
  %556 = load float, ptr %41, align 4, !tbaa !13
  %557 = load i32, ptr %35, align 4, !tbaa !9
  %558 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %37, i32 noundef %557)
          to label %559 unwind label %593

559:                                              ; preds = %555
  %560 = fcmp olt float %556, %558
  br i1 %560, label %573, label %561

561:                                              ; preds = %559
  %562 = load float, ptr %41, align 4, !tbaa !13
  %563 = load i32, ptr %35, align 4, !tbaa !9
  %564 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %37, i32 noundef %563)
          to label %565 unwind label %593

565:                                              ; preds = %561
  %566 = fcmp oeq float %562, %564
  br i1 %566, label %567, label %597

567:                                              ; preds = %565
  %568 = load float, ptr %42, align 4, !tbaa !13
  %569 = load i32, ptr %34, align 4, !tbaa !9
  %570 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %37, i32 noundef %569)
          to label %571 unwind label %593

571:                                              ; preds = %567
  %572 = fcmp olt float %568, %570
  br i1 %572, label %573, label %597

573:                                              ; preds = %571, %559, %547
  %574 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %575 = load i32, ptr %38, align 4, !tbaa !9
  %576 = zext i32 %575 to i64
  %577 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %574, i64 noundef %576)
          to label %578 unwind label %593

578:                                              ; preds = %573
  %579 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %577, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %579, i64 12, i1 false), !tbaa.struct !15
  %580 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %580, ptr %36, align 4, !tbaa !9
  br label %597

581:                                              ; preds = %525
  %582 = landingpad { ptr, i32 }
          cleanup
  %583 = extractvalue { ptr, i32 } %582, 0
  store ptr %583, ptr %6, align 8
  %584 = extractvalue { ptr, i32 } %582, 1
  store i32 %584, ptr %7, align 4
  br label %600

585:                                              ; preds = %530
  %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 %599

589:                                              ; preds = %535
  %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 %598

593:                                              ; preds = %573, %567, %561, %555, %549, %543, %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
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %598

597:                                              ; preds = %578, %571, %565, %553
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %601

598:                                              ; preds = %593, %589
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %599

599:                                              ; preds = %598, %585
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %600

600:                                              ; preds = %599, %581
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %605

601:                                              ; preds = %597, %522
  br label %602

602:                                              ; preds = %601
  %603 = load i32, ptr %38, align 4, !tbaa !9
  %604 = add i32 %603, 1
  store i32 %604, ptr %38, align 4, !tbaa !9
  br label %506, !llvm.loop !16

605:                                              ; preds = %600, %514
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %846

606:                                              ; preds = %513
  %607 = load i32, ptr %36, align 4, !tbaa !9
  %608 = icmp eq i32 %607, -1
  br i1 %608, label %609, label %610

609:                                              ; preds = %606
  store i32 10, ptr %43, align 4
  br label %843

610:                                              ; preds = %606
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %611 unwind label %625

611:                                              ; preds = %610
  %612 = load i32, ptr %27, align 4, !tbaa !9
  %613 = load i32, ptr %36, align 4, !tbaa !9
  %614 = zext i32 %613 to i64
  %615 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %614)
          to label %616 unwind label %625

616:                                              ; preds = %611
  store i32 %612, ptr %615, align 4, !tbaa !9
  br label %617

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

618:                                              ; preds = %800, %617
  %619 = load i32, ptr %47, align 4, !tbaa !9
  %620 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %621 unwind label %629

621:                                              ; preds = %618
  %622 = trunc i64 %620 to i32
  %623 = icmp ult i32 %619, %622
  br i1 %623, label %633, label %624

624:                                              ; preds = %621
  store i32 20, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %804

625:                                              ; preds = %611, %610
  %626 = landingpad { ptr, i32 }
          cleanup
  %627 = extractvalue { ptr, i32 } %626, 0
  store ptr %627, ptr %6, align 8
  %628 = extractvalue { ptr, i32 } %626, 1
  store i32 %628, ptr %7, align 4
  br label %846

629:                                              ; preds = %618
  %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 %803

633:                                              ; preds = %621
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  %634 = load i32, ptr %47, align 4, !tbaa !9
  %635 = zext i32 %634 to i64
  %636 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %635)
          to label %637 unwind label %653

637:                                              ; preds = %633
  %638 = load i32, ptr %636, align 4, !tbaa !9
  %639 = zext i32 %638 to i64
  %640 = 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 %639)
          to label %641 unwind label %653

641:                                              ; preds = %637
  store ptr %640, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %642 = load ptr, ptr %48, align 8, !tbaa !5
  %643 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %642)
          to label %644 unwind label %657

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

647:                                              ; preds = %644
  store ptr %646, ptr %50, align 8, !tbaa !5
  br label %648

648:                                              ; preds = %792, %647
  %649 = load ptr, ptr %49, align 8, !tbaa !5
  %650 = load ptr, ptr %50, align 8, !tbaa !5
  %651 = icmp ne ptr %649, %650
  br i1 %651, label %665, label %652

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

653:                                              ; preds = %637, %633
  %654 = landingpad { ptr, i32 }
          cleanup
  %655 = extractvalue { ptr, i32 } %654, 0
  store ptr %655, ptr %6, align 8
  %656 = extractvalue { ptr, i32 } %654, 1
  store i32 %656, ptr %7, align 4
  br label %798

657:                                              ; preds = %641
  %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 %797

661:                                              ; preds = %644
  %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 %796

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

673:                                              ; preds = %665
  %674 = load i32, ptr %672, align 4, !tbaa !9
  %675 = icmp eq i32 %674, -1
  br i1 %675, label %676, label %791

676:                                              ; preds = %673
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #9
  store i32 0, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #9
  %677 = load i32, ptr %52, align 4, !tbaa !9
  %678 = zext i32 %677 to i64
  %679 = 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 %678)
          to label %680 unwind label %696

680:                                              ; preds = %676
  store ptr %679, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  %681 = load ptr, ptr %54, align 8, !tbaa !5
  %682 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %681)
          to label %683 unwind label %700

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

686:                                              ; preds = %683
  store ptr %685, ptr %56, align 8, !tbaa !5
  br label %687

687:                                              ; preds = %730, %686
  %688 = load ptr, ptr %55, align 8, !tbaa !5
  %689 = load ptr, ptr %56, align 8, !tbaa !5
  %690 = icmp ne ptr %688, %689
  br i1 %690, label %708, label %691

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

692:                                              ; preds = %665
  %693 = landingpad { ptr, i32 }
          cleanup
  %694 = extractvalue { ptr, i32 } %693, 0
  store ptr %694, ptr %6, align 8
  %695 = extractvalue { ptr, i32 } %693, 1
  store i32 %695, ptr %7, align 4
  br label %795

696:                                              ; preds = %676
  %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 %735

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

704:                                              ; preds = %683
  %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 %733

708:                                              ; preds = %687
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  %709 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %709, ptr %57, align 8, !tbaa !5
  %710 = load ptr, ptr %57, align 8, !tbaa !5
  %711 = getelementptr inbounds %struct.Connection, ptr %710, i32 0, i32 0
  %712 = load i32, ptr %711, align 4, !tbaa !17
  %713 = zext i32 %712 to i64
  %714 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %713)
          to label %715 unwind label %725

715:                                              ; preds = %708
  %716 = load i32, ptr %714, align 4, !tbaa !9
  %717 = load i32, ptr %27, align 4, !tbaa !9
  %718 = icmp eq i32 %716, %717
  br i1 %718, label %719, label %729

719:                                              ; preds = %715
  %720 = load ptr, ptr %57, align 8, !tbaa !5
  %721 = getelementptr inbounds %struct.Connection, ptr %720, i32 0, i32 1
  %722 = load i32, ptr %721, align 4, !tbaa !19
  %723 = load i32, ptr %53, align 4, !tbaa !9
  %724 = add i32 %723, %722
  store i32 %724, ptr %53, align 4, !tbaa !9
  br label %729

725:                                              ; preds = %708
  %726 = landingpad { ptr, i32 }
          cleanup
  %727 = extractvalue { ptr, i32 } %726, 0
  store ptr %727, ptr %6, align 8
  %728 = extractvalue { ptr, i32 } %726, 1
  store i32 %728, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  br label %733

729:                                              ; preds = %719, %715
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  br label %730

730:                                              ; preds = %729
  %731 = load ptr, ptr %55, align 8, !tbaa !5
  %732 = getelementptr inbounds %struct.Connection, ptr %731, i32 1
  store ptr %732, ptr %55, align 8, !tbaa !5
  br label %687

733:                                              ; preds = %725, %704
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  br label %734

734:                                              ; preds = %733, %700
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  br label %735

735:                                              ; preds = %734, %696
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  br label %790

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

741:                                              ; preds = %736
  %742 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %740, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(12) %742)
          to label %743 unwind label %785

743:                                              ; preds = %741
  %744 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 1
  %745 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %746 unwind label %785

746:                                              ; preds = %743
  %747 = load i32, ptr %745, align 4, !tbaa !9
  %748 = zext i32 %747 to i64
  %749 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %744, i64 noundef %748)
          to label %750 unwind label %785

750:                                              ; preds = %746
  %751 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %749, i32 0, i32 0
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %61, ptr noundef nonnull align 4 dereferenceable(12) %751)
          to label %752 unwind label %785

752:                                              ; preds = %750
  %753 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %754 = load double, ptr %753, align 16
  %755 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %756 = load double, ptr %755, align 8
  %757 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %60, double %754, double %756)
          to label %758 unwind label %785

758:                                              ; preds = %752
  %759 = getelementptr inbounds %"class.JPH::Vec3", ptr %59, i32 0, i32 0
  %760 = getelementptr inbounds %union.anon, ptr %759, i32 0, i32 0
  %761 = getelementptr inbounds { double, double }, ptr %760, i32 0, i32 0
  %762 = extractvalue { double, double } %757, 0
  store double %762, ptr %761, align 16
  %763 = getelementptr inbounds { double, double }, ptr %760, i32 0, i32 1
  %764 = extractvalue { double, double } %757, 1
  store double %764, ptr %763, align 8
  %765 = invoke noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %59)
          to label %766 unwind label %785

766:                                              ; preds = %758
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #9
  store float %765, ptr %58, align 4, !tbaa !13
  %767 = load i32, ptr %44, align 4, !tbaa !9
  %768 = icmp eq i32 %767, -1
  br i1 %768, label %781, label %769

769:                                              ; preds = %766
  %770 = load i32, ptr %53, align 4, !tbaa !9
  %771 = load i32, ptr %45, align 4, !tbaa !9
  %772 = icmp ugt i32 %770, %771
  br i1 %772, label %781, label %773

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

777:                                              ; preds = %773
  %778 = load float, ptr %58, align 4, !tbaa !13
  %779 = load float, ptr %46, align 4, !tbaa !13
  %780 = fcmp olt float %778, %779
  br i1 %780, label %781, label %789

781:                                              ; preds = %777, %769, %766
  %782 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %782, ptr %44, align 4, !tbaa !9
  %783 = load i32, ptr %53, align 4, !tbaa !9
  store i32 %783, ptr %45, align 4, !tbaa !9
  %784 = load float, ptr %58, align 4, !tbaa !13
  store float %784, ptr %46, align 4, !tbaa !13
  br label %789

785:                                              ; preds = %758, %752, %750, %746, %743, %741, %736
  %786 = landingpad { ptr, i32 }
          cleanup
  %787 = extractvalue { ptr, i32 } %786, 0
  store ptr %787, ptr %6, align 8
  %788 = extractvalue { ptr, i32 } %786, 1
  store i32 %788, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  br label %790

789:                                              ; preds = %781, %777, %773
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  br label %791

790:                                              ; preds = %785, %735
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  br label %795

791:                                              ; preds = %789, %673
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  br label %792

792:                                              ; preds = %791
  %793 = load ptr, ptr %49, align 8, !tbaa !5
  %794 = getelementptr inbounds %struct.Connection, ptr %793, i32 1
  store ptr %794, ptr %49, align 8, !tbaa !5
  br label %648

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

796:                                              ; preds = %795, %661
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  br label %797

797:                                              ; preds = %796, %657
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %798

798:                                              ; preds = %797, %653
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  br label %803

799:                                              ; preds = %652
  br label %800

800:                                              ; preds = %799
  %801 = load i32, ptr %47, align 4, !tbaa !9
  %802 = add i32 %801, 1
  store i32 %802, ptr %47, align 4, !tbaa !9
  br label %618, !llvm.loop !20

803:                                              ; preds = %798, %629
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %841

804:                                              ; preds = %624
  %805 = load i32, ptr %44, align 4, !tbaa !9
  %806 = icmp ne i32 %805, -1
  br i1 %806, label %807, label %818

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

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

813:                                              ; preds = %808
  store i32 %809, ptr %812, align 4, !tbaa !9
  br label %818

814:                                              ; preds = %829, %822, %818, %808, %807
  %815 = landingpad { ptr, i32 }
          cleanup
  %816 = extractvalue { ptr, i32 } %815, 0
  store ptr %816, ptr %6, align 8
  %817 = extractvalue { ptr, i32 } %815, 1
  store i32 %817, ptr %7, align 4
  br label %841

818:                                              ; preds = %813, %804
  %819 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %820 unwind label %814

820:                                              ; preds = %818
  %821 = icmp uge i64 %819, 256
  br i1 %821, label %829, label %822

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

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

826:                                              ; preds = %824
  %827 = load i32, ptr %44, align 4, !tbaa !9
  %828 = icmp eq i32 %827, -1
  br i1 %828, label %829, label %833

829:                                              ; preds = %826, %820
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %830 unwind label %814

830:                                              ; preds = %829
  %831 = load i32, ptr %27, align 4, !tbaa !9
  %832 = add nsw i32 %831, 1
  store i32 %832, ptr %27, align 4, !tbaa !9
  store i32 18, ptr %43, align 4
  br label %838

833:                                              ; preds = %826, %824
  %834 = load i32, ptr %44, align 4, !tbaa !9
  %835 = icmp eq i32 %834, -1
  br i1 %835, label %836, label %837

836:                                              ; preds = %833
  store i32 18, ptr %43, align 4
  br label %838

837:                                              ; preds = %833
  store i32 0, ptr %43, align 4
  br label %838

838:                                              ; preds = %837, %836, %830
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  %839 = load i32, ptr %43, align 4
  switch i32 %839, label %1921 [
    i32 0, label %840
    i32 18, label %842
  ]

840:                                              ; preds = %838
  br label %617, !llvm.loop !21

841:                                              ; preds = %814, %803
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  br label %846

842:                                              ; preds = %838
  store i32 0, ptr %43, align 4
  br label %843

843:                                              ; preds = %842, %609
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  %844 = load i32, ptr %43, align 4
  switch i32 %844, label %1921 [
    i32 0, label %845
    i32 10, label %851
  ]

845:                                              ; preds = %843
  br label %419, !llvm.loop !22

846:                                              ; preds = %841, %625, %605
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %847

847:                                              ; preds = %846, %497
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %848

848:                                              ; preds = %847, %493
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %849

849:                                              ; preds = %848, %489
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  br label %850

850:                                              ; preds = %849, %441, %437
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #9
  br label %1912

851:                                              ; preds = %843
  %852 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %853 unwind label %858

853:                                              ; preds = %851
  %854 = icmp ugt i64 %852, 128
  br i1 %854, label %855, label %862

855:                                              ; preds = %853
  %856 = load i32, ptr %27, align 4, !tbaa !9
  %857 = add nsw i32 %856, 1
  store i32 %857, ptr %27, align 4, !tbaa !9
  br label %862

858:                                              ; preds = %865, %864, %863, %862, %851
  %859 = landingpad { ptr, i32 }
          cleanup
  %860 = extractvalue { ptr, i32 } %859, 0
  store ptr %860, ptr %6, align 8
  %861 = extractvalue { ptr, i32 } %859, 1
  store i32 %861, ptr %7, align 4
  br label %1912

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

863:                                              ; preds = %862
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %864 unwind label %858

864:                                              ; preds = %863
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %865 unwind label %858

865:                                              ; preds = %864
  invoke void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %866 unwind label %858

866:                                              ; preds = %865
  call void @llvm.lifetime.start.p0(i64 24, ptr %62) #9
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  %867 = load i32, ptr %27, align 4, !tbaa !9
  %868 = add nsw i32 %867, 1
  %869 = sext i32 %868 to i64
  invoke void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %869)
          to label %870 unwind label %883

870:                                              ; preds = %866
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #9
  %871 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  store ptr %871, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #9
  %872 = load ptr, ptr %63, align 8, !tbaa !5
  %873 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %872)
          to label %874 unwind label %887

874:                                              ; preds = %870
  store ptr %873, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #9
  %875 = load ptr, ptr %63, align 8, !tbaa !5
  %876 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %875)
          to label %877 unwind label %891

877:                                              ; preds = %874
  store ptr %876, ptr %65, align 8, !tbaa !5
  br label %878

878:                                              ; preds = %976, %877
  %879 = load ptr, ptr %64, align 8, !tbaa !5
  %880 = load ptr, ptr %65, align 8, !tbaa !5
  %881 = icmp ne ptr %879, %880
  br i1 %881, label %895, label %882

882:                                              ; preds = %878
  store i32 27, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  br label %983

883:                                              ; preds = %1465, %1463, %1461, %1459, %866
  %884 = landingpad { ptr, i32 }
          cleanup
  %885 = extractvalue { ptr, i32 } %884, 0
  store ptr %885, ptr %6, align 8
  %886 = extractvalue { ptr, i32 } %884, 1
  store i32 %886, ptr %7, align 4
  br label %1911

887:                                              ; preds = %870
  %888 = landingpad { ptr, i32 }
          cleanup
  %889 = extractvalue { ptr, i32 } %888, 0
  store ptr %889, ptr %6, align 8
  %890 = extractvalue { ptr, i32 } %888, 1
  store i32 %890, ptr %7, align 4
  br label %982

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

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

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

911:                                              ; preds = %903
  %912 = load i32, ptr %910, align 4, !tbaa !9
  store i32 %912, ptr %68, align 4, !tbaa !9
  br label %913

913:                                              ; preds = %911
  %914 = load i32, ptr %67, align 4, !tbaa !9
  %915 = icmp sge i32 %914, 0
  br i1 %915, label %916, label %919

916:                                              ; preds = %913
  %917 = load i32, ptr %68, align 4, !tbaa !9
  %918 = icmp sge i32 %917, 0
  br i1 %918, label %931, label %919

919:                                              ; preds = %916, %913
  %920 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.15, ptr noundef @.str.11, i32 noundef 658)
          to label %921 unwind label %927

921:                                              ; preds = %919
  br i1 %920, label %922, label %931

922:                                              ; preds = %921
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !23
  br label %931

923:                                              ; preds = %895
  %924 = landingpad { ptr, i32 }
          cleanup
  %925 = extractvalue { ptr, i32 } %924, 0
  store ptr %925, ptr %6, align 8
  %926 = extractvalue { ptr, i32 } %924, 1
  store i32 %926, ptr %7, align 4
  br label %980

927:                                              ; preds = %957, %937, %919, %903
  %928 = landingpad { ptr, i32 }
          cleanup
  %929 = extractvalue { ptr, i32 } %928, 0
  store ptr %929, ptr %6, align 8
  %930 = extractvalue { ptr, i32 } %928, 1
  store i32 %930, ptr %7, align 4
  br label %979

931:                                              ; preds = %922, %921, %916
  br label %932

932:                                              ; preds = %931
  br label %933

933:                                              ; preds = %932
  %934 = load i32, ptr %67, align 4, !tbaa !9
  %935 = load i32, ptr %68, align 4, !tbaa !9
  %936 = icmp eq i32 %934, %935
  br i1 %936, label %937, label %957

937:                                              ; preds = %933
  %938 = load i32, ptr %67, align 4, !tbaa !9
  %939 = sext i32 %938 to i64
  %940 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %939)
          to label %941 unwind label %927

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

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

952:                                              ; preds = %946
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  br label %975

953:                                              ; preds = %946, %941
  %954 = landingpad { ptr, i32 }
          cleanup
  %955 = extractvalue { ptr, i32 } %954, 0
  store ptr %955, ptr %6, align 8
  %956 = extractvalue { ptr, i32 } %954, 1
  store i32 %956, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  br label %979

957:                                              ; preds = %933
  %958 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %959 unwind label %927

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

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

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

971:                                              ; preds = %964, %959
  %972 = landingpad { ptr, i32 }
          cleanup
  %973 = extractvalue { ptr, i32 } %972, 0
  store ptr %973, ptr %6, align 8
  %974 = extractvalue { ptr, i32 } %972, 1
  store i32 %974, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  br label %979

975:                                              ; preds = %970, %952
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #9
  br label %976

976:                                              ; preds = %975
  %977 = load ptr, ptr %64, align 8, !tbaa !5
  %978 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %977, i32 1
  store ptr %978, ptr %64, align 8, !tbaa !5
  br label %878

979:                                              ; preds = %971, %953, %927
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #9
  br label %980

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

981:                                              ; preds = %980, %891
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #9
  br label %982

982:                                              ; preds = %981, %887
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  br label %1911

983:                                              ; preds = %882
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #9
  %984 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  store ptr %984, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #9
  %985 = load ptr, ptr %72, align 8, !tbaa !5
  %986 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %985)
          to label %987 unwind label %996

987:                                              ; preds = %983
  store ptr %986, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #9
  %988 = load ptr, ptr %72, align 8, !tbaa !5
  %989 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %988)
          to label %990 unwind label %1000

990:                                              ; preds = %987
  store ptr %989, ptr %74, align 8, !tbaa !5
  br label %991

991:                                              ; preds = %1085, %990
  %992 = load ptr, ptr %73, align 8, !tbaa !5
  %993 = load ptr, ptr %74, align 8, !tbaa !5
  %994 = icmp ne ptr %992, %993
  br i1 %994, label %1004, label %995

995:                                              ; preds = %991
  store i32 31, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  br label %1092

996:                                              ; preds = %983
  %997 = landingpad { ptr, i32 }
          cleanup
  %998 = extractvalue { ptr, i32 } %997, 0
  store ptr %998, ptr %6, align 8
  %999 = extractvalue { ptr, i32 } %997, 1
  store i32 %999, ptr %7, align 4
  br label %1091

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

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

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

1020:                                             ; preds = %1012
  %1021 = load i32, ptr %1019, align 4, !tbaa !9
  store i32 %1021, ptr %77, align 4, !tbaa !9
  br label %1022

1022:                                             ; preds = %1020
  %1023 = load i32, ptr %76, align 4, !tbaa !9
  %1024 = icmp sge i32 %1023, 0
  br i1 %1024, label %1025, label %1028

1025:                                             ; preds = %1022
  %1026 = load i32, ptr %77, align 4, !tbaa !9
  %1027 = icmp sge i32 %1026, 0
  br i1 %1027, label %1040, label %1028

1028:                                             ; preds = %1025, %1022
  %1029 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.15, ptr noundef @.str.11, i32 noundef 668)
          to label %1030 unwind label %1036

1030:                                             ; preds = %1028
  br i1 %1029, label %1031, label %1040

1031:                                             ; preds = %1030
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !24
  br label %1040

1032:                                             ; preds = %1004
  %1033 = landingpad { ptr, i32 }
          cleanup
  %1034 = extractvalue { ptr, i32 } %1033, 0
  store ptr %1034, ptr %6, align 8
  %1035 = extractvalue { ptr, i32 } %1033, 1
  store i32 %1035, ptr %7, align 4
  br label %1089

1036:                                             ; preds = %1066, %1046, %1028, %1012
  %1037 = landingpad { ptr, i32 }
          cleanup
  %1038 = extractvalue { ptr, i32 } %1037, 0
  store ptr %1038, ptr %6, align 8
  %1039 = extractvalue { ptr, i32 } %1037, 1
  store i32 %1039, ptr %7, align 4
  br label %1088

1040:                                             ; preds = %1031, %1030, %1025
  br label %1041

1041:                                             ; preds = %1040
  br label %1042

1042:                                             ; preds = %1041
  %1043 = load i32, ptr %76, align 4, !tbaa !9
  %1044 = load i32, ptr %77, align 4, !tbaa !9
  %1045 = icmp eq i32 %1043, %1044
  br i1 %1045, label %1046, label %1066

1046:                                             ; preds = %1042
  %1047 = load i32, ptr %76, align 4, !tbaa !9
  %1048 = sext i32 %1047 to i64
  %1049 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1048)
          to label %1050 unwind label %1036

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

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

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

1062:                                             ; preds = %1055, %1050
  %1063 = landingpad { ptr, i32 }
          cleanup
  %1064 = extractvalue { ptr, i32 } %1063, 0
  store ptr %1064, ptr %6, align 8
  %1065 = extractvalue { ptr, i32 } %1063, 1
  store i32 %1065, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #9
  br label %1088

1066:                                             ; preds = %1042
  %1067 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1068 unwind label %1036

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

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

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

1080:                                             ; preds = %1073, %1068
  %1081 = landingpad { ptr, i32 }
          cleanup
  %1082 = extractvalue { ptr, i32 } %1081, 0
  store ptr %1082, ptr %6, align 8
  %1083 = extractvalue { ptr, i32 } %1081, 1
  store i32 %1083, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #9
  br label %1088

1084:                                             ; preds = %1079, %1061
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #9
  br label %1085

1085:                                             ; preds = %1084
  %1086 = load ptr, ptr %73, align 8, !tbaa !5
  %1087 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::LRA", ptr %1086, i32 1
  store ptr %1087, ptr %73, align 8, !tbaa !5
  br label %991

1088:                                             ; preds = %1080, %1062, %1036
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #9
  br label %1089

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

1090:                                             ; preds = %1089, %1000
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #9
  br label %1091

1091:                                             ; preds = %1090, %996
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  br label %1911

1092:                                             ; preds = %995
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #9
  %1093 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  store ptr %1093, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #9
  %1094 = load ptr, ptr %81, align 8, !tbaa !5
  %1095 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1094)
          to label %1096 unwind label %1105

1096:                                             ; preds = %1092
  store ptr %1095, ptr %82, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #9
  %1097 = load ptr, ptr %81, align 8, !tbaa !5
  %1098 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1097)
          to label %1099 unwind label %1109

1099:                                             ; preds = %1096
  store ptr %1098, ptr %83, align 8, !tbaa !5
  br label %1100

1100:                                             ; preds = %1232, %1099
  %1101 = load ptr, ptr %82, align 8, !tbaa !5
  %1102 = load ptr, ptr %83, align 8, !tbaa !5
  %1103 = icmp ne ptr %1101, %1102
  br i1 %1103, label %1113, label %1104

1104:                                             ; preds = %1100
  store i32 35, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #9
  br label %1241

1105:                                             ; preds = %1092
  %1106 = landingpad { ptr, i32 }
          cleanup
  %1107 = extractvalue { ptr, i32 } %1106, 0
  store ptr %1107, ptr %6, align 8
  %1108 = extractvalue { ptr, i32 } %1106, 1
  store i32 %1108, ptr %7, align 4
  br label %1240

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

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

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

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

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

1145:                                             ; preds = %1137
  %1146 = load i32, ptr %1144, align 4, !tbaa !9
  store i32 %1146, ptr %88, align 4, !tbaa !9
  br label %1147

1147:                                             ; preds = %1145
  %1148 = load i32, ptr %85, align 4, !tbaa !9
  %1149 = icmp sge i32 %1148, 0
  br i1 %1149, label %1150, label %1159

1150:                                             ; preds = %1147
  %1151 = load i32, ptr %86, align 4, !tbaa !9
  %1152 = icmp sge i32 %1151, 0
  br i1 %1152, label %1153, label %1159

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

1156:                                             ; preds = %1153
  %1157 = load i32, ptr %88, align 4, !tbaa !9
  %1158 = icmp sge i32 %1157, 0
  br i1 %1158, label %1179, label %1159

1159:                                             ; preds = %1156, %1153, %1150, %1147
  %1160 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.16, ptr noundef @.str.11, i32 noundef 680)
          to label %1161 unwind label %1175

1161:                                             ; preds = %1159
  br i1 %1160, label %1162, label %1179

1162:                                             ; preds = %1161
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !25
  br label %1179

1163:                                             ; preds = %1113
  %1164 = landingpad { ptr, i32 }
          cleanup
  %1165 = extractvalue { ptr, i32 } %1164, 0
  store ptr %1165, ptr %6, align 8
  %1166 = extractvalue { ptr, i32 } %1164, 1
  store i32 %1166, ptr %7, align 4
  br label %1238

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

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

1175:                                             ; preds = %1213, %1193, %1159, %1137
  %1176 = landingpad { ptr, i32 }
          cleanup
  %1177 = extractvalue { ptr, i32 } %1176, 0
  store ptr %1177, ptr %6, align 8
  %1178 = extractvalue { ptr, i32 } %1176, 1
  store i32 %1178, ptr %7, align 4
  br label %1235

1179:                                             ; preds = %1162, %1161, %1156
  br label %1180

1180:                                             ; preds = %1179
  br label %1181

1181:                                             ; preds = %1180
  %1182 = load i32, ptr %85, align 4, !tbaa !9
  %1183 = load i32, ptr %86, align 4, !tbaa !9
  %1184 = icmp eq i32 %1182, %1183
  br i1 %1184, label %1185, label %1213

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

1189:                                             ; preds = %1185
  %1190 = load i32, ptr %85, align 4, !tbaa !9
  %1191 = load i32, ptr %88, align 4, !tbaa !9
  %1192 = icmp eq i32 %1190, %1191
  br i1 %1192, label %1193, label %1213

1193:                                             ; preds = %1189
  %1194 = load i32, ptr %85, align 4, !tbaa !9
  %1195 = sext i32 %1194 to i64
  %1196 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1195)
          to label %1197 unwind label %1175

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

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

1208:                                             ; preds = %1202
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #9
  br label %1231

1209:                                             ; preds = %1202, %1197
  %1210 = landingpad { ptr, i32 }
          cleanup
  %1211 = extractvalue { ptr, i32 } %1210, 0
  store ptr %1211, ptr %6, align 8
  %1212 = extractvalue { ptr, i32 } %1210, 1
  store i32 %1212, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #9
  br label %1235

1213:                                             ; preds = %1189, %1185, %1181
  %1214 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1215 unwind label %1175

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

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

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

1227:                                             ; preds = %1220, %1215
  %1228 = landingpad { ptr, i32 }
          cleanup
  %1229 = extractvalue { ptr, i32 } %1228, 0
  store ptr %1229, ptr %6, align 8
  %1230 = extractvalue { ptr, i32 } %1228, 1
  store i32 %1230, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #9
  br label %1235

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

1232:                                             ; preds = %1231
  %1233 = load ptr, ptr %82, align 8, !tbaa !5
  %1234 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::DihedralBend", ptr %1233, i32 1
  store ptr %1234, ptr %82, align 8, !tbaa !5
  br label %1100

1235:                                             ; preds = %1227, %1209, %1175
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #9
  br label %1236

1236:                                             ; preds = %1235, %1171
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #9
  br label %1237

1237:                                             ; preds = %1236, %1167
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #9
  br label %1238

1238:                                             ; preds = %1237, %1163
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #9
  br label %1239

1239:                                             ; preds = %1238, %1109
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #9
  br label %1240

1240:                                             ; preds = %1239, %1105
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #9
  br label %1911

1241:                                             ; preds = %1104
  call void @llvm.lifetime.start.p0(i64 8, ptr %92) #9
  %1242 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  store ptr %1242, ptr %92, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %93) #9
  %1243 = load ptr, ptr %92, align 8, !tbaa !5
  %1244 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1243)
          to label %1245 unwind label %1254

1245:                                             ; preds = %1241
  store ptr %1244, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %94) #9
  %1246 = load ptr, ptr %92, align 8, !tbaa !5
  %1247 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1246)
          to label %1248 unwind label %1258

1248:                                             ; preds = %1245
  store ptr %1247, ptr %94, align 8, !tbaa !5
  br label %1249

1249:                                             ; preds = %1381, %1248
  %1250 = load ptr, ptr %93, align 8, !tbaa !5
  %1251 = load ptr, ptr %94, align 8, !tbaa !5
  %1252 = icmp ne ptr %1250, %1251
  br i1 %1252, label %1262, label %1253

1253:                                             ; preds = %1249
  store i32 39, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #9
  br label %1390

1254:                                             ; preds = %1241
  %1255 = landingpad { ptr, i32 }
          cleanup
  %1256 = extractvalue { ptr, i32 } %1255, 0
  store ptr %1256, ptr %6, align 8
  %1257 = extractvalue { ptr, i32 } %1255, 1
  store i32 %1257, ptr %7, align 4
  br label %1389

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

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

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

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

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

1294:                                             ; preds = %1286
  %1295 = load i32, ptr %1293, align 4, !tbaa !9
  store i32 %1295, ptr %99, align 4, !tbaa !9
  br label %1296

1296:                                             ; preds = %1294
  %1297 = load i32, ptr %96, align 4, !tbaa !9
  %1298 = icmp sge i32 %1297, 0
  br i1 %1298, label %1299, label %1308

1299:                                             ; preds = %1296
  %1300 = load i32, ptr %97, align 4, !tbaa !9
  %1301 = icmp sge i32 %1300, 0
  br i1 %1301, label %1302, label %1308

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

1305:                                             ; preds = %1302
  %1306 = load i32, ptr %99, align 4, !tbaa !9
  %1307 = icmp sge i32 %1306, 0
  br i1 %1307, label %1328, label %1308

1308:                                             ; preds = %1305, %1302, %1299, %1296
  %1309 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.16, ptr noundef @.str.11, i32 noundef 692)
          to label %1310 unwind label %1324

1310:                                             ; preds = %1308
  br i1 %1309, label %1311, label %1328

1311:                                             ; preds = %1310
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !26
  br label %1328

1312:                                             ; preds = %1262
  %1313 = landingpad { ptr, i32 }
          cleanup
  %1314 = extractvalue { ptr, i32 } %1313, 0
  store ptr %1314, ptr %6, align 8
  %1315 = extractvalue { ptr, i32 } %1313, 1
  store i32 %1315, ptr %7, align 4
  br label %1387

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

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

1324:                                             ; preds = %1362, %1342, %1308, %1286
  %1325 = landingpad { ptr, i32 }
          cleanup
  %1326 = extractvalue { ptr, i32 } %1325, 0
  store ptr %1326, ptr %6, align 8
  %1327 = extractvalue { ptr, i32 } %1325, 1
  store i32 %1327, ptr %7, align 4
  br label %1384

1328:                                             ; preds = %1311, %1310, %1305
  br label %1329

1329:                                             ; preds = %1328
  br label %1330

1330:                                             ; preds = %1329
  %1331 = load i32, ptr %96, align 4, !tbaa !9
  %1332 = load i32, ptr %97, align 4, !tbaa !9
  %1333 = icmp eq i32 %1331, %1332
  br i1 %1333, label %1334, label %1362

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

1338:                                             ; preds = %1334
  %1339 = load i32, ptr %96, align 4, !tbaa !9
  %1340 = load i32, ptr %99, align 4, !tbaa !9
  %1341 = icmp eq i32 %1339, %1340
  br i1 %1341, label %1342, label %1362

1342:                                             ; preds = %1338
  %1343 = load i32, ptr %96, align 4, !tbaa !9
  %1344 = sext i32 %1343 to i64
  %1345 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1344)
          to label %1346 unwind label %1324

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

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

1357:                                             ; preds = %1351
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #9
  br label %1380

1358:                                             ; preds = %1351, %1346
  %1359 = landingpad { ptr, i32 }
          cleanup
  %1360 = extractvalue { ptr, i32 } %1359, 0
  store ptr %1360, ptr %6, align 8
  %1361 = extractvalue { ptr, i32 } %1359, 1
  store i32 %1361, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #9
  br label %1384

1362:                                             ; preds = %1338, %1334, %1330
  %1363 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1364 unwind label %1324

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

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

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

1376:                                             ; preds = %1369, %1364
  %1377 = landingpad { ptr, i32 }
          cleanup
  %1378 = extractvalue { ptr, i32 } %1377, 0
  store ptr %1378, ptr %6, align 8
  %1379 = extractvalue { ptr, i32 } %1377, 1
  store i32 %1379, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #9
  br label %1384

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

1381:                                             ; preds = %1380
  %1382 = load ptr, ptr %93, align 8, !tbaa !5
  %1383 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %1382, i32 1
  store ptr %1383, ptr %93, align 8, !tbaa !5
  br label %1249

1384:                                             ; preds = %1376, %1358, %1324
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #9
  br label %1385

1385:                                             ; preds = %1384, %1320
  call void @llvm.lifetime.end.p0(i64 4, ptr %98) #9
  br label %1386

1386:                                             ; preds = %1385, %1316
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #9
  br label %1387

1387:                                             ; preds = %1386, %1312
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %95) #9
  br label %1388

1388:                                             ; preds = %1387, %1258
  call void @llvm.lifetime.end.p0(i64 8, ptr %94) #9
  br label %1389

1389:                                             ; preds = %1388, %1254
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #9
  br label %1911

1390:                                             ; preds = %1253
  call void @llvm.lifetime.start.p0(i64 8, ptr %103) #9
  %1391 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  store ptr %1391, ptr %103, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %104) #9
  %1392 = load ptr, ptr %103, align 8, !tbaa !5
  %1393 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1392)
          to label %1394 unwind label %1403

1394:                                             ; preds = %1390
  store ptr %1393, ptr %104, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %105) #9
  %1395 = load ptr, ptr %103, align 8, !tbaa !5
  %1396 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1395)
          to label %1397 unwind label %1407

1397:                                             ; preds = %1394
  store ptr %1396, ptr %105, align 8, !tbaa !5
  br label %1398

1398:                                             ; preds = %1449, %1397
  %1399 = load ptr, ptr %104, align 8, !tbaa !5
  %1400 = load ptr, ptr %105, align 8, !tbaa !5
  %1401 = icmp ne ptr %1399, %1400
  br i1 %1401, label %1411, label %1402

1402:                                             ; preds = %1398
  store i32 43, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #9
  br label %1459

1403:                                             ; preds = %1390
  %1404 = landingpad { ptr, i32 }
          cleanup
  %1405 = extractvalue { ptr, i32 } %1404, 0
  store ptr %1405, ptr %6, align 8
  %1406 = extractvalue { ptr, i32 } %1404, 1
  store i32 %1406, ptr %7, align 4
  br label %1458

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

1411:                                             ; preds = %1398
  call void @llvm.lifetime.start.p0(i64 8, ptr %106) #9
  %1412 = load ptr, ptr %104, align 8, !tbaa !5
  store ptr %1412, ptr %106, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %107) #9
  %1413 = load ptr, ptr %106, align 8, !tbaa !5
  %1414 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %1413, i32 0, i32 0
  %1415 = load i32, ptr %1414, align 4, !tbaa !27
  %1416 = zext i32 %1415 to i64
  %1417 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %1416)
          to label %1418 unwind label %1427

1418:                                             ; preds = %1411
  %1419 = load i32, ptr %1417, align 4, !tbaa !9
  store i32 %1419, ptr %107, align 4, !tbaa !9
  br label %1420

1420:                                             ; preds = %1418
  %1421 = load i32, ptr %107, align 4, !tbaa !9
  %1422 = icmp sge i32 %1421, 0
  br i1 %1422, label %1431, label %1423

1423:                                             ; preds = %1420
  %1424 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.17, ptr noundef @.str.11, i32 noundef 701)
          to label %1425 unwind label %1427

1425:                                             ; preds = %1423
  br i1 %1424, label %1426, label %1431

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

1427:                                             ; preds = %1433, %1423, %1411
  %1428 = landingpad { ptr, i32 }
          cleanup
  %1429 = extractvalue { ptr, i32 } %1428, 0
  store ptr %1429, ptr %6, align 8
  %1430 = extractvalue { ptr, i32 } %1428, 1
  store i32 %1430, ptr %7, align 4
  br label %1456

1431:                                             ; preds = %1426, %1425, %1420
  br label %1432

1432:                                             ; preds = %1431
  br label %1433

1433:                                             ; preds = %1432
  %1434 = load i32, ptr %107, align 4, !tbaa !9
  %1435 = sext i32 %1434 to i64
  %1436 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %1435)
          to label %1437 unwind label %1427

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

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

1448:                                             ; preds = %1442
  call void @llvm.lifetime.end.p0(i64 4, ptr %109) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %107) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #9
  br label %1449

1449:                                             ; preds = %1448
  %1450 = load ptr, ptr %104, align 8, !tbaa !5
  %1451 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %1450, i32 1
  store ptr %1451, ptr %104, align 8, !tbaa !5
  br label %1398

1452:                                             ; preds = %1442, %1437
  %1453 = landingpad { ptr, i32 }
          cleanup
  %1454 = extractvalue { ptr, i32 } %1453, 0
  store ptr %1454, ptr %6, align 8
  %1455 = extractvalue { ptr, i32 } %1453, 1
  store i32 %1455, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %109) #9
  br label %1456

1456:                                             ; preds = %1452, %1427
  call void @llvm.lifetime.end.p0(i64 4, ptr %107) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #9
  br label %1457

1457:                                             ; preds = %1456, %1407
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #9
  br label %1458

1458:                                             ; preds = %1457, %1403
  call void @llvm.lifetime.end.p0(i64 8, ptr %104) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #9
  br label %1911

1459:                                             ; preds = %1402
  %1460 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1461 unwind label %883

1461:                                             ; preds = %1459
  %1462 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %1463 unwind label %883

1463:                                             ; preds = %1461
  %1464 = getelementptr inbounds %struct.Group, ptr %1462, i64 -1
  invoke void @"_ZN3JPH9QuickSortIPZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupZNS1_8OptimizeES3_E3$_1EEvT_S7_T0_"(ptr noundef %1460, ptr noundef %1464)
          to label %1465 unwind label %883

1465:                                             ; preds = %1463
  invoke void @_ZN3JPH22SoftBodySharedSettings25CalculateClosestKinematicEv(ptr noundef nonnull align 8 dereferenceable(304) %150)
          to label %1466 unwind label %883

1466:                                             ; preds = %1465
  call void @llvm.lifetime.start.p0(i64 8, ptr %111) #9
  store ptr %62, ptr %111, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %112) #9
  %1467 = load ptr, ptr %111, align 8, !tbaa !5
  %1468 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1467)
          to label %1469 unwind label %1478

1469:                                             ; preds = %1466
  store ptr %1468, ptr %112, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %113) #9
  %1470 = load ptr, ptr %111, align 8, !tbaa !5
  %1471 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1470)
          to label %1472 unwind label %1482

1472:                                             ; preds = %1469
  store ptr %1471, ptr %113, align 8, !tbaa !5
  br label %1473

1473:                                             ; preds = %1548, %1472
  %1474 = load ptr, ptr %112, align 8, !tbaa !5
  %1475 = load ptr, ptr %113, align 8, !tbaa !5
  %1476 = icmp ne ptr %1474, %1475
  br i1 %1476, label %1486, label %1477

1477:                                             ; preds = %1473
  store i32 47, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %111) #9
  br label %1557

1478:                                             ; preds = %1466
  %1479 = landingpad { ptr, i32 }
          cleanup
  %1480 = extractvalue { ptr, i32 } %1479, 0
  store ptr %1480, ptr %6, align 8
  %1481 = extractvalue { ptr, i32 } %1479, 1
  store i32 %1481, ptr %7, align 4
  br label %1556

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

1486:                                             ; preds = %1473
  call void @llvm.lifetime.start.p0(i64 8, ptr %114) #9
  %1487 = load ptr, ptr %112, align 8, !tbaa !5
  store ptr %1487, ptr %114, align 8, !tbaa !5
  %1488 = load ptr, ptr %114, align 8, !tbaa !5
  %1489 = getelementptr inbounds %struct.Group, ptr %1488, i32 0, i32 0
  %1490 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1489)
          to label %1491 unwind label %1551

1491:                                             ; preds = %1486
  %1492 = load ptr, ptr %114, align 8, !tbaa !5
  %1493 = getelementptr inbounds %struct.Group, ptr %1492, i32 0, i32 0
  %1494 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1493)
          to label %1495 unwind label %1551

1495:                                             ; preds = %1491
  %1496 = getelementptr inbounds %class.anon.116, ptr %115, i32 0, i32 0
  store ptr %150, ptr %1496, align 8, !tbaa !30
  %1497 = getelementptr inbounds %class.anon.116, ptr %115, i32 0, i32 0
  %1498 = load ptr, ptr %1497, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_2EEvT_S6_T0_"(ptr noundef %1490, ptr noundef %1494, ptr %1498)
          to label %1499 unwind label %1551

1499:                                             ; preds = %1495
  %1500 = load ptr, ptr %114, align 8, !tbaa !5
  %1501 = getelementptr inbounds %struct.Group, ptr %1500, i32 0, i32 1
  %1502 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1501)
          to label %1503 unwind label %1551

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

1507:                                             ; preds = %1503
  %1508 = getelementptr inbounds %class.anon.117, ptr %116, i32 0, i32 0
  store ptr %150, ptr %1508, align 8, !tbaa !32
  %1509 = getelementptr inbounds %class.anon.117, ptr %116, i32 0, i32 0
  %1510 = load ptr, ptr %1509, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_3EEvT_S6_T0_"(ptr noundef %1502, ptr noundef %1506, ptr %1510)
          to label %1511 unwind label %1551

1511:                                             ; preds = %1507
  %1512 = load ptr, ptr %114, align 8, !tbaa !5
  %1513 = getelementptr inbounds %struct.Group, ptr %1512, i32 0, i32 2
  %1514 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1513)
          to label %1515 unwind label %1551

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

1519:                                             ; preds = %1515
  %1520 = getelementptr inbounds %class.anon.118, ptr %117, i32 0, i32 0
  store ptr %150, ptr %1520, align 8, !tbaa !34
  %1521 = getelementptr inbounds %class.anon.118, ptr %117, i32 0, i32 0
  %1522 = load ptr, ptr %1521, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_4EEvT_S6_T0_"(ptr noundef %1514, ptr noundef %1518, ptr %1522)
          to label %1523 unwind label %1551

1523:                                             ; preds = %1519
  %1524 = load ptr, ptr %114, align 8, !tbaa !5
  %1525 = getelementptr inbounds %struct.Group, ptr %1524, i32 0, i32 3
  %1526 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1525)
          to label %1527 unwind label %1551

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

1531:                                             ; preds = %1527
  %1532 = getelementptr inbounds %class.anon.119, ptr %118, i32 0, i32 0
  store ptr %150, ptr %1532, align 8, !tbaa !36
  %1533 = getelementptr inbounds %class.anon.119, ptr %118, i32 0, i32 0
  %1534 = load ptr, ptr %1533, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_5EEvT_S6_T0_"(ptr noundef %1526, ptr noundef %1530, ptr %1534)
          to label %1535 unwind label %1551

1535:                                             ; preds = %1531
  %1536 = load ptr, ptr %114, align 8, !tbaa !5
  %1537 = getelementptr inbounds %struct.Group, ptr %1536, i32 0, i32 4
  %1538 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1537)
          to label %1539 unwind label %1551

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

1543:                                             ; preds = %1539
  %1544 = getelementptr inbounds %class.anon.120, ptr %119, i32 0, i32 0
  store ptr %150, ptr %1544, align 8, !tbaa !38
  %1545 = getelementptr inbounds %class.anon.120, ptr %119, i32 0, i32 0
  %1546 = load ptr, ptr %1545, align 8
  invoke void @"_ZN3JPH9QuickSortIPjZNS_22SoftBodySharedSettings8OptimizeERNS2_19OptimizationResultsEE3$_6EEvT_S6_T0_"(ptr noundef %1538, ptr noundef %1542, ptr %1546)
          to label %1547 unwind label %1551

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

1548:                                             ; preds = %1547
  %1549 = load ptr, ptr %112, align 8, !tbaa !5
  %1550 = getelementptr inbounds %struct.Group, ptr %1549, i32 1
  store ptr %1550, ptr %112, align 8, !tbaa !5
  br label %1473

1551:                                             ; preds = %1543, %1539, %1535, %1531, %1527, %1523, %1519, %1515, %1511, %1507, %1503, %1499, %1495, %1491, %1486
  %1552 = landingpad { ptr, i32 }
          cleanup
  %1553 = extractvalue { ptr, i32 } %1552, 0
  store ptr %1553, ptr %6, align 8
  %1554 = extractvalue { ptr, i32 } %1552, 1
  store i32 %1554, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #9
  br label %1555

1555:                                             ; preds = %1551, %1482
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #9
  br label %1556

1556:                                             ; preds = %1555, %1478
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %111) #9
  br label %1911

1557:                                             ; preds = %1477
  call void @llvm.lifetime.start.p0(i64 24, ptr %120) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #9
  %1558 = 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) %1558) #9
  %1559 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %1560 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %1561 unwind label %1619

1561:                                             ; preds = %1557
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %1559, i64 noundef %1560)
          to label %1562 unwind label %1619

1562:                                             ; preds = %1561
  %1563 = load ptr, ptr %4, align 8, !tbaa !5
  %1564 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1563, i32 0, i32 0
  %1565 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %1566 unwind label %1619

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

1567:                                             ; preds = %1566
  call void @llvm.lifetime.start.p0(i64 24, ptr %121) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #9
  %1568 = 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) %1568) #9
  %1569 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1570 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121)
          to label %1571 unwind label %1623

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

1572:                                             ; preds = %1571
  %1573 = load ptr, ptr %4, align 8, !tbaa !5
  %1574 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1573, i32 0, i32 1
  %1575 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121)
          to label %1576 unwind label %1623

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

1577:                                             ; preds = %1576
  call void @llvm.lifetime.start.p0(i64 24, ptr %122) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #9
  %1578 = 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) %1578) #9
  %1579 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1580 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122)
          to label %1581 unwind label %1627

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

1582:                                             ; preds = %1581
  %1583 = load ptr, ptr %4, align 8, !tbaa !5
  %1584 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1583, i32 0, i32 2
  %1585 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122)
          to label %1586 unwind label %1627

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

1587:                                             ; preds = %1586
  call void @llvm.lifetime.start.p0(i64 24, ptr %123) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #9
  %1588 = 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) %1588) #9
  %1589 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1590 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
          to label %1591 unwind label %1631

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

1592:                                             ; preds = %1591
  %1593 = load ptr, ptr %4, align 8, !tbaa !5
  %1594 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1593, i32 0, i32 3
  %1595 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
          to label %1596 unwind label %1631

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

1597:                                             ; preds = %1596
  call void @llvm.lifetime.start.p0(i64 24, ptr %124) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #9
  %1598 = 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) %1598) #9
  %1599 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  %1600 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %1601 unwind label %1635

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

1602:                                             ; preds = %1601
  %1603 = load ptr, ptr %4, align 8, !tbaa !5
  %1604 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1603, i32 0, i32 4
  %1605 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %1606 unwind label %1635

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

1607:                                             ; preds = %1606
  call void @llvm.lifetime.start.p0(i64 8, ptr %125) #9
  store ptr %62, ptr %125, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %126) #9
  %1608 = load ptr, ptr %125, align 8, !tbaa !5
  %1609 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1608)
          to label %1610 unwind label %1639

1610:                                             ; preds = %1607
  store ptr %1609, ptr %126, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %127) #9
  %1611 = load ptr, ptr %125, align 8, !tbaa !5
  %1612 = invoke noundef ptr @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1611)
          to label %1613 unwind label %1643

1613:                                             ; preds = %1610
  store ptr %1612, ptr %127, align 8, !tbaa !5
  br label %1614

1614:                                             ; preds = %1891, %1613
  %1615 = load ptr, ptr %126, align 8, !tbaa !5
  %1616 = load ptr, ptr %127, align 8, !tbaa !5
  %1617 = icmp ne ptr %1615, %1616
  br i1 %1617, label %1647, label %1618

1618:                                             ; preds = %1614
  store i32 49, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %127) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %126) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #9
  br label %1901

1619:                                             ; preds = %1566, %1562, %1561, %1557
  %1620 = landingpad { ptr, i32 }
          cleanup
  %1621 = extractvalue { ptr, i32 } %1620, 0
  store ptr %1621, ptr %6, align 8
  %1622 = extractvalue { ptr, i32 } %1620, 1
  store i32 %1622, ptr %7, align 4
  br label %1910

1623:                                             ; preds = %1576, %1572, %1571, %1567
  %1624 = landingpad { ptr, i32 }
          cleanup
  %1625 = extractvalue { ptr, i32 } %1624, 0
  store ptr %1625, ptr %6, align 8
  %1626 = extractvalue { ptr, i32 } %1624, 1
  store i32 %1626, ptr %7, align 4
  br label %1909

1627:                                             ; preds = %1586, %1582, %1581, %1577
  %1628 = landingpad { ptr, i32 }
          cleanup
  %1629 = extractvalue { ptr, i32 } %1628, 0
  store ptr %1629, ptr %6, align 8
  %1630 = extractvalue { ptr, i32 } %1628, 1
  store i32 %1630, ptr %7, align 4
  br label %1908

1631:                                             ; preds = %1596, %1592, %1591, %1587
  %1632 = landingpad { ptr, i32 }
          cleanup
  %1633 = extractvalue { ptr, i32 } %1632, 0
  store ptr %1633, ptr %6, align 8
  %1634 = extractvalue { ptr, i32 } %1632, 1
  store i32 %1634, ptr %7, align 4
  br label %1907

1635:                                             ; preds = %1903, %1901, %1606, %1602, %1601, %1597
  %1636 = landingpad { ptr, i32 }
          cleanup
  %1637 = extractvalue { ptr, i32 } %1636, 0
  store ptr %1637, ptr %6, align 8
  %1638 = extractvalue { ptr, i32 } %1636, 1
  store i32 %1638, ptr %7, align 4
  br label %1906

1639:                                             ; preds = %1607
  %1640 = landingpad { ptr, i32 }
          cleanup
  %1641 = extractvalue { ptr, i32 } %1640, 0
  store ptr %1641, ptr %6, align 8
  %1642 = extractvalue { ptr, i32 } %1640, 1
  store i32 %1642, ptr %7, align 4
  br label %1900

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

1647:                                             ; preds = %1614
  call void @llvm.lifetime.start.p0(i64 8, ptr %128) #9
  %1648 = load ptr, ptr %126, align 8, !tbaa !5
  store ptr %1648, ptr %128, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %129) #9
  %1649 = load ptr, ptr %128, align 8, !tbaa !5
  %1650 = getelementptr inbounds %struct.Group, ptr %1649, i32 0, i32 0
  store ptr %1650, ptr %129, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %130) #9
  %1651 = load ptr, ptr %129, align 8, !tbaa !5
  %1652 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1651)
          to label %1653 unwind label %1662

1653:                                             ; preds = %1647
  store ptr %1652, ptr %130, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %131) #9
  %1654 = load ptr, ptr %129, align 8, !tbaa !5
  %1655 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1654)
          to label %1656 unwind label %1666

1656:                                             ; preds = %1653
  store ptr %1655, ptr %131, align 8, !tbaa !5
  br label %1657

1657:                                             ; preds = %1682, %1656
  %1658 = load ptr, ptr %130, align 8, !tbaa !5
  %1659 = load ptr, ptr %131, align 8, !tbaa !5
  %1660 = icmp ne ptr %1658, %1659
  br i1 %1660, label %1670, label %1661

1661:                                             ; preds = %1657
  store i32 51, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %131) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %130) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %129) #9
  br label %1691

1662:                                             ; preds = %1647
  %1663 = landingpad { ptr, i32 }
          cleanup
  %1664 = extractvalue { ptr, i32 } %1663, 0
  store ptr %1664, ptr %6, align 8
  %1665 = extractvalue { ptr, i32 } %1663, 1
  store i32 %1665, ptr %7, align 4
  br label %1690

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

1670:                                             ; preds = %1657
  call void @llvm.lifetime.start.p0(i64 4, ptr %132) #9
  %1671 = load ptr, ptr %130, align 8, !tbaa !5
  %1672 = load i32, ptr %1671, align 4, !tbaa !9
  store i32 %1672, ptr %132, align 4, !tbaa !9
  %1673 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %1674 = load i32, ptr %132, align 4, !tbaa !9
  %1675 = zext i32 %1674 to i64
  %1676 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %1675)
          to label %1677 unwind label %1685

1677:                                             ; preds = %1670
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1673, ptr noundef nonnull align 4 dereferenceable(16) %1676)
          to label %1678 unwind label %1685

1678:                                             ; preds = %1677
  %1679 = load ptr, ptr %4, align 8, !tbaa !5
  %1680 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1679, i32 0, i32 0
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1680, ptr noundef nonnull align 4 dereferenceable(4) %132)
          to label %1681 unwind label %1685

1681:                                             ; preds = %1678
  call void @llvm.lifetime.end.p0(i64 4, ptr %132) #9
  br label %1682

1682:                                             ; preds = %1681
  %1683 = load ptr, ptr %130, align 8, !tbaa !5
  %1684 = getelementptr inbounds i32, ptr %1683, i32 1
  store ptr %1684, ptr %130, align 8, !tbaa !5
  br label %1657

1685:                                             ; preds = %1678, %1677, %1670
  %1686 = landingpad { ptr, i32 }
          cleanup
  %1687 = extractvalue { ptr, i32 } %1686, 0
  store ptr %1687, ptr %6, align 8
  %1688 = extractvalue { ptr, i32 } %1686, 1
  store i32 %1688, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %132) #9
  br label %1689

1689:                                             ; preds = %1685, %1666
  call void @llvm.lifetime.end.p0(i64 8, ptr %131) #9
  br label %1690

1690:                                             ; preds = %1689, %1662
  call void @llvm.lifetime.end.p0(i64 8, ptr %130) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %129) #9
  br label %1898

1691:                                             ; preds = %1661
  call void @llvm.lifetime.start.p0(i64 8, ptr %133) #9
  %1692 = load ptr, ptr %128, align 8, !tbaa !5
  %1693 = getelementptr inbounds %struct.Group, ptr %1692, i32 0, i32 1
  store ptr %1693, ptr %133, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %134) #9
  %1694 = load ptr, ptr %133, align 8, !tbaa !5
  %1695 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1694)
          to label %1696 unwind label %1705

1696:                                             ; preds = %1691
  store ptr %1695, ptr %134, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %135) #9
  %1697 = load ptr, ptr %133, align 8, !tbaa !5
  %1698 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1697)
          to label %1699 unwind label %1709

1699:                                             ; preds = %1696
  store ptr %1698, ptr %135, align 8, !tbaa !5
  br label %1700

1700:                                             ; preds = %1725, %1699
  %1701 = load ptr, ptr %134, align 8, !tbaa !5
  %1702 = load ptr, ptr %135, align 8, !tbaa !5
  %1703 = icmp ne ptr %1701, %1702
  br i1 %1703, label %1713, label %1704

1704:                                             ; preds = %1700
  store i32 53, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %135) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %134) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %133) #9
  br label %1734

1705:                                             ; preds = %1691
  %1706 = landingpad { ptr, i32 }
          cleanup
  %1707 = extractvalue { ptr, i32 } %1706, 0
  store ptr %1707, ptr %6, align 8
  %1708 = extractvalue { ptr, i32 } %1706, 1
  store i32 %1708, ptr %7, align 4
  br label %1733

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

1713:                                             ; preds = %1700
  call void @llvm.lifetime.start.p0(i64 4, ptr %136) #9
  %1714 = load ptr, ptr %134, align 8, !tbaa !5
  %1715 = load i32, ptr %1714, align 4, !tbaa !9
  store i32 %1715, ptr %136, align 4, !tbaa !9
  %1716 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1717 = load i32, ptr %136, align 4, !tbaa !9
  %1718 = zext i32 %1717 to i64
  %1719 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %1718)
          to label %1720 unwind label %1728

1720:                                             ; preds = %1713
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1716, ptr noundef nonnull align 4 dereferenceable(12) %1719)
          to label %1721 unwind label %1728

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

1724:                                             ; preds = %1721
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #9
  br label %1725

1725:                                             ; preds = %1724
  %1726 = load ptr, ptr %134, align 8, !tbaa !5
  %1727 = getelementptr inbounds i32, ptr %1726, i32 1
  store ptr %1727, ptr %134, align 8, !tbaa !5
  br label %1700

1728:                                             ; preds = %1721, %1720, %1713
  %1729 = landingpad { ptr, i32 }
          cleanup
  %1730 = extractvalue { ptr, i32 } %1729, 0
  store ptr %1730, ptr %6, align 8
  %1731 = extractvalue { ptr, i32 } %1729, 1
  store i32 %1731, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #9
  br label %1732

1732:                                             ; preds = %1728, %1709
  call void @llvm.lifetime.end.p0(i64 8, ptr %135) #9
  br label %1733

1733:                                             ; preds = %1732, %1705
  call void @llvm.lifetime.end.p0(i64 8, ptr %134) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %133) #9
  br label %1898

1734:                                             ; preds = %1704
  call void @llvm.lifetime.start.p0(i64 8, ptr %137) #9
  %1735 = load ptr, ptr %128, align 8, !tbaa !5
  %1736 = getelementptr inbounds %struct.Group, ptr %1735, i32 0, i32 2
  store ptr %1736, ptr %137, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %138) #9
  %1737 = load ptr, ptr %137, align 8, !tbaa !5
  %1738 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1737)
          to label %1739 unwind label %1748

1739:                                             ; preds = %1734
  store ptr %1738, ptr %138, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %139) #9
  %1740 = load ptr, ptr %137, align 8, !tbaa !5
  %1741 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1740)
          to label %1742 unwind label %1752

1742:                                             ; preds = %1739
  store ptr %1741, ptr %139, align 8, !tbaa !5
  br label %1743

1743:                                             ; preds = %1768, %1742
  %1744 = load ptr, ptr %138, align 8, !tbaa !5
  %1745 = load ptr, ptr %139, align 8, !tbaa !5
  %1746 = icmp ne ptr %1744, %1745
  br i1 %1746, label %1756, label %1747

1747:                                             ; preds = %1743
  store i32 55, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %139) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %138) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %137) #9
  br label %1777

1748:                                             ; preds = %1734
  %1749 = landingpad { ptr, i32 }
          cleanup
  %1750 = extractvalue { ptr, i32 } %1749, 0
  store ptr %1750, ptr %6, align 8
  %1751 = extractvalue { ptr, i32 } %1749, 1
  store i32 %1751, ptr %7, align 4
  br label %1776

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

1756:                                             ; preds = %1743
  call void @llvm.lifetime.start.p0(i64 4, ptr %140) #9
  %1757 = load ptr, ptr %138, align 8, !tbaa !5
  %1758 = load i32, ptr %1757, align 4, !tbaa !9
  store i32 %1758, ptr %140, align 4, !tbaa !9
  %1759 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 4
  %1760 = load i32, ptr %140, align 4, !tbaa !9
  %1761 = zext i32 %1760 to i64
  %1762 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %1761)
          to label %1763 unwind label %1771

1763:                                             ; preds = %1756
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1759, ptr noundef nonnull align 4 dereferenceable(24) %1762)
          to label %1764 unwind label %1771

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

1767:                                             ; preds = %1764
  call void @llvm.lifetime.end.p0(i64 4, ptr %140) #9
  br label %1768

1768:                                             ; preds = %1767
  %1769 = load ptr, ptr %138, align 8, !tbaa !5
  %1770 = getelementptr inbounds i32, ptr %1769, i32 1
  store ptr %1770, ptr %138, align 8, !tbaa !5
  br label %1743

1771:                                             ; preds = %1764, %1763, %1756
  %1772 = landingpad { ptr, i32 }
          cleanup
  %1773 = extractvalue { ptr, i32 } %1772, 0
  store ptr %1773, ptr %6, align 8
  %1774 = extractvalue { ptr, i32 } %1772, 1
  store i32 %1774, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %140) #9
  br label %1775

1775:                                             ; preds = %1771, %1752
  call void @llvm.lifetime.end.p0(i64 8, ptr %139) #9
  br label %1776

1776:                                             ; preds = %1775, %1748
  call void @llvm.lifetime.end.p0(i64 8, ptr %138) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %137) #9
  br label %1898

1777:                                             ; preds = %1747
  call void @llvm.lifetime.start.p0(i64 8, ptr %141) #9
  %1778 = load ptr, ptr %128, align 8, !tbaa !5
  %1779 = getelementptr inbounds %struct.Group, ptr %1778, i32 0, i32 3
  store ptr %1779, ptr %141, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %142) #9
  %1780 = load ptr, ptr %141, align 8, !tbaa !5
  %1781 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1780)
          to label %1782 unwind label %1791

1782:                                             ; preds = %1777
  store ptr %1781, ptr %142, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %143) #9
  %1783 = load ptr, ptr %141, align 8, !tbaa !5
  %1784 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1783)
          to label %1785 unwind label %1795

1785:                                             ; preds = %1782
  store ptr %1784, ptr %143, align 8, !tbaa !5
  br label %1786

1786:                                             ; preds = %1811, %1785
  %1787 = load ptr, ptr %142, align 8, !tbaa !5
  %1788 = load ptr, ptr %143, align 8, !tbaa !5
  %1789 = icmp ne ptr %1787, %1788
  br i1 %1789, label %1799, label %1790

1790:                                             ; preds = %1786
  store i32 57, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %143) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %142) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %141) #9
  br label %1820

1791:                                             ; preds = %1777
  %1792 = landingpad { ptr, i32 }
          cleanup
  %1793 = extractvalue { ptr, i32 } %1792, 0
  store ptr %1793, ptr %6, align 8
  %1794 = extractvalue { ptr, i32 } %1792, 1
  store i32 %1794, ptr %7, align 4
  br label %1819

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

1799:                                             ; preds = %1786
  call void @llvm.lifetime.start.p0(i64 4, ptr %144) #9
  %1800 = load ptr, ptr %142, align 8, !tbaa !5
  %1801 = load i32, ptr %1800, align 4, !tbaa !9
  store i32 %1801, ptr %144, align 4, !tbaa !9
  %1802 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 5
  %1803 = load i32, ptr %144, align 4, !tbaa !9
  %1804 = zext i32 %1803 to i64
  %1805 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %1804)
          to label %1806 unwind label %1814

1806:                                             ; preds = %1799
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1802, ptr noundef nonnull align 4 dereferenceable(24) %1805)
          to label %1807 unwind label %1814

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

1810:                                             ; preds = %1807
  call void @llvm.lifetime.end.p0(i64 4, ptr %144) #9
  br label %1811

1811:                                             ; preds = %1810
  %1812 = load ptr, ptr %142, align 8, !tbaa !5
  %1813 = getelementptr inbounds i32, ptr %1812, i32 1
  store ptr %1813, ptr %142, align 8, !tbaa !5
  br label %1786

1814:                                             ; preds = %1807, %1806, %1799
  %1815 = landingpad { ptr, i32 }
          cleanup
  %1816 = extractvalue { ptr, i32 } %1815, 0
  store ptr %1816, ptr %6, align 8
  %1817 = extractvalue { ptr, i32 } %1815, 1
  store i32 %1817, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %144) #9
  br label %1818

1818:                                             ; preds = %1814, %1795
  call void @llvm.lifetime.end.p0(i64 8, ptr %143) #9
  br label %1819

1819:                                             ; preds = %1818, %1791
  call void @llvm.lifetime.end.p0(i64 8, ptr %142) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %141) #9
  br label %1898

1820:                                             ; preds = %1790
  call void @llvm.lifetime.start.p0(i64 8, ptr %145) #9
  %1821 = load ptr, ptr %128, align 8, !tbaa !5
  %1822 = getelementptr inbounds %struct.Group, ptr %1821, i32 0, i32 4
  store ptr %1822, ptr %145, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %146) #9
  %1823 = load ptr, ptr %145, align 8, !tbaa !5
  %1824 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1823)
          to label %1825 unwind label %1834

1825:                                             ; preds = %1820
  store ptr %1824, ptr %146, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %147) #9
  %1826 = load ptr, ptr %145, align 8, !tbaa !5
  %1827 = invoke noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1826)
          to label %1828 unwind label %1838

1828:                                             ; preds = %1825
  store ptr %1827, ptr %147, align 8, !tbaa !5
  br label %1829

1829:                                             ; preds = %1854, %1828
  %1830 = load ptr, ptr %146, align 8, !tbaa !5
  %1831 = load ptr, ptr %147, align 8, !tbaa !5
  %1832 = icmp ne ptr %1830, %1831
  br i1 %1832, label %1842, label %1833

1833:                                             ; preds = %1829
  store i32 59, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %147) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %146) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %145) #9
  br label %1863

1834:                                             ; preds = %1820
  %1835 = landingpad { ptr, i32 }
          cleanup
  %1836 = extractvalue { ptr, i32 } %1835, 0
  store ptr %1836, ptr %6, align 8
  %1837 = extractvalue { ptr, i32 } %1835, 1
  store i32 %1837, ptr %7, align 4
  br label %1862

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

1842:                                             ; preds = %1829
  call void @llvm.lifetime.start.p0(i64 4, ptr %148) #9
  %1843 = load ptr, ptr %146, align 8, !tbaa !5
  %1844 = load i32, ptr %1843, align 4, !tbaa !9
  store i32 %1844, ptr %148, align 4, !tbaa !9
  %1845 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 6
  %1846 = load i32, ptr %148, align 4, !tbaa !9
  %1847 = zext i32 %1846 to i64
  %1848 = invoke noundef nonnull align 4 dereferenceable(52) ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %1847)
          to label %1849 unwind label %1857

1849:                                             ; preds = %1842
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1845, ptr noundef nonnull align 4 dereferenceable(52) %1848)
          to label %1850 unwind label %1857

1850:                                             ; preds = %1849
  %1851 = load ptr, ptr %4, align 8, !tbaa !5
  %1852 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::OptimizationResults", ptr %1851, i32 0, i32 4
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1852, ptr noundef nonnull align 4 dereferenceable(4) %148)
          to label %1853 unwind label %1857

1853:                                             ; preds = %1850
  call void @llvm.lifetime.end.p0(i64 4, ptr %148) #9
  br label %1854

1854:                                             ; preds = %1853
  %1855 = load ptr, ptr %146, align 8, !tbaa !5
  %1856 = getelementptr inbounds i32, ptr %1855, i32 1
  store ptr %1856, ptr %146, align 8, !tbaa !5
  br label %1829

1857:                                             ; preds = %1850, %1849, %1842
  %1858 = landingpad { ptr, i32 }
          cleanup
  %1859 = extractvalue { ptr, i32 } %1858, 0
  store ptr %1859, ptr %6, align 8
  %1860 = extractvalue { ptr, i32 } %1858, 1
  store i32 %1860, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %148) #9
  br label %1861

1861:                                             ; preds = %1857, %1838
  call void @llvm.lifetime.end.p0(i64 8, ptr %147) #9
  br label %1862

1862:                                             ; preds = %1861, %1834
  call void @llvm.lifetime.end.p0(i64 8, ptr %146) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %145) #9
  br label %1898

1863:                                             ; preds = %1833
  %1864 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 20, ptr %149) #9
  %1865 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 0
  %1866 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 3
  %1867 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1866)
          to label %1868 unwind label %1894

1868:                                             ; preds = %1863
  %1869 = trunc i64 %1867 to i32
  store i32 %1869, ptr %1865, align 4, !tbaa !40
  %1870 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::UpdateGroup", ptr %149, i32 0, i32 1
  %1871 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 8
  %1872 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1871)
          to label %1873 unwind label %1894

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

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

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

1888:                                             ; preds = %1883
  %1889 = trunc i64 %1887 to i32
  store i32 %1889, ptr %1885, align 4, !tbaa !45
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings11UpdateGroupENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %1864, ptr noundef nonnull align 4 dereferenceable(20) %149)
          to label %1890 unwind label %1894

1890:                                             ; preds = %1888
  call void @llvm.lifetime.end.p0(i64 20, ptr %149) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %128) #9
  br label %1891

1891:                                             ; preds = %1890
  %1892 = load ptr, ptr %126, align 8, !tbaa !5
  %1893 = getelementptr inbounds %struct.Group, ptr %1892, i32 1
  store ptr %1893, ptr %126, align 8, !tbaa !5
  br label %1614

1894:                                             ; preds = %1888, %1883, %1878, %1873, %1868, %1863
  %1895 = landingpad { ptr, i32 }
          cleanup
  %1896 = extractvalue { ptr, i32 } %1895, 0
  store ptr %1896, ptr %6, align 8
  %1897 = extractvalue { ptr, i32 } %1895, 1
  store i32 %1897, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %149) #9
  br label %1898

1898:                                             ; preds = %1894, %1862, %1819, %1776, %1733, %1690
  call void @llvm.lifetime.end.p0(i64 8, ptr %128) #9
  br label %1899

1899:                                             ; preds = %1898, %1643
  call void @llvm.lifetime.end.p0(i64 8, ptr %127) #9
  br label %1900

1900:                                             ; preds = %1899, %1639
  call void @llvm.lifetime.end.p0(i64 8, ptr %126) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #9
  br label %1906

1901:                                             ; preds = %1618
  %1902 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %150, i32 0, i32 11
  invoke void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings16ClosestKinematicENS_12STLAllocatorIS2_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1902)
          to label %1903 unwind label %1635

1903:                                             ; preds = %1901
  %1904 = 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) %1904)
          to label %1905 unwind label %1635

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

1906:                                             ; preds = %1900, %1635
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %124) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %124) #9
  br label %1907

1907:                                             ; preds = %1906, %1631
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %123) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %123) #9
  br label %1908

1908:                                             ; preds = %1907, %1627
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %122) #9
  br label %1909

1909:                                             ; preds = %1908, %1623
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %121) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %121) #9
  br label %1910

1910:                                             ; preds = %1909, %1619
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %120) #9
  br label %1911

1911:                                             ; preds = %1910, %1556, %1458, %1389, %1240, %1091, %982, %883
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #9
  br label %1912

1912:                                             ; preds = %1911, %858, %850
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %1913

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

1914:                                             ; preds = %1913, %413, %327, %241, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %1915

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

1916:                                             ; preds = %1915
  %1917 = load ptr, ptr %6, align 8
  %1918 = load i32, ptr %7, align 4
  %1919 = insertvalue { ptr, i32 } poison, ptr %1917, 0
  %1920 = insertvalue { ptr, i32 } %1919, i32 %1918, 1
  resume { ptr, i32 } %1920

1921:                                             ; preds = %843, %838
  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 { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32)) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH4Vec324GetHighestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16)) #8 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = 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 2157814028}
!24 = !{i64 2157814380}
!25 = !{i64 2157814776}
!26 = !{i64 2157815172}
!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 2157815502}
!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.101" = type { i64, i64, ptr }
%class.anon.104 = type { ptr }
%"class.JPH::Array.105" = 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.111" = 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 [108 x i8], align 1
@__const._ZN3JPH22SoftBodySharedSettings8OptimizeERNS0_19OptimizationResultsE.current_vertex_position = external hidden unnamed_addr constant %"class.JPH::Float3", align 4
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.17 = 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 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 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 @_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.101", align 8
  %4 = alloca %class.anon.104, align 8
  %5 = alloca %"class.JPH::Array.105", 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.111", 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) #9
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %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) #9
  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)
  %.not489 = icmp eq ptr %43, %44
  br i1 %.not489, 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)
  %.not382491 = icmp eq ptr %46, %47
  br i1 %.not382491, label %._crit_edge495, label %.lr.ph494

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

.lr.ph:                                           ; preds = %41, %53
  %.0336490 = phi ptr [ %54, %53 ], [ %43, %41 ]
  %50 = load i32, ptr %.0336490, align 4, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %.0336490, 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 %.0336490, 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_edge495:                                   ; 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)
  %.not383496 = icmp eq ptr %58, %59
  br i1 %.not383496, label %._crit_edge500, label %.lr.ph499

.lr.ph494:                                        ; preds = %._crit_edge, %63
  %.0338492 = phi ptr [ %64, %63 ], [ %46, %._crit_edge ]
  %60 = load i32, ptr %.0338492, align 4, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %.0338492, 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.ph494
  %64 = getelementptr inbounds i8, ptr %.0338492, i64 12
  %.not382 = icmp eq ptr %64, %47
  br i1 %.not382, label %._crit_edge495, label %.lr.ph494

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

._crit_edge500:                                   ; preds = %90, %._crit_edge495
  %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)
  %.not384501 = icmp eq ptr %68, %69
  br i1 %.not384501, label %._crit_edge505, label %.lr.ph504

.lr.ph499:                                        ; preds = %._crit_edge495, %90
  %.0339497 = phi ptr [ %91, %90 ], [ %58, %._crit_edge495 ]
  %70 = load i32, ptr %.0339497, align 4, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %.0339497, 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.ph499
  %74 = load i32, ptr %.0339497, align 4, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %.0339497, 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 %.0339497, align 4, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %.0339497, 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 %.0339497, i64 24
  %.not383 = icmp eq ptr %91, %59
  br i1 %.not383, label %._crit_edge500, label %.lr.ph499

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

._crit_edge505:                                   ; preds = %115, %._crit_edge500
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %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) #9
  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.ph504:                                        ; preds = %._crit_edge500, %115
  %.0341502 = phi ptr [ %116, %115 ], [ %68, %._crit_edge500 ]
  %95 = load i32, ptr %.0341502, align 4, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %.0341502, 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.ph504
  %99 = load i32, ptr %.0341502, align 4, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %.0341502, 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 %.0341502, align 4, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %.0341502, 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 %.0341502, i64 24
  %.not384 = icmp eq ptr %116, %69
  br i1 %.not384, label %._crit_edge505, label %.lr.ph504

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

119:                                              ; preds = %._crit_edge505
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %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
  %.0342 = phi i32 [ 0, %119 ], [ %.2344.ph, %select.unfold ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  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
  %.not594 = icmp eq i64 %126, 0
  br i1 %.not594, label %._crit_edge508, label %.lr.ph507

._crit_edge508:                                   ; preds = %144, %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %127 = invoke { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %148 unwind label %158

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

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

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

.lr.ph507:                                        ; 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.ph507
  %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.ph507, label %._crit_edge508, !llvm.loop !11

148:                                              ; preds = %._crit_edge508
  %149 = extractvalue { double, double } %127, 0
  store double %149, ptr %10, align 16
  %150 = extractvalue { double, double } %127, 1
  store double %150, ptr %121, align 8
  %151 = invoke noundef i32 @_ZNK3JPH4Vec324GetHighestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
          to label %152 unwind label %160

152:                                              ; preds = %148
  %153 = call noundef i32 @_ZNK3JPH4Vec323GetLowestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %154 = icmp eq i32 %153, %151
  br i1 %154, label %155, label %162

155:                                              ; preds = %152
  %156 = add i32 %151, 1
  %157 = urem i32 %156, 3
  br label %162

158:                                              ; preds = %._crit_edge508
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %322

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

162:                                              ; preds = %155, %152
  %.0349 = phi i32 [ %157, %155 ], [ %153, %152 ]
  %163 = add i32 %151, %.0349
  %164 = sub i32 3, %163
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 -1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #9
  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
  %.not595 = icmp eq i64 %166, 0
  br i1 %.not595, label %._crit_edge512, label %.lr.ph511

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

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

.lr.ph511:                                        ; preds = %162, %215
  %indvars.iv615 = phi i64 [ %indvars.iv.next616, %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.iv615)
          to label %172 unwind label %169

172:                                              ; preds = %.lr.ph511
  %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.iv615)
          to label %177 unwind label %207

177:                                              ; preds = %175
  %178 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %176, i32 noundef %151)
          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 %.0349)
          to label %183 unwind label %213

183:                                              ; preds = %181
  %184 = invoke noundef float @_ZNK3JPH6Float3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %151)
          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 %151)
          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 %.0349)
          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.iv615)
          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.iv615 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.next616 = add nuw nsw i64 %indvars.iv615, 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.next616, %217
  br i1 %218, label %.lr.ph511, label %._crit_edge512, !llvm.loop !16

219:                                              ; preds = %._crit_edge512
  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 %.0342, ptr %223, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %319, %224
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  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
  %.not596 = icmp eq i64 %227, 0
  br i1 %.not596, label %._crit_edge533, label %.lr.ph532

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

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

.lr.ph532:                                        ; preds = %225, %._crit_edge525
  %indvars.iv618 = phi i64 [ %indvars.iv.next619, %._crit_edge525 ], [ 0, %225 ]
  %.0354530 = phi i32 [ %.1355.lcssa, %._crit_edge525 ], [ 0, %225 ]
  %.0359529 = phi float [ %.1360.lcssa, %._crit_edge525 ], [ 0x47EFFFFFE0000000, %225 ]
  %231 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv618)
          to label %232 unwind label %242

232:                                              ; preds = %.lr.ph532
  %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)
  %.not386519 = icmp eq ptr %237, %238
  br i1 %.not386519, label %._crit_edge525, label %.lr.ph524

._crit_edge525:                                   ; preds = %299, %236
  %.1360.lcssa = phi float [ %.0359529, %236 ], [ %.3362, %299 ]
  %.1355.lcssa = phi i32 [ %.0354530, %236 ], [ %.3357, %299 ]
  %indvars.iv.next619 = add nuw nsw i64 %indvars.iv618, 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.next619, %240
  br i1 %241, label %.lr.ph532, label %._crit_edge533, !llvm.loop !17

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

.lr.ph524:                                        ; preds = %236, %299
  %.1355522 = phi i32 [ %.3357, %299 ], [ %.0354530, %236 ]
  %.1360521 = phi float [ %.3362, %299 ], [ %.0359529, %236 ]
  %.0364520 = phi ptr [ %300, %299 ], [ %237, %236 ]
  %244 = load i32, ptr %.0364520, 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.ph524
  %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)
  %.not387513 = icmp eq ptr %253, %254
  br i1 %.not387513, label %._crit_edge518, label %.lr.ph517

._crit_edge518:                                   ; preds = %272, %252
  %.0365.lcssa = phi i32 [ 0, %252 ], [ %.1366, %272 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #9
  %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.ph524
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %320

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

.lr.ph517:                                        ; preds = %252, %272
  %.0365515 = phi i32 [ %.1366, %272 ], [ 0, %252 ]
  %.0367514 = phi ptr [ %273, %272 ], [ %253, %252 ]
  %260 = load i32, ptr %.0367514, 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.ph517
  %264 = load i32, ptr %262, align 4, !tbaa !9
  %265 = icmp eq i32 %264, %.0342
  br i1 %265, label %266, label %272

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

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

272:                                              ; preds = %266, %263
  %.1366 = phi i32 [ %269, %266 ], [ %.0365515, %263 ]
  %273 = getelementptr inbounds i8, ptr %.0367514, i64 8
  %.not387 = icmp eq ptr %273, %254
  br i1 %.not387, label %._crit_edge518, label %.lr.ph517

274:                                              ; preds = %._crit_edge518
  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) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  %290 = load i32, ptr %13, align 4, !tbaa !9
  %291 = icmp eq i32 %290, -1
  %292 = icmp ugt i32 %.0365.lcssa, %.1355522
  %or.cond446 = select i1 %291, i1 true, i1 %292
  br i1 %or.cond446, label %296, label %293

293:                                              ; preds = %286
  %294 = icmp eq i32 %.0365.lcssa, %.1355522
  %295 = fcmp olt float %289, %.1360521
  %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_edge518
  %298 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %320

299:                                              ; preds = %293, %296, %247
  %.3362 = phi float [ %.1360521, %247 ], [ %289, %296 ], [ %.1360521, %293 ]
  %.3357 = phi i32 [ %.1355522, %247 ], [ %.0365.lcssa, %296 ], [ %.1355522, %293 ]
  %300 = getelementptr inbounds i8, ptr %.0364520, i64 8
  %.not386 = icmp eq ptr %300, %238
  br i1 %.not386, label %._crit_edge525, label %.lr.ph524

301:                                              ; preds = %._crit_edge533
  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 %.0342, 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_edge533
  %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 %.0342, 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) #9
  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) #9
  br label %321

select.unfold:                                    ; preds = %318, %316
  %.2344.ph = phi i32 [ %317, %316 ], [ %.0342, %318 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %124

321:                                              ; preds = %169, %209, %213, %211, %207, %320, %229
  %.pn431.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) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br label %322

322:                                              ; preds = %160, %321, %158
  %.pn431.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %159, %158 ], [ %.pn431.pn.pn.pn.pn, %321 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %323

323:                                              ; preds = %322, %132, %130
  %.pn439 = phi { ptr, i32 } [ %133, %132 ], [ %.pn431.pn.pn.pn.pn.pn.pn, %322 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %773

324:                                              ; preds = %._crit_edge512
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  %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) #9
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %spec.select = add i32 %.0342, 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)
  %.not393534 = icmp eq ptr %336, %337
  br i1 %.not393534, label %._crit_edge538, label %.lr.ph537

._crit_edge538:                                   ; 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)
  %.not394539 = icmp eq ptr %338, %339
  br i1 %.not394539, label %._crit_edge543, label %.lr.ph542

340:                                              ; preds = %625, %._crit_edge558, %332
  %341 = landingpad { ptr, i32 }
          cleanup
  br label %772

.lr.ph537:                                        ; preds = %335, %390
  %.0368535 = phi ptr [ %391, %390 ], [ %336, %335 ]
  %342 = load i32, ptr %.0368535, 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.ph537
  %346 = load i32, ptr %344, align 4, !tbaa !9
  %347 = getelementptr inbounds i8, ptr %.0368535, 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.15, ptr noundef nonnull @.str.11, i32 noundef 658)
          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}"() #9, !srcloc !21
  br label %363

359:                                              ; preds = %.lr.ph537
  %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) #9
  %369 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %370 = ptrtoint ptr %.0368535 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) #9
  br label %390

376:                                              ; preds = %368
  %377 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  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) #9
  %381 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %382 = ptrtoint ptr %.0368535 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) #9
  br label %390

388:                                              ; preds = %380
  %389 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  br label %772

390:                                              ; preds = %387, %375
  %391 = getelementptr inbounds i8, ptr %.0368535, i64 16
  %.not393 = icmp eq ptr %391, %337
  br i1 %.not393, label %._crit_edge538, label %.lr.ph537

._crit_edge543:                                   ; preds = %444, %._crit_edge538
  %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)
  %.not395544 = icmp eq ptr %392, %393
  br i1 %.not395544, label %._crit_edge548, label %.lr.ph547

.lr.ph542:                                        ; preds = %._crit_edge538, %444
  %.0369540 = phi ptr [ %445, %444 ], [ %338, %._crit_edge538 ]
  %394 = load i32, ptr %.0369540, 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.ph542
  %398 = load i32, ptr %396, align 4, !tbaa !9
  %399 = getelementptr inbounds i8, ptr %.0369540, 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.15, ptr noundef nonnull @.str.11, i32 noundef 668)
          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}"() #9, !srcloc !22
  br label %415

411:                                              ; preds = %.lr.ph542
  %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) #9
  %422 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %423 = ptrtoint ptr %.0369540 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) #9
  br label %444

429:                                              ; preds = %420
  %430 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  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) #9
  %435 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %436 = ptrtoint ptr %.0369540 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) #9
  br label %444

442:                                              ; preds = %433
  %443 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  br label %772

444:                                              ; preds = %441, %428
  %445 = getelementptr inbounds i8, ptr %.0369540, i64 12
  %.not394 = icmp eq ptr %445, %339
  br i1 %.not394, label %._crit_edge543, label %.lr.ph542

._crit_edge548:                                   ; preds = %518, %._crit_edge543
  %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)
  %.not396549 = icmp eq ptr %446, %447
  br i1 %.not396549, label %._crit_edge553, label %.lr.ph552

.lr.ph547:                                        ; preds = %._crit_edge543, %518
  %.0370545 = phi ptr [ %519, %518 ], [ %392, %._crit_edge543 ]
  %448 = load i32, ptr %.0370545, 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.ph547
  %452 = load i32, ptr %450, align 4, !tbaa !9
  %453 = getelementptr inbounds i8, ptr %.0370545, 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 %.0370545, 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 %.0370545, 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.16, ptr noundef nonnull @.str.11, i32 noundef 680)
          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}"() #9, !srcloc !23
  br label %487

479:                                              ; preds = %.lr.ph547
  %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) #9
  %496 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %497 = ptrtoint ptr %.0370545 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) #9
  br label %518

503:                                              ; preds = %494
  %504 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  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) #9
  %509 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  %510 = ptrtoint ptr %.0370545 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) #9
  br label %518

516:                                              ; preds = %507
  %517 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  br label %772

518:                                              ; preds = %515, %502
  %519 = getelementptr inbounds i8, ptr %.0370545, i64 24
  %.not395 = icmp eq ptr %519, %393
  br i1 %.not395, label %._crit_edge548, label %.lr.ph547

._crit_edge553:                                   ; preds = %593, %._crit_edge548
  %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)
  %.not397554 = icmp eq ptr %521, %522
  br i1 %.not397554, label %._crit_edge558, label %.lr.ph557

.lr.ph552:                                        ; preds = %._crit_edge548, %593
  %.0372550 = phi ptr [ %594, %593 ], [ %446, %._crit_edge548 ]
  %523 = load i32, ptr %.0372550, 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.ph552
  %527 = load i32, ptr %525, align 4, !tbaa !9
  %528 = getelementptr inbounds i8, ptr %.0372550, 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 %.0372550, 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 %.0372550, 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.16, ptr noundef nonnull @.str.11, i32 noundef 692)
          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}"() #9, !srcloc !24
  br label %562

554:                                              ; preds = %.lr.ph552
  %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) #9
  %571 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %572 = ptrtoint ptr %.0372550 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) #9
  br label %593

578:                                              ; preds = %569
  %579 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  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) #9
  %584 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %67)
  %585 = ptrtoint ptr %.0372550 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) #9
  br label %593

591:                                              ; preds = %582
  %592 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  br label %772

593:                                              ; preds = %590, %577
  %594 = getelementptr inbounds i8, ptr %.0372550, i64 24
  %.not396 = icmp eq ptr %594, %447
  br i1 %.not396, label %._crit_edge553, label %.lr.ph552

._crit_edge558:                                   ; preds = %621, %._crit_edge553
  %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.ph557:                                        ; preds = %._crit_edge553, %621
  %.0373555 = phi ptr [ %622, %621 ], [ %521, %._crit_edge553 ]
  %598 = load i32, ptr %.0373555, 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.ph557
  %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.17, ptr noundef nonnull @.str.11, i32 noundef 701)
          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}"() #9, !srcloc !27
  br label %610

608:                                              ; preds = %610, %604, %.lr.ph557
  %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) #9
  %615 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %520)
  %616 = ptrtoint ptr %.0373555 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) #9
  %622 = getelementptr inbounds i8, ptr %.0373555, i64 52
  %.not397 = icmp eq ptr %622, %522
  br i1 %.not397, label %._crit_edge558, label %.lr.ph557

623:                                              ; preds = %613
  %624 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  br label %772

625:                                              ; preds = %._crit_edge558
  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)
  %.not398559 = icmp eq ptr %627, %628
  br i1 %.not398559, label %._crit_edge563, label %.lr.ph562

._crit_edge563:                                   ; preds = %648, %626
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %42) #9
  %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.ph562:                                        ; preds = %626, %648
  %.0371560 = phi ptr [ %649, %648 ], [ %627, %626 ]
  %630 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.0371560)
  %631 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.0371560)
  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.ph562
  %633 = getelementptr inbounds i8, ptr %.0371560, 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 %.0371560, 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 %.0371560, 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 %.0371560, 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 %.0371560, i64 120
  %.not398 = icmp eq ptr %649, %628
  br i1 %.not398, label %._crit_edge563, label %.lr.ph562

650:                                              ; preds = %644, %640, %636, %632, %.lr.ph562
  %651 = landingpad { ptr, i32 }
          cleanup
  br label %772

652:                                              ; preds = %._crit_edge563
  %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) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %45) #9
  %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) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  %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) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %67) #9
  %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) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4swapERS5_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %520) #9
  %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)
  %.not399589 = icmp eq ptr %675, %676
  br i1 %.not399589, label %._crit_edge593, label %.lr.ph592

.lr.ph592:                                        ; 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_edge593:                                   ; 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_edge563
  %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_edge593, %671, %669
  %691 = landingpad { ptr, i32 }
          cleanup
  br label %767

692:                                              ; preds = %.lr.ph592, %762
  %.0358590 = phi ptr [ %675, %.lr.ph592 ], [ %763, %762 ]
  %693 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.0358590)
  %694 = call noundef ptr @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.0358590)
  %.not400564 = icmp eq ptr %693, %694
  br i1 %.not400564, label %._crit_edge568, label %.lr.ph567

._crit_edge568:                                   ; preds = %703, %692
  %695 = getelementptr inbounds i8, ptr %.0358590, 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)
  %.not401569 = icmp eq ptr %696, %697
  br i1 %.not401569, label %._crit_edge573, label %.lr.ph572

.lr.ph567:                                        ; preds = %692, %703
  %.0350565 = phi ptr [ %704, %703 ], [ %693, %692 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #9
  %698 = load i32, ptr %.0350565, 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.ph567
  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) #9
  %704 = getelementptr inbounds i8, ptr %.0350565, i64 4
  %.not400 = icmp eq ptr %704, %694
  br i1 %.not400, label %._crit_edge568, label %.lr.ph567

705:                                              ; preds = %702, %701, %.lr.ph567
  %706 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  br label %767

._crit_edge573:                                   ; preds = %715, %._crit_edge568
  %707 = getelementptr inbounds i8, ptr %.0358590, 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)
  %.not402574 = icmp eq ptr %708, %709
  br i1 %.not402574, label %._crit_edge578, label %.lr.ph577

.lr.ph572:                                        ; preds = %._crit_edge568, %715
  %.0347570 = phi ptr [ %716, %715 ], [ %696, %._crit_edge568 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #9
  %710 = load i32, ptr %.0347570, 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.ph572
  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) #9
  %716 = getelementptr inbounds i8, ptr %.0347570, i64 4
  %.not401 = icmp eq ptr %716, %697
  br i1 %.not401, label %._crit_edge573, label %.lr.ph572

717:                                              ; preds = %714, %713, %.lr.ph572
  %718 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  br label %767

._crit_edge578:                                   ; preds = %727, %._crit_edge573
  %719 = getelementptr inbounds i8, ptr %.0358590, 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)
  %.not403579 = icmp eq ptr %720, %721
  br i1 %.not403579, label %._crit_edge583, label %.lr.ph582

.lr.ph577:                                        ; preds = %._crit_edge573, %727
  %.0340575 = phi ptr [ %728, %727 ], [ %708, %._crit_edge573 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  %722 = load i32, ptr %.0340575, 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.ph577
  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) #9
  %728 = getelementptr inbounds i8, ptr %.0340575, i64 4
  %.not402 = icmp eq ptr %728, %709
  br i1 %.not402, label %._crit_edge578, label %.lr.ph577

729:                                              ; preds = %726, %725, %.lr.ph577
  %730 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  br label %767

._crit_edge583:                                   ; preds = %739, %._crit_edge578
  %731 = getelementptr inbounds i8, ptr %.0358590, 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)
  %.not404584 = icmp eq ptr %732, %733
  br i1 %.not404584, label %._crit_edge588, label %.lr.ph587

.lr.ph582:                                        ; preds = %._crit_edge578, %739
  %.0337580 = phi ptr [ %740, %739 ], [ %720, %._crit_edge578 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #9
  %734 = load i32, ptr %.0337580, 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.ph582
  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) #9
  %740 = getelementptr inbounds i8, ptr %.0337580, i64 4
  %.not403 = icmp eq ptr %740, %721
  br i1 %.not403, label %._crit_edge583, label %.lr.ph582

741:                                              ; preds = %738, %737, %.lr.ph582
  %742 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  br label %767

._crit_edge588:                                   ; preds = %758, %._crit_edge583
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %37) #9
  %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.ph587:                                        ; preds = %._crit_edge583, %758
  %.0298585 = phi ptr [ %759, %758 ], [ %732, %._crit_edge583 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #9
  %753 = load i32, ptr %.0298585, 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.ph587
  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) #9
  %759 = getelementptr inbounds i8, ptr %.0298585, i64 4
  %.not404 = icmp eq ptr %759, %733
  br i1 %.not404, label %._crit_edge588, label %.lr.ph587

760:                                              ; preds = %757, %756, %.lr.ph587
  %761 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  br label %767

762:                                              ; preds = %._crit_edge588
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %37) #9
  %763 = getelementptr inbounds i8, ptr %.0358590, i64 120
  %.not399 = icmp eq ptr %763, %676
  br i1 %.not399, label %._crit_edge593, label %692

764:                                              ; preds = %._crit_edge588
  %765 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %37) #9
  br label %767

766:                                              ; preds = %._crit_edge593
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @_ZN3JPH5ArrayIZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE5GroupNS_12STLAllocatorIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @_ZN3JPH5ArrayINS0_IZNS_22SoftBodySharedSettings8OptimizeERNS1_19OptimizationResultsEE10ConnectionNS_12STLAllocatorIS4_EEEENS5_IS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  ret void

767:                                              ; preds = %705, %717, %729, %741, %760, %764, %690
  %.pn405.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) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  br label %768

768:                                              ; preds = %767, %688
  %.pn405.pn.pn = phi { ptr, i32 } [ %.pn405.pn, %767 ], [ %689, %688 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #9
  br label %769

769:                                              ; preds = %768, %686
  %.pn405.pn.pn.pn = phi { ptr, i32 } [ %.pn405.pn.pn, %768 ], [ %687, %686 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings12DihedralBendENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #9
  br label %770

770:                                              ; preds = %769, %684
  %.pn405.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn405.pn.pn.pn, %769 ], [ %685, %684 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings3LRAENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  br label %771

771:                                              ; preds = %770, %682
  %.pn405.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn405.pn.pn.pn.pn, %770 ], [ %683, %682 ]
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  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
  %.pn427.pn.pn = phi { ptr, i32 } [ %651, %650 ], [ %.pn405.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) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  br label %773

773:                                              ; preds = %772, %328, %323
  %.pn439.pn = phi { ptr, i32 } [ %.pn439, %323 ], [ %.pn427.pn.pn, %772 ], [ %329, %328 ]
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  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) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  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) #9
  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) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  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 { double, double } @_ZNK3JPH5AABox7GetSizeEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH4Vec324GetHighestComponentIndexEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #8 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = 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 2157814028}
!22 = !{i64 2157814380}
!23 = !{i64 2157814776}
!24 = !{i64 2157815172}
!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 2157815502}
!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