; 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 }
%"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 @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(28)) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8)) #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10QCollision15CircleAndCircleERSt6vectorIP9QParticleSaIS2_EES5_5QAABBRS0_IPNS_7ContactESaIS8_EEfb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef byval(%class.QAABB) align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, float noundef %4, i1 noundef zeroext %5) #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca %"class.std::allocator.2", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.std::vector.0", align 8
  %23 = alloca %"class.std::allocator.2", align 1
  %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 %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca %struct.QVector, align 4
  %35 = alloca %struct.QVector, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca %struct.QVector, align 4
  %40 = alloca %struct.QVector, align 4
  %41 = alloca %struct.QVector, align 4
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca i8, align 1
  %45 = alloca i64, align 8
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca %class.QAABB, align 4
  %49 = alloca i64, align 8
  %50 = alloca ptr, align 8
  %51 = alloca %struct.QVector, align 4
  %52 = alloca %class.QAABB, align 4
  %53 = alloca %struct.QVector, align 4
  %54 = alloca %class.QAABB, align 4
  %55 = alloca %struct.QVector, align 4
  %56 = alloca %class.QAABB, align 4
  %57 = alloca %struct.QVector, align 4
  %58 = alloca %class.QAABB, align 4
  %59 = alloca %struct.QVector, align 4
  %60 = alloca %class.QAABB, align 4
  %61 = alloca %struct.QVector, align 4
  %62 = alloca %class.QAABB, align 4
  %63 = alloca %struct.QVector, align 4
  %64 = alloca %struct.QVector, align 4
  %65 = alloca %struct.QVector, align 4
  %66 = alloca %struct.QVector, align 4
  %67 = alloca %struct.QVector, align 4
  %68 = alloca %struct.QVector, align 4
  %69 = alloca %struct.QVector, align 4
  %70 = alloca %struct.QVector, align 4
  %71 = alloca %struct.QVector, align 4
  %72 = alloca %struct.QVector, align 4
  %73 = alloca %struct.QVector, align 4
  %74 = alloca %struct.QVector, align 4
  %75 = alloca ptr, align 8
  %76 = alloca %struct.QVector, align 4
  %77 = alloca %struct.QVector, align 4
  %78 = alloca %"class.std::vector.0", align 8
  %79 = alloca %"class.std::initializer_list", align 8
  %80 = alloca [1 x ptr], align 8
  %81 = alloca %"class.std::allocator.2", align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store float %4, ptr %10, align 4, !tbaa !9
  %82 = zext i1 %5 to i8
  store i8 %82, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %84, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %85 unwind label %160

85:                                               ; preds = %6
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #9
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #9
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  %92 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  %100 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %95, ptr %97, ptr %99)
          to label %101 unwind label %164

101:                                              ; preds = %85
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %100, ptr %102, align 8
  %103 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  %105 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %108, ptr %110, ptr noundef @_ZN9QParticle23SortParticlesHorizontalEPS_S0_)
          to label %111 unwind label %164

111:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #9
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #9
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %113, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %114 unwind label %168

114:                                              ; preds = %111
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #9
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #9
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #9
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  %121 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %124, ptr %126, ptr %128)
          to label %130 unwind label %172

130:                                              ; preds = %114
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %129, ptr %131, align 8
  %132 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %137, ptr %139, ptr noundef @_ZN9QParticle23SortParticlesHorizontalEPS_S0_)
          to label %140 unwind label %172

140:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %34)
          to label %141 unwind label %176

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %142 unwind label %180

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %39)
          to label %143 unwind label %184

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %40)
          to label %144 unwind label %188

144:                                              ; preds = %143
  %145 = load float, ptr %10, align 4, !tbaa !9
  %146 = fpext float %145 to double
  %147 = fcmp une double %146, 0.000000e+00
  br i1 %147, label %148, label %196

148:                                              ; preds = %144
  %149 = load float, ptr %10, align 4, !tbaa !9
  store float %149, ptr %32, align 4, !tbaa !9
  %150 = load float, ptr %10, align 4, !tbaa !9
  store float %150, ptr %33, align 4, !tbaa !9
  %151 = load float, ptr %10, align 4, !tbaa !9
  %152 = load float, ptr %10, align 4, !tbaa !9
  %153 = fadd float %151, %152
  store float %153, ptr %30, align 4, !tbaa !9
  %154 = load float, ptr %30, align 4, !tbaa !9
  %155 = load float, ptr %30, align 4, !tbaa !9
  %156 = fmul float %154, %155
  store float %156, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %157 = load float, ptr %10, align 4, !tbaa !9
  %158 = load float, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %41, float noundef %157, float noundef %158)
          to label %159 unwind label %192

159:                                              ; preds = %148
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %41, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br label %196

160:                                              ; preds = %6
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %14, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  br label %464

164:                                              ; preds = %101, %85
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %14, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %15, align 4
  br label %463

168:                                              ; preds = %111
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %14, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #9
  br label %462

172:                                              ; preds = %130, %114
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %14, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %15, align 4
  br label %461

176:                                              ; preds = %140
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %14, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %15, align 4
  br label %460

180:                                              ; preds = %141
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %14, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %15, align 4
  br label %459

184:                                              ; preds = %142
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %14, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %15, align 4
  br label %458

188:                                              ; preds = %143
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %14, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %15, align 4
  br label %457

192:                                              ; preds = %148
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %14, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br label %457

196:                                              ; preds = %159, %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %197 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  store i64 %197, ptr %42, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %198 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  store i64 %198, ptr %43, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #9
  store i8 0, ptr %44, align 1, !tbaa !11
  %199 = load i64, ptr %42, align 8, !tbaa !14
  %200 = icmp ugt i64 %199, 1
  br i1 %200, label %201, label %205

201:                                              ; preds = %196
  %202 = load i64, ptr %43, align 8, !tbaa !14
  %203 = icmp ugt i64 %202, 1
  br i1 %203, label %204, label %205

204:                                              ; preds = %201
  store i8 1, ptr %44, align 1, !tbaa !11
  br label %205

205:                                              ; preds = %204, %201, %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  store i64 0, ptr %45, align 8, !tbaa !14
  br label %206

206:                                              ; preds = %452, %205
  %207 = load i64, ptr %45, align 8, !tbaa !14
  %208 = load i64, ptr %42, align 8, !tbaa !14
  %209 = icmp ult i64 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  store i32 2, ptr %46, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %456

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %212 = load i64, ptr %45, align 8, !tbaa !14
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %212) #9
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  store ptr %214, ptr %47, align 8, !tbaa !5
  %215 = load i8, ptr %44, align 1, !tbaa !11, !range !16, !noundef !17
  %216 = trunc i8 %215 to i1
  br i1 %216, label %217, label %230

217:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 28, ptr %48) #9
  %218 = load ptr, ptr %47, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %48, ptr noundef nonnull align 8 dereferenceable(290) %218)
          to label %219 unwind label %225

219:                                              ; preds = %217
  %220 = invoke noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %48, ptr noundef nonnull align 4 dereferenceable(28) %2)
          to label %221 unwind label %225

221:                                              ; preds = %219
  %222 = zext i1 %220 to i32
  %223 = icmp eq i32 %222, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr %48) #9
  br i1 %223, label %224, label %229

224:                                              ; preds = %221
  store i32 4, ptr %46, align 4
  br label %449

225:                                              ; preds = %219, %217
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %14, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %48) #9
  br label %455

229:                                              ; preds = %221
  br label %230

230:                                              ; preds = %229, %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  store i64 0, ptr %49, align 8, !tbaa !14
  br label %231

231:                                              ; preds = %443, %230
  %232 = load i64, ptr %49, align 8, !tbaa !14
  %233 = load i64, ptr %43, align 8, !tbaa !14
  %234 = icmp ult i64 %232, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %231
  store i32 5, ptr %46, align 4
  br label %447

236:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  %237 = load i64, ptr %49, align 8, !tbaa !14
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %237) #9
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  store ptr %239, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr %52) #9
  %240 = load ptr, ptr %47, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %52, ptr noundef nonnull align 8 dereferenceable(290) %240)
          to label %241 unwind label %299

241:                                              ; preds = %236
  %242 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %52)
          to label %243 unwind label %299

243:                                              ; preds = %241
  store <2 x float> %242, ptr %51, align 4
  %244 = getelementptr inbounds %struct.QVector, ptr %51, i32 0, i32 0
  %245 = load float, ptr %244, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr %54) #9
  %246 = load ptr, ptr %50, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %54, ptr noundef nonnull align 8 dereferenceable(290) %246)
          to label %247 unwind label %303

247:                                              ; preds = %243
  %248 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %54)
          to label %249 unwind label %303

249:                                              ; preds = %247
  store <2 x float> %248, ptr %53, align 4
  %250 = getelementptr inbounds %struct.QVector, ptr %53, i32 0, i32 0
  %251 = load float, ptr %250, align 4, !tbaa !18
  %252 = fcmp oge float %245, %251
  call void @llvm.lifetime.end.p0(i64 28, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  br i1 %252, label %253, label %438

253:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr %56) #9
  %254 = load ptr, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr %62) #9
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %56, ptr noundef nonnull align 8 dereferenceable(290) %254)
          to label %255 unwind label %308

255:                                              ; preds = %253
  %256 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %56)
          to label %257 unwind label %308

257:                                              ; preds = %255
  store <2 x float> %256, ptr %55, align 4
  %258 = getelementptr inbounds %struct.QVector, ptr %55, i32 0, i32 1
  %259 = load float, ptr %258, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 28, ptr %58) #9
  %260 = load ptr, ptr %50, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %58, ptr noundef nonnull align 8 dereferenceable(290) %260)
          to label %261 unwind label %312

261:                                              ; preds = %257
  %262 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %58)
          to label %263 unwind label %312

263:                                              ; preds = %261
  store <2 x float> %262, ptr %57, align 4
  %264 = getelementptr inbounds %struct.QVector, ptr %57, i32 0, i32 1
  %265 = load float, ptr %264, align 4, !tbaa !20
  %266 = fcmp ole float %259, %265
  br i1 %266, label %267, label %281

267:                                              ; preds = %263
  %268 = load ptr, ptr %47, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %60, ptr noundef nonnull align 8 dereferenceable(290) %268)
          to label %269 unwind label %316

269:                                              ; preds = %267
  %270 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %60)
          to label %271 unwind label %316

271:                                              ; preds = %269
  store <2 x float> %270, ptr %59, align 4
  %272 = getelementptr inbounds %struct.QVector, ptr %59, i32 0, i32 1
  %273 = load float, ptr %272, align 4, !tbaa !20
  %274 = load ptr, ptr %50, align 8, !tbaa !5
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %62, ptr noundef nonnull align 8 dereferenceable(290) %274)
          to label %275 unwind label %320

275:                                              ; preds = %271
  %276 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %62)
          to label %277 unwind label %320

277:                                              ; preds = %275
  store <2 x float> %276, ptr %61, align 4
  %278 = getelementptr inbounds %struct.QVector, ptr %61, i32 0, i32 1
  %279 = load float, ptr %278, align 4, !tbaa !20
  %280 = fcmp oge float %273, %279
  br label %281

281:                                              ; preds = %277, %263
  %282 = phi i1 [ false, %263 ], [ %280, %277 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 28, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  br i1 %282, label %283, label %437

283:                                              ; preds = %281
  %284 = load float, ptr %10, align 4, !tbaa !9
  %285 = fcmp oeq float %284, 0.000000e+00
  br i1 %285, label %286, label %331

286:                                              ; preds = %283
  %287 = load ptr, ptr %47, align 8, !tbaa !5
  %288 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %287)
          to label %289 unwind label %327

289:                                              ; preds = %286
  store float %288, ptr %32, align 4, !tbaa !9
  %290 = load ptr, ptr %50, align 8, !tbaa !5
  %291 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %290)
          to label %292 unwind label %327

292:                                              ; preds = %289
  store float %291, ptr %33, align 4, !tbaa !9
  %293 = load float, ptr %32, align 4, !tbaa !9
  %294 = load float, ptr %33, align 4, !tbaa !9
  %295 = fadd float %293, %294
  store float %295, ptr %30, align 4, !tbaa !9
  %296 = load float, ptr %30, align 4, !tbaa !9
  %297 = load float, ptr %30, align 4, !tbaa !9
  %298 = fmul float %296, %297
  store float %298, ptr %31, align 4, !tbaa !9
  br label %331

299:                                              ; preds = %241, %236
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %14, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %15, align 4
  br label %307

303:                                              ; preds = %247, %243
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %14, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %307

307:                                              ; preds = %303, %299
  call void @llvm.lifetime.end.p0(i64 28, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  br label %446

308:                                              ; preds = %255, %253
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %14, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %15, align 4
  br label %326

312:                                              ; preds = %261, %257
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %14, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %15, align 4
  br label %325

316:                                              ; preds = %269, %267
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %14, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %15, align 4
  br label %324

320:                                              ; preds = %275, %271
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %14, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  br label %324

324:                                              ; preds = %320, %316
  call void @llvm.lifetime.end.p0(i64 28, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  br label %325

325:                                              ; preds = %324, %312
  call void @llvm.lifetime.end.p0(i64 28, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  br label %326

326:                                              ; preds = %325, %308
  call void @llvm.lifetime.end.p0(i64 28, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  br label %446

327:                                              ; preds = %347, %341, %289, %286
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %14, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %15, align 4
  br label %446

331:                                              ; preds = %292, %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #9
  %332 = load ptr, ptr %50, align 8, !tbaa !5
  %333 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %332)
          to label %334 unwind label %366

334:                                              ; preds = %331
  store <2 x float> %333, ptr %64, align 4
  %335 = load ptr, ptr %47, align 8, !tbaa !5
  %336 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %335)
          to label %337 unwind label %366

337:                                              ; preds = %334
  store <2 x float> %336, ptr %65, align 4
  %338 = load <2 x float>, ptr %64, align 4
  %339 = load <2 x float>, ptr %65, align 4
  %340 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %338, <2 x float> %339)
          to label %341 unwind label %366

341:                                              ; preds = %337
  store <2 x float> %340, ptr %63, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %63, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  %342 = invoke noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %343 unwind label %327

343:                                              ; preds = %341
  store float %342, ptr %36, align 4, !tbaa !9
  %344 = load float, ptr %36, align 4, !tbaa !9
  %345 = load float, ptr %31, align 4, !tbaa !9
  %346 = fcmp olt float %344, %345
  br i1 %346, label %347, label %436

347:                                              ; preds = %343
  %348 = load float, ptr %36, align 4, !tbaa !9
  %349 = invoke noundef float @_ZSt4sqrtf(float noundef %348)
          to label %350 unwind label %327

350:                                              ; preds = %347
  store float %349, ptr %37, align 4, !tbaa !9
  %351 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %352 = trunc i8 %351 to i1
  br i1 %352, label %353, label %374

353:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  %354 = load ptr, ptr %50, align 8, !tbaa !5
  %355 = invoke <2 x float> @_ZN9QParticle25GetPreviousGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %354)
          to label %356 unwind label %370

356:                                              ; preds = %353
  store <2 x float> %355, ptr %68, align 4
  %357 = load ptr, ptr %47, align 8, !tbaa !5
  %358 = invoke <2 x float> @_ZN9QParticle25GetPreviousGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %357)
          to label %359 unwind label %370

359:                                              ; preds = %356
  store <2 x float> %358, ptr %69, align 4
  %360 = load <2 x float>, ptr %68, align 4
  %361 = load <2 x float>, ptr %69, align 4
  %362 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %360, <2 x float> %361)
          to label %363 unwind label %370

363:                                              ; preds = %359
  store <2 x float> %362, ptr %67, align 4
  %364 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %67)
          to label %365 unwind label %370

365:                                              ; preds = %363
  store <2 x float> %364, ptr %66, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %66, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #9
  br label %381

366:                                              ; preds = %337, %334, %331
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %14, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  br label %446

370:                                              ; preds = %363, %359, %356, %353
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %14, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #9
  br label %446

374:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #9
  %375 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %376 unwind label %377

376:                                              ; preds = %374
  store <2 x float> %375, ptr %70, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %70, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  br label %381

377:                                              ; preds = %374
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %14, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  br label %446

381:                                              ; preds = %376, %365
  %382 = load float, ptr %30, align 4, !tbaa !9
  %383 = load float, ptr %37, align 4, !tbaa !9
  %384 = fsub float %382, %383
  store float %384, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #9
  %385 = load ptr, ptr %47, align 8, !tbaa !5
  %386 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %385)
          to label %387 unwind label %418

387:                                              ; preds = %381
  store <2 x float> %386, ptr %72, align 4
  %388 = load float, ptr %32, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !13
  %389 = load <2 x float>, ptr %74, align 4
  %390 = invoke <2 x float> @_Zmlf7QVector(float noundef %388, <2 x float> %389)
          to label %391 unwind label %418

391:                                              ; preds = %387
  store <2 x float> %390, ptr %73, align 4
  %392 = load <2 x float>, ptr %72, align 4
  %393 = load <2 x float>, ptr %73, align 4
  %394 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %392, <2 x float> %393)
          to label %395 unwind label %418

395:                                              ; preds = %391
  store <2 x float> %394, ptr %71, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %71, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #9
  %396 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
          to label %397 unwind label %422

397:                                              ; preds = %395
  %398 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %396)
          to label %399 unwind label %422

399:                                              ; preds = %397
  %400 = getelementptr inbounds %"struct.QObjectPool<QCollision::Contact>::Node", ptr %398, i32 0, i32 0
  %401 = load ptr, ptr %400, align 8, !tbaa !21
  store ptr %401, ptr %75, align 8, !tbaa !5
  %402 = load ptr, ptr %75, align 8, !tbaa !5
  %403 = load ptr, ptr %50, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !13
  %404 = load float, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #9
  %405 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %405, ptr %80, align 8, !tbaa !5
  %406 = getelementptr inbounds %"class.std::initializer_list", ptr %79, i32 0, i32 0
  store ptr %80, ptr %406, align 8, !tbaa !24
  %407 = getelementptr inbounds %"class.std::initializer_list", ptr %79, i32 0, i32 1
  store i64 1, ptr %407, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %81) #9
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %81) #9
  %408 = getelementptr inbounds { ptr, i64 }, ptr %79, i32 0, i32 0
  %409 = load ptr, ptr %408, align 8
  %410 = getelementptr inbounds { ptr, i64 }, ptr %79, i32 0, i32 1
  %411 = load i64, ptr %410, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %78, ptr %409, i64 %411, ptr noundef nonnull align 1 dereferenceable(1) %81)
          to label %412 unwind label %426

412:                                              ; preds = %399
  %413 = load <2 x float>, ptr %76, align 4
  %414 = load <2 x float>, ptr %77, align 4
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %402, ptr noundef %403, <2 x float> %413, <2 x float> %414, float noundef %404, ptr noundef %78)
          to label %415 unwind label %430

415:                                              ; preds = %412
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %78) #9
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %81) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %81) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #9
  %416 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %416, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %417 unwind label %422

417:                                              ; preds = %415
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #9
  br label %436

418:                                              ; preds = %391, %387, %381
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %14, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #9
  br label %446

422:                                              ; preds = %415, %397, %395
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %14, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %15, align 4
  br label %435

426:                                              ; preds = %399
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %14, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %15, align 4
  br label %434

430:                                              ; preds = %412
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %14, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %15, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %78) #9
  br label %434

434:                                              ; preds = %430, %426
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %81) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %81) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #9
  br label %435

435:                                              ; preds = %434, %422
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #9
  br label %446

436:                                              ; preds = %417, %343
  br label %437

437:                                              ; preds = %436, %281
  br label %439

438:                                              ; preds = %249
  store i32 5, ptr %46, align 4
  br label %440

439:                                              ; preds = %437
  store i32 0, ptr %46, align 4
  br label %440

440:                                              ; preds = %439, %438
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  %441 = load i32, ptr %46, align 4
  switch i32 %441, label %447 [
    i32 0, label %442
  ]

442:                                              ; preds = %440
  br label %443

443:                                              ; preds = %442
  %444 = load i64, ptr %49, align 8, !tbaa !14
  %445 = add i64 %444, 1
  store i64 %445, ptr %49, align 8, !tbaa !14
  br label %231, !llvm.loop !27

446:                                              ; preds = %435, %418, %377, %370, %366, %327, %326, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %455

447:                                              ; preds = %440, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %448

448:                                              ; preds = %447
  store i32 0, ptr %46, align 4
  br label %449

449:                                              ; preds = %448, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  %450 = load i32, ptr %46, align 4
  switch i32 %450, label %470 [
    i32 0, label %451
    i32 4, label %452
  ]

451:                                              ; preds = %449
  br label %452

452:                                              ; preds = %451, %449
  %453 = load i64, ptr %45, align 8, !tbaa !14
  %454 = add i64 %453, 1
  store i64 %454, ptr %45, align 8, !tbaa !14
  br label %206, !llvm.loop !29

455:                                              ; preds = %446, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %457

456:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #9
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  ret void

457:                                              ; preds = %455, %192, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %458

458:                                              ; preds = %457, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %459

459:                                              ; preds = %458, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %460

460:                                              ; preds = %459, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %461

461:                                              ; preds = %460, %172
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #9
  br label %462

462:                                              ; preds = %461, %168
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #9
  br label %463

463:                                              ; preds = %462, %164
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br label %464

464:                                              ; preds = %463, %160
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  br label %465

465:                                              ; preds = %464
  %466 = load ptr, ptr %14, align 8
  %467 = load i32, ptr %15, align 4
  %468 = insertvalue { ptr, i32 } poison, ptr %466, 0
  %469 = insertvalue { ptr, i32 } %468, i32 %467, 1
  resume { ptr, i32 } %469

470:                                              ; preds = %449
  unreachable
}

; 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 nounwind uwtable
declare dso_local <2 x float> @_ZN9QParticle25GetPreviousGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290)) #2 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 = { 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 = !{!"bool", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTS7QVector", !10, i64 0, !10, i64 4}
!20 = !{!19, !10, i64 4}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSN11QObjectPoolIN10QCollision7ContactEE4NodeE", !6, i64 0, !23, i64 8, !23, i64 12}
!23 = !{!"int", !7, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSSt16initializer_listIP9QParticleE", !6, i64 0, !15, i64 8}
!26 = !{!25, !15, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


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

; 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 @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(28)) local_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: 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
define dso_local void @_ZN10QCollision15CircleAndCircleERSt6vectorIP9QParticleSaIS2_EES5_5QAABBRS0_IPNS_7ContactESaIS8_EEfb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef byval(%class.QAABB) align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, float noundef %4, i1 noundef zeroext %5) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca %"class.std::vector.0", align 8
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca %struct.QVector, align 8
  %12 = alloca %struct.QVector, align 8
  %13 = alloca %struct.QVector, align 8
  %14 = alloca %struct.QVector, align 8
  %15 = alloca %struct.QVector, align 8
  %16 = alloca %class.QAABB, align 4
  %17 = alloca %class.QAABB, align 4
  %18 = alloca %class.QAABB, align 4
  %19 = alloca %class.QAABB, align 4
  %20 = alloca %class.QAABB, align 4
  %21 = alloca %class.QAABB, align 4
  %22 = alloca %class.QAABB, align 4
  %23 = alloca %struct.QVector, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::vector.0", align 8
  %26 = alloca [1 x ptr], align 8
  %27 = alloca %"class.std::allocator.2", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  %28 = tail call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %29 unwind label %57

29:                                               ; preds = %6
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  %30 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %31 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %32 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %33 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %30, ptr %31, ptr %32)
          to label %34 unwind label %59

34:                                               ; preds = %29
  %35 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %36 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %35, ptr %36, ptr noundef nonnull @_ZN9QParticle23SortParticlesHorizontalEPS_S0_)
          to label %37 unwind label %59

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %38 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #8
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %39 unwind label %61

39:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  %40 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %41 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %42 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %43 = invoke ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEES8_ET0_T_SA_S9_(ptr %40, ptr %41, ptr %42)
          to label %44 unwind label %63

44:                                               ; preds = %39
  %45 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %46 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %45, ptr %46, ptr noundef nonnull @_ZN9QParticle23SortParticlesHorizontalEPS_S0_)
          to label %47 unwind label %63

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %48 unwind label %65

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %49 unwind label %67

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %50 unwind label %69

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %51 unwind label %71

51:                                               ; preds = %50
  %52 = fcmp une float %4, 0.000000e+00
  br i1 %52, label %53, label %73

53:                                               ; preds = %51
  %54 = fadd float %4, %4
  %55 = fmul float %54, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %4, float noundef %4)
  %56 = load i64, ptr %15, align 8
  store i64 %56, ptr %11, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %73

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

59:                                               ; preds = %34, %29
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %175

61:                                               ; preds = %37
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #8
  br label %174

63:                                               ; preds = %44, %39
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %173

65:                                               ; preds = %47
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %172

67:                                               ; preds = %48
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %171

69:                                               ; preds = %49
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %170

71:                                               ; preds = %50
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %169

73:                                               ; preds = %53, %51
  %.0114 = phi float [ %55, %53 ], [ undef, %51 ]
  %.0106 = phi float [ %54, %53 ], [ undef, %51 ]
  %74 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %75 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %76 = icmp ugt i64 %74, 1
  %77 = icmp ugt i64 %75, 1
  %or.cond = and i1 %76, %77
  %.not = icmp eq i64 %74, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph212

.lr.ph212:                                        ; preds = %73
  %.not255 = icmp eq i64 %75, 0
  %78 = fcmp oeq float %4, 0.000000e+00
  br i1 %.not255, label %.loopexit, label %.lr.ph212.split.us

.lr.ph212.split.us:                               ; preds = %.lr.ph212, %.loopexit.us
  %.1107211.us = phi float [ %.7113.us, %.loopexit.us ], [ %.0106, %.lr.ph212 ]
  %.1115210.us = phi float [ %.7121.us, %.loopexit.us ], [ %.0114, %.lr.ph212 ]
  %.1123209.us = phi float [ %.7129.us, %.loopexit.us ], [ %4, %.lr.ph212 ]
  %.0130208.us = phi i64 [ %146, %.loopexit.us ], [ 0, %.lr.ph212 ]
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.0130208.us) #8
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  br i1 %or.cond, label %81, label %.lr.ph.us.preheader

81:                                               ; preds = %.lr.ph212.split.us
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %16) #8
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %16, ptr noundef nonnull align 8 dereferenceable(290) %80)
          to label %82 unwind label %.split.us

82:                                               ; preds = %81
  %83 = call noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %16, ptr noundef nonnull align 4 dereferenceable(28) %2)
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %16) #8
  br i1 %83, label %.lr.ph.us.preheader, label %.loopexit.us

.lr.ph.us.preheader:                              ; preds = %82, %.lr.ph212.split.us
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %144
  %.2108201.us = phi float [ %.5111.ph.us, %144 ], [ %.1107211.us, %.lr.ph.us.preheader ]
  %.2116200.us = phi float [ %.5119.ph.us, %144 ], [ %.1115210.us, %.lr.ph.us.preheader ]
  %.2124199.us = phi float [ %.5127.ph.us, %144 ], [ %.1123209.us, %.lr.ph.us.preheader ]
  %.0132198.us = phi i64 [ %145, %144 ], [ 0, %.lr.ph.us.preheader ]
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0132198.us) #8
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %17) #8
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %17, ptr noundef nonnull align 8 dereferenceable(290) %80)
          to label %86 unwind label %.split214.us

86:                                               ; preds = %.lr.ph.us
  %87 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %17)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %18) #8
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %18, ptr noundef nonnull align 8 dereferenceable(290) %85)
          to label %88 unwind label %.split217.us

88:                                               ; preds = %86
  %.sroa.020.0.vec.extract.us = extractelement <2 x float> %87, i64 0
  %89 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %18)
  %.sroa.019.0.vec.extract.us = extractelement <2 x float> %89, i64 0
  %90 = fcmp ult float %.sroa.020.0.vec.extract.us, %.sroa.019.0.vec.extract.us
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %17) #8
  br i1 %90, label %.loopexit.us, label %91

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %22) #8
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %19, ptr noundef nonnull align 8 dereferenceable(290) %80)
          to label %92 unwind label %.split220.us

92:                                               ; preds = %91
  %93 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %19)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %20) #8
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %20, ptr noundef nonnull align 8 dereferenceable(290) %85)
          to label %94 unwind label %.split223.us

94:                                               ; preds = %92
  %95 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %20)
  %96 = fcmp ugt <2 x float> %93, %95
  %97 = extractelement <2 x i1> %96, i64 1
  br i1 %97, label %.critedge.us, label %98

98:                                               ; preds = %94
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %21, ptr noundef nonnull align 8 dereferenceable(290) %80)
          to label %99 unwind label %.split226.us

99:                                               ; preds = %98
  %100 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %21)
  invoke void @_ZN9QParticle7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %22, ptr noundef nonnull align 8 dereferenceable(290) %85)
          to label %101 unwind label %.split229.us

101:                                              ; preds = %99
  %102 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %22)
  %103 = fcmp ult <2 x float> %100, %102
  %104 = extractelement <2 x i1> %103, i64 1
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %19) #8
  br i1 %104, label %144, label %105

105:                                              ; preds = %101
  br i1 %78, label %106, label %111

106:                                              ; preds = %105
  %107 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %80)
  %108 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %85)
  %109 = fadd float %107, %108
  %110 = fmul float %109, %109
  br label %111

111:                                              ; preds = %106, %105
  %.3125.us = phi float [ %107, %106 ], [ %.2124199.us, %105 ]
  %.3117.us = phi float [ %110, %106 ], [ %.2116200.us, %105 ]
  %.3109.us = phi float [ %109, %106 ], [ %.2108201.us, %105 ]
  %112 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %85)
  %113 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %80)
  %114 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %112, <2 x float> %113)
          to label %115 unwind label %.split232.us

115:                                              ; preds = %111
  store <2 x float> %114, ptr %12, align 8
  %116 = call noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %117 = fcmp olt float %116, %.3117.us
  br i1 %117, label %118, label %144

118:                                              ; preds = %115
  %119 = call noundef float @_ZSt4sqrtf(float noundef %116)
  br i1 %5, label %123, label %120

120:                                              ; preds = %118
  %121 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %122 unwind label %.split235.us

122:                                              ; preds = %120
  store <2 x float> %121, ptr %13, align 8
  br label %130

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %124 = call <2 x float> @_ZN9QParticle25GetPreviousGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %85)
  %125 = call <2 x float> @_ZN9QParticle25GetPreviousGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %80)
  %126 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %124, <2 x float> %125)
          to label %127 unwind label %.split238.us

127:                                              ; preds = %123
  store <2 x float> %126, ptr %23, align 8
  %128 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %129 unwind label %.split238.us

129:                                              ; preds = %127
  store <2 x float> %128, ptr %13, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  br label %130

130:                                              ; preds = %129, %122
  %131 = fsub float %.3109.us, %119
  %132 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %80)
  %.sroa.04.0.copyload.us = load <2 x float>, ptr %13, align 8
  %133 = invoke <2 x float> @_Zmlf7QVector(float noundef %.3125.us, <2 x float> %.sroa.04.0.copyload.us)
          to label %134 unwind label %.split241.us

134:                                              ; preds = %130
  %135 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %132, <2 x float> %133)
          to label %136 unwind label %.split241.us

136:                                              ; preds = %134
  store <2 x float> %135, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %137 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
  %138 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %137)
          to label %139 unwind label %.split244.us

139:                                              ; preds = %136
  %140 = load ptr, ptr %138, align 8, !tbaa !9
  store ptr %140, ptr %24, align 8, !tbaa !5
  %.sroa.03.0.copyload.us = load <2 x float>, ptr %14, align 8
  %.sroa.02.0.copyload.us = load <2 x float>, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  store ptr %80, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #8
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr nonnull %26, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %141 unwind label %.split247.us

141:                                              ; preds = %139
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %140, ptr noundef nonnull %85, <2 x float> %.sroa.03.0.copyload.us, <2 x float> %.sroa.02.0.copyload.us, float noundef %131, ptr noundef nonnull %25)
          to label %142 unwind label %.split250.us

142:                                              ; preds = %141
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  invoke void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %143 unwind label %.split244.us

143:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  br label %144

.critedge.us:                                     ; preds = %94
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %19) #8
  br label %144

144:                                              ; preds = %.critedge.us, %143, %115, %101
  %.5127.ph.us = phi float [ %.2124199.us, %.critedge.us ], [ %.2124199.us, %101 ], [ %.3125.us, %115 ], [ %.3125.us, %143 ]
  %.5119.ph.us = phi float [ %.2116200.us, %.critedge.us ], [ %.2116200.us, %101 ], [ %.3117.us, %115 ], [ %.3117.us, %143 ]
  %.5111.ph.us = phi float [ %.2108201.us, %.critedge.us ], [ %.2108201.us, %101 ], [ %.3109.us, %115 ], [ %.3109.us, %143 ]
  %145 = add nuw i64 %.0132198.us, 1
  %exitcond.not = icmp eq i64 %145, %75
  br i1 %exitcond.not, label %.loopexit.us, label %.lr.ph.us, !llvm.loop !12

.loopexit.us:                                     ; preds = %88, %144, %82
  %.7129.us = phi float [ %.1123209.us, %82 ], [ %.5127.ph.us, %144 ], [ %.2124199.us, %88 ]
  %.7121.us = phi float [ %.1115210.us, %82 ], [ %.5119.ph.us, %144 ], [ %.2116200.us, %88 ]
  %.7113.us = phi float [ %.1107211.us, %82 ], [ %.5111.ph.us, %144 ], [ %.2108201.us, %88 ]
  %146 = add nuw i64 %.0130208.us, 1
  %exitcond257.not = icmp eq i64 %146, %74
  br i1 %exitcond257.not, label %._crit_edge, label %.lr.ph212.split.us, !llvm.loop !14

.split.us:                                        ; preds = %81
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %16) #8
  br label %169

.split214.us:                                     ; preds = %.lr.ph.us
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %163

.split217.us:                                     ; preds = %86
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %18) #8
  br label %163

.split220.us:                                     ; preds = %91
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %166

.split223.us:                                     ; preds = %92
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %165

.split226.us:                                     ; preds = %98
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %164

.split229.us:                                     ; preds = %99
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %22) #8
  br label %164

.split232.us:                                     ; preds = %111
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %169

.split235.us:                                     ; preds = %120
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %169

.split238.us:                                     ; preds = %127, %123
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  br label %169

.split241.us:                                     ; preds = %134, %130
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %169

.split244.us:                                     ; preds = %142, %136
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %168

.split247.us:                                     ; preds = %139
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %167

.split250.us:                                     ; preds = %141
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  br label %167

._crit_edge:                                      ; preds = %.loopexit.us, %.loopexit, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  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 void

.loopexit:                                        ; preds = %.lr.ph212, %.loopexit
  %.0130208 = phi i64 [ %162, %.loopexit ], [ 0, %.lr.ph212 ]
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.0130208) #8
  %162 = add nuw i64 %.0130208, 1
  %exitcond258.not = icmp eq i64 %162, %74
  br i1 %exitcond258.not, label %._crit_edge, label %.loopexit, !llvm.loop !14

163:                                              ; preds = %.split217.us, %.split214.us
  %.pn = phi { ptr, i32 } [ %149, %.split217.us ], [ %148, %.split214.us ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %17) #8
  br label %169

164:                                              ; preds = %.split229.us, %.split226.us
  %.pn135 = phi { ptr, i32 } [ %153, %.split229.us ], [ %152, %.split226.us ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %21) #8
  br label %165

165:                                              ; preds = %164, %.split223.us
  %.pn135.pn = phi { ptr, i32 } [ %.pn135, %164 ], [ %151, %.split223.us ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %20) #8
  br label %166

166:                                              ; preds = %165, %.split220.us
  %.pn135.pn.pn = phi { ptr, i32 } [ %.pn135.pn, %165 ], [ %150, %.split220.us ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %19) #8
  br label %169

167:                                              ; preds = %.split250.us, %.split247.us
  %.pn139 = phi { ptr, i32 } [ %160, %.split250.us ], [ %159, %.split247.us ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  br label %168

168:                                              ; preds = %167, %.split244.us
  %.pn141 = phi { ptr, i32 } [ %158, %.split244.us ], [ %.pn139, %167 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  br label %169

169:                                              ; preds = %.split.us, %168, %.split241.us, %.split235.us, %.split238.us, %.split232.us, %166, %163, %71
  %.pn141.pn.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %147, %.split.us ], [ %.pn141, %168 ], [ %157, %.split241.us ], [ %156, %.split238.us ], [ %155, %.split235.us ], [ %154, %.split232.us ], [ %.pn135.pn.pn, %166 ], [ %.pn, %163 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %170

170:                                              ; preds = %169, %69
  %.pn141.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn, %169 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %171

171:                                              ; preds = %170, %67
  %.pn141.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn.pn, %170 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %172

172:                                              ; preds = %171, %65
  %.pn141.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn.pn.pn, %171 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %173

173:                                              ; preds = %172, %63
  %.pn141.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn.pn.pn.pn, %172 ], [ %64, %63 ]
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %174

174:                                              ; preds = %173, %61
  %.pn141.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn.pn.pn.pn.pn, %173 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  br label %175

175:                                              ; preds = %174, %59
  %.pn141.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn.pn.pn.pn.pn.pn, %174 ], [ %60, %59 ]
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %176

176:                                              ; preds = %175, %57
  %.pn141.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141.pn.pn.pn.pn.pn.pn.pn.pn.pn, %175 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn141.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; 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 nounwind uwtable
declare dso_local <2 x float> @_ZN9QParticle25GetPreviousGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290)) local_unnamed_addr #2 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 = { 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,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass