; LLVM IR from Xingyu-Lin/softgym :: PyFlex/extensions (flexExtCloth)

; 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.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl" }
%"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl" }
%"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.XVector3 = type { float, float, float }
%class.XVector4 = type { float, float, float, float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.NvFlexExtTearingParticleClone = type { i32, i32 }
%struct.NvFlexExtTearingMeshEdit = type { i32, i32 }
%struct.NvFlexExtAsset = type { ptr, i32, i32, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i8, float, float, float }
%struct.FlexExtTearingClothAsset = type { %struct.NvFlexExtAsset, ptr }
%class.ClothMesh = type <{ %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.15", i32, float, float, i8, [3 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<ClothMesh::Edge, std::allocator<ClothMesh::Edge>>::_Vector_impl" }
%"struct.std::_Vector_base<ClothMesh::Edge, std::allocator<ClothMesh::Edge>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClothMesh::Edge, std::allocator<ClothMesh::Edge>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClothMesh::Edge, std::allocator<ClothMesh::Edge>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<ClothMesh::Triangle, std::allocator<ClothMesh::Triangle>>::_Vector_impl" }
%"struct.std::_Vector_base<ClothMesh::Triangle, std::allocator<ClothMesh::Triangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClothMesh::Triangle, std::allocator<ClothMesh::Triangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClothMesh::Triangle, std::allocator<ClothMesh::Triangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ClothMesh::VertexCopy" = type { i32, i32 }
%"struct.ClothMesh::TriangleUpdate" = type { i32, i32 }

; 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: inlinehint mustprogress uwtable
declare dso_local noundef float @_Z6LengthI8XVector3IfEENT_10value_typeERKS2_(ptr noundef nonnull align 4 dereferenceable(12)) #1

; 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK8XVector3IfEmiERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @NvFlexExtTearClothMesh(ptr noundef %0, float noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8) #6 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::vector.20", align 8
  %21 = alloca %"class.std::vector.25", align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %class.XVector3, align 4
  %30 = alloca %class.XVector3, align 4
  %31 = alloca %class.XVector3, align 4
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca %class.XVector4, align 4
  %34 = alloca %class.XVector4, align 4
  %35 = alloca i32, align 4
  %36 = alloca %class.XVector3, align 4
  %37 = alloca %class.XVector3, align 4
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca { <2 x float>, float }, align 8
  %40 = alloca %"class.std::vector.0", align 8
  %41 = alloca %"class.std::vector.0", align 8
  %42 = alloca i32, align 4
  %43 = alloca %class.XVector3, align 4
  %44 = alloca { <2 x float>, float }, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %struct.NvFlexExtTearingParticleClone, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca %struct.NvFlexExtTearingMeshEdit, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store float %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !11
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store i32 %5, ptr %15, align 4, !tbaa !11
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store i32 %8, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %52, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !11
  %53 = load i32, ptr %15, align 4, !tbaa !11
  %54 = load ptr, ptr %19, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !16
  %60 = sub nsw i32 %56, %59
  %61 = invoke noundef i32 @_Z3MinIiET_S0_S0_(i32 noundef %53, i32 noundef %60)
          to label %62 unwind label %81

62:                                               ; preds = %9
  store i32 %61, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %63

63:                                               ; preds = %275, %62
  %64 = load i32, ptr %25, align 4, !tbaa !11
  %65 = load ptr, ptr %19, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %66, align 8, !tbaa !17
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %69, label %78

69:                                               ; preds = %63
  %70 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %71 = trunc i64 %70 to i32
  %72 = load i32, ptr %15, align 4, !tbaa !11
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %78

74:                                               ; preds = %69
  %75 = load i32, ptr %22, align 4, !tbaa !11
  %76 = load i32, ptr %12, align 4, !tbaa !11
  %77 = icmp slt i32 %75, %76
  br label %78

78:                                               ; preds = %74, %69, %63
  %79 = phi i1 [ false, %69 ], [ false, %63 ], [ %77, %74 ]
  br i1 %79, label %85, label %80

80:                                               ; preds = %78
  store i32 2, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %280

81:                                               ; preds = %9
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %23, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %24, align 4
  br label %364

85:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %86, i32 0, i32 3
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = load i32, ptr %25, align 4, !tbaa !11
  %90 = mul nsw i32 %89, 2
  %91 = add nsw i32 %90, 0
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %88, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !11
  store i32 %94, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = load i32, ptr %25, align 4, !tbaa !11
  %99 = mul nsw i32 %98, 2
  %100 = add nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %97, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !11
  store i32 %103, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = load i32, ptr %27, align 4, !tbaa !11
  %108 = mul nsw i32 %107, 4
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds float, ptr %106, i64 %109
  invoke void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef %110)
          to label %111 unwind label %147

111:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #8
  %112 = load ptr, ptr %19, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = load i32, ptr %28, align 4, !tbaa !11
  %116 = mul nsw i32 %115, 4
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds float, ptr %114, i64 %117
  invoke void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef %118)
          to label %119 unwind label %151

119:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #8
  %120 = invoke { <2 x float>, float } @_ZNK8XVector3IfEmiERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %30)
          to label %121 unwind label %155

121:                                              ; preds = %119
  store { <2 x float>, float } %120, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %32, i64 12, i1 false)
  %122 = invoke noundef float @_Z6LengthI8XVector3IfEENT_10value_typeERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %123 unwind label %155

123:                                              ; preds = %121
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %124, i32 0, i32 5
  %126 = load ptr, ptr %125, align 8, !tbaa !20
  %127 = load i32, ptr %25, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %126, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !9
  %131 = load float, ptr %11, align 4, !tbaa !9
  %132 = fmul float %130, %131
  %133 = fcmp ogt float %122, %132
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  br i1 %133, label %134, label %271

134:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !19
  %138 = load i32, ptr %27, align 4, !tbaa !11
  %139 = mul nsw i32 %138, 4
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %137, i64 %140
  invoke void @_ZN8XVector4IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef %141)
          to label %142 unwind label %159

142:                                              ; preds = %134
  %143 = getelementptr inbounds %class.XVector4, ptr %33, i32 0, i32 3
  %144 = load float, ptr %143, align 4, !tbaa !21
  %145 = fcmp oeq float %144, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br i1 %145, label %146, label %163

146:                                              ; preds = %142
  store i32 4, ptr %26, align 4
  br label %272

147:                                              ; preds = %85
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %23, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %24, align 4
  br label %279

151:                                              ; preds = %111
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %23, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %24, align 4
  br label %278

155:                                              ; preds = %121, %119
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %23, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  br label %278

159:                                              ; preds = %134
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %23, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %278

163:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = load i32, ptr %28, align 4, !tbaa !11
  %168 = mul nsw i32 %167, 4
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %166, i64 %169
  invoke void @_ZN8XVector4IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef %170)
          to label %171 unwind label %176

171:                                              ; preds = %163
  %172 = getelementptr inbounds %class.XVector4, ptr %34, i32 0, i32 3
  %173 = load float, ptr %172, align 4, !tbaa !21
  %174 = fcmp oeq float %173, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br i1 %174, label %175, label %180

175:                                              ; preds = %171
  store i32 4, ptr %26, align 4
  br label %272

176:                                              ; preds = %163
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %23, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %278

180:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %181 = invoke noundef float @_Z5Randfv()
          to label %182 unwind label %222

182:                                              ; preds = %180
  %183 = fcmp ogt float %181, 5.000000e-01
  br i1 %183, label %184, label %186

184:                                              ; preds = %182
  %185 = load i32, ptr %27, align 4, !tbaa !11
  br label %188

186:                                              ; preds = %182
  %187 = load i32, ptr %28, align 4, !tbaa !11
  br label %188

188:                                              ; preds = %186, %184
  %189 = phi i32 [ %185, %184 ], [ %187, %186 ]
  store i32 %189, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #8
  %190 = invoke { <2 x float>, float } @_ZNK8XVector3IfEmiERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %30)
          to label %191 unwind label %226

191:                                              ; preds = %188
  store { <2 x float>, float } %190, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %38, i64 12, i1 false)
  %192 = invoke { <2 x float>, float } @_Z9NormalizeI8XVector3IfEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(12) %37)
          to label %193 unwind label %226

193:                                              ; preds = %191
  store { <2 x float>, float } %192, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %39, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.FlexExtTearingClothAsset, ptr %194, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !23
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %197, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !19
  %200 = load i32, ptr %35, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !25
  %201 = load i32, ptr %15, align 4, !tbaa !11
  %202 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %203 = trunc i64 %202 to i32
  %204 = sub nsw i32 %201, %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %43, i64 12, i1 false)
  %205 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 0
  %206 = load <2 x float>, ptr %205, align 4
  %207 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 1
  %208 = load float, ptr %207, align 4
  %209 = invoke noundef i32 @_ZN9ClothMesh11SplitVertexEPK8XVector4IfEi8XVector3IfERSt6vectorIiSaIiEES9_RS6_INS_14TriangleUpdateESaISA_EERS6_INS_10VertexCopyESaISE_EEi(ptr noundef nonnull align 8 dereferenceable(133) %196, ptr noundef %199, i32 noundef %200, <2 x float> %206, float %208, ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %204)
          to label %210 unwind label %230

210:                                              ; preds = %193
  store i32 %209, ptr %42, align 4, !tbaa !11
  %211 = load i32, ptr %42, align 4, !tbaa !11
  %212 = icmp ne i32 %211, -1
  br i1 %212, label %213, label %267

213:                                              ; preds = %210
  %214 = load i32, ptr %22, align 4, !tbaa !11
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 0, ptr %45, align 4, !tbaa !11
  br label %216

216:                                              ; preds = %249, %213
  %217 = load i32, ptr %45, align 4, !tbaa !11
  %218 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  %219 = trunc i64 %218 to i32
  %220 = icmp slt i32 %217, %219
  br i1 %220, label %234, label %221

221:                                              ; preds = %216
  store i32 5, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %256

222:                                              ; preds = %180
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %23, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %24, align 4
  br label %270

226:                                              ; preds = %191, %188
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %23, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  br label %269

230:                                              ; preds = %256, %193
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %23, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %24, align 4
  br label %268

234:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %235 = load i32, ptr %45, align 4, !tbaa !11
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %236) #8
  %238 = load i32, ptr %237, align 4, !tbaa !11
  store i32 %238, ptr %46, align 4, !tbaa !11
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.FlexExtTearingClothAsset, ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %240, align 8, !tbaa !23
  %242 = load i32, ptr %46, align 4, !tbaa !11
  %243 = load i32, ptr %15, align 4, !tbaa !11
  %244 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %245 = trunc i64 %244 to i32
  %246 = sub nsw i32 %243, %245
  %247 = invoke noundef i32 @_ZN9ClothMesh14SeparateVertexEiRSt6vectorINS_14TriangleUpdateESaIS1_EERS0_INS_10VertexCopyESaIS5_EEi(ptr noundef nonnull align 8 dereferenceable(133) %241, i32 noundef %242, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %246)
          to label %248 unwind label %252

248:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %45, align 4, !tbaa !11
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %45, align 4, !tbaa !11
  br label %216, !llvm.loop !26

252:                                              ; preds = %234
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %23, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %268

256:                                              ; preds = %221
  %257 = load ptr, ptr %19, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.FlexExtTearingClothAsset, ptr %257, i32 0, i32 1
  %259 = load ptr, ptr %258, align 8, !tbaa !23
  %260 = load i32, ptr %42, align 4, !tbaa !11
  %261 = load i32, ptr %15, align 4, !tbaa !11
  %262 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %263 = trunc i64 %262 to i32
  %264 = sub nsw i32 %261, %263
  %265 = invoke noundef i32 @_ZN9ClothMesh14SeparateVertexEiRSt6vectorINS_14TriangleUpdateESaIS1_EERS0_INS_10VertexCopyESaIS5_EEi(ptr noundef nonnull align 8 dereferenceable(133) %259, i32 noundef %260, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %264)
          to label %266 unwind label %230

266:                                              ; preds = %256
  br label %267

267:                                              ; preds = %266, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %271

268:                                              ; preds = %252, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #8
  br label %269

269:                                              ; preds = %268, %226
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  br label %270

270:                                              ; preds = %269, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %278

271:                                              ; preds = %267, %123
  store i32 0, ptr %26, align 4
  br label %272

272:                                              ; preds = %271, %175, %146
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  %273 = load i32, ptr %26, align 4
  switch i32 %273, label %370 [
    i32 0, label %274
    i32 4, label %275
  ]

274:                                              ; preds = %272
  br label %275

275:                                              ; preds = %274, %272
  %276 = load i32, ptr %25, align 4, !tbaa !11
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %25, align 4, !tbaa !11
  br label %63, !llvm.loop !28

278:                                              ; preds = %270, %176, %159, %155, %151
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  br label %279

279:                                              ; preds = %278, %147
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %364

280:                                              ; preds = %80
  %281 = load ptr, ptr %19, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.FlexExtTearingClothAsset, ptr %281, i32 0, i32 1
  %283 = load ptr, ptr %282, align 8, !tbaa !23
  %284 = getelementptr inbounds %class.ClothMesh, ptr %283, i32 0, i32 5
  %285 = load i32, ptr %284, align 8, !tbaa !29
  %286 = load ptr, ptr %19, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %286, i32 0, i32 1
  store i32 %285, ptr %287, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  store i32 0, ptr %47, align 4, !tbaa !11
  br label %288

288:                                              ; preds = %311, %280
  %289 = load i32, ptr %47, align 4, !tbaa !11
  %290 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %291 = trunc i64 %290 to i32
  %292 = icmp slt i32 %289, %291
  br i1 %292, label %294, label %293

293:                                              ; preds = %288
  store i32 8, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %314

294:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %295 = load i32, ptr %47, align 4, !tbaa !11
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %296) #8
  %298 = getelementptr inbounds %"struct.ClothMesh::VertexCopy", ptr %297, i32 0, i32 0
  %299 = load i32, ptr %298, align 4, !tbaa !47
  %300 = getelementptr inbounds %struct.NvFlexExtTearingParticleClone, ptr %48, i32 0, i32 0
  store i32 %299, ptr %300, align 4, !tbaa !49
  %301 = load i32, ptr %47, align 4, !tbaa !11
  %302 = sext i32 %301 to i64
  %303 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %302) #8
  %304 = getelementptr inbounds %"struct.ClothMesh::VertexCopy", ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !51
  %306 = getelementptr inbounds %struct.NvFlexExtTearingParticleClone, ptr %48, i32 0, i32 1
  store i32 %305, ptr %306, align 4, !tbaa !52
  %307 = load ptr, ptr %13, align 8, !tbaa !5
  %308 = load i32, ptr %47, align 4, !tbaa !11
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds %struct.NvFlexExtTearingParticleClone, ptr %307, i64 %309
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %310, ptr align 4 %48, i64 8, i1 false), !tbaa.struct !53
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %311

311:                                              ; preds = %294
  %312 = load i32, ptr %47, align 4, !tbaa !11
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %47, align 4, !tbaa !11
  br label %288, !llvm.loop !54

314:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %315 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %316 = trunc i64 %315 to i32
  %317 = load i32, ptr %18, align 4, !tbaa !11
  %318 = invoke noundef i32 @_Z3MinIiET_S0_S0_(i32 noundef %316, i32 noundef %317)
          to label %319 unwind label %325

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

320:                                              ; preds = %355, %319
  %321 = load i32, ptr %50, align 4, !tbaa !11
  %322 = load i32, ptr %49, align 4, !tbaa !11
  %323 = icmp slt i32 %321, %322
  br i1 %323, label %329, label %324

324:                                              ; preds = %320
  store i32 11, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %358

325:                                              ; preds = %314
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %23, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %364

329:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %330 = load i32, ptr %50, align 4, !tbaa !11
  %331 = sext i32 %330 to i64
  %332 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %331) #8
  %333 = getelementptr inbounds %"struct.ClothMesh::TriangleUpdate", ptr %332, i32 0, i32 0
  %334 = load i32, ptr %333, align 4, !tbaa !55
  %335 = getelementptr inbounds %struct.NvFlexExtTearingMeshEdit, ptr %51, i32 0, i32 0
  store i32 %334, ptr %335, align 4, !tbaa !57
  %336 = load i32, ptr %50, align 4, !tbaa !11
  %337 = sext i32 %336 to i64
  %338 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %337) #8
  %339 = getelementptr inbounds %"struct.ClothMesh::TriangleUpdate", ptr %338, i32 0, i32 1
  %340 = load i32, ptr %339, align 4, !tbaa !59
  %341 = getelementptr inbounds %struct.NvFlexExtTearingMeshEdit, ptr %51, i32 0, i32 1
  store i32 %340, ptr %341, align 4, !tbaa !60
  %342 = getelementptr inbounds %struct.NvFlexExtTearingMeshEdit, ptr %51, i32 0, i32 1
  %343 = load i32, ptr %342, align 4, !tbaa !60
  %344 = load ptr, ptr %19, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.NvFlexExtAsset, ptr %344, i32 0, i32 15
  %346 = load ptr, ptr %345, align 8, !tbaa !61
  %347 = getelementptr inbounds %struct.NvFlexExtTearingMeshEdit, ptr %51, i32 0, i32 0
  %348 = load i32, ptr %347, align 4, !tbaa !57
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds i32, ptr %346, i64 %349
  store i32 %343, ptr %350, align 4, !tbaa !11
  %351 = load ptr, ptr %16, align 8, !tbaa !5
  %352 = load i32, ptr %50, align 4, !tbaa !11
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds %struct.NvFlexExtTearingMeshEdit, ptr %351, i64 %353
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %354, ptr align 4 %51, i64 8, i1 false), !tbaa.struct !53
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %355

355:                                              ; preds = %329
  %356 = load i32, ptr %50, align 4, !tbaa !11
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %50, align 4, !tbaa !11
  br label %320, !llvm.loop !62

358:                                              ; preds = %324
  %359 = load i32, ptr %49, align 4, !tbaa !11
  %360 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 %359, ptr %360, align 4, !tbaa !11
  %361 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %362 = trunc i64 %361 to i32
  %363 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %362, ptr %363, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  ret void

364:                                              ; preds = %325, %279, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %365

365:                                              ; preds = %364
  %366 = load ptr, ptr %23, align 8
  %367 = load i32, ptr %24, align 4
  %368 = insertvalue { ptr, i32 } poison, ptr %366, 0
  %369 = insertvalue { ptr, i32 } %368, i32 %367, 1
  resume { ptr, i32 } %369

370:                                              ; preds = %272
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3MinIiET_S0_S0_(i32 noundef, i32 noundef) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_Z5Randfv() #3

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z9NormalizeI8XVector3IfEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9ClothMesh11SplitVertexEPK8XVector4IfEi8XVector3IfERSt6vectorIiSaIiEES9_RS6_INS_14TriangleUpdateESaISA_EERS6_INS_10VertexCopyESaISE_EEi(ptr noundef nonnull align 8 dereferenceable(133), ptr noundef, i32 noundef, <2 x float>, float, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9ClothMesh14SeparateVertexEiRSt6vectorINS_14TriangleUpdateESaIS1_EERS0_INS_10VertexCopyESaIS5_EEi(ptr noundef nonnull align 8 dereferenceable(133), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #7 align 2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 12}
!14 = !{!"_ZTS14NvFlexExtAsset", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !6, i64 48, !12, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !15, i64 124, !10, i64 128, !10, i64 132, !10, i64 136}
!15 = !{!"bool", !7, i64 0}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !12, i64 40}
!18 = !{!14, !6, i64 16}
!19 = !{!14, !6, i64 0}
!20 = !{!14, !6, i64 32}
!21 = !{!22, !10, i64 12}
!22 = !{!"_ZTS8XVector4IfE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!23 = !{!24, !6, i64 144}
!24 = !{!"_ZTS24FlexExtTearingClothAsset", !14, i64 0, !6, i64 144}
!25 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!30, !12, i64 120}
!30 = !{!"_ZTS9ClothMesh", !31, i64 0, !35, i64 24, !35, i64 48, !39, i64 72, !43, i64 96, !12, i64 120, !10, i64 124, !10, i64 128, !15, i64 132}
!31 = !{!"_ZTSSt6vectorIiSaIiEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorIfSaIfEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt6vectorIN9ClothMesh4EdgeESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIN9ClothMesh4EdgeESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh4EdgeESaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh4EdgeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt6vectorIN9ClothMesh8TriangleESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIN9ClothMesh8TriangleESaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh8TriangleESaIS1_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh8TriangleESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!48, !12, i64 0}
!48 = !{!"_ZTSN9ClothMesh10VertexCopyE", !12, i64 0, !12, i64 4}
!49 = !{!50, !12, i64 0}
!50 = !{!"_ZTS29NvFlexExtTearingParticleClone", !12, i64 0, !12, i64 4}
!51 = !{!48, !12, i64 4}
!52 = !{!50, !12, i64 4}
!53 = !{i64 0, i64 4, !11, i64 4, i64 4, !11}
!54 = distinct !{!54, !27}
!55 = !{!56, !12, i64 0}
!56 = !{!"_ZTSN9ClothMesh14TriangleUpdateE", !12, i64 0, !12, i64 4}
!57 = !{!58, !12, i64 0}
!58 = !{!"_ZTS24NvFlexExtTearingMeshEdit", !12, i64 0, !12, i64 4}
!59 = !{!56, !12, i64 4}
!60 = !{!58, !12, i64 4}
!61 = !{!14, !6, i64 112}
!62 = distinct !{!62, !27}


; 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.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl" }
%"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClothMesh::TriangleUpdate, std::allocator<ClothMesh::TriangleUpdate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl" }
%"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClothMesh::VertexCopy, std::allocator<ClothMesh::VertexCopy>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.XVector3 = type { float, float, float }
%class.XVector4 = type { float, float, float, float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.NvFlexExtTearingParticleClone = type { i32, i32 }
%struct.NvFlexExtTearingMeshEdit = type { i32, i32 }

; 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: inlinehint mustprogress uwtable
declare dso_local noundef float @_Z6LengthI8XVector3IfEENT_10value_typeERKS2_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK8XVector3IfEmiERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @NvFlexExtTearClothMesh(ptr nocapture noundef %0, float noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, i32 noundef %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, i32 noundef %8) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::vector.20", align 8
  %11 = alloca %"class.std::vector.25", align 8
  %12 = alloca %class.XVector3, align 4
  %13 = alloca %class.XVector3, align 4
  %14 = alloca %class.XVector3, align 8
  %15 = alloca %class.XVector4, align 4
  %16 = alloca %class.XVector4, align 4
  %17 = alloca %class.XVector3, align 8
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca %"class.std::vector.0", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = sub nsw i32 %21, %23
  %25 = call noundef i32 @_Z3MinIiET_S0_S0_(i32 noundef %5, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = load i32, ptr %26, align 8, !tbaa !14
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph102, label %.critedge

.lr.ph102:                                        ; preds = %9
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  %31 = getelementptr inbounds i8, ptr %15, i64 12
  %32 = getelementptr inbounds i8, ptr %16, i64 12
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %33 = getelementptr inbounds i8, ptr %0, i64 144
  br label %34

34:                                               ; preds = %.lr.ph102, %130
  %indvars.iv112 = phi i64 [ 0, %.lr.ph102 ], [ %indvars.iv.next113, %130 ]
  %.0100 = phi i32 [ 0, %.lr.ph102 ], [ %.3, %130 ]
  %35 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %36 = trunc i64 %35 to i32
  %37 = icmp sgt i32 %25, %36
  %38 = icmp slt i32 %.0100, %2
  %or.cond = select i1 %37, i1 %38, i1 false
  br i1 %or.cond, label %46, label %.critedge

.critedge:                                        ; preds = %130, %34, %9
  %39 = getelementptr inbounds i8, ptr %0, i64 144
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %40, i64 120
  %42 = load i32, ptr %41, align 8, !tbaa !17
  store i32 %42, ptr %22, align 8, !tbaa !13
  %43 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %44 = trunc i64 %43 to i32
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph105, label %._crit_edge106

46:                                               ; preds = %34
  %47 = load ptr, ptr %29, align 8, !tbaa !35
  %48 = shl nuw nsw i64 %indvars.iv112, 1
  %49 = getelementptr inbounds i32, ptr %47, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !36
  %51 = or disjoint i64 %48, 1
  %52 = getelementptr inbounds i32, ptr %47, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %54 = load ptr, ptr %0, align 8, !tbaa !37
  %55 = shl nsw i32 %50, 2
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %54, i64 %56
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef %57)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  %58 = load ptr, ptr %0, align 8, !tbaa !37
  %59 = shl nsw i32 %53, 2
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %58, i64 %60
  call void @_ZN8XVector3IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef %61)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  %62 = invoke { <2 x float>, float } @_ZNK8XVector3IfEmiERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %63 unwind label %76

63:                                               ; preds = %46
  %.fca.0.extract31 = extractvalue { <2 x float>, float } %62, 0
  %.fca.1.extract32 = extractvalue { <2 x float>, float } %62, 1
  store <2 x float> %.fca.0.extract31, ptr %14, align 8
  store float %.fca.1.extract32, ptr %.sroa.234.0..sroa_idx, align 8
  %64 = invoke noundef float @_Z6LengthI8XVector3IfEENT_10value_typeERKS2_(ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %65 unwind label %76

65:                                               ; preds = %63
  %66 = load ptr, ptr %30, align 8, !tbaa !38
  %67 = getelementptr inbounds float, ptr %66, i64 %indvars.iv112
  %68 = load float, ptr %67, align 4, !tbaa !39
  %69 = fmul float %68, %1
  %70 = fcmp ogt float %64, %69
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  br i1 %70, label %71, label %130

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %72 = load ptr, ptr %0, align 8, !tbaa !37
  %73 = getelementptr inbounds float, ptr %72, i64 %56
  call void @_ZN8XVector4IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef %73)
  %74 = load float, ptr %31, align 4, !tbaa !40
  %75 = fcmp oeq float %74, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br i1 %75, label %130, label %78

76:                                               ; preds = %63, %46
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  br label %134

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %79 = load ptr, ptr %0, align 8, !tbaa !37
  %80 = getelementptr inbounds float, ptr %79, i64 %60
  call void @_ZN8XVector4IfEC2EPKf(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef %80)
  %81 = load float, ptr %32, align 4, !tbaa !40
  %82 = fcmp oeq float %81, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br i1 %82, label %130, label %83

83:                                               ; preds = %78
  %84 = invoke noundef float @_Z5Randfv()
          to label %85 unwind label %109

85:                                               ; preds = %83
  %86 = fcmp ogt float %84, 5.000000e-01
  %87 = select i1 %86, i32 %50, i32 %53
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  %88 = invoke { <2 x float>, float } @_ZNK8XVector3IfEmiERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %89 unwind label %111

89:                                               ; preds = %85
  %.fca.0.extract24 = extractvalue { <2 x float>, float } %88, 0
  %.fca.1.extract25 = extractvalue { <2 x float>, float } %88, 1
  store <2 x float> %.fca.0.extract24, ptr %17, align 8
  store float %.fca.1.extract25, ptr %.sroa.227.0..sroa_idx, align 8
  %90 = invoke { <2 x float>, float } @_Z9NormalizeI8XVector3IfEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %91 unwind label %111

91:                                               ; preds = %89
  %.fca.0.extract = extractvalue { <2 x float>, float } %90, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %90, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %92 = load ptr, ptr %33, align 8, !tbaa !15
  %93 = load ptr, ptr %0, align 8, !tbaa !37
  %94 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %95 = trunc i64 %94 to i32
  %96 = sub nsw i32 %25, %95
  %97 = invoke noundef i32 @_ZN9ClothMesh11SplitVertexEPK8XVector4IfEi8XVector3IfERSt6vectorIiSaIiEES9_RS6_INS_14TriangleUpdateESaISA_EERS6_INS_10VertexCopyESaISE_EEi(ptr noundef nonnull align 8 dereferenceable(133) %92, ptr noundef %93, i32 noundef %87, <2 x float> %.fca.0.extract, float %.fca.1.extract, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %96)
          to label %98 unwind label %113

98:                                               ; preds = %91
  %.not = icmp eq i32 %97, -1
  br i1 %.not, label %128, label %99

99:                                               ; preds = %98
  %100 = add nsw i32 %.0100, 1
  %101 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %102 = trunc i64 %101 to i32
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %122, %99
  %104 = load ptr, ptr %33, align 8, !tbaa !15
  %105 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %106 = trunc i64 %105 to i32
  %107 = sub nsw i32 %25, %106
  %108 = invoke noundef i32 @_ZN9ClothMesh14SeparateVertexEiRSt6vectorINS_14TriangleUpdateESaIS1_EERS0_INS_10VertexCopyESaIS5_EEi(ptr noundef nonnull align 8 dereferenceable(133) %104, i32 noundef %97, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %107)
          to label %128 unwind label %113

109:                                              ; preds = %83
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %134

111:                                              ; preds = %89, %85
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  br label %134

113:                                              ; preds = %._crit_edge, %91
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %129

.lr.ph:                                           ; preds = %99, %122
  %indvars.iv = phi i64 [ %indvars.iv.next, %122 ], [ 0, %99 ]
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #7
  %116 = load i32, ptr %115, align 4, !tbaa !36
  %117 = load ptr, ptr %33, align 8, !tbaa !15
  %118 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %119 = trunc i64 %118 to i32
  %120 = sub nsw i32 %25, %119
  %121 = invoke noundef i32 @_ZN9ClothMesh14SeparateVertexEiRSt6vectorINS_14TriangleUpdateESaIS1_EERS0_INS_10VertexCopyESaIS5_EEi(ptr noundef nonnull align 8 dereferenceable(133) %117, i32 noundef %116, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %120)
          to label %122 unwind label %126

122:                                              ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %123 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %sext = shl i64 %123, 32
  %124 = ashr exact i64 %sext, 32
  %125 = icmp slt i64 %indvars.iv.next, %124
  br i1 %125, label %.lr.ph, label %._crit_edge, !llvm.loop !42

126:                                              ; preds = %.lr.ph
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %129

128:                                              ; preds = %._crit_edge, %98
  %.1 = phi i32 [ %100, %._crit_edge ], [ %.0100, %98 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %130

129:                                              ; preds = %126, %113
  %.pn = phi { ptr, i32 } [ %127, %126 ], [ %114, %113 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %134

130:                                              ; preds = %65, %128, %78, %71
  %.3 = phi i32 [ %.0100, %71 ], [ %.0100, %78 ], [ %.1, %128 ], [ %.0100, %65 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %131 = load i32, ptr %26, align 8, !tbaa !14
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next113, %132
  br i1 %133, label %34, label %.critedge, !llvm.loop !44

134:                                              ; preds = %109, %129, %111, %76
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %110, %109 ], [ %.pn, %129 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  resume { ptr, i32 } %.pn.pn.pn.pn

._crit_edge106:                                   ; preds = %.lr.ph105, %.critedge
  %135 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %136 = trunc i64 %135 to i32
  %137 = call noundef i32 @_Z3MinIiET_S0_S0_(i32 noundef %136, i32 noundef %8)
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %.lr.ph109, label %._crit_edge110

.lr.ph109:                                        ; preds = %._crit_edge106
  %139 = getelementptr inbounds i8, ptr %0, i64 112
  %wide.trip.count = zext nneg i32 %137 to i64
  br label %151

.lr.ph105:                                        ; preds = %.critedge, %.lr.ph105
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %.lr.ph105 ], [ 0, %.critedge ]
  %140 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv115) #7
  %141 = load i32, ptr %140, align 4, !tbaa !45
  %142 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv115) #7
  %143 = getelementptr inbounds i8, ptr %142, i64 4
  %144 = load i32, ptr %143, align 4, !tbaa !47
  %145 = getelementptr inbounds %struct.NvFlexExtTearingParticleClone, ptr %3, i64 %indvars.iv115
  store i32 %141, ptr %145, align 4, !tbaa !36
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %145, i64 4
  store i32 %144, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !36
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %146 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %sext121 = shl i64 %146, 32
  %147 = ashr exact i64 %sext121, 32
  %148 = icmp slt i64 %indvars.iv.next116, %147
  br i1 %148, label %.lr.ph105, label %._crit_edge106, !llvm.loop !48

._crit_edge110:                                   ; preds = %151, %._crit_edge106
  store i32 %137, ptr %7, align 4, !tbaa !36
  %149 = call noundef i64 @_ZNKSt6vectorIN9ClothMesh10VertexCopyESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %150 = trunc i64 %149 to i32
  store i32 %150, ptr %4, align 4, !tbaa !36
  call void @_ZNSt6vectorIN9ClothMesh10VertexCopyESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  ret void

151:                                              ; preds = %.lr.ph109, %151
  %indvars.iv118 = phi i64 [ 0, %.lr.ph109 ], [ %indvars.iv.next119, %151 ]
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv118) #7
  %153 = load i32, ptr %152, align 4, !tbaa !49
  %154 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN9ClothMesh14TriangleUpdateESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv118) #7
  %155 = getelementptr inbounds i8, ptr %154, i64 4
  %156 = load i32, ptr %155, align 4, !tbaa !51
  %157 = load ptr, ptr %139, align 8, !tbaa !52
  %158 = sext i32 %153 to i64
  %159 = getelementptr inbounds i32, ptr %157, i64 %158
  store i32 %156, ptr %159, align 4, !tbaa !36
  %160 = getelementptr inbounds %struct.NvFlexExtTearingMeshEdit, ptr %6, i64 %indvars.iv118
  store i32 %153, ptr %160, align 4, !tbaa !36
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %160, i64 4
  store i32 %156, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !36
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next119, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge110, label %151, !llvm.loop !53
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3MinIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_Z5Randfv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z9NormalizeI8XVector3IfEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9ClothMesh11SplitVertexEPK8XVector4IfEi8XVector3IfERSt6vectorIiSaIiEES9_RS6_INS_14TriangleUpdateESaISA_EERS6_INS_10VertexCopyESaISE_EEi(ptr noundef nonnull align 8 dereferenceable(133), ptr noundef, i32 noundef, <2 x float>, float, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN9ClothMesh14SeparateVertexEiRSt6vectorINS_14TriangleUpdateESaIS1_EERS0_INS_10VertexCopyESaIS5_EEi(ptr noundef nonnull align 8 dereferenceable(133), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #6 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !10, i64 12}
!6 = !{!"_ZTS14NvFlexExtAsset", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !10, i64 120, !11, i64 124, !12, i64 128, !12, i64 132, !12, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !10, i64 40}
!15 = !{!16, !7, i64 144}
!16 = !{!"_ZTS24FlexExtTearingClothAsset", !6, i64 0, !7, i64 144}
!17 = !{!18, !10, i64 120}
!18 = !{!"_ZTS9ClothMesh", !19, i64 0, !23, i64 24, !23, i64 48, !27, i64 72, !31, i64 96, !10, i64 120, !12, i64 124, !12, i64 128, !11, i64 132}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!"_ZTSSt6vectorIfSaIfEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!27 = !{!"_ZTSSt6vectorIN9ClothMesh4EdgeESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN9ClothMesh4EdgeESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh4EdgeESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh4EdgeESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!31 = !{!"_ZTSSt6vectorIN9ClothMesh8TriangleESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN9ClothMesh8TriangleESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh8TriangleESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN9ClothMesh8TriangleESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!35 = !{!6, !7, i64 16}
!36 = !{!10, !10, i64 0}
!37 = !{!6, !7, i64 0}
!38 = !{!6, !7, i64 32}
!39 = !{!12, !12, i64 0}
!40 = !{!41, !12, i64 12}
!41 = !{!"_ZTS8XVector4IfE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = !{!46, !10, i64 0}
!46 = !{!"_ZTSN9ClothMesh10VertexCopyE", !10, i64 0, !10, i64 4}
!47 = !{!46, !10, i64 4}
!48 = distinct !{!48, !43}
!49 = !{!50, !10, i64 0}
!50 = !{!"_ZTSN9ClothMesh14TriangleUpdateE", !10, i64 0, !10, i64 4}
!51 = !{!50, !10, i64 4}
!52 = !{!6, !7, i64 112}
!53 = distinct !{!53, !43}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass