; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qmesh.ll (ZN5QMesh18CreateWithMeshDataERNS_8MeshDataEbb)

; 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"

%struct.QVector = type { float, float }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.136" = type { i32, i32 }
%"struct.QMesh::MeshData" = type <{ %"class.std::vector.15", %"class.std::vector.25", %"class.std::vector.127", %"class.std::vector.127", %"class.std::vector.127", %"class.std::vector.131", %"class.std::vector.131", %"class.std::vector.111", %"class.std::vector.20", %struct.QVector, float, [4 x i8] }>
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl" }
%"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl" = type { %"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_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<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.127" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.131" = type { %"struct.std::_Vector_base.132" }
%"struct.std::_Vector_base.132" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = 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 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QMesh = type { %"class.std::vector", %struct.QVector, %struct.QVector, float, float, %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector", %"class.std::vector.10", %"class.std::vector.15", float, ptr, i32, %"class.std::vector.20", i8, i8, %"class.std::vector.25", float, i8, i8, i8, i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl" }
%"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl" }
%"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_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<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5QMesh11AddParticleEP9QParticle(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5QMesh10SetPolygonESt6vectorIP9QParticleSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #3 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5QMesh9AddSpringEP7QSpring(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5QMesh18CreateWithMeshDataERNS_8MeshDataEbb(ptr noundef nonnull align 8 dereferenceable(276) %0, i1 noundef zeroext %1, i1 noundef zeroext %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %struct.QVector, align 4
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair.136", align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.136", align 4
  %24 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %25 = zext i1 %1 to i8
  store i8 %25, ptr %5, align 1, !tbaa !9
  %26 = zext i1 %2 to i8
  store i8 %26, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %27 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 256) #9
  invoke void @_ZN5QMeshC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %27)
          to label %28 unwind label %37

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

29:                                               ; preds = %97, %28
  %30 = load i32, ptr %10, align 4, !tbaa !11
  %31 = sext i32 %30 to i64
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %32, i32 0, i32 0
  %34 = call noundef i64 @_ZNKSt6vectorI7QVectorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  %35 = icmp ult i64 %31, %34
  br i1 %35, label %41, label %36

36:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %104

37:                                               ; preds = %3
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %8, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %27, i64 noundef 256) #10
  br label %270

41:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %42 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 296) #9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %43, i32 0, i32 0
  %45 = load i32, ptr %10, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI7QVectorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !13
  %48 = load <2 x float>, ptr %12, align 4
  invoke void @_ZN9QParticleC1E7QVectorf(ptr noundef nonnull align 8 dereferenceable(290) %42, <2 x float> %48, float noundef 5.000000e-01)
          to label %49 unwind label %100

49:                                               ; preds = %41
  store ptr %42, ptr %11, align 8, !tbaa !5
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %51, i32 0, i32 2
  %53 = load i32, ptr %10, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %52, i64 noundef %54)
  %56 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %57 = extractvalue { ptr, i64 } %55, 0
  store ptr %57, ptr %56, align 8
  %58 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %59 = extractvalue { ptr, i64 } %55, 1
  store i64 %59, ptr %58, align 8
  %60 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  %61 = call noundef ptr @_ZN9QParticle13SetIsInternalEb(ptr noundef nonnull align 8 dereferenceable(290) %50, i1 noundef zeroext %60)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %10, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #8
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = call noundef ptr @_ZN9QParticle9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(290) %62, float noundef %68)
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %71, i32 0, i32 3
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %72, i64 noundef %74)
  %76 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %77 = extractvalue { ptr, i64 } %75, 0
  store ptr %77, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %79 = extractvalue { ptr, i64 } %75, 1
  store i64 %79, ptr %78, align 8
  %80 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #8
  %81 = call noundef ptr @_ZN9QParticle10SetEnabledEb(ptr noundef nonnull align 8 dereferenceable(290) %70, i1 noundef zeroext %80)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %83, i32 0, i32 4
  %85 = load i32, ptr %10, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %84, i64 noundef %86)
  %88 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %89 = extractvalue { ptr, i64 } %87, 0
  store ptr %89, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %91 = extractvalue { ptr, i64 } %87, 1
  store i64 %91, ptr %90, align 8
  %92 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %93 = call noundef ptr @_ZN9QParticle9SetIsLazyEb(ptr noundef nonnull align 8 dereferenceable(290) %82, i1 noundef zeroext %92)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = call noundef ptr @_ZN5QMesh11AddParticleEP9QParticle(ptr noundef nonnull align 8 dereferenceable(256) %94, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %97

97:                                               ; preds = %49
  %98 = load i32, ptr %10, align 4, !tbaa !11
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %10, align 4, !tbaa !11
  br label %29, !llvm.loop !16

100:                                              ; preds = %41
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %8, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %42, i64 noundef 296) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %270

104:                                              ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %105 = load i8, ptr %6, align 1, !tbaa !9, !range !18, !noundef !19
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %136

107:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %128, %107
  %109 = load i32, ptr %17, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %111, i32 0, i32 7
  %113 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #8
  %114 = icmp ult i64 %110, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %135

116:                                              ; preds = %108
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.QMesh, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %119, i32 0, i32 7
  %121 = load i32, ptr %17, align 4, !tbaa !11
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #8
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %125) #8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %126)
          to label %127 unwind label %131

127:                                              ; preds = %116
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %17, align 4, !tbaa !11
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %17, align 4, !tbaa !11
  br label %108, !llvm.loop !20

131:                                              ; preds = %116
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %8, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %269

135:                                              ; preds = %115
  br label %136

136:                                              ; preds = %135, %104
  %137 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %138 = icmp ugt i64 %137, 0
  br i1 %138, label %139, label %152

139:                                              ; preds = %136
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %141 unwind label %144

141:                                              ; preds = %139
  %142 = invoke noundef ptr @_ZN5QMesh10SetPolygonESt6vectorIP9QParticleSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(256) %140, ptr noundef %18)
          to label %143 unwind label %148

143:                                              ; preds = %141
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %152

144:                                              ; preds = %252, %139
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %8, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %9, align 4
  br label %269

148:                                              ; preds = %141
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %8, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %9, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  br label %269

152:                                              ; preds = %143, %136
  %153 = load i8, ptr %5, align 1, !tbaa !9, !range !18, !noundef !19
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %252

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %156

156:                                              ; preds = %191, %155
  %157 = load i32, ptr %19, align 4, !tbaa !11
  %158 = sext i32 %157 to i64
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %159, i32 0, i32 5
  %161 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #8
  %162 = icmp ult i64 %158, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %203

164:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %165, i32 0, i32 5
  %167 = load i32, ptr %19, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %169, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %170 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %171 unwind label %194

171:                                              ; preds = %164
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.QMesh, ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds %"struct.std::pair.136", ptr %20, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !21
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %176) #8
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.QMesh, ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds %"struct.std::pair.136", ptr %20, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !23
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %183) #8
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  invoke void @_ZN7QSpringC1EP9QParticleS1_b(ptr noundef nonnull align 8 dereferenceable(39) %170, ptr noundef %178, ptr noundef %185, i1 noundef zeroext false)
          to label %186 unwind label %198

186:                                              ; preds = %171
  store ptr %170, ptr %21, align 8, !tbaa !5
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = invoke noundef ptr @_ZN5QMesh9AddSpringEP7QSpring(ptr noundef nonnull align 8 dereferenceable(256) %187, ptr noundef %188)
          to label %190 unwind label %194

190:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %19, align 4, !tbaa !11
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %19, align 4, !tbaa !11
  br label %156, !llvm.loop !24

194:                                              ; preds = %186, %164
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %8, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %9, align 4
  br label %202

198:                                              ; preds = %171
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %8, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %170, i64 noundef 40) #10
  br label %202

202:                                              ; preds = %198, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %269

203:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %204

204:                                              ; preds = %239, %203
  %205 = load i32, ptr %22, align 4, !tbaa !11
  %206 = sext i32 %205 to i64
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %207, i32 0, i32 6
  %209 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #8
  %210 = icmp ult i64 %206, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %251

212:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %213, i32 0, i32 6
  %215 = load i32, ptr %22, align 4, !tbaa !11
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %217, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %218 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %219 unwind label %242

219:                                              ; preds = %212
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.QMesh, ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds %"struct.std::pair.136", ptr %23, i32 0, i32 0
  %223 = load i32, ptr %222, align 4, !tbaa !21
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %224) #8
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %227 = load ptr, ptr %7, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.QMesh, ptr %227, i32 0, i32 0
  %229 = getelementptr inbounds %"struct.std::pair.136", ptr %23, i32 0, i32 1
  %230 = load i32, ptr %229, align 4, !tbaa !23
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %231) #8
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  invoke void @_ZN7QSpringC1EP9QParticleS1_b(ptr noundef nonnull align 8 dereferenceable(39) %218, ptr noundef %226, ptr noundef %233, i1 noundef zeroext true)
          to label %234 unwind label %246

234:                                              ; preds = %219
  store ptr %218, ptr %24, align 8, !tbaa !5
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = load ptr, ptr %24, align 8, !tbaa !5
  %237 = invoke noundef ptr @_ZN5QMesh9AddSpringEP7QSpring(ptr noundef nonnull align 8 dereferenceable(256) %235, ptr noundef %236)
          to label %238 unwind label %242

238:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %22, align 4, !tbaa !11
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %22, align 4, !tbaa !11
  br label %204, !llvm.loop !25

242:                                              ; preds = %234, %212
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %8, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %9, align 4
  br label %250

246:                                              ; preds = %219
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %8, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %218, i64 noundef 40) #10
  br label %250

250:                                              ; preds = %246, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %269

251:                                              ; preds = %211
  br label %252

252:                                              ; preds = %251, %152
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %253, i32 0, i32 8
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.QMesh, ptr %255, i32 0, i32 13
  %257 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %256, ptr noundef nonnull align 8 dereferenceable(24) %254)
          to label %258 unwind label %144

258:                                              ; preds = %252
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %259, i32 0, i32 9
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.QMesh, ptr %261, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %262, ptr align 8 %260, i64 8, i1 false), !tbaa.struct !13
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.QMesh::MeshData", ptr %263, i32 0, i32 10
  %265 = load float, ptr %264, align 8, !tbaa !26
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.QMesh, ptr %266, i32 0, i32 3
  store float %265, ptr %267, align 8, !tbaa !55
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret ptr %268

269:                                              ; preds = %250, %202, %148, %144, %131
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  br label %270

270:                                              ; preds = %269, %100, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %8, align 8
  %273 = load i32, ptr %9, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

declare void @_ZN9QParticleC1E7QVectorf(ptr noundef nonnull align 8 dereferenceable(290), <2 x float>, float noundef) unnamed_addr #7

declare noundef ptr @_ZN9QParticle13SetIsInternalEb(ptr noundef nonnull align 8 dereferenceable(290), i1 noundef zeroext) #7

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

declare noundef ptr @_ZN9QParticle9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(290), float noundef) #7

declare noundef ptr @_ZN9QParticle10SetEnabledEb(ptr noundef nonnull align 8 dereferenceable(290), i1 noundef zeroext) #7

declare noundef ptr @_ZN9QParticle9SetIsLazyEb(ptr noundef nonnull align 8 dereferenceable(290), i1 noundef zeroext) #7

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

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

declare void @_ZN7QSpringC1EP9QParticleS1_b(ptr noundef nonnull align 8 dereferenceable(39), ptr noundef, ptr noundef, i1 noundef zeroext) unnamed_addr #7

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

declare void @_ZN5QMeshC1Ev(ptr)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nobuiltin allocsize(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 = { "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 }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !17}
!21 = !{!22, !12, i64 0}
!22 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!23 = !{!22, !12, i64 4}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = !{!27, !15, i64 272}
!27 = !{!"_ZTSN5QMesh8MeshDataE", !28, i64 0, !32, i64 24, !36, i64 48, !36, i64 88, !36, i64 128, !42, i64 168, !42, i64 192, !46, i64 216, !50, i64 240, !54, i64 264, !15, i64 272}
!28 = !{!"_ZTSSt6vectorI7QVectorSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseI7QVectorSaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIfSaIfEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorIbSaIbEE", !37, i64 0}
!37 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !38, i64 0}
!38 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !40, i64 0, !40, i64 16, !6, i64 32}
!40 = !{!"_ZTSSt13_Bit_iterator", !41, i64 0}
!41 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !12, i64 8}
!42 = !{!"_ZTSSt6vectorISt4pairIiiESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseISt4pairIiiESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt6vectorIiSaIiEE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"_ZTS7QVector", !15, i64 0, !15, i64 4}
!55 = !{!56, !15, i64 40}
!56 = !{!"_ZTS5QMesh", !57, i64 0, !54, i64 24, !54, i64 32, !15, i64 40, !15, i64 44, !61, i64 48, !65, i64 72, !57, i64 96, !69, i64 120, !28, i64 144, !15, i64 168, !6, i64 176, !73, i64 184, !50, i64 192, !10, i64 216, !10, i64 217, !32, i64 224, !15, i64 248, !10, i64 252, !10, i64 253, !10, i64 254, !10, i64 255}
!57 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!61 = !{!"_ZTSSt6vectorIP7QSpringSaIS1_EE", !62, i64 0}
!62 = !{!"_ZTSSt12_Vector_baseIP7QSpringSaIS1_EE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE12_Vector_implE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!65 = !{!"_ZTSSt6vectorIP16QAngleConstraintSaIS1_EE", !66, i64 0}
!66 = !{!"_ZTSSt12_Vector_baseIP16QAngleConstraintSaIS1_EE", !67, i64 0}
!67 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE12_Vector_implE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!69 = !{!"_ZTSSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE", !70, i64 0}
!70 = !{!"_ZTSSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE12_Vector_implE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!73 = !{!"_ZTSN5QMesh18CollisionBehaviorsE", !7, i64 0}


; 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"

%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5QMesh11AddParticleEP9QParticle(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5QMesh10SetPolygonESt6vectorIP9QParticleSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5QMesh9AddSpringEP7QSpring(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN5QMesh18CreateWithMeshDataERNS_8MeshDataEbb(ptr noundef nonnull align 8 dereferenceable(276) %0, i1 noundef zeroext %1, i1 noundef zeroext %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::_Bit_reference", align 8
  %5 = alloca %"struct.std::_Bit_reference", align 8
  %6 = alloca %"struct.std::_Bit_reference", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = tail call noalias noundef nonnull dereferenceable(256) ptr @_Znwm(i64 noundef 256) #7
  invoke void @_ZN5QMeshC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %9)
          to label %.preheader79 unwind label %20

.preheader79:                                     ; preds = %3
  %10 = tail call noundef i64 @_ZNKSt6vectorI7QVectorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %.not89 = icmp eq i64 %10, 0
  br i1 %.not89, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader79
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  br label %22

._crit_edge:                                      ; preds = %25, %.preheader79
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br i1 %2, label %.preheader77, label %.loopexit78

.preheader77:                                     ; preds = %._crit_edge
  %18 = getelementptr inbounds i8, ptr %0, i64 216
  %19 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %.not90 = icmp eq i64 %19, 0
  br i1 %.not90, label %.loopexit78, label %.lr.ph84

20:                                               ; preds = %3
  %21 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 256) #9
  br label %119

22:                                               ; preds = %.lr.ph, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %25 ]
  %23 = call noalias noundef nonnull dereferenceable(296) ptr @_Znwm(i64 noundef 296) #7
  %24 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI7QVectorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #8
  %.sroa.012.0.copyload = load <2 x float>, ptr %24, align 4
  invoke void @_ZN9QParticleC1E7QVectorf(ptr noundef nonnull align 8 dereferenceable(290) %23, <2 x float> %.sroa.012.0.copyload, float noundef 5.000000e-01)
          to label %25 unwind label %47

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %26 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %indvars.iv)
  %27 = extractvalue { ptr, i64 } %26, 0
  store ptr %27, ptr %4, align 8
  %28 = extractvalue { ptr, i64 } %26, 1
  store i64 %28, ptr %12, align 8
  %29 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  %30 = call noundef ptr @_ZN9QParticle13SetIsInternalEb(ptr noundef nonnull align 8 dereferenceable(290) %23, i1 noundef zeroext %29)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #8
  %32 = load float, ptr %31, align 4, !tbaa !5
  %33 = call noundef ptr @_ZN9QParticle9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(290) %23, float noundef %32)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %34 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %14, i64 noundef %indvars.iv)
  %35 = extractvalue { ptr, i64 } %34, 0
  store ptr %35, ptr %5, align 8
  %36 = extractvalue { ptr, i64 } %34, 1
  store i64 %36, ptr %15, align 8
  %37 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  %38 = call noundef ptr @_ZN9QParticle10SetEnabledEb(ptr noundef nonnull align 8 dereferenceable(290) %23, i1 noundef zeroext %37)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %39 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %16, i64 noundef %indvars.iv)
  %40 = extractvalue { ptr, i64 } %39, 0
  store ptr %40, ptr %6, align 8
  %41 = extractvalue { ptr, i64 } %39, 1
  store i64 %41, ptr %17, align 8
  %42 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  %43 = call noundef ptr @_ZN9QParticle9SetIsLazyEb(ptr noundef nonnull align 8 dereferenceable(290) %23, i1 noundef zeroext %42)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %44 = call noundef ptr @_ZN5QMesh11AddParticleEP9QParticle(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull %23)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = call noundef i64 @_ZNKSt6vectorI7QVectorSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %46 = icmp ugt i64 %45, %indvars.iv.next
  br i1 %46, label %22, label %._crit_edge, !llvm.loop !9

47:                                               ; preds = %22
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 296) #9
  br label %119

.lr.ph84:                                         ; preds = %.preheader77, %53
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %53 ], [ 0, %.preheader77 ]
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv99) #8
  %50 = load i32, ptr %49, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %51) #8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %53 unwind label %56

53:                                               ; preds = %.lr.ph84
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %54 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %55 = icmp ugt i64 %54, %indvars.iv.next100
  br i1 %55, label %.lr.ph84, label %.loopexit78, !llvm.loop !13

56:                                               ; preds = %.lr.ph84
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %118

.loopexit78:                                      ; preds = %53, %.preheader77, %._crit_edge
  %58 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %.not = icmp eq i64 %58, 0
  br i1 %.not, label %67, label %59

59:                                               ; preds = %.loopexit78
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %60 unwind label %63

60:                                               ; preds = %59
  %61 = invoke noundef ptr @_ZN5QMesh10SetPolygonESt6vectorIP9QParticleSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull %8)
          to label %62 unwind label %65

62:                                               ; preds = %60
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %67

63:                                               ; preds = %.loopexit, %59
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %118

65:                                               ; preds = %60
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %118

67:                                               ; preds = %62, %.loopexit78
  br i1 %1, label %.preheader76, label %.loopexit

.preheader76:                                     ; preds = %67
  %68 = getelementptr inbounds i8, ptr %0, i64 168
  %69 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #8
  %.not91 = icmp eq i64 %69, 0
  br i1 %.not91, label %.preheader, label %.lr.ph86

.preheader:                                       ; preds = %83, %.preheader76
  %70 = getelementptr inbounds i8, ptr %0, i64 192
  %71 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  %.not92 = icmp eq i64 %71, 0
  br i1 %.not92, label %.loopexit, label %.lr.ph88

.lr.ph86:                                         ; preds = %.preheader76, %83
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %83 ], [ 0, %.preheader76 ]
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %indvars.iv102) #8
  %.sroa.04.0.copyload = load i32, ptr %72, align 4
  %.sroa.55.0..sroa_idx = getelementptr inbounds i8, ptr %72, i64 4
  %.sroa.55.0.copyload = load i32, ptr %.sroa.55.0..sroa_idx, align 4
  %73 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #7
          to label %74 unwind label %86

74:                                               ; preds = %.lr.ph86
  %75 = sext i32 %.sroa.04.0.copyload to i64
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %75) #8
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = sext i32 %.sroa.55.0.copyload to i64
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %78) #8
  %80 = load ptr, ptr %79, align 8, !tbaa !14
  invoke void @_ZN7QSpringC1EP9QParticleS1_b(ptr noundef nonnull align 8 dereferenceable(39) %73, ptr noundef %77, ptr noundef %80, i1 noundef zeroext false)
          to label %81 unwind label %88

81:                                               ; preds = %74
  %82 = invoke noundef ptr @_ZN5QMesh9AddSpringEP7QSpring(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull %73)
          to label %83 unwind label %86

83:                                               ; preds = %81
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %84 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #8
  %85 = icmp ugt i64 %84, %indvars.iv.next103
  br i1 %85, label %.lr.ph86, label %.preheader, !llvm.loop !16

86:                                               ; preds = %81, %.lr.ph86
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %118

88:                                               ; preds = %74
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %73, i64 noundef 40) #9
  br label %118

.lr.ph88:                                         ; preds = %.preheader, %101
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %101 ], [ 0, %.preheader ]
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %indvars.iv105) #8
  %.sroa.0.0.copyload = load i32, ptr %90, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 4
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4
  %91 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #7
          to label %92 unwind label %104

92:                                               ; preds = %.lr.ph88
  %93 = sext i32 %.sroa.0.0.copyload to i64
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %93) #8
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  %96 = sext i32 %.sroa.5.0.copyload to i64
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %96) #8
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  invoke void @_ZN7QSpringC1EP9QParticleS1_b(ptr noundef nonnull align 8 dereferenceable(39) %91, ptr noundef %95, ptr noundef %98, i1 noundef zeroext true)
          to label %99 unwind label %106

99:                                               ; preds = %92
  %100 = invoke noundef ptr @_ZN5QMesh9AddSpringEP7QSpring(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull %91)
          to label %101 unwind label %104

101:                                              ; preds = %99
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %102 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  %103 = icmp ugt i64 %102, %indvars.iv.next106
  br i1 %103, label %.lr.ph88, label %.loopexit, !llvm.loop !17

104:                                              ; preds = %99, %.lr.ph88
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %118

106:                                              ; preds = %92
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %91, i64 noundef 40) #9
  br label %118

.loopexit:                                        ; preds = %101, %.preheader, %67
  %108 = getelementptr inbounds i8, ptr %0, i64 240
  %109 = getelementptr inbounds i8, ptr %9, i64 192
  %110 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(24) %108)
          to label %111 unwind label %63

111:                                              ; preds = %.loopexit
  %112 = getelementptr inbounds i8, ptr %0, i64 264
  %113 = getelementptr inbounds i8, ptr %9, i64 24
  %114 = load i64, ptr %112, align 8
  store i64 %114, ptr %113, align 8
  %115 = getelementptr inbounds i8, ptr %0, i64 272
  %116 = load float, ptr %115, align 8, !tbaa !18
  %117 = getelementptr inbounds i8, ptr %9, i64 40
  store float %116, ptr %117, align 8, !tbaa !47
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  ret ptr %9

118:                                              ; preds = %104, %106, %86, %88, %65, %63, %56
  %.pn72 = phi { ptr, i32 } [ %57, %56 ], [ %64, %63 ], [ %66, %65 ], [ %87, %86 ], [ %89, %88 ], [ %105, %104 ], [ %107, %106 ]
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %119

119:                                              ; preds = %118, %47, %20
  %.pn74 = phi { ptr, i32 } [ %48, %47 ], [ %.pn72, %118 ], [ %21, %20 ]
  resume { ptr, i32 } %.pn74
}

declare void @_ZN9QParticleC1E7QVectorf(ptr noundef nonnull align 8 dereferenceable(290), <2 x float>, float noundef) unnamed_addr #6

declare noundef ptr @_ZN9QParticle13SetIsInternalEb(ptr noundef nonnull align 8 dereferenceable(290), i1 noundef zeroext) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

declare noundef ptr @_ZN9QParticle9SetRadiusEf(ptr noundef nonnull align 8 dereferenceable(290), float noundef) local_unnamed_addr #6

declare noundef ptr @_ZN9QParticle10SetEnabledEb(ptr noundef nonnull align 8 dereferenceable(290), i1 noundef zeroext) local_unnamed_addr #6

declare noundef ptr @_ZN9QParticle9SetIsLazyEb(ptr noundef nonnull align 8 dereferenceable(290), i1 noundef zeroext) local_unnamed_addr #6

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

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

declare void @_ZN7QSpringC1EP9QParticleS1_b(ptr noundef nonnull align 8 dereferenceable(39), ptr noundef, ptr noundef, i1 noundef zeroext) unnamed_addr #6

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

declare void @_ZN5QMeshC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "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 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 = { nobuiltin allocsize(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 = { "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 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !6, i64 272}
!19 = !{!"_ZTSN5QMesh8MeshDataE", !20, i64 0, !24, i64 24, !28, i64 48, !28, i64 88, !28, i64 128, !34, i64 168, !34, i64 192, !38, i64 216, !42, i64 240, !46, i64 264, !6, i64 272}
!20 = !{!"_ZTSSt6vectorI7QVectorSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI7QVectorSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!24 = !{!"_ZTSSt6vectorIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!28 = !{!"_ZTSSt6vectorIbSaIbEE", !29, i64 0}
!29 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !30, i64 0}
!30 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !32, i64 0, !32, i64 16, !15, i64 32}
!32 = !{!"_ZTSSt13_Bit_iterator", !33, i64 0}
!33 = !{!"_ZTSSt18_Bit_iterator_base", !15, i64 0, !12, i64 8}
!34 = !{!"_ZTSSt6vectorISt4pairIiiESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt4pairIiiESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!38 = !{!"_ZTSSt6vectorIiSaIiEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!42 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!46 = !{!"_ZTS7QVector", !6, i64 0, !6, i64 4}
!47 = !{!48, !6, i64 40}
!48 = !{!"_ZTS5QMesh", !49, i64 0, !46, i64 24, !46, i64 32, !6, i64 40, !6, i64 44, !53, i64 48, !57, i64 72, !49, i64 96, !61, i64 120, !20, i64 144, !6, i64 168, !15, i64 176, !65, i64 184, !42, i64 192, !66, i64 216, !66, i64 217, !24, i64 224, !6, i64 248, !66, i64 252, !66, i64 253, !66, i64 254, !66, i64 255}
!49 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!53 = !{!"_ZTSSt6vectorIP7QSpringSaIS1_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseIP7QSpringSaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!57 = !{!"_ZTSSt6vectorIP16QAngleConstraintSaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIP16QAngleConstraintSaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!61 = !{!"_ZTSSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE", !62, i64 0}
!62 = !{!"_ZTSSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE12_Vector_implE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!65 = !{!"_ZTSN5QMesh18CollisionBehaviorsE", !7, i64 0}
!66 = !{!"bool", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass