; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics (qcollision)

; 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.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::allocator.2" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%class.QManifold = type { %struct.QVector, float, float, i8, ptr, ptr, %"class.std::vector.30" }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list.60" = type { ptr, i64 }
%"struct.QObjectPool<QCollision::Contact>::Node" = type { ptr, 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmlf7QVector(float noundef, <2 x float>) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv() #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57), ptr noundef, <2 x float>, <2 x float>, float noundef, ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr, ptr, ptr) #8

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9QParticle23SortParticlesHorizontalEPS_S0_(ptr noundef, ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(290)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #7

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10QCollision19CircleAndCircleSelfERSt6vectorIP9QParticleSaIS2_EERS0_IPNS_7ContactESaIS7_EEf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, float noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.QVector, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %struct.QVector, align 4
  %16 = alloca %struct.QVector, align 4
  %17 = alloca %"class.std::vector.0", align 8
  %18 = alloca %"class.std::allocator.2", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca i64, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %class.QAABB, align 4
  %34 = alloca %struct.QVector, align 4
  %35 = alloca %class.QAABB, align 4
  %36 = alloca %struct.QVector, align 4
  %37 = alloca %class.QAABB, align 4
  %38 = alloca %struct.QVector, align 4
  %39 = alloca %class.QAABB, align 4
  %40 = alloca %struct.QVector, align 4
  %41 = alloca %class.QAABB, align 4
  %42 = alloca %struct.QVector, align 4
  %43 = alloca %class.QAABB, align 4
  %44 = alloca %struct.QVector, align 4
  %45 = alloca %struct.QVector, align 4
  %46 = alloca %struct.QVector, align 4
  %47 = alloca %struct.QVector, align 4
  %48 = alloca %struct.QVector, align 4
  %49 = alloca %struct.QVector, align 4
  %50 = alloca %struct.QVector, align 4
  %51 = alloca %struct.QVector, align 4
  %52 = alloca ptr, align 8
  %53 = alloca %struct.QVector, align 4
  %54 = alloca %struct.QVector, align 4
  %55 = alloca %"class.std::vector.0", align 8
  %56 = alloca %"class.std::initializer_list", align 8
  %57 = alloca [1 x ptr], align 8
  %58 = alloca %"class.std::allocator.2", align 1
  %59 = alloca %class.QManifold, align 8
  %60 = alloca %"class.std::initializer_list.60", align 8
  %61 = alloca [1 x ptr], align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #10
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %3
  br label %369

66:                                               ; preds = %3
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef 0) #10
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %69)
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %66
  br label %369

73:                                               ; preds = %66
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef 0) #10
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %76)
  %78 = call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %77)
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %73
  br label %369

81:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 0) #10
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %84)
  %86 = call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %85)
  store ptr %86, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
  %87 = load float, ptr %6, align 4, !tbaa !9
  %88 = fpext float %87 to double
  %89 = fcmp une double %88, 0.000000e+00
  br i1 %89, label %90, label %92

90:                                               ; preds = %81
  %91 = load float, ptr %6, align 4, !tbaa !9
  store float %91, ptr %10, align 4, !tbaa !9
  br label %97

92:                                               ; preds = %81
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef 0) #10
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %95)
  store float %96, ptr %10, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %92, %90
  %98 = load float, ptr %10, align 4, !tbaa !9
  %99 = load float, ptr %10, align 4, !tbaa !9
  %100 = fadd float %98, %99
  store float %100, ptr %8, align 4, !tbaa !9
  %101 = load float, ptr %8, align 4, !tbaa !9
  %102 = load float, ptr %8, align 4, !tbaa !9
  %103 = fmul float %101, %102
  store float %103, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #10
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #10
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %105, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %106 unwind label %138

106:                                              ; preds = %97
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #10
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #10
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #10
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  %113 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %116, ptr %118, ptr %120)
          to label %122 unwind label %142

122:                                              ; preds = %106
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %121, ptr %123, align 8
  %124 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  %126 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %129, ptr %131, ptr noundef @_ZN9QParticle23SortParticlesHorizontalEPS_S0_)
          to label %132 unwind label %142

132:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %133

133:                                              ; preds = %365, %132
  %134 = load i64, ptr %27, align 8, !tbaa !11
  %135 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %146, label %137

137:                                              ; preds = %133
  store i32 2, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %368

138:                                              ; preds = %97
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %19, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %20, align 4
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #10
  br label %371

142:                                              ; preds = %122, %106
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %19, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %20, align 4
  br label %370

146:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %147 = load i64, ptr %27, align 8, !tbaa !11
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %147) #10
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  store ptr %149, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %150 = load i64, ptr %27, align 8, !tbaa !11
  %151 = add i64 %150, 1
  store i64 %151, ptr %30, align 8, !tbaa !11
  br label %152

152:                                              ; preds = %359, %146
  %153 = load i64, ptr %30, align 8, !tbaa !11
  %154 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  %155 = icmp ult i64 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 5, ptr %28, align 4
  br label %363

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %158 = load i64, ptr %30, align 8, !tbaa !11
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %158) #10
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  store ptr %160, ptr %31, align 8, !tbaa !5
  %161 = load ptr, ptr %29, align 8, !tbaa !5
  %162 = load ptr, ptr %31, align 8, !tbaa !5
  %163 = icmp eq ptr %161, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %157
  store i32 7, ptr %28, align 4
  br label %356

165:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 28, ptr %33) #10
  %166 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %33, ptr noundef nonnull align 8 dereferenceable(290) %166)
          to label %167 unwind label %280

167:                                              ; preds = %165
  %168 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %33)
          to label %169 unwind label %280

169:                                              ; preds = %167
  store <2 x float> %168, ptr %32, align 4
  %170 = getelementptr inbounds %struct.QVector, ptr %32, i32 0, i32 0
  %171 = load float, ptr %170, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.start.p0(i64 28, ptr %35) #10
  %172 = load ptr, ptr %31, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %35, ptr noundef nonnull align 8 dereferenceable(290) %172)
          to label %173 unwind label %284

173:                                              ; preds = %169
  %174 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %35)
          to label %175 unwind label %284

175:                                              ; preds = %173
  store <2 x float> %174, ptr %34, align 4
  %176 = getelementptr inbounds %struct.QVector, ptr %34, i32 0, i32 0
  %177 = load float, ptr %176, align 4, !tbaa !13
  %178 = fcmp oge float %171, %177
  call void @llvm.lifetime.end.p0(i64 28, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 28, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br i1 %178, label %179, label %354

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 28, ptr %37) #10
  %180 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.start.p0(i64 28, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 28, ptr %43) #10
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %37, ptr noundef nonnull align 8 dereferenceable(290) %180)
          to label %181 unwind label %289

181:                                              ; preds = %179
  %182 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %37)
          to label %183 unwind label %289

183:                                              ; preds = %181
  store <2 x float> %182, ptr %36, align 4
  %184 = getelementptr inbounds %struct.QVector, ptr %36, i32 0, i32 1
  %185 = load float, ptr %184, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 28, ptr %39) #10
  %186 = load ptr, ptr %31, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %39, ptr noundef nonnull align 8 dereferenceable(290) %186)
          to label %187 unwind label %293

187:                                              ; preds = %183
  %188 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %39)
          to label %189 unwind label %293

189:                                              ; preds = %187
  store <2 x float> %188, ptr %38, align 4
  %190 = getelementptr inbounds %struct.QVector, ptr %38, i32 0, i32 1
  %191 = load float, ptr %190, align 4, !tbaa !15
  %192 = fcmp ole float %185, %191
  br i1 %192, label %193, label %207

193:                                              ; preds = %189
  %194 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %41, ptr noundef nonnull align 8 dereferenceable(290) %194)
          to label %195 unwind label %297

195:                                              ; preds = %193
  %196 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %41)
          to label %197 unwind label %297

197:                                              ; preds = %195
  store <2 x float> %196, ptr %40, align 4
  %198 = getelementptr inbounds %struct.QVector, ptr %40, i32 0, i32 1
  %199 = load float, ptr %198, align 4, !tbaa !15
  %200 = load ptr, ptr %31, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %43, ptr noundef nonnull align 8 dereferenceable(290) %200)
          to label %201 unwind label %301

201:                                              ; preds = %197
  %202 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %43)
          to label %203 unwind label %301

203:                                              ; preds = %201
  store <2 x float> %202, ptr %42, align 4
  %204 = getelementptr inbounds %struct.QVector, ptr %42, i32 0, i32 1
  %205 = load float, ptr %204, align 4, !tbaa !15
  %206 = fcmp oge float %199, %205
  br label %207

207:                                              ; preds = %203, %189
  %208 = phi i1 [ false, %189 ], [ %206, %203 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 28, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 28, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 28, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br i1 %208, label %209, label %353

209:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %210 = load ptr, ptr %31, align 8, !tbaa !5
  %211 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %210)
          to label %212 unwind label %308

212:                                              ; preds = %209
  store <2 x float> %211, ptr %45, align 4
  %213 = load ptr, ptr %29, align 8, !tbaa !5
  %214 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %213)
          to label %215 unwind label %308

215:                                              ; preds = %212
  store <2 x float> %214, ptr %46, align 4
  %216 = load <2 x float>, ptr %45, align 4
  %217 = load <2 x float>, ptr %46, align 4
  %218 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %216, <2 x float> %217)
          to label %219 unwind label %308

219:                                              ; preds = %215
  store <2 x float> %218, ptr %44, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %44, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  %220 = invoke noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %221 unwind label %312

221:                                              ; preds = %219
  store float %220, ptr %12, align 4, !tbaa !9
  %222 = load float, ptr %12, align 4, !tbaa !9
  %223 = load float, ptr %9, align 4, !tbaa !9
  %224 = fcmp olt float %222, %223
  br i1 %224, label %225, label %352

225:                                              ; preds = %221
  %226 = load float, ptr %12, align 4, !tbaa !9
  %227 = invoke noundef float @_ZSt4sqrtf(float noundef %226)
          to label %228 unwind label %312

228:                                              ; preds = %225
  store float %227, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %229 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %230 unwind label %316

230:                                              ; preds = %228
  store <2 x float> %229, ptr %47, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  %231 = load float, ptr %8, align 4, !tbaa !9
  %232 = load float, ptr %13, align 4, !tbaa !9
  %233 = fsub float %231, %232
  store float %233, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %234 = load ptr, ptr %29, align 8, !tbaa !5
  %235 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %234)
          to label %236 unwind label %320

236:                                              ; preds = %230
  store <2 x float> %235, ptr %49, align 4
  %237 = load float, ptr %10, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !16
  %238 = load <2 x float>, ptr %51, align 4
  %239 = invoke <2 x float> @_Zmlf7QVector(float noundef %237, <2 x float> %238)
          to label %240 unwind label %320

240:                                              ; preds = %236
  store <2 x float> %239, ptr %50, align 4
  %241 = load <2 x float>, ptr %49, align 4
  %242 = load <2 x float>, ptr %50, align 4
  %243 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %241, <2 x float> %242)
          to label %244 unwind label %320

244:                                              ; preds = %240
  store <2 x float> %243, ptr %48, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %48, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  %245 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
          to label %246 unwind label %324

246:                                              ; preds = %244
  %247 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %245)
          to label %248 unwind label %324

248:                                              ; preds = %246
  %249 = getelementptr inbounds %"struct.QObjectPool<QCollision::Contact>::Node", ptr %247, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !17
  store ptr %250, ptr %52, align 8, !tbaa !5
  %251 = load ptr, ptr %52, align 8, !tbaa !5
  %252 = load ptr, ptr %31, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !16
  %253 = load float, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  %254 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %254, ptr %57, align 8, !tbaa !5
  %255 = getelementptr inbounds %"class.std::initializer_list", ptr %56, i32 0, i32 0
  store ptr %57, ptr %255, align 8, !tbaa !20
  %256 = getelementptr inbounds %"class.std::initializer_list", ptr %56, i32 0, i32 1
  store i64 1, ptr %256, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #10
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #10
  %257 = getelementptr inbounds { ptr, i64 }, ptr %56, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8
  %259 = getelementptr inbounds { ptr, i64 }, ptr %56, i32 0, i32 1
  %260 = load i64, ptr %259, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr %258, i64 %260, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %261 unwind label %328

261:                                              ; preds = %248
  %262 = load <2 x float>, ptr %53, align 4
  %263 = load <2 x float>, ptr %54, align 4
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %251, ptr noundef %252, <2 x float> %262, <2 x float> %263, float noundef %253, ptr noundef %55)
          to label %264 unwind label %332

264:                                              ; preds = %261
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #10
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %59) #10
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN9QManifoldC1EP5QBodyS1_(ptr noundef nonnull align 8 dereferenceable(64) %59, ptr noundef %265, ptr noundef %266)
          to label %267 unwind label %337

267:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #10
  %268 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %268, ptr %61, align 8, !tbaa !5
  %269 = getelementptr inbounds %"class.std::initializer_list.60", ptr %60, i32 0, i32 0
  store ptr %61, ptr %269, align 8, !tbaa !23
  %270 = getelementptr inbounds %"class.std::initializer_list.60", ptr %60, i32 0, i32 1
  store i64 1, ptr %270, align 8, !tbaa !25
  %271 = getelementptr inbounds %class.QManifold, ptr %59, i32 0, i32 6
  %272 = getelementptr inbounds { ptr, i64 }, ptr %60, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8
  %274 = getelementptr inbounds { ptr, i64 }, ptr %60, i32 0, i32 1
  %275 = load i64, ptr %274, align 8
  %276 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EEaSESt16initializer_listIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %271, ptr %273, i64 %275)
          to label %277 unwind label %341

277:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  invoke void @_ZN9QManifold5SolveEv(ptr noundef nonnull align 8 dereferenceable(64) %59)
          to label %278 unwind label %345

278:                                              ; preds = %277
  invoke void @_ZN9QManifold26SolveFrictionAndVelocitiesEv(ptr noundef nonnull align 8 dereferenceable(64) %59)
          to label %279 unwind label %345

279:                                              ; preds = %278
  call void @_ZN9QManifoldD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %59) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  br label %352

280:                                              ; preds = %167, %165
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %19, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %20, align 4
  br label %288

284:                                              ; preds = %173, %169
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %19, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  br label %288

288:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 28, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %362

289:                                              ; preds = %181, %179
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %19, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %20, align 4
  br label %307

293:                                              ; preds = %187, %183
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %19, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %20, align 4
  br label %306

297:                                              ; preds = %195, %193
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %19, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %20, align 4
  br label %305

301:                                              ; preds = %201, %197
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %19, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  br label %305

305:                                              ; preds = %301, %297
  call void @llvm.lifetime.end.p0(i64 28, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  br label %306

306:                                              ; preds = %305, %293
  call void @llvm.lifetime.end.p0(i64 28, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %307

307:                                              ; preds = %306, %289
  call void @llvm.lifetime.end.p0(i64 28, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %362

308:                                              ; preds = %215, %212, %209
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %19, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %362

312:                                              ; preds = %225, %219
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %19, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %20, align 4
  br label %362

316:                                              ; preds = %228
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %19, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %362

320:                                              ; preds = %240, %236, %230
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %19, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %362

324:                                              ; preds = %246, %244
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %19, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %20, align 4
  br label %351

328:                                              ; preds = %248
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %19, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %20, align 4
  br label %336

332:                                              ; preds = %261
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %19, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %20, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #10
  br label %336

336:                                              ; preds = %332, %328
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %351

337:                                              ; preds = %264
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %19, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %20, align 4
  br label %350

341:                                              ; preds = %267
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %19, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  br label %349

345:                                              ; preds = %278, %277
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %19, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %20, align 4
  br label %349

349:                                              ; preds = %345, %341
  call void @_ZN9QManifoldD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %59) #10
  br label %350

350:                                              ; preds = %349, %337
  call void @llvm.lifetime.end.p0(i64 64, ptr %59) #10
  br label %351

351:                                              ; preds = %350, %336, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  br label %362

352:                                              ; preds = %279, %221
  br label %353

353:                                              ; preds = %352, %207
  br label %355

354:                                              ; preds = %175
  store i32 5, ptr %28, align 4
  br label %356

355:                                              ; preds = %353
  store i32 0, ptr %28, align 4
  br label %356

356:                                              ; preds = %355, %354, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  %357 = load i32, ptr %28, align 4
  switch i32 %357, label %363 [
    i32 0, label %358
    i32 7, label %359
  ]

358:                                              ; preds = %356
  br label %359

359:                                              ; preds = %358, %356
  %360 = load i64, ptr %30, align 8, !tbaa !11
  %361 = add i64 %360, 1
  store i64 %361, ptr %30, align 8, !tbaa !11
  br label %152, !llvm.loop !26

362:                                              ; preds = %351, %320, %316, %312, %308, %307, %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %370

363:                                              ; preds = %356, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  br label %364

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

365:                                              ; preds = %364
  %366 = load i64, ptr %27, align 8, !tbaa !11
  %367 = add i64 %366, 1
  store i64 %367, ptr %27, align 8, !tbaa !11
  br label %133, !llvm.loop !28

368:                                              ; preds = %137
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  br label %369

369:                                              ; preds = %368, %80, %72, %65
  ret void

370:                                              ; preds = %362, %142
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  br label %371

371:                                              ; preds = %370, %138
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  br label %372

372:                                              ; preds = %371
  %373 = load ptr, ptr %19, align 8
  %374 = load i32, ptr %20, align 4
  %375 = insertvalue { ptr, i32 } poison, ptr %373, 0
  %376 = insertvalue { ptr, i32 } %375, i32 %374, 1
  resume { ptr, i32 } %376
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256)) #1 align 2

declare void @_ZN9QManifoldC1EP5QBodyS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) unnamed_addr #9

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

declare void @_ZN9QManifold5SolveEv(ptr noundef nonnull align 8 dereferenceable(64)) #9

declare void @_ZN9QManifold26SolveFrictionAndVelocitiesEv(ptr noundef nonnull align 8 dereferenceable(64)) #9

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS7QVector", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}
!16 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN11QObjectPoolIN10QCollision7ContactEE4NodeE", !6, i64 0, !19, i64 8, !19, i64 12}
!19 = !{!"int", !7, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTSSt16initializer_listIP9QParticleE", !6, i64 0, !12, i64 8}
!22 = !{!21, !12, i64 8}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTSSt16initializer_listIPN10QCollision7ContactEE", !6, i64 0, !12, i64 8}
!25 = !{!24, !12, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !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.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::allocator.2" = type { i8 }
%class.QManifold = type { %struct.QVector, float, float, i8, ptr, ptr, %"class.std::vector.30" }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmlf7QVector(float noundef, <2 x float>) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57), ptr noundef, <2 x float>, <2 x float>, float noundef, ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr, ptr, ptr) local_unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9QParticle23SortParticlesHorizontalEPS_S0_(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(290)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10QCollision19CircleAndCircleSelfERSt6vectorIP9QParticleSaIS2_EERS0_IPNS_7ContactESaIS7_EEf(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %1, float noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.QVector, align 8
  %5 = alloca %struct.QVector, align 8
  %6 = alloca %struct.QVector, align 8
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca %class.QAABB, align 4
  %10 = alloca %class.QAABB, align 4
  %11 = alloca %class.QAABB, align 4
  %12 = alloca %class.QAABB, align 4
  %13 = alloca %class.QAABB, align 4
  %14 = alloca %class.QAABB, align 4
  %15 = alloca %"class.std::vector.0", align 8
  %16 = alloca [1 x ptr], align 8
  %17 = alloca %"class.std::allocator.2", align 1
  %18 = alloca %class.QManifold, align 8
  %19 = alloca [1 x ptr], align 8
  %20 = tail call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %161, label %22

22:                                               ; preds = %3
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #9
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = tail call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %24)
  %26 = icmp eq ptr %25, null
  br i1 %26, label %161, label %27

27:                                               ; preds = %22
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #9
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = tail call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %29)
  %31 = tail call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %30)
  %32 = icmp eq ptr %31, null
  br i1 %32, label %161, label %33

33:                                               ; preds = %27
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #9
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = tail call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %35)
  %37 = tail call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %38 = fcmp une float %2, 0.000000e+00
  br i1 %38, label %43, label %39

39:                                               ; preds = %33
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #9
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %41)
  br label %43

43:                                               ; preds = %33, %39
  %.0 = phi float [ %42, %39 ], [ %2, %33 ]
  %44 = fadd float %.0, %.0
  %45 = fmul float %44, %44
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  %46 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #9
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %46, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %47 unwind label %57

47:                                               ; preds = %43
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  %48 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %49 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %50 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %51 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %48, ptr %49, ptr %50)
          to label %52 unwind label %59

52:                                               ; preds = %47
  %53 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %54 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %53, ptr %54, ptr noundef nonnull @_ZN9QParticle23SortParticlesHorizontalEPS_S0_)
          to label %.preheader unwind label %59

.preheader:                                       ; preds = %52
  %55 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %.not = icmp eq i64 %55, 0
  br i1 %.not, label %._crit_edge108, label %.lr.ph107

.lr.ph107:                                        ; preds = %.preheader
  %56 = getelementptr inbounds i8, ptr %18, i64 40
  br label %61

._crit_edge108:                                   ; preds = %._crit_edge, %.preheader
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %161

57:                                               ; preds = %43
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  br label %163

59:                                               ; preds = %52, %47
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %162

61:                                               ; preds = %.lr.ph107, %._crit_edge
  %.083106 = phi i64 [ 0, %.lr.ph107 ], [ %64, %._crit_edge ]
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.083106) #9
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = add nuw i64 %.083106, 1
  %65 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %66 = icmp ult i64 %64, %65
  br i1 %66, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %61, %155
  %.085104 = phi i64 [ %156, %155 ], [ %64, %61 ]
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.085104) #9
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = icmp eq ptr %63, %68
  br i1 %69, label %155, label %70

70:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %9) #9
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %9, ptr noundef nonnull align 8 dereferenceable(290) %63)
          to label %71 unwind label %118

71:                                               ; preds = %70
  %72 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %9)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %10) #9
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %10, ptr noundef nonnull align 8 dereferenceable(290) %68)
          to label %73 unwind label %120

73:                                               ; preds = %71
  %.sroa.019.0.vec.extract = extractelement <2 x float> %72, i64 0
  %74 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %10)
  %.sroa.018.0.vec.extract = extractelement <2 x float> %74, i64 0
  %75 = fcmp ult float %.sroa.019.0.vec.extract, %.sroa.018.0.vec.extract
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %9) #9
  br i1 %75, label %._crit_edge, label %76

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %14) #9
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %11, ptr noundef nonnull align 8 dereferenceable(290) %63)
          to label %77 unwind label %123

77:                                               ; preds = %76
  %78 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %11)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %12) #9
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %12, ptr noundef nonnull align 8 dereferenceable(290) %68)
          to label %79 unwind label %125

79:                                               ; preds = %77
  %80 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %12)
  %81 = fcmp ugt <2 x float> %78, %80
  %82 = extractelement <2 x i1> %81, i64 1
  br i1 %82, label %.critedge, label %83

83:                                               ; preds = %79
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %13, ptr noundef nonnull align 8 dereferenceable(290) %63)
          to label %84 unwind label %127

84:                                               ; preds = %83
  %85 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %13)
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %14, ptr noundef nonnull align 8 dereferenceable(290) %68)
          to label %86 unwind label %129

86:                                               ; preds = %84
  %87 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %14)
  %88 = fcmp ult <2 x float> %85, %87
  %89 = extractelement <2 x i1> %88, i64 1
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #9
  br i1 %89, label %155, label %90

90:                                               ; preds = %86
  %91 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %68)
  %92 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %63)
  %93 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %91, <2 x float> %92)
          to label %94 unwind label %134

94:                                               ; preds = %90
  store <2 x float> %93, ptr %4, align 8
  %95 = call noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %96 = fcmp olt float %95, %45
  br i1 %96, label %97, label %155

97:                                               ; preds = %94
  %98 = call noundef float @_ZSt4sqrtf(float noundef %95)
  %99 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %100 unwind label %136

100:                                              ; preds = %97
  store <2 x float> %99, ptr %5, align 8
  %101 = fsub float %44, %98
  %102 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %63)
  %.sroa.06.0.copyload = load <2 x float>, ptr %5, align 8
  %103 = invoke <2 x float> @_Zmlf7QVector(float noundef %.0, <2 x float> %.sroa.06.0.copyload)
          to label %104 unwind label %138

104:                                              ; preds = %100
  %105 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %102, <2 x float> %103)
          to label %106 unwind label %138

106:                                              ; preds = %104
  store <2 x float> %105, ptr %6, align 8
  %107 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
  %108 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %107)
          to label %109 unwind label %140

109:                                              ; preds = %106
  %110 = load ptr, ptr %108, align 8, !tbaa !9
  %.sroa.04.0.copyload = load <2 x float>, ptr %6, align 8
  %.sroa.03.0.copyload = load <2 x float>, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  store ptr %63, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #9
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr nonnull %16, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %111 unwind label %142

111:                                              ; preds = %109
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %110, ptr noundef nonnull %68, <2 x float> %.sroa.04.0.copyload, <2 x float> %.sroa.03.0.copyload, float noundef %101, ptr noundef nonnull %15)
          to label %112 unwind label %144

112:                                              ; preds = %111
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #9
  invoke void @_ZN9QManifoldC1EP5QBodyS1_(ptr noundef nonnull align 8 dereferenceable(64) %18, ptr noundef %37, ptr noundef %37)
          to label %113 unwind label %147

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  store ptr %110, ptr %19, align 8, !tbaa !5
  %114 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EEaSESt16initializer_listIS2_E(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr nonnull %19, i64 1)
          to label %115 unwind label %149

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  invoke void @_ZN9QManifold5SolveEv(ptr noundef nonnull align 8 dereferenceable(64) %18)
          to label %116 unwind label %151

116:                                              ; preds = %115
  invoke void @_ZN9QManifold26SolveFrictionAndVelocitiesEv(ptr noundef nonnull align 8 dereferenceable(64) %18)
          to label %117 unwind label %151

117:                                              ; preds = %116
  call void @_ZN9QManifoldD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %18) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #9
  br label %155

118:                                              ; preds = %70
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %122

120:                                              ; preds = %71
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #9
  br label %122

122:                                              ; preds = %120, %118
  %.pn = phi { ptr, i32 } [ %121, %120 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %9) #9
  br label %162

123:                                              ; preds = %76
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %133

125:                                              ; preds = %77
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %132

127:                                              ; preds = %83
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %84
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #9
  br label %131

131:                                              ; preds = %129, %127
  %.pn90 = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #9
  br label %132

132:                                              ; preds = %131, %125
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %131 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #9
  br label %133

133:                                              ; preds = %132, %123
  %.pn90.pn.pn = phi { ptr, i32 } [ %.pn90.pn, %132 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #9
  br label %162

134:                                              ; preds = %90
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %162

136:                                              ; preds = %97
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %162

138:                                              ; preds = %104, %100
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %162

140:                                              ; preds = %106
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %162

142:                                              ; preds = %109
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %111
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br label %146

146:                                              ; preds = %144, %142
  %.pn94 = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %162

147:                                              ; preds = %112
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %154

149:                                              ; preds = %113
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %153

151:                                              ; preds = %116, %115
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %153

153:                                              ; preds = %151, %149
  %.pn96 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @_ZN9QManifoldD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %18) #9
  br label %154

154:                                              ; preds = %153, %147
  %.pn96.pn = phi { ptr, i32 } [ %.pn96, %153 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #9
  br label %162

.critedge:                                        ; preds = %79
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #9
  br label %155

155:                                              ; preds = %.lr.ph, %86, %.critedge, %117, %94
  %156 = add nuw i64 %.085104, 1
  %157 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %158 = icmp ult i64 %156, %157
  br i1 %158, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %155, %73, %61
  %159 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %160 = icmp ult i64 %64, %159
  br i1 %160, label %61, label %._crit_edge108, !llvm.loop !14

161:                                              ; preds = %27, %22, %3, %._crit_edge108
  ret void

162:                                              ; preds = %122, %133, %134, %136, %138, %154, %146, %140, %59
  %.pn96.pn.pn.pn.pn = phi { ptr, i32 } [ %60, %59 ], [ %139, %138 ], [ %137, %136 ], [ %135, %134 ], [ %.pn90.pn.pn, %133 ], [ %.pn, %122 ], [ %.pn96.pn, %154 ], [ %.pn94, %146 ], [ %141, %140 ]
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  br label %163

163:                                              ; preds = %162, %57
  %.pn96.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn, %162 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn96.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

declare void @_ZN9QManifoldC1EP5QBodyS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef) unnamed_addr #8

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

declare void @_ZN9QManifold5SolveEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #8

declare void @_ZN9QManifold26SolveFrictionAndVelocitiesEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #8

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN11QObjectPoolIN10QCollision7ContactEE4NodeE", !6, i64 0, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass