; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/SoftBody (SoftBodySharedSettings)

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

%"class.JPH::Ref" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::SoftBodySharedSettings::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", float }
%"class.JPH::Float3" = type { float, float, float }
%class.anon.141 = type { i32 }
%"struct.JPH::SoftBodySharedSettings::Edge" = type { [2 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Volume" = type { [4 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Face" = type { [3 x 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.41" = type { i64, i64, ptr }
%"class.JPH::Array.44" = type { i64, i64, ptr }
%"class.JPH::Array.47" = type { i64, i64, ptr }
%"class.JPH::Array.50" = type { i64, i64, ptr }
%"class.JPH::Array.53" = type { i64, i64, ptr }
%"class.JPH::Array.56" = type { i64, i64, ptr }
%"class.JPH::Array.59" = type { i64, i64, ptr }
%"class.JPH::Array.62" = type { i64, i64, ptr }
%"class.JPH::Array.65" = type { i64, i64, ptr }
%"class.JPH::Array.68" = type { i64, i64, ptr }

@__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices = external hidden unnamed_addr constant [6 x [4 x [3 x i32]]], align 16

; 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: 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) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings32CalculateVolumeConstraintVolumesEv(ptr noundef nonnull align 8 dereferenceable(304)) #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 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: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH22SoftBodySharedSettingsnwEm(i64 noundef) #4 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettingsdlEPv(ptr noundef) #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref") align 8 %0, i32 noundef %1, float noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.JPH::SoftBodySharedSettings::Vertex", align 4
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %class.anon.141, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.JPH::SoftBodySharedSettings::Edge", align 4
  %25 = alloca [6 x [4 x [3 x i32]]], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.JPH::SoftBodySharedSettings::Volume", align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"struct.JPH::SoftBodySharedSettings::Face", align 4
  store ptr %0, ptr %4, align 8
  store i32 %1, ptr %5, align 4, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #10
  %35 = load float, ptr %6, align 4, !tbaa !9
  %36 = fmul float -5.000000e-01, %35
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = sub i32 %37, 1
  %39 = uitofp i32 %38 to float
  %40 = fmul float %36, %39
  %41 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %40)
  %42 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %43 = getelementptr inbounds %union.anon, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %45 = extractvalue { double, double } %41, 0
  store double %45, ptr %44, align 16
  %46 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %47 = extractvalue { double, double } %41, 1
  store double %47, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %48 = call noundef ptr @_ZN3JPH22SoftBodySharedSettingsnwEm(i64 noundef 304)
  invoke void @_ZN3JPH22SoftBodySharedSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(304) %48)
          to label %49 unwind label %55

49:                                               ; preds = %3
  store ptr %48, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %119, %49
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %59, label %54

54:                                               ; preds = %50
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %122

55:                                               ; preds = %3
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  call void @_ZN3JPH22SoftBodySharedSettingsdlEPv(ptr noundef %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  br label %548

59:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %115, %59
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %118

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %111, %65
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %114

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 28, ptr %15) #10
  call void @_ZN3JPH22SoftBodySharedSettings6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(28) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  %72 = load float, ptr %6, align 4, !tbaa !9
  %73 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %72)
  %74 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %75 = getelementptr inbounds %union.anon, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %77 = extractvalue { double, double } %73, 0
  store double %77, ptr %76, align 16
  %78 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %79 = extractvalue { double, double } %73, 1
  store double %79, ptr %78, align 8
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = uitofp i32 %80 to float
  %82 = load i32, ptr %13, align 4, !tbaa !5
  %83 = uitofp i32 %82 to float
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = uitofp i32 %84 to float
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %81, float noundef %83, float noundef %85)
  %86 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %87 = load double, ptr %86, align 16
  %88 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %89 = load double, ptr %88, align 8
  %90 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %87, double %89)
  %91 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %94 = extractvalue { double, double } %90, 0
  store double %94, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %96 = extractvalue { double, double } %90, 1
  store double %96, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %98, double %100)
  %102 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %103 = getelementptr inbounds %union.anon, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 0
  %105 = extractvalue { double, double } %101, 0
  store double %105, ptr %104, align 16
  %106 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 1
  %107 = extractvalue { double, double } %101, 1
  store double %107, ptr %106, align 8
  %108 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Vertex", ptr %15, i32 0, i32 0
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  %109 = load ptr, ptr %8, align 8, !tbaa !11
  %110 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %109, i32 0, i32 1
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 4 dereferenceable(28) %15)
  call void @llvm.lifetime.end.p0(i64 28, ptr %15) #10
  br label %111

111:                                              ; preds = %71
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = add i32 %112, 1
  store i32 %113, ptr %14, align 4, !tbaa !5
  br label %66, !llvm.loop !13

114:                                              ; preds = %70
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = add i32 %116, 1
  store i32 %117, ptr %13, align 4, !tbaa !5
  br label %60, !llvm.loop !15

118:                                              ; preds = %64
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = add i32 %120, 1
  store i32 %121, ptr %11, align 4, !tbaa !5
  br label %50, !llvm.loop !16

122:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %123 = getelementptr inbounds %class.anon.141, ptr %20, i32 0, i32 0
  %124 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %124, ptr %123, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %202, %122
  %126 = load i32, ptr %21, align 4, !tbaa !5
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  br label %205

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %198, %130
  %132 = load i32, ptr %22, align 4, !tbaa !5
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = icmp ult i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %201

136:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %194, %136
  %138 = load i32, ptr %23, align 4, !tbaa !5
  %139 = load i32, ptr %5, align 4, !tbaa !5
  %140 = icmp ult i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %197

142:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  call void @_ZN3JPH22SoftBodySharedSettings4EdgeC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %24) #10
  %143 = load i32, ptr %23, align 4, !tbaa !5
  %144 = load i32, ptr %22, align 4, !tbaa !5
  %145 = load i32, ptr %21, align 4, !tbaa !5
  %146 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %143, i32 noundef %144, i32 noundef %145)
  %147 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %24, i32 0, i32 0
  %148 = getelementptr inbounds [2 x i32], ptr %147, i64 0, i64 0
  store i32 %146, ptr %148, align 4, !tbaa !5
  %149 = load i32, ptr %23, align 4, !tbaa !5
  %150 = load i32, ptr %5, align 4, !tbaa !5
  %151 = sub i32 %150, 1
  %152 = icmp ult i32 %149, %151
  br i1 %152, label %153, label %163

153:                                              ; preds = %142
  %154 = load i32, ptr %23, align 4, !tbaa !5
  %155 = add i32 %154, 1
  %156 = load i32, ptr %22, align 4, !tbaa !5
  %157 = load i32, ptr %21, align 4, !tbaa !5
  %158 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %155, i32 noundef %156, i32 noundef %157)
  %159 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %24, i32 0, i32 0
  %160 = getelementptr inbounds [2 x i32], ptr %159, i64 0, i64 1
  store i32 %158, ptr %160, align 4, !tbaa !5
  %161 = load ptr, ptr %8, align 8, !tbaa !11
  %162 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %161, i32 0, i32 3
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 4 dereferenceable(16) %24)
  br label %163

163:                                              ; preds = %153, %142
  %164 = load i32, ptr %22, align 4, !tbaa !5
  %165 = load i32, ptr %5, align 4, !tbaa !5
  %166 = sub i32 %165, 1
  %167 = icmp ult i32 %164, %166
  br i1 %167, label %168, label %178

168:                                              ; preds = %163
  %169 = load i32, ptr %23, align 4, !tbaa !5
  %170 = load i32, ptr %22, align 4, !tbaa !5
  %171 = add i32 %170, 1
  %172 = load i32, ptr %21, align 4, !tbaa !5
  %173 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %169, i32 noundef %171, i32 noundef %172)
  %174 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %24, i32 0, i32 0
  %175 = getelementptr inbounds [2 x i32], ptr %174, i64 0, i64 1
  store i32 %173, ptr %175, align 4, !tbaa !5
  %176 = load ptr, ptr %8, align 8, !tbaa !11
  %177 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %176, i32 0, i32 3
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %177, ptr noundef nonnull align 4 dereferenceable(16) %24)
  br label %178

178:                                              ; preds = %168, %163
  %179 = load i32, ptr %21, align 4, !tbaa !5
  %180 = load i32, ptr %5, align 4, !tbaa !5
  %181 = sub i32 %180, 1
  %182 = icmp ult i32 %179, %181
  br i1 %182, label %183, label %193

183:                                              ; preds = %178
  %184 = load i32, ptr %23, align 4, !tbaa !5
  %185 = load i32, ptr %22, align 4, !tbaa !5
  %186 = load i32, ptr %21, align 4, !tbaa !5
  %187 = add i32 %186, 1
  %188 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %184, i32 noundef %185, i32 noundef %187)
  %189 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Edge", ptr %24, i32 0, i32 0
  %190 = getelementptr inbounds [2 x i32], ptr %189, i64 0, i64 1
  store i32 %188, ptr %190, align 4, !tbaa !5
  %191 = load ptr, ptr %8, align 8, !tbaa !11
  %192 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %191, i32 0, i32 3
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef nonnull align 4 dereferenceable(16) %24)
  br label %193

193:                                              ; preds = %183, %178
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %23, align 4, !tbaa !5
  %196 = add i32 %195, 1
  store i32 %196, ptr %23, align 4, !tbaa !5
  br label %137, !llvm.loop !19

197:                                              ; preds = %141
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %22, align 4, !tbaa !5
  %200 = add i32 %199, 1
  store i32 %200, ptr %22, align 4, !tbaa !5
  br label %131, !llvm.loop !20

201:                                              ; preds = %135
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %21, align 4, !tbaa !5
  %204 = add i32 %203, 1
  store i32 %204, ptr %21, align 4, !tbaa !5
  br label %125, !llvm.loop !21

205:                                              ; preds = %129
  %206 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings20CalculateEdgeLengthsEv(ptr noundef nonnull align 8 dereferenceable(304) %206)
  call void @llvm.lifetime.start.p0(i64 288, ptr %25) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 @__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices, i64 288, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %291, %205
  %208 = load i32, ptr %26, align 4, !tbaa !5
  %209 = load i32, ptr %5, align 4, !tbaa !5
  %210 = sub i32 %209, 1
  %211 = icmp ult i32 %208, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %207
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  br label %294

213:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %287, %213
  %215 = load i32, ptr %27, align 4, !tbaa !5
  %216 = load i32, ptr %5, align 4, !tbaa !5
  %217 = sub i32 %216, 1
  %218 = icmp ult i32 %215, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %214
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  br label %290

220:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %283, %220
  %222 = load i32, ptr %28, align 4, !tbaa !5
  %223 = load i32, ptr %5, align 4, !tbaa !5
  %224 = sub i32 %223, 1
  %225 = icmp ult i32 %222, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %221
  store i32 26, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %286

227:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %279, %227
  %229 = load i32, ptr %29, align 4, !tbaa !5
  %230 = icmp ult i32 %229, 6
  br i1 %230, label %232, label %231

231:                                              ; preds = %228
  store i32 29, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %282

232:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #10
  call void @_ZN3JPH22SoftBodySharedSettings6VolumeC2Ev(ptr noundef nonnull align 4 dereferenceable(24) %30) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %273, %232
  %234 = load i32, ptr %31, align 4, !tbaa !5
  %235 = icmp ult i32 %234, 4
  br i1 %235, label %237, label %236

236:                                              ; preds = %233
  store i32 32, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %276

237:                                              ; preds = %233
  %238 = load i32, ptr %28, align 4, !tbaa !5
  %239 = load i32, ptr %29, align 4, !tbaa !5
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr %25, i64 0, i64 %240
  %242 = load i32, ptr %31, align 4, !tbaa !5
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds [4 x [3 x i32]], ptr %241, i64 0, i64 %243
  %245 = getelementptr inbounds [3 x i32], ptr %244, i64 0, i64 0
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = add i32 %238, %246
  %248 = load i32, ptr %27, align 4, !tbaa !5
  %249 = load i32, ptr %29, align 4, !tbaa !5
  %250 = zext i32 %249 to i64
  %251 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr %25, i64 0, i64 %250
  %252 = load i32, ptr %31, align 4, !tbaa !5
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds [4 x [3 x i32]], ptr %251, i64 0, i64 %253
  %255 = getelementptr inbounds [3 x i32], ptr %254, i64 0, i64 1
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = add i32 %248, %256
  %258 = load i32, ptr %26, align 4, !tbaa !5
  %259 = load i32, ptr %29, align 4, !tbaa !5
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr %25, i64 0, i64 %260
  %262 = load i32, ptr %31, align 4, !tbaa !5
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds [4 x [3 x i32]], ptr %261, i64 0, i64 %263
  %265 = getelementptr inbounds [3 x i32], ptr %264, i64 0, i64 2
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = add i32 %258, %266
  %268 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %247, i32 noundef %257, i32 noundef %267)
  %269 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Volume", ptr %30, i32 0, i32 0
  %270 = load i32, ptr %31, align 4, !tbaa !5
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds [4 x i32], ptr %269, i64 0, i64 %271
  store i32 %268, ptr %272, align 4, !tbaa !5
  br label %273

273:                                              ; preds = %237
  %274 = load i32, ptr %31, align 4, !tbaa !5
  %275 = add i32 %274, 1
  store i32 %275, ptr %31, align 4, !tbaa !5
  br label %233, !llvm.loop !22

276:                                              ; preds = %236
  %277 = load ptr, ptr %8, align 8, !tbaa !11
  %278 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %277, i32 0, i32 5
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %278, ptr noundef nonnull align 4 dereferenceable(24) %30)
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  br label %279

279:                                              ; preds = %276
  %280 = load i32, ptr %29, align 4, !tbaa !5
  %281 = add i32 %280, 1
  store i32 %281, ptr %29, align 4, !tbaa !5
  br label %228, !llvm.loop !23

282:                                              ; preds = %231
  br label %283

283:                                              ; preds = %282
  %284 = load i32, ptr %28, align 4, !tbaa !5
  %285 = add i32 %284, 1
  store i32 %285, ptr %28, align 4, !tbaa !5
  br label %221, !llvm.loop !24

286:                                              ; preds = %226
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %27, align 4, !tbaa !5
  %289 = add i32 %288, 1
  store i32 %289, ptr %27, align 4, !tbaa !5
  br label %214, !llvm.loop !25

290:                                              ; preds = %219
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %26, align 4, !tbaa !5
  %293 = add i32 %292, 1
  store i32 %293, ptr %26, align 4, !tbaa !5
  br label %207, !llvm.loop !26

294:                                              ; preds = %212
  %295 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings32CalculateVolumeConstraintVolumesEv(ptr noundef nonnull align 8 dereferenceable(304) %295)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %296

296:                                              ; preds = %542, %294
  %297 = load i32, ptr %32, align 4, !tbaa !5
  %298 = load i32, ptr %5, align 4, !tbaa !5
  %299 = sub i32 %298, 1
  %300 = icmp ult i32 %297, %299
  br i1 %300, label %302, label %301

301:                                              ; preds = %296
  store i32 35, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %545

302:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %303

303:                                              ; preds = %538, %302
  %304 = load i32, ptr %33, align 4, !tbaa !5
  %305 = load i32, ptr %5, align 4, !tbaa !5
  %306 = sub i32 %305, 1
  %307 = icmp ult i32 %304, %306
  br i1 %307, label %309, label %308

308:                                              ; preds = %303
  store i32 38, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %541

309:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  call void @_ZN3JPH22SoftBodySharedSettings4FaceC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %34) #10
  %310 = load i32, ptr %33, align 4, !tbaa !5
  %311 = load i32, ptr %32, align 4, !tbaa !5
  %312 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %310, i32 noundef %311, i32 noundef 0)
  %313 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %314 = getelementptr inbounds [3 x i32], ptr %313, i64 0, i64 0
  store i32 %312, ptr %314, align 4, !tbaa !5
  %315 = load i32, ptr %33, align 4, !tbaa !5
  %316 = load i32, ptr %32, align 4, !tbaa !5
  %317 = add i32 %316, 1
  %318 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %315, i32 noundef %317, i32 noundef 0)
  %319 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %320 = getelementptr inbounds [3 x i32], ptr %319, i64 0, i64 1
  store i32 %318, ptr %320, align 4, !tbaa !5
  %321 = load i32, ptr %33, align 4, !tbaa !5
  %322 = add i32 %321, 1
  %323 = load i32, ptr %32, align 4, !tbaa !5
  %324 = add i32 %323, 1
  %325 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %322, i32 noundef %324, i32 noundef 0)
  %326 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %327 = getelementptr inbounds [3 x i32], ptr %326, i64 0, i64 2
  store i32 %325, ptr %327, align 4, !tbaa !5
  %328 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %328, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %329 = load i32, ptr %33, align 4, !tbaa !5
  %330 = add i32 %329, 1
  %331 = load i32, ptr %32, align 4, !tbaa !5
  %332 = add i32 %331, 1
  %333 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %330, i32 noundef %332, i32 noundef 0)
  %334 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %335 = getelementptr inbounds [3 x i32], ptr %334, i64 0, i64 1
  store i32 %333, ptr %335, align 4, !tbaa !5
  %336 = load i32, ptr %33, align 4, !tbaa !5
  %337 = add i32 %336, 1
  %338 = load i32, ptr %32, align 4, !tbaa !5
  %339 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %337, i32 noundef %338, i32 noundef 0)
  %340 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %341 = getelementptr inbounds [3 x i32], ptr %340, i64 0, i64 2
  store i32 %339, ptr %341, align 4, !tbaa !5
  %342 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %342, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %343 = load i32, ptr %33, align 4, !tbaa !5
  %344 = load i32, ptr %32, align 4, !tbaa !5
  %345 = load i32, ptr %5, align 4, !tbaa !5
  %346 = sub i32 %345, 1
  %347 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %343, i32 noundef %344, i32 noundef %346)
  %348 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %349 = getelementptr inbounds [3 x i32], ptr %348, i64 0, i64 0
  store i32 %347, ptr %349, align 4, !tbaa !5
  %350 = load i32, ptr %33, align 4, !tbaa !5
  %351 = add i32 %350, 1
  %352 = load i32, ptr %32, align 4, !tbaa !5
  %353 = add i32 %352, 1
  %354 = load i32, ptr %5, align 4, !tbaa !5
  %355 = sub i32 %354, 1
  %356 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %351, i32 noundef %353, i32 noundef %355)
  %357 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %358 = getelementptr inbounds [3 x i32], ptr %357, i64 0, i64 1
  store i32 %356, ptr %358, align 4, !tbaa !5
  %359 = load i32, ptr %33, align 4, !tbaa !5
  %360 = load i32, ptr %32, align 4, !tbaa !5
  %361 = add i32 %360, 1
  %362 = load i32, ptr %5, align 4, !tbaa !5
  %363 = sub i32 %362, 1
  %364 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %359, i32 noundef %361, i32 noundef %363)
  %365 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %366 = getelementptr inbounds [3 x i32], ptr %365, i64 0, i64 2
  store i32 %364, ptr %366, align 4, !tbaa !5
  %367 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %367, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %368 = load i32, ptr %33, align 4, !tbaa !5
  %369 = add i32 %368, 1
  %370 = load i32, ptr %32, align 4, !tbaa !5
  %371 = load i32, ptr %5, align 4, !tbaa !5
  %372 = sub i32 %371, 1
  %373 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %369, i32 noundef %370, i32 noundef %372)
  %374 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %375 = getelementptr inbounds [3 x i32], ptr %374, i64 0, i64 1
  store i32 %373, ptr %375, align 4, !tbaa !5
  %376 = load i32, ptr %33, align 4, !tbaa !5
  %377 = add i32 %376, 1
  %378 = load i32, ptr %32, align 4, !tbaa !5
  %379 = add i32 %378, 1
  %380 = load i32, ptr %5, align 4, !tbaa !5
  %381 = sub i32 %380, 1
  %382 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %377, i32 noundef %379, i32 noundef %381)
  %383 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %384 = getelementptr inbounds [3 x i32], ptr %383, i64 0, i64 2
  store i32 %382, ptr %384, align 4, !tbaa !5
  %385 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %385, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %386 = load i32, ptr %33, align 4, !tbaa !5
  %387 = load i32, ptr %32, align 4, !tbaa !5
  %388 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %386, i32 noundef 0, i32 noundef %387)
  %389 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %390 = getelementptr inbounds [3 x i32], ptr %389, i64 0, i64 0
  store i32 %388, ptr %390, align 4, !tbaa !5
  %391 = load i32, ptr %33, align 4, !tbaa !5
  %392 = add i32 %391, 1
  %393 = load i32, ptr %32, align 4, !tbaa !5
  %394 = add i32 %393, 1
  %395 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %392, i32 noundef 0, i32 noundef %394)
  %396 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %397 = getelementptr inbounds [3 x i32], ptr %396, i64 0, i64 1
  store i32 %395, ptr %397, align 4, !tbaa !5
  %398 = load i32, ptr %33, align 4, !tbaa !5
  %399 = load i32, ptr %32, align 4, !tbaa !5
  %400 = add i32 %399, 1
  %401 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %398, i32 noundef 0, i32 noundef %400)
  %402 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %403 = getelementptr inbounds [3 x i32], ptr %402, i64 0, i64 2
  store i32 %401, ptr %403, align 4, !tbaa !5
  %404 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %404, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %405 = load i32, ptr %33, align 4, !tbaa !5
  %406 = add i32 %405, 1
  %407 = load i32, ptr %32, align 4, !tbaa !5
  %408 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %406, i32 noundef 0, i32 noundef %407)
  %409 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %410 = getelementptr inbounds [3 x i32], ptr %409, i64 0, i64 1
  store i32 %408, ptr %410, align 4, !tbaa !5
  %411 = load i32, ptr %33, align 4, !tbaa !5
  %412 = add i32 %411, 1
  %413 = load i32, ptr %32, align 4, !tbaa !5
  %414 = add i32 %413, 1
  %415 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %412, i32 noundef 0, i32 noundef %414)
  %416 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %417 = getelementptr inbounds [3 x i32], ptr %416, i64 0, i64 2
  store i32 %415, ptr %417, align 4, !tbaa !5
  %418 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %418, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %419 = load i32, ptr %33, align 4, !tbaa !5
  %420 = load i32, ptr %5, align 4, !tbaa !5
  %421 = sub i32 %420, 1
  %422 = load i32, ptr %32, align 4, !tbaa !5
  %423 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %419, i32 noundef %421, i32 noundef %422)
  %424 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %425 = getelementptr inbounds [3 x i32], ptr %424, i64 0, i64 0
  store i32 %423, ptr %425, align 4, !tbaa !5
  %426 = load i32, ptr %33, align 4, !tbaa !5
  %427 = load i32, ptr %5, align 4, !tbaa !5
  %428 = sub i32 %427, 1
  %429 = load i32, ptr %32, align 4, !tbaa !5
  %430 = add i32 %429, 1
  %431 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %426, i32 noundef %428, i32 noundef %430)
  %432 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %433 = getelementptr inbounds [3 x i32], ptr %432, i64 0, i64 1
  store i32 %431, ptr %433, align 4, !tbaa !5
  %434 = load i32, ptr %33, align 4, !tbaa !5
  %435 = add i32 %434, 1
  %436 = load i32, ptr %5, align 4, !tbaa !5
  %437 = sub i32 %436, 1
  %438 = load i32, ptr %32, align 4, !tbaa !5
  %439 = add i32 %438, 1
  %440 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %435, i32 noundef %437, i32 noundef %439)
  %441 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %442 = getelementptr inbounds [3 x i32], ptr %441, i64 0, i64 2
  store i32 %440, ptr %442, align 4, !tbaa !5
  %443 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %443, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %444 = load i32, ptr %33, align 4, !tbaa !5
  %445 = add i32 %444, 1
  %446 = load i32, ptr %5, align 4, !tbaa !5
  %447 = sub i32 %446, 1
  %448 = load i32, ptr %32, align 4, !tbaa !5
  %449 = add i32 %448, 1
  %450 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %445, i32 noundef %447, i32 noundef %449)
  %451 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %452 = getelementptr inbounds [3 x i32], ptr %451, i64 0, i64 1
  store i32 %450, ptr %452, align 4, !tbaa !5
  %453 = load i32, ptr %33, align 4, !tbaa !5
  %454 = add i32 %453, 1
  %455 = load i32, ptr %5, align 4, !tbaa !5
  %456 = sub i32 %455, 1
  %457 = load i32, ptr %32, align 4, !tbaa !5
  %458 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %454, i32 noundef %456, i32 noundef %457)
  %459 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %460 = getelementptr inbounds [3 x i32], ptr %459, i64 0, i64 2
  store i32 %458, ptr %460, align 4, !tbaa !5
  %461 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %461, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %462 = load i32, ptr %33, align 4, !tbaa !5
  %463 = load i32, ptr %32, align 4, !tbaa !5
  %464 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0, i32 noundef %462, i32 noundef %463)
  %465 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %466 = getelementptr inbounds [3 x i32], ptr %465, i64 0, i64 0
  store i32 %464, ptr %466, align 4, !tbaa !5
  %467 = load i32, ptr %33, align 4, !tbaa !5
  %468 = load i32, ptr %32, align 4, !tbaa !5
  %469 = add i32 %468, 1
  %470 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0, i32 noundef %467, i32 noundef %469)
  %471 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %472 = getelementptr inbounds [3 x i32], ptr %471, i64 0, i64 1
  store i32 %470, ptr %472, align 4, !tbaa !5
  %473 = load i32, ptr %33, align 4, !tbaa !5
  %474 = add i32 %473, 1
  %475 = load i32, ptr %32, align 4, !tbaa !5
  %476 = add i32 %475, 1
  %477 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0, i32 noundef %474, i32 noundef %476)
  %478 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %479 = getelementptr inbounds [3 x i32], ptr %478, i64 0, i64 2
  store i32 %477, ptr %479, align 4, !tbaa !5
  %480 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %480, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %481 = load i32, ptr %33, align 4, !tbaa !5
  %482 = add i32 %481, 1
  %483 = load i32, ptr %32, align 4, !tbaa !5
  %484 = add i32 %483, 1
  %485 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0, i32 noundef %482, i32 noundef %484)
  %486 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %487 = getelementptr inbounds [3 x i32], ptr %486, i64 0, i64 1
  store i32 %485, ptr %487, align 4, !tbaa !5
  %488 = load i32, ptr %33, align 4, !tbaa !5
  %489 = add i32 %488, 1
  %490 = load i32, ptr %32, align 4, !tbaa !5
  %491 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0, i32 noundef %489, i32 noundef %490)
  %492 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %493 = getelementptr inbounds [3 x i32], ptr %492, i64 0, i64 2
  store i32 %491, ptr %493, align 4, !tbaa !5
  %494 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %494, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %495 = load i32, ptr %5, align 4, !tbaa !5
  %496 = sub i32 %495, 1
  %497 = load i32, ptr %33, align 4, !tbaa !5
  %498 = load i32, ptr %32, align 4, !tbaa !5
  %499 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %496, i32 noundef %497, i32 noundef %498)
  %500 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %501 = getelementptr inbounds [3 x i32], ptr %500, i64 0, i64 0
  store i32 %499, ptr %501, align 4, !tbaa !5
  %502 = load i32, ptr %5, align 4, !tbaa !5
  %503 = sub i32 %502, 1
  %504 = load i32, ptr %33, align 4, !tbaa !5
  %505 = add i32 %504, 1
  %506 = load i32, ptr %32, align 4, !tbaa !5
  %507 = add i32 %506, 1
  %508 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %503, i32 noundef %505, i32 noundef %507)
  %509 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %510 = getelementptr inbounds [3 x i32], ptr %509, i64 0, i64 1
  store i32 %508, ptr %510, align 4, !tbaa !5
  %511 = load i32, ptr %5, align 4, !tbaa !5
  %512 = sub i32 %511, 1
  %513 = load i32, ptr %33, align 4, !tbaa !5
  %514 = load i32, ptr %32, align 4, !tbaa !5
  %515 = add i32 %514, 1
  %516 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %512, i32 noundef %513, i32 noundef %515)
  %517 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %518 = getelementptr inbounds [3 x i32], ptr %517, i64 0, i64 2
  store i32 %516, ptr %518, align 4, !tbaa !5
  %519 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %519, ptr noundef nonnull align 4 dereferenceable(16) %34)
  %520 = load i32, ptr %5, align 4, !tbaa !5
  %521 = sub i32 %520, 1
  %522 = load i32, ptr %33, align 4, !tbaa !5
  %523 = add i32 %522, 1
  %524 = load i32, ptr %32, align 4, !tbaa !5
  %525 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %521, i32 noundef %523, i32 noundef %524)
  %526 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %527 = getelementptr inbounds [3 x i32], ptr %526, i64 0, i64 1
  store i32 %525, ptr %527, align 4, !tbaa !5
  %528 = load i32, ptr %5, align 4, !tbaa !5
  %529 = sub i32 %528, 1
  %530 = load i32, ptr %33, align 4, !tbaa !5
  %531 = add i32 %530, 1
  %532 = load i32, ptr %32, align 4, !tbaa !5
  %533 = add i32 %532, 1
  %534 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %529, i32 noundef %531, i32 noundef %533)
  %535 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %34, i32 0, i32 0
  %536 = getelementptr inbounds [3 x i32], ptr %535, i64 0, i64 2
  store i32 %534, ptr %536, align 4, !tbaa !5
  %537 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %537, ptr noundef nonnull align 4 dereferenceable(16) %34)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  br label %538

538:                                              ; preds = %309
  %539 = load i32, ptr %33, align 4, !tbaa !5
  %540 = add i32 %539, 1
  store i32 %540, ptr %33, align 4, !tbaa !5
  br label %303, !llvm.loop !27

541:                                              ; preds = %308
  br label %542

542:                                              ; preds = %541
  %543 = load i32, ptr %32, align 4, !tbaa !5
  %544 = add i32 %543, 1
  store i32 %544, ptr %32, align 4, !tbaa !5
  br label %296, !llvm.loop !28

545:                                              ; preds = %301
  %546 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH22SoftBodySharedSettings8OptimizeEv(ptr noundef nonnull align 8 dereferenceable(304) %546)
  %547 = load ptr, ptr %8, align 8, !tbaa !11
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %547)
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 288, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  ret void

548:                                              ; preds = %55
  %549 = load ptr, ptr %9, align 8
  %550 = load i32, ptr %10, align 4
  %551 = insertvalue { ptr, i32 } poison, ptr %549, 0
  %552 = insertvalue { ptr, i32 } %551, i32 %550, 1
  resume { ptr, i32 } %552
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(28)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef, i32 noundef) #9 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

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

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

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


; 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::Ref" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::SoftBodySharedSettings::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", float }
%"class.JPH::Float3" = type { float, float, float }
%class.anon.141 = type { i32 }
%"struct.JPH::SoftBodySharedSettings::Edge" = type { [2 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Volume" = type { [4 x i32], float, float }
%"struct.JPH::SoftBodySharedSettings::Face" = type { [3 x i32], i32 }

@__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices = external hidden unnamed_addr constant [6 x [4 x [3 x i32]]], align 16

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH22SoftBodySharedSettingsnwEm(i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettingsdlEPv(ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref") align 8 %0, i32 noundef %1, float noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"struct.JPH::SoftBodySharedSettings::Vertex", align 4
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %class.anon.141, align 4
  %10 = alloca %"struct.JPH::SoftBodySharedSettings::Edge", align 4
  %11 = alloca %"struct.JPH::SoftBodySharedSettings::Volume", align 4
  %12 = alloca %"struct.JPH::SoftBodySharedSettings::Face", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %13 = fmul float %2, -5.000000e-01
  %14 = add i32 %1, -1
  %15 = uitofp i32 %14 to float
  %16 = fmul float %13, %15
  %17 = tail call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %16)
  %18 = extractvalue { double, double } %17, 0
  store double %18, ptr %4, align 16
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = extractvalue { double, double } %17, 1
  store double %20, ptr %19, align 8
  %21 = tail call noundef ptr @_ZN3JPH22SoftBodySharedSettingsnwEm(i64 noundef 304)
  invoke void @_ZN3JPH22SoftBodySharedSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(304) %21)
          to label %.preheader191 unwind label %29

.preheader191:                                    ; preds = %3
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %._crit_edge198.thread, label %.preheader190.lr.ph

._crit_edge198.thread:                            ; preds = %.preheader191
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 %1, ptr %9, align 4, !tbaa !5
  tail call void @_ZN3JPH22SoftBodySharedSettings20CalculateEdgeLengthsEv(ptr noundef nonnull align 8 dereferenceable(304) %21)
  br label %.preheader186.lr.ph

.preheader190.lr.ph:                              ; preds = %.preheader191
  %22 = getelementptr inbounds i8, ptr %7, i64 8
  %23 = getelementptr inbounds i8, ptr %8, i64 8
  %24 = getelementptr inbounds i8, ptr %6, i64 8
  %25 = getelementptr inbounds i8, ptr %21, i64 8
  br label %.preheader190

.preheader190:                                    ; preds = %.preheader190.lr.ph, %32
  %.0178194 = phi i32 [ 0, %.preheader190.lr.ph ], [ %33, %32 ]
  %26 = uitofp i32 %.0178194 to float
  br label %.preheader189

.preheader188.lr.ph:                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 %1, ptr %9, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %10, i64 4
  %28 = getelementptr inbounds i8, ptr %21, i64 56
  br label %.preheader188

29:                                               ; preds = %3
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH22SoftBodySharedSettingsdlEPv(ptr noundef %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  resume { ptr, i32 } %30

.preheader189:                                    ; preds = %.preheader190, %34
  %.0180193 = phi i32 [ 0, %.preheader190 ], [ %35, %34 ]
  %31 = uitofp i32 %.0180193 to float
  br label %36

32:                                               ; preds = %34
  %33 = add nuw i32 %.0178194, 1
  %exitcond213.not = icmp eq i32 %33, %1
  br i1 %exitcond213.not, label %.preheader188.lr.ph, label %.preheader190, !llvm.loop !10

34:                                               ; preds = %36
  %35 = add nuw i32 %.0180193, 1
  %exitcond212.not = icmp eq i32 %35, %1
  br i1 %exitcond212.not, label %32, label %.preheader189, !llvm.loop !12

36:                                               ; preds = %.preheader189, %36
  %.0179192 = phi i32 [ 0, %.preheader189 ], [ %49, %36 ]
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %5) #9
  call void @_ZN3JPH22SoftBodySharedSettings6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(28) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %37 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %2)
  %38 = extractvalue { double, double } %37, 0
  store double %38, ptr %7, align 16
  %39 = extractvalue { double, double } %37, 1
  store double %39, ptr %22, align 8
  %40 = uitofp i32 %.0179192 to float
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef %40, float noundef %31, float noundef %26)
  %41 = load double, ptr %8, align 16
  %42 = load double, ptr %23, align 8
  %43 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %41, double %42)
  %44 = extractvalue { double, double } %43, 0
  %45 = extractvalue { double, double } %43, 1
  %46 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %44, double %45)
  %47 = extractvalue { double, double } %46, 0
  store double %47, ptr %6, align 16
  %48 = extractvalue { double, double } %46, 1
  store double %48, ptr %24, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(28) %5)
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %5) #9
  %49 = add nuw i32 %.0179192, 1
  %exitcond.not = icmp eq i32 %49, %1
  br i1 %exitcond.not, label %34, label %36, !llvm.loop !13

.preheader188:                                    ; preds = %.preheader188.lr.ph, %69
  %.0177197 = phi i32 [ 0, %.preheader188.lr.ph ], [ %51, %69 ]
  %50 = icmp ult i32 %.0177197, %14
  %51 = add nuw i32 %.0177197, 1
  br label %.preheader187

._crit_edge198:                                   ; preds = %69
  call void @_ZN3JPH22SoftBodySharedSettings20CalculateEdgeLengthsEv(ptr noundef nonnull align 8 dereferenceable(304) %21)
  %.not209 = icmp eq i32 %14, 0
  br i1 %.not209, label %._crit_edge204.thread, label %.preheader186.lr.ph

._crit_edge204.thread:                            ; preds = %._crit_edge198
  call void @_ZN3JPH22SoftBodySharedSettings32CalculateVolumeConstraintVolumesEv(ptr noundef nonnull align 8 dereferenceable(304) %21)
  br label %._crit_edge207

.preheader186.lr.ph:                              ; preds = %._crit_edge198.thread, %._crit_edge198
  %52 = getelementptr inbounds i8, ptr %21, i64 104
  %53 = getelementptr inbounds i8, ptr %11, i64 4
  %54 = getelementptr inbounds i8, ptr %11, i64 8
  %55 = getelementptr inbounds i8, ptr %11, i64 12
  br label %.preheader186

.preheader187:                                    ; preds = %.preheader188, %.split.us
  %.0176196 = phi i32 [ 0, %.preheader188 ], [ %57, %.split.us ]
  %56 = icmp ult i32 %.0176196, %14
  %57 = add nuw i32 %.0176196, 1
  br i1 %56, label %.preheader187.split.us, label %.preheader187.split

.preheader187.split.us:                           ; preds = %.preheader187, %67
  %.0175195.us = phi i32 [ %68, %67 ], [ 0, %.preheader187 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN3JPH22SoftBodySharedSettings4EdgeC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #9
  %58 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0175195.us, i32 noundef %.0176196, i32 noundef %.0177197)
  store i32 %58, ptr %10, align 4, !tbaa !14
  %59 = icmp ult i32 %.0175195.us, %14
  br i1 %59, label %60, label %63

60:                                               ; preds = %.preheader187.split.us
  %61 = add nuw i32 %.0175195.us, 1
  %62 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %61, i32 noundef %.0176196, i32 noundef %.0177197)
  store i32 %62, ptr %27, align 4, !tbaa !14
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %10)
  br label %63

63:                                               ; preds = %60, %.preheader187.split.us
  %64 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0175195.us, i32 noundef %57, i32 noundef %.0177197)
  store i32 %64, ptr %27, align 4, !tbaa !14
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %10)
  br i1 %50, label %65, label %67

65:                                               ; preds = %63
  %66 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0175195.us, i32 noundef %.0176196, i32 noundef %51)
  store i32 %66, ptr %27, align 4, !tbaa !14
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %10)
  br label %67

67:                                               ; preds = %65, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  %68 = add nuw i32 %.0175195.us, 1
  %exitcond215.not = icmp eq i32 %68, %1
  br i1 %exitcond215.not, label %.split.us, label %.preheader187.split.us, !llvm.loop !15

69:                                               ; preds = %.split.us
  %exitcond217.not = icmp eq i32 %51, %1
  br i1 %exitcond217.not, label %._crit_edge198, label %.preheader188, !llvm.loop !16

.split.us:                                        ; preds = %78, %67
  %exitcond216.not = icmp eq i32 %57, %1
  br i1 %exitcond216.not, label %69, label %.preheader187, !llvm.loop !17

.preheader187.split:                              ; preds = %.preheader187, %78
  %.0175195 = phi i32 [ %79, %78 ], [ 0, %.preheader187 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN3JPH22SoftBodySharedSettings4EdgeC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #9
  %70 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0175195, i32 noundef %.0176196, i32 noundef %.0177197)
  store i32 %70, ptr %10, align 4, !tbaa !14
  %71 = icmp ult i32 %.0175195, %14
  br i1 %71, label %72, label %75

72:                                               ; preds = %.preheader187.split
  %73 = add nuw i32 %.0175195, 1
  %74 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %73, i32 noundef %.0176196, i32 noundef %.0177197)
  store i32 %74, ptr %27, align 4, !tbaa !14
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %10)
  br label %75

75:                                               ; preds = %72, %.preheader187.split
  br i1 %50, label %76, label %78

76:                                               ; preds = %75
  %77 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0175195, i32 noundef %.0176196, i32 noundef %51)
  store i32 %77, ptr %27, align 4, !tbaa !14
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4EdgeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %10)
  br label %78

78:                                               ; preds = %76, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  %79 = add nuw i32 %.0175195, 1
  %exitcond214.not = icmp eq i32 %79, %1
  br i1 %exitcond214.not, label %.split.us, label %.preheader187.split, !llvm.loop !15

.preheader186:                                    ; preds = %.preheader186.lr.ph, %82
  %.0174203 = phi i32 [ 0, %.preheader186.lr.ph ], [ %83, %82 ]
  br label %.preheader185

._crit_edge204:                                   ; preds = %82
  call void @_ZN3JPH22SoftBodySharedSettings32CalculateVolumeConstraintVolumesEv(ptr noundef nonnull align 8 dereferenceable(304) %21)
  %80 = getelementptr inbounds i8, ptr %12, i64 4
  %81 = getelementptr inbounds i8, ptr %12, i64 8
  br label %.preheader

.preheader185:                                    ; preds = %.preheader186, %84
  %.0173202 = phi i32 [ 0, %.preheader186 ], [ %85, %84 ]
  br label %.preheader184

82:                                               ; preds = %84
  %83 = add nuw i32 %.0174203, 1
  %exitcond224.not = icmp eq i32 %83, %14
  br i1 %exitcond224.not, label %._crit_edge204, label %.preheader186, !llvm.loop !18

.preheader184:                                    ; preds = %.preheader185, %86
  %.0172201 = phi i32 [ 0, %.preheader185 ], [ %87, %86 ]
  br label %88

84:                                               ; preds = %86
  %85 = add nuw i32 %.0173202, 1
  %exitcond223.not = icmp eq i32 %85, %14
  br i1 %exitcond223.not, label %82, label %.preheader185, !llvm.loop !19

86:                                               ; preds = %88
  %87 = add nuw i32 %.0172201, 1
  %exitcond222.not = icmp eq i32 %87, %14
  br i1 %exitcond222.not, label %84, label %.preheader184, !llvm.loop !20

88:                                               ; preds = %.preheader184, %88
  %indvars.iv = phi i64 [ 0, %.preheader184 ], [ %indvars.iv.next, %88 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #9
  call void @_ZN3JPH22SoftBodySharedSettings6VolumeC2Ev(ptr noundef nonnull align 4 dereferenceable(24) %11) #9
  %89 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr @__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices, i64 0, i64 %indvars.iv, i64 0
  %90 = load i32, ptr %89, align 16, !tbaa !14
  %91 = add i32 %90, %.0172201
  %92 = getelementptr inbounds i8, ptr %89, i64 4
  %93 = load i32, ptr %92, align 4, !tbaa !14
  %94 = add i32 %93, %.0173202
  %95 = getelementptr inbounds i8, ptr %89, i64 8
  %96 = load i32, ptr %95, align 8, !tbaa !14
  %97 = add i32 %96, %.0174203
  %98 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %91, i32 noundef %94, i32 noundef %97)
  store i32 %98, ptr %11, align 4, !tbaa !14
  %99 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr @__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices, i64 0, i64 %indvars.iv, i64 1
  %100 = load i32, ptr %99, align 4, !tbaa !14
  %101 = add i32 %100, %.0172201
  %102 = getelementptr inbounds i8, ptr %99, i64 4
  %103 = load i32, ptr %102, align 16, !tbaa !14
  %104 = add i32 %103, %.0173202
  %105 = getelementptr inbounds i8, ptr %99, i64 8
  %106 = load i32, ptr %105, align 4, !tbaa !14
  %107 = add i32 %106, %.0174203
  %108 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %101, i32 noundef %104, i32 noundef %107)
  store i32 %108, ptr %53, align 4, !tbaa !14
  %109 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr @__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices, i64 0, i64 %indvars.iv, i64 2
  %110 = load i32, ptr %109, align 8, !tbaa !14
  %111 = add i32 %110, %.0172201
  %112 = getelementptr inbounds i8, ptr %109, i64 4
  %113 = load i32, ptr %112, align 4, !tbaa !14
  %114 = add i32 %113, %.0173202
  %115 = getelementptr inbounds i8, ptr %109, i64 8
  %116 = load i32, ptr %115, align 16, !tbaa !14
  %117 = add i32 %116, %.0174203
  %118 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %111, i32 noundef %114, i32 noundef %117)
  store i32 %118, ptr %54, align 4, !tbaa !14
  %119 = getelementptr inbounds [6 x [4 x [3 x i32]]], ptr @__const._ZN3JPH22SoftBodySharedSettings11sCreateCubeEjf.tetra_indices, i64 0, i64 %indvars.iv, i64 3
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %121 = add i32 %120, %.0172201
  %122 = getelementptr inbounds i8, ptr %119, i64 4
  %123 = load i32, ptr %122, align 8, !tbaa !14
  %124 = add i32 %123, %.0173202
  %125 = getelementptr inbounds i8, ptr %119, i64 8
  %126 = load i32, ptr %125, align 4, !tbaa !14
  %127 = add i32 %126, %.0174203
  %128 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %121, i32 noundef %124, i32 noundef %127)
  store i32 %128, ptr %55, align 4, !tbaa !14
  call void @_ZN3JPH5ArrayINS_22SoftBodySharedSettings6VolumeENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 4 dereferenceable(24) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond221.not = icmp eq i64 %indvars.iv.next, 6
  br i1 %exitcond221.not, label %86, label %88, !llvm.loop !21

.preheader:                                       ; preds = %._crit_edge204, %130
  %.0169206 = phi i32 [ 0, %._crit_edge204 ], [ %129, %130 ]
  %129 = add nuw i32 %.0169206, 1
  br label %131

._crit_edge207:                                   ; preds = %130, %._crit_edge204.thread
  call void @_ZN3JPH22SoftBodySharedSettings8OptimizeEv(ptr noundef nonnull align 8 dereferenceable(304) %21)
  call void @_ZN3JPH3RefINS_22SoftBodySharedSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  ret void

130:                                              ; preds = %131
  %exitcond226.not = icmp eq i32 %129, %14
  br i1 %exitcond226.not, label %._crit_edge207, label %.preheader, !llvm.loop !22

131:                                              ; preds = %.preheader, %131
  %.0205 = phi i32 [ 0, %.preheader ], [ %134, %131 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  call void @_ZN3JPH22SoftBodySharedSettings4FaceC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #9
  %132 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef %.0169206, i32 noundef 0)
  store i32 %132, ptr %12, align 4, !tbaa !14
  %133 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef %129, i32 noundef 0)
  store i32 %133, ptr %80, align 4, !tbaa !14
  %134 = add nuw i32 %.0205, 1
  %135 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %129, i32 noundef 0)
  store i32 %135, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %136 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %129, i32 noundef 0)
  store i32 %136, ptr %80, align 4, !tbaa !14
  %137 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %.0169206, i32 noundef 0)
  store i32 %137, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %138 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef %.0169206, i32 noundef %14)
  store i32 %138, ptr %12, align 4, !tbaa !14
  %139 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %129, i32 noundef %14)
  store i32 %139, ptr %80, align 4, !tbaa !14
  %140 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef %129, i32 noundef %14)
  store i32 %140, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %141 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %.0169206, i32 noundef %14)
  store i32 %141, ptr %80, align 4, !tbaa !14
  %142 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %129, i32 noundef %14)
  store i32 %142, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %143 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef 0, i32 noundef %.0169206)
  store i32 %143, ptr %12, align 4, !tbaa !14
  %144 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef 0, i32 noundef %129)
  store i32 %144, ptr %80, align 4, !tbaa !14
  %145 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef 0, i32 noundef %129)
  store i32 %145, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %146 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef 0, i32 noundef %.0169206)
  store i32 %146, ptr %80, align 4, !tbaa !14
  %147 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef 0, i32 noundef %129)
  store i32 %147, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %148 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef %14, i32 noundef %.0169206)
  store i32 %148, ptr %12, align 4, !tbaa !14
  %149 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %.0205, i32 noundef %14, i32 noundef %129)
  store i32 %149, ptr %80, align 4, !tbaa !14
  %150 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %14, i32 noundef %129)
  store i32 %150, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %151 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %14, i32 noundef %129)
  store i32 %151, ptr %80, align 4, !tbaa !14
  %152 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %134, i32 noundef %14, i32 noundef %.0169206)
  store i32 %152, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %153 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0, i32 noundef %.0205, i32 noundef %.0169206)
  store i32 %153, ptr %12, align 4, !tbaa !14
  %154 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0, i32 noundef %.0205, i32 noundef %129)
  store i32 %154, ptr %80, align 4, !tbaa !14
  %155 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0, i32 noundef %134, i32 noundef %129)
  store i32 %155, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %156 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0, i32 noundef %134, i32 noundef %129)
  store i32 %156, ptr %80, align 4, !tbaa !14
  %157 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 0, i32 noundef %134, i32 noundef %.0169206)
  store i32 %157, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %158 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %14, i32 noundef %.0205, i32 noundef %.0169206)
  store i32 %158, ptr %12, align 4, !tbaa !14
  %159 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %14, i32 noundef %134, i32 noundef %129)
  store i32 %159, ptr %80, align 4, !tbaa !14
  %160 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %14, i32 noundef %.0205, i32 noundef %129)
  store i32 %160, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  %161 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %14, i32 noundef %134, i32 noundef %.0169206)
  store i32 %161, ptr %80, align 4, !tbaa !14
  %162 = call noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef %14, i32 noundef %134, i32 noundef %129)
  store i32 %162, ptr %81, align 4, !tbaa !14
  call void @_ZN3JPH22SoftBodySharedSettings7AddFaceERKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(304) %21, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  %exitcond225.not = icmp eq i32 %134, %14
  br i1 %exitcond225.not, label %130, label %131, !llvm.loop !23
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(28)) unnamed_addr #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings4EdgeC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZN3JPH22SoftBodySharedSettings11sCreateCubeEjfENK3$_0clEjjj"(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #8 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings4FaceC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH22SoftBodySharedSettings8OptimizeEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #1 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress 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 #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"="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 #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 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTSZN3JPH22SoftBodySharedSettings11sCreateCubeEjfE3$_0", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass