; 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.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::initializer_list" = type { ptr, i64 }
%"class.std::allocator.2" = type { i8 }
%"struct.std::pair" = type { i32, i32 }
%"struct.QObjectPool<QCollision::Contact>::Node" = type { ptr, i32, i32 }

@_ZN6QWorld14MAX_WORLD_SIZEE = external dso_local global float, align 4

; 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

declare <2 x float> @_ZN7QVector22GeteBisectorUnitVectorES_S_S_b(<2 x float>, <2 x float>, <2 x float>, i1 noundef zeroext) #2

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

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

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

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

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

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

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

; 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> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float>, <2 x float>, <2 x float>, <2 x float>) #4 align 2

; 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 noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8)) #8 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8)) #9 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #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)) #10 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 #10 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)) #10 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10QCollision19PolylineAndPolylineERSt6vectorIP9QParticleSaIS2_EES5_5QAABBRS0_IPNS_7ContactESaIS8_EE(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) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.35", align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %struct.QVector, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %class.QAABB, align 4
  %16 = alloca %struct.QVector, align 4
  %17 = alloca %struct.QVector, align 4
  %18 = alloca %struct.QVector, align 4
  %19 = alloca %struct.QVector, align 4
  %20 = alloca %struct.QVector, align 4
  %21 = alloca %struct.QVector, align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca %struct.QVector, align 4
  %25 = alloca %"class.std::vector.0", align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i8, align 1
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %struct.QVector, align 4
  %34 = alloca %struct.QVector, align 4
  %35 = alloca %struct.QVector, align 4
  %36 = alloca %struct.QVector, align 4
  %37 = alloca i8, align 1
  %38 = alloca %struct.QVector, align 4
  %39 = alloca %struct.QVector, align 4
  %40 = alloca %struct.QVector, align 4
  %41 = alloca %struct.QVector, align 4
  %42 = alloca %struct.QVector, align 4
  %43 = alloca %struct.QVector, align 4
  %44 = alloca %struct.QVector, align 4
  %45 = alloca %struct.QVector, align 4
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca %struct.QVector, align 4
  %49 = alloca %struct.QVector, align 4
  %50 = alloca %struct.QVector, align 4
  %51 = alloca %struct.QVector, align 4
  %52 = alloca float, align 4
  %53 = alloca %struct.QVector, align 4
  %54 = alloca %struct.QVector, align 4
  %55 = alloca %struct.QVector, align 4
  %56 = alloca %struct.QVector, align 4
  %57 = alloca %struct.QVector, align 4
  %58 = alloca %struct.QVector, align 4
  %59 = alloca %struct.QVector, align 4
  %60 = alloca %struct.QVector, align 4
  %61 = alloca %struct.QVector, align 4
  %62 = alloca %struct.QVector, 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 i32, align 4
  %70 = alloca %"class.std::vector.0", align 8
  %71 = alloca ptr, align 8
  %72 = alloca %"class.std::vector.0", align 8
  %73 = alloca %"class.std::initializer_list", align 8
  %74 = alloca [2 x ptr], align 8
  %75 = alloca %"class.std::allocator.2", align 1
  %76 = alloca %"class.std::vector.0", align 8
  %77 = alloca %"class.std::initializer_list", align 8
  %78 = alloca [2 x ptr], align 8
  %79 = alloca %"class.std::allocator.2", align 1
  %80 = alloca i8, align 1
  %81 = alloca i8, align 1
  %82 = alloca i64, align 8
  %83 = alloca %struct.QVector, align 4
  %84 = alloca %struct.QVector, align 4
  %85 = alloca %struct.QVector, align 4
  %86 = alloca %struct.QVector, align 4
  %87 = alloca %struct.QVector, align 4
  %88 = alloca %struct.QVector, align 4
  %89 = alloca %struct.QVector, align 4
  %90 = alloca %struct.QVector, align 4
  %91 = alloca i64, align 8
  %92 = alloca i32, align 4
  %93 = alloca %struct.QVector, align 4
  %94 = alloca %struct.QVector, align 4
  %95 = alloca %struct.QVector, align 4
  %96 = alloca %struct.QVector, align 4
  %97 = alloca %struct.QVector, align 4
  %98 = alloca %"class.std::vector.0", align 8
  %99 = alloca %"class.std::initializer_list", align 8
  %100 = alloca [2 x ptr], align 8
  %101 = alloca %"class.std::allocator.2", align 1
  %102 = alloca float, align 4
  %103 = alloca %struct.QVector, align 4
  %104 = alloca float, align 4
  %105 = alloca float, align 4
  %106 = alloca i32, align 4
  %107 = alloca ptr, align 8
  %108 = alloca ptr, align 8
  %109 = alloca %struct.QVector, align 4
  %110 = alloca %struct.QVector, align 4
  %111 = alloca %struct.QVector, align 4
  %112 = alloca %struct.QVector, align 4
  %113 = alloca %struct.QVector, align 4
  %114 = alloca %struct.QVector, align 4
  %115 = alloca %struct.QVector, align 4
  %116 = alloca %struct.QVector, align 4
  %117 = alloca %struct.QVector, align 4
  %118 = alloca %struct.QVector, align 4
  %119 = alloca %struct.QVector, align 4
  %120 = alloca %struct.QVector, align 4
  %121 = alloca %struct.QVector, align 4
  %122 = alloca %struct.QVector, align 4
  %123 = alloca %struct.QVector, align 4
  %124 = alloca %struct.QVector, align 4
  %125 = alloca %struct.QVector, align 4
  %126 = alloca %struct.QVector, align 4
  %127 = alloca %struct.QVector, align 4
  %128 = alloca %struct.QVector, align 4
  %129 = alloca %struct.QVector, align 4
  %130 = alloca float, align 4
  %131 = alloca %struct.QVector, align 4
  %132 = alloca %struct.QVector, align 4
  %133 = alloca %struct.QVector, align 4
  %134 = alloca float, align 4
  %135 = alloca %struct.QVector, align 4
  %136 = alloca float, align 4
  %137 = alloca %struct.QVector, align 4
  %138 = alloca %struct.QVector, align 4
  %139 = alloca %struct.QVector, align 4
  %140 = alloca %struct.QVector, align 4
  %141 = alloca %struct.QVector, align 4
  %142 = alloca %struct.QVector, align 4
  %143 = alloca float, align 4
  %144 = alloca %struct.QVector, align 4
  %145 = alloca float, align 4
  %146 = alloca %"class.std::vector.0", align 8
  %147 = alloca float, align 4
  %148 = alloca i32, align 4
  %149 = alloca ptr, align 8
  %150 = alloca ptr, align 8
  %151 = alloca %struct.QVector, align 4
  %152 = alloca %struct.QVector, align 4
  %153 = alloca %struct.QVector, align 4
  %154 = alloca %struct.QVector, align 4
  %155 = alloca %struct.QVector, align 4
  %156 = alloca %struct.QVector, align 4
  %157 = alloca %struct.QVector, align 4
  %158 = alloca %struct.QVector, align 4
  %159 = alloca %struct.QVector, align 4
  %160 = alloca %struct.QVector, align 4
  %161 = alloca float, align 4
  %162 = alloca %struct.QVector, align 4
  %163 = alloca %"class.std::initializer_list", align 8
  %164 = alloca [2 x ptr], align 8
  %165 = alloca ptr, align 8
  %166 = alloca %struct.QVector, align 4
  %167 = alloca %struct.QVector, align 4
  %168 = alloca %"class.std::vector.0", align 8
  %169 = alloca %"class.std::initializer_list", align 8
  %170 = alloca [2 x ptr], align 8
  %171 = alloca %"class.std::allocator.2", align 1
  %172 = alloca %"struct.std::pair", align 4
  %173 = alloca %struct.QVector, align 4
  %174 = alloca %"class.std::vector.0", align 8
  %175 = alloca i32, align 4
  %176 = alloca %"class.std::vector.0", align 8
  %177 = alloca %"class.std::initializer_list", align 8
  %178 = alloca [2 x ptr], align 8
  %179 = alloca %"class.std::allocator.2", align 1
  %180 = alloca ptr, align 8
  %181 = alloca %"class.std::vector.0", align 8
  %182 = alloca %"class.std::initializer_list", align 8
  %183 = alloca [2 x ptr], align 8
  %184 = alloca %"class.std::allocator.2", align 1
  %185 = alloca %"class.std::vector.0", align 8
  %186 = alloca %"class.std::initializer_list", align 8
  %187 = alloca [2 x ptr], align 8
  %188 = alloca %"class.std::allocator.2", align 1
  %189 = alloca i32, align 4
  %190 = alloca float, align 4
  %191 = alloca %struct.QVector, align 4
  %192 = alloca %struct.QVector, align 4
  %193 = alloca float, align 4
  %194 = alloca i64, align 8
  %195 = alloca ptr, align 8
  %196 = alloca ptr, align 8
  %197 = alloca %struct.QVector, align 4
  %198 = alloca %struct.QVector, align 4
  %199 = alloca %struct.QVector, align 4
  %200 = alloca %struct.QVector, align 4
  %201 = alloca %struct.QVector, align 4
  %202 = alloca %struct.QVector, align 4
  %203 = alloca %struct.QVector, align 4
  %204 = alloca %struct.QVector, align 4
  %205 = alloca %struct.QVector, align 4
  %206 = alloca %struct.QVector, align 4
  %207 = alloca %struct.QVector, align 4
  %208 = alloca %struct.QVector, align 4
  %209 = alloca %struct.QVector, align 4
  %210 = alloca %struct.QVector, align 4
  %211 = alloca %struct.QVector, align 4
  %212 = alloca %struct.QVector, align 4
  %213 = alloca float, align 4
  %214 = alloca %struct.QVector, align 4
  %215 = alloca %struct.QVector, align 4
  %216 = alloca %struct.QVector, align 4
  %217 = alloca [2 x %struct.QVector], align 16
  %218 = alloca %struct.QVector, align 4
  %219 = alloca %struct.QVector, align 4
  %220 = alloca %struct.QVector, align 4
  %221 = alloca float, align 4
  %222 = alloca %struct.QVector, align 4
  %223 = alloca float, align 4
  %224 = alloca %struct.QVector, align 4
  %225 = alloca i32, align 4
  %226 = alloca %struct.QVector, align 4
  %227 = alloca %struct.QVector, align 4
  %228 = alloca %struct.QVector, align 4
  %229 = alloca %struct.QVector, align 4
  %230 = alloca ptr, align 8
  %231 = alloca ptr, align 8
  %232 = alloca ptr, align 8
  %233 = alloca %struct.QVector, align 4
  %234 = alloca %struct.QVector, align 4
  %235 = alloca %"class.std::vector.0", align 8
  %236 = alloca %"class.std::initializer_list", align 8
  %237 = alloca [2 x ptr], align 8
  %238 = alloca %"class.std::allocator.2", align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #12
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #12
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %239

239:                                              ; preds = %1726, %4
  %240 = load i64, ptr %9, align 8, !tbaa !9
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #12
  %243 = icmp ult i64 %240, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %239
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #12
  br label %1732

245:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #12
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = load i64, ptr %9, align 8, !tbaa !9
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %246, i64 noundef %247) #12
  %249 = load ptr, ptr %248, align 8, !tbaa !5
  store ptr %249, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #12
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %250)
          to label %252 unwind label %279

252:                                              ; preds = %245
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %253)
          to label %255 unwind label %279

255:                                              ; preds = %252
  invoke void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %251, float noundef %254)
          to label %256 unwind label %279

256:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 28, ptr %15) #12
  %257 = load ptr, ptr %11, align 8, !tbaa !5
  %258 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %257)
          to label %259 unwind label %283

259:                                              ; preds = %256
  store <2 x float> %258, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !11
  %260 = load <2 x float>, ptr %17, align 4
  %261 = load <2 x float>, ptr %18, align 4
  %262 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %260, <2 x float> %261)
          to label %263 unwind label %283

263:                                              ; preds = %259
  store <2 x float> %262, ptr %16, align 4
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %264)
          to label %266 unwind label %283

266:                                              ; preds = %263
  store <2 x float> %265, ptr %20, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !11
  %267 = load <2 x float>, ptr %20, align 4
  %268 = load <2 x float>, ptr %21, align 4
  %269 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %267, <2 x float> %268)
          to label %270 unwind label %283

270:                                              ; preds = %266
  store <2 x float> %269, ptr %19, align 4
  %271 = load <2 x float>, ptr %16, align 4
  %272 = load <2 x float>, ptr %19, align 4
  invoke void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28) %15, <2 x float> %271, <2 x float> %272)
          to label %273 unwind label %283

273:                                              ; preds = %270
  %274 = invoke noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %15, ptr noundef nonnull align 4 dereferenceable(28) %2)
          to label %275 unwind label %283

275:                                              ; preds = %273
  %276 = zext i1 %274 to i32
  %277 = icmp eq i32 %276, 0
  br i1 %277, label %278, label %287

278:                                              ; preds = %275
  store i32 4, ptr %10, align 4
  br label %1723

279:                                              ; preds = %255, %252, %245
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %13, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %14, align 4
  br label %1731

283:                                              ; preds = %273, %270, %266, %263, %259, %256
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %13, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %14, align 4
  br label %1730

287:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #12
  store i32 -1, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #12
  store i8 0, ptr %23, align 1, !tbaa !16
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = invoke noundef zeroext i1 @_ZStneIP9QParticleSaIS1_EEbRKSt6vectorIT_T0_ES8_(ptr noundef nonnull align 8 dereferenceable(24) %288, ptr noundef nonnull align 8 dereferenceable(24) %289)
          to label %291 unwind label %302

291:                                              ; preds = %287
  br i1 %290, label %292, label %426

292:                                              ; preds = %291
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %293)
          to label %295 unwind label %302

295:                                              ; preds = %292
  store <2 x float> %294, ptr %24, align 4
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %296)
          to label %297 unwind label %302

297:                                              ; preds = %295
  %298 = load <2 x float>, ptr %24, align 4
  %299 = invoke noundef zeroext i1 @_ZN10QCollision16PointInPolygonWNE7QVectorSt6vectorIP9QParticleSaIS3_EE(<2 x float> %298, ptr noundef %25)
          to label %300 unwind label %306

300:                                              ; preds = %297
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #12
  br i1 %299, label %301, label %310

301:                                              ; preds = %300
  store i8 1, ptr %23, align 1, !tbaa !16
  br label %425

302:                                              ; preds = %1252, %295, %292, %287
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %13, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %14, align 4
  br label %1729

306:                                              ; preds = %297
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %13, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #12
  br label %1729

310:                                              ; preds = %300
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %311) #12
  %313 = icmp ugt i64 %312, 3
  br i1 %313, label %314, label %424

314:                                              ; preds = %310
  %315 = load ptr, ptr %6, align 8, !tbaa !5
  %316 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %315) #12
  %317 = icmp ugt i64 %316, 3
  br i1 %317, label %318, label %424

318:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #12
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  %320 = load i64, ptr %9, align 8, !tbaa !9
  %321 = sub i64 %320, 1
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %322) #12
  %324 = add i64 %321, %323
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %325) #12
  %327 = urem i64 %324, %326
  %328 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %319, i64 noundef %327) #12
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  store ptr %329, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #12
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = load i64, ptr %9, align 8, !tbaa !9
  %332 = add i64 %331, 1
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %333) #12
  %335 = urem i64 %332, %334
  %336 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %330, i64 noundef %335) #12
  %337 = load ptr, ptr %336, align 8, !tbaa !5
  store ptr %337, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #12
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %338

338:                                              ; preds = %419, %318
  %339 = load i64, ptr %28, align 8, !tbaa !9
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %340) #12
  %342 = icmp ult i64 %339, %341
  br i1 %342, label %344, label %343

343:                                              ; preds = %338
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #12
  br label %423

344:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #12
  %345 = load ptr, ptr %6, align 8, !tbaa !5
  %346 = load i64, ptr %28, align 8, !tbaa !9
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %345, i64 noundef %346) #12
  %348 = load ptr, ptr %347, align 8, !tbaa !5
  store ptr %348, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #12
  %349 = load ptr, ptr %6, align 8, !tbaa !5
  %350 = load i64, ptr %28, align 8, !tbaa !9
  %351 = add i64 %350, 1
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %352) #12
  %354 = urem i64 %351, %353
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef %354) #12
  %356 = load ptr, ptr %355, align 8, !tbaa !5
  store ptr %356, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #12
  %357 = load ptr, ptr %26, align 8, !tbaa !5
  %358 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %357)
          to label %359 unwind label %409

359:                                              ; preds = %344
  store <2 x float> %358, ptr %33, align 4
  %360 = load ptr, ptr %11, align 8, !tbaa !5
  %361 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %360)
          to label %362 unwind label %409

362:                                              ; preds = %359
  store <2 x float> %361, ptr %34, align 4
  %363 = load ptr, ptr %29, align 8, !tbaa !5
  %364 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %363)
          to label %365 unwind label %409

365:                                              ; preds = %362
  store <2 x float> %364, ptr %35, align 4
  %366 = load ptr, ptr %30, align 8, !tbaa !5
  %367 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %366)
          to label %368 unwind label %409

368:                                              ; preds = %365
  store <2 x float> %367, ptr %36, align 4
  %369 = load <2 x float>, ptr %33, align 4
  %370 = load <2 x float>, ptr %34, align 4
  %371 = load <2 x float>, ptr %35, align 4
  %372 = load <2 x float>, ptr %36, align 4
  %373 = invoke <2 x float> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float> %369, <2 x float> %370, <2 x float> %371, <2 x float> %372)
          to label %374 unwind label %409

374:                                              ; preds = %368
  store <2 x float> %373, ptr %32, align 4
  %375 = invoke noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %376 unwind label %409

376:                                              ; preds = %374
  %377 = zext i1 %375 to i32
  %378 = icmp eq i32 %377, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  %379 = zext i1 %378 to i8
  store i8 %379, ptr %31, align 1, !tbaa !16
  %380 = load i8, ptr %31, align 1, !tbaa !16, !range !18, !noundef !19
  %381 = trunc i8 %380 to i1
  br i1 %381, label %382, label %418

382:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #12
  %383 = load ptr, ptr %11, align 8, !tbaa !5
  %384 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %383)
          to label %385 unwind label %413

385:                                              ; preds = %382
  store <2 x float> %384, ptr %39, align 4
  %386 = load ptr, ptr %27, align 8, !tbaa !5
  %387 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %386)
          to label %388 unwind label %413

388:                                              ; preds = %385
  store <2 x float> %387, ptr %40, align 4
  %389 = load ptr, ptr %29, align 8, !tbaa !5
  %390 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %389)
          to label %391 unwind label %413

391:                                              ; preds = %388
  store <2 x float> %390, ptr %41, align 4
  %392 = load ptr, ptr %30, align 8, !tbaa !5
  %393 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %392)
          to label %394 unwind label %413

394:                                              ; preds = %391
  store <2 x float> %393, ptr %42, align 4
  %395 = load <2 x float>, ptr %39, align 4
  %396 = load <2 x float>, ptr %40, align 4
  %397 = load <2 x float>, ptr %41, align 4
  %398 = load <2 x float>, ptr %42, align 4
  %399 = invoke <2 x float> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float> %395, <2 x float> %396, <2 x float> %397, <2 x float> %398)
          to label %400 unwind label %413

400:                                              ; preds = %394
  store <2 x float> %399, ptr %38, align 4
  %401 = invoke noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %402 unwind label %413

402:                                              ; preds = %400
  %403 = zext i1 %401 to i32
  %404 = icmp eq i32 %403, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  %405 = zext i1 %404 to i8
  store i8 %405, ptr %37, align 1, !tbaa !16
  %406 = load i8, ptr %37, align 1, !tbaa !16, !range !18, !noundef !19
  %407 = trunc i8 %406 to i1
  br i1 %407, label %408, label %417

408:                                              ; preds = %402
  store i8 1, ptr %23, align 1, !tbaa !16
  br label %417

409:                                              ; preds = %374, %368, %365, %362, %359, %344
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %13, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  br label %422

413:                                              ; preds = %400, %394, %391, %388, %385, %382
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %13, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #12
  br label %422

417:                                              ; preds = %408, %402
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #12
  br label %418

418:                                              ; preds = %417, %376
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #12
  br label %419

419:                                              ; preds = %418
  %420 = load i64, ptr %28, align 8, !tbaa !9
  %421 = add i64 %420, 1
  store i64 %421, ptr %28, align 8, !tbaa !9
  br label %338, !llvm.loop !20

422:                                              ; preds = %413, %409
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #12
  br label %1729

423:                                              ; preds = %343
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #12
  br label %424

424:                                              ; preds = %423, %314, %310
  br label %425

425:                                              ; preds = %424, %301
  br label %426

426:                                              ; preds = %425, %291
  %427 = load i8, ptr %23, align 1, !tbaa !16, !range !18, !noundef !19
  %428 = trunc i8 %427 to i1
  br i1 %428, label %429, label %1252

429:                                              ; preds = %426
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #12
  %430 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %431 unwind label %505

431:                                              ; preds = %429
  store <2 x float> %430, ptr %43, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #12
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %44)
          to label %432 unwind label %509

432:                                              ; preds = %431
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #12
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %433 unwind label %513

433:                                              ; preds = %432
  %434 = load ptr, ptr %5, align 8, !tbaa !5
  %435 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %434) #12
  %436 = icmp uge i64 %435, 3
  br i1 %436, label %437, label %585

437:                                              ; preds = %433
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #12
  %438 = load ptr, ptr %5, align 8, !tbaa !5
  %439 = load i64, ptr %9, align 8, !tbaa !9
  %440 = sub i64 %439, 1
  %441 = load ptr, ptr %5, align 8, !tbaa !5
  %442 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %441) #12
  %443 = add i64 %440, %442
  %444 = load ptr, ptr %5, align 8, !tbaa !5
  %445 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %444) #12
  %446 = urem i64 %443, %445
  %447 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %438, i64 noundef %446) #12
  %448 = load ptr, ptr %447, align 8, !tbaa !5
  store ptr %448, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #12
  %449 = load ptr, ptr %5, align 8, !tbaa !5
  %450 = load i64, ptr %9, align 8, !tbaa !9
  %451 = add i64 %450, 1
  %452 = load ptr, ptr %5, align 8, !tbaa !5
  %453 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %452) #12
  %454 = urem i64 %451, %453
  %455 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %449, i64 noundef %454) #12
  %456 = load ptr, ptr %455, align 8, !tbaa !5
  store ptr %456, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #12
  %457 = load ptr, ptr %47, align 8, !tbaa !5
  %458 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %457)
          to label %459 unwind label %517

459:                                              ; preds = %437
  store <2 x float> %458, ptr %50, align 4
  %460 = load ptr, ptr %46, align 8, !tbaa !5
  %461 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %460)
          to label %462 unwind label %517

462:                                              ; preds = %459
  store <2 x float> %461, ptr %51, align 4
  %463 = load <2 x float>, ptr %50, align 4
  %464 = load <2 x float>, ptr %51, align 4
  %465 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %463, <2 x float> %464)
          to label %466 unwind label %517

466:                                              ; preds = %462
  store <2 x float> %465, ptr %49, align 4
  %467 = load <2 x float>, ptr %49, align 4
  %468 = invoke <2 x float> @_Zml7QVectorf(<2 x float> %467, float noundef 5.000000e-01)
          to label %469 unwind label %517

469:                                              ; preds = %466
  store <2 x float> %468, ptr %48, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #12
  %470 = load ptr, ptr %47, align 8, !tbaa !5
  %471 = invoke <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %470)
          to label %472 unwind label %521

472:                                              ; preds = %469
  store <2 x float> %471, ptr %54, align 4
  %473 = load ptr, ptr %46, align 8, !tbaa !5
  %474 = invoke <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %473)
          to label %475 unwind label %521

475:                                              ; preds = %472
  store <2 x float> %474, ptr %55, align 4
  %476 = load <2 x float>, ptr %54, align 4
  %477 = load <2 x float>, ptr %55, align 4
  %478 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %476, <2 x float> %477)
          to label %479 unwind label %521

479:                                              ; preds = %475
  store <2 x float> %478, ptr %53, align 4
  %480 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %53)
          to label %481 unwind label %521

481:                                              ; preds = %479
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #12
  store float %480, ptr %52, align 4, !tbaa !12
  %482 = load ptr, ptr %11, align 8, !tbaa !5
  %483 = invoke noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %482)
          to label %484 unwind label %525

484:                                              ; preds = %481
  %485 = icmp eq ptr %483, null
  br i1 %485, label %486, label %537

486:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #12
  %487 = load ptr, ptr %46, align 8, !tbaa !5
  %488 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %487)
          to label %489 unwind label %529

489:                                              ; preds = %486
  store <2 x float> %488, ptr %57, align 4
  %490 = load ptr, ptr %11, align 8, !tbaa !5
  %491 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %490)
          to label %492 unwind label %529

492:                                              ; preds = %489
  store <2 x float> %491, ptr %58, align 4
  %493 = load ptr, ptr %47, align 8, !tbaa !5
  %494 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %493)
          to label %495 unwind label %529

495:                                              ; preds = %492
  store <2 x float> %494, ptr %59, align 4
  %496 = load <2 x float>, ptr %57, align 4
  %497 = load <2 x float>, ptr %58, align 4
  %498 = load <2 x float>, ptr %59, align 4
  %499 = invoke <2 x float> @_ZN7QVector22GeteBisectorUnitVectorES_S_S_b(<2 x float> %496, <2 x float> %497, <2 x float> %498, i1 noundef zeroext true)
          to label %500 unwind label %529

500:                                              ; preds = %495
  store <2 x float> %499, ptr %56, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !11
  %501 = load float, ptr %52, align 4, !tbaa !12
  %502 = load <2 x float>, ptr %61, align 4
  %503 = invoke <2 x float> @_Zml7QVectorf(<2 x float> %502, float noundef %501)
          to label %504 unwind label %533

504:                                              ; preds = %500
  store <2 x float> %503, ptr %60, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %60, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #12
  br label %571

505:                                              ; preds = %429
  %506 = landingpad { ptr, i32 }
          cleanup
  %507 = extractvalue { ptr, i32 } %506, 0
  store ptr %507, ptr %13, align 8
  %508 = extractvalue { ptr, i32 } %506, 1
  store i32 %508, ptr %14, align 4
  br label %1251

509:                                              ; preds = %431
  %510 = landingpad { ptr, i32 }
          cleanup
  %511 = extractvalue { ptr, i32 } %510, 0
  store ptr %511, ptr %13, align 8
  %512 = extractvalue { ptr, i32 } %510, 1
  store i32 %512, ptr %14, align 4
  br label %1250

513:                                              ; preds = %432
  %514 = landingpad { ptr, i32 }
          cleanup
  %515 = extractvalue { ptr, i32 } %514, 0
  store ptr %515, ptr %13, align 8
  %516 = extractvalue { ptr, i32 } %514, 1
  store i32 %516, ptr %14, align 4
  br label %1249

517:                                              ; preds = %466, %462, %459, %437
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %13, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %14, align 4
  br label %584

521:                                              ; preds = %479, %475, %472, %469
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %13, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #12
  br label %583

525:                                              ; preds = %546, %481
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %13, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %14, align 4
  br label %583

529:                                              ; preds = %495, %492, %489, %486
  %530 = landingpad { ptr, i32 }
          cleanup
  %531 = extractvalue { ptr, i32 } %530, 0
  store ptr %531, ptr %13, align 8
  %532 = extractvalue { ptr, i32 } %530, 1
  store i32 %532, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #12
  br label %583

533:                                              ; preds = %500
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %13, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #12
  br label %583

537:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #12
  %538 = load ptr, ptr %11, align 8, !tbaa !5
  %539 = invoke noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %538)
          to label %540 unwind label %558

540:                                              ; preds = %537
  %541 = load i64, ptr %9, align 8, !tbaa !9
  %542 = trunc i64 %541 to i32
  %543 = invoke <2 x float> @_ZN5QMesh26GetPolygonBisectorVectorAtEi(ptr noundef nonnull align 8 dereferenceable(256) %539, i32 noundef %542)
          to label %544 unwind label %558

544:                                              ; preds = %540
  store <2 x float> %543, ptr %62, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #12
  %545 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %44)
          to label %546 unwind label %562

546:                                              ; preds = %544
  store <2 x float> %545, ptr %63, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %63, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #12
  %547 = invoke noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %44)
          to label %548 unwind label %525

548:                                              ; preds = %546
  %549 = load float, ptr %52, align 4, !tbaa !12
  %550 = load float, ptr %52, align 4, !tbaa !12
  %551 = fmul float %549, %550
  %552 = fcmp olt float %547, %551
  br i1 %552, label %553, label %570

553:                                              ; preds = %548
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !11
  %554 = load float, ptr %52, align 4, !tbaa !12
  %555 = load <2 x float>, ptr %65, align 4
  %556 = invoke <2 x float> @_Zml7QVectorf(<2 x float> %555, float noundef %554)
          to label %557 unwind label %566

557:                                              ; preds = %553
  store <2 x float> %556, ptr %64, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %64, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #12
  br label %570

558:                                              ; preds = %540, %537
  %559 = landingpad { ptr, i32 }
          cleanup
  %560 = extractvalue { ptr, i32 } %559, 0
  store ptr %560, ptr %13, align 8
  %561 = extractvalue { ptr, i32 } %559, 1
  store i32 %561, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #12
  br label %583

562:                                              ; preds = %544
  %563 = landingpad { ptr, i32 }
          cleanup
  %564 = extractvalue { ptr, i32 } %563, 0
  store ptr %564, ptr %13, align 8
  %565 = extractvalue { ptr, i32 } %563, 1
  store i32 %565, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #12
  br label %583

566:                                              ; preds = %553
  %567 = landingpad { ptr, i32 }
          cleanup
  %568 = extractvalue { ptr, i32 } %567, 0
  store ptr %568, ptr %13, align 8
  %569 = extractvalue { ptr, i32 } %567, 1
  store i32 %569, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #12
  br label %583

570:                                              ; preds = %557, %548
  br label %571

571:                                              ; preds = %570, %504
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #12
  %572 = load ptr, ptr %11, align 8, !tbaa !5
  %573 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %572)
          to label %574 unwind label %579

574:                                              ; preds = %571
  store <2 x float> %573, ptr %67, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %44, i64 8, i1 false), !tbaa.struct !11
  %575 = load <2 x float>, ptr %67, align 4
  %576 = load <2 x float>, ptr %68, align 4
  %577 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %575, <2 x float> %576)
          to label %578 unwind label %579

578:                                              ; preds = %574
  store <2 x float> %577, ptr %66, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %66, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #12
  br label %585

579:                                              ; preds = %574, %571
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %13, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #12
  br label %583

583:                                              ; preds = %579, %566, %562, %558, %533, %529, %525, %521
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #12
  br label %584

584:                                              ; preds = %583, %517
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #12
  br label %1249

585:                                              ; preds = %578, %433
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #12
  %586 = load ptr, ptr %11, align 8, !tbaa !5
  %587 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(24) %587)
          to label %588 unwind label %642

588:                                              ; preds = %585
  %589 = invoke noundef i32 @_ZN10QCollision28FindNearestParticleOfPolygonEP9QParticleSt6vectorIS1_SaIS1_EE(ptr noundef %586, ptr noundef %70)
          to label %590 unwind label %646

590:                                              ; preds = %588
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %70) #12
  store i32 %589, ptr %69, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #12
  %591 = load ptr, ptr %6, align 8, !tbaa !5
  %592 = load i32, ptr %69, align 4, !tbaa !14
  %593 = sext i32 %592 to i64
  %594 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %591, i64 noundef %593) #12
  %595 = load ptr, ptr %594, align 8, !tbaa !5
  store ptr %595, ptr %71, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %72) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #12
  %596 = load ptr, ptr %6, align 8, !tbaa !5
  %597 = load i32, ptr %69, align 4, !tbaa !14
  %598 = sub nsw i32 %597, 1
  %599 = sext i32 %598 to i64
  %600 = load ptr, ptr %6, align 8, !tbaa !5
  %601 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %600) #12
  %602 = add i64 %599, %601
  %603 = load ptr, ptr %6, align 8, !tbaa !5
  %604 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %603) #12
  %605 = urem i64 %602, %604
  %606 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %596, i64 noundef %605) #12
  %607 = load ptr, ptr %606, align 8, !tbaa !5
  store ptr %607, ptr %74, align 8, !tbaa !5
  %608 = getelementptr inbounds ptr, ptr %74, i64 1
  %609 = load ptr, ptr %71, align 8, !tbaa !5
  store ptr %609, ptr %608, align 8, !tbaa !5
  %610 = getelementptr inbounds %"class.std::initializer_list", ptr %73, i32 0, i32 0
  store ptr %74, ptr %610, align 8, !tbaa !22
  %611 = getelementptr inbounds %"class.std::initializer_list", ptr %73, i32 0, i32 1
  store i64 2, ptr %611, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %75) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %75) #12
  %612 = getelementptr inbounds { ptr, i64 }, ptr %73, i32 0, i32 0
  %613 = load ptr, ptr %612, align 8
  %614 = getelementptr inbounds { ptr, i64 }, ptr %73, i32 0, i32 1
  %615 = load i64, ptr %614, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr %613, i64 %615, ptr noundef nonnull align 1 dereferenceable(1) %75)
          to label %616 unwind label %650

616:                                              ; preds = %590
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %72)
          to label %617 unwind label %654

617:                                              ; preds = %616
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %72) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %75) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %75) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %72) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr %76) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %78) #12
  %618 = load ptr, ptr %71, align 8, !tbaa !5
  store ptr %618, ptr %78, align 8, !tbaa !5
  %619 = getelementptr inbounds ptr, ptr %78, i64 1
  %620 = load ptr, ptr %6, align 8, !tbaa !5
  %621 = load i32, ptr %69, align 4, !tbaa !14
  %622 = add nsw i32 %621, 1
  %623 = sext i32 %622 to i64
  %624 = load ptr, ptr %6, align 8, !tbaa !5
  %625 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %624) #12
  %626 = urem i64 %623, %625
  %627 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %620, i64 noundef %626) #12
  %628 = load ptr, ptr %627, align 8, !tbaa !5
  store ptr %628, ptr %619, align 8, !tbaa !5
  %629 = getelementptr inbounds %"class.std::initializer_list", ptr %77, i32 0, i32 0
  store ptr %78, ptr %629, align 8, !tbaa !22
  %630 = getelementptr inbounds %"class.std::initializer_list", ptr %77, i32 0, i32 1
  store i64 2, ptr %630, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %79) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %79) #12
  %631 = getelementptr inbounds { ptr, i64 }, ptr %77, i32 0, i32 0
  %632 = load ptr, ptr %631, align 8
  %633 = getelementptr inbounds { ptr, i64 }, ptr %77, i32 0, i32 1
  %634 = load i64, ptr %633, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr %632, i64 %634, ptr noundef nonnull align 1 dereferenceable(1) %79)
          to label %635 unwind label %659

635:                                              ; preds = %617
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %636 unwind label %663

636:                                              ; preds = %635
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %79) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %79) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %76) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %80) #12
  store i8 0, ptr %80, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %81) #12
  store i8 1, ptr %81, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #12
  store i64 0, ptr %82, align 8, !tbaa !9
  br label %637

637:                                              ; preds = %718, %636
  %638 = load i64, ptr %82, align 8, !tbaa !9
  %639 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  %640 = icmp ult i64 %638, %639
  br i1 %640, label %668, label %641

641:                                              ; preds = %637
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #12
  br label %723

642:                                              ; preds = %585
  %643 = landingpad { ptr, i32 }
          cleanup
  %644 = extractvalue { ptr, i32 } %643, 0
  store ptr %644, ptr %13, align 8
  %645 = extractvalue { ptr, i32 } %643, 1
  store i32 %645, ptr %14, align 4
  br label %1248

646:                                              ; preds = %588
  %647 = landingpad { ptr, i32 }
          cleanup
  %648 = extractvalue { ptr, i32 } %647, 0
  store ptr %648, ptr %13, align 8
  %649 = extractvalue { ptr, i32 } %647, 1
  store i32 %649, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %70) #12
  br label %1248

650:                                              ; preds = %590
  %651 = landingpad { ptr, i32 }
          cleanup
  %652 = extractvalue { ptr, i32 } %651, 0
  store ptr %652, ptr %13, align 8
  %653 = extractvalue { ptr, i32 } %651, 1
  store i32 %653, ptr %14, align 4
  br label %658

654:                                              ; preds = %616
  %655 = landingpad { ptr, i32 }
          cleanup
  %656 = extractvalue { ptr, i32 } %655, 0
  store ptr %656, ptr %13, align 8
  %657 = extractvalue { ptr, i32 } %655, 1
  store i32 %657, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %72) #12
  br label %658

658:                                              ; preds = %654, %650
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %75) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %75) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %72) #12
  br label %1247

659:                                              ; preds = %617
  %660 = landingpad { ptr, i32 }
          cleanup
  %661 = extractvalue { ptr, i32 } %660, 0
  store ptr %661, ptr %13, align 8
  %662 = extractvalue { ptr, i32 } %660, 1
  store i32 %662, ptr %14, align 4
  br label %667

663:                                              ; preds = %635
  %664 = landingpad { ptr, i32 }
          cleanup
  %665 = extractvalue { ptr, i32 } %664, 0
  store ptr %665, ptr %13, align 8
  %666 = extractvalue { ptr, i32 } %664, 1
  store i32 %666, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #12
  br label %667

667:                                              ; preds = %663, %659
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %79) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %79) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %76) #12
  br label %1247

668:                                              ; preds = %637
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #12
  %669 = load i64, ptr %82, align 8, !tbaa !9
  %670 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %669) #12
  %671 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %670, i64 noundef 1) #12
  %672 = load ptr, ptr %671, align 8, !tbaa !5
  %673 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %672)
          to label %674 unwind label %705

674:                                              ; preds = %668
  store <2 x float> %673, ptr %84, align 4
  %675 = load i64, ptr %82, align 8, !tbaa !9
  %676 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %675) #12
  %677 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %676, i64 noundef 0) #12
  %678 = load ptr, ptr %677, align 8, !tbaa !5
  %679 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %678)
          to label %680 unwind label %705

680:                                              ; preds = %674
  store <2 x float> %679, ptr %85, align 4
  %681 = load <2 x float>, ptr %84, align 4
  %682 = load <2 x float>, ptr %85, align 4
  %683 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %681, <2 x float> %682)
          to label %684 unwind label %705

684:                                              ; preds = %680
  store <2 x float> %683, ptr %83, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %86) #12
  %685 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %83)
          to label %686 unwind label %709

686:                                              ; preds = %684
  store <2 x float> %685, ptr %86, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %87) #12
  %687 = load ptr, ptr %11, align 8, !tbaa !5
  %688 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %687)
          to label %689 unwind label %713

689:                                              ; preds = %686
  store <2 x float> %688, ptr %88, align 4
  %690 = load i64, ptr %82, align 8, !tbaa !9
  %691 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %690) #12
  %692 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %691, i64 noundef 0) #12
  %693 = load ptr, ptr %692, align 8, !tbaa !5
  %694 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %693)
          to label %695 unwind label %713

695:                                              ; preds = %689
  store <2 x float> %694, ptr %89, align 4
  %696 = load <2 x float>, ptr %88, align 4
  %697 = load <2 x float>, ptr %89, align 4
  %698 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %696, <2 x float> %697)
          to label %699 unwind label %713

699:                                              ; preds = %695
  store <2 x float> %698, ptr %87, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !11
  %700 = load <2 x float>, ptr %90, align 4
  %701 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %86, <2 x float> %700)
          to label %702 unwind label %713

702:                                              ; preds = %699
  %703 = fcmp ogt float %701, 0.000000e+00
  br i1 %703, label %704, label %717

704:                                              ; preds = %702
  store i8 0, ptr %81, align 1, !tbaa !16
  br label %717

705:                                              ; preds = %680, %674, %668
  %706 = landingpad { ptr, i32 }
          cleanup
  %707 = extractvalue { ptr, i32 } %706, 0
  store ptr %707, ptr %13, align 8
  %708 = extractvalue { ptr, i32 } %706, 1
  store i32 %708, ptr %14, align 4
  br label %722

709:                                              ; preds = %684
  %710 = landingpad { ptr, i32 }
          cleanup
  %711 = extractvalue { ptr, i32 } %710, 0
  store ptr %711, ptr %13, align 8
  %712 = extractvalue { ptr, i32 } %710, 1
  store i32 %712, ptr %14, align 4
  br label %721

713:                                              ; preds = %699, %695, %689, %686
  %714 = landingpad { ptr, i32 }
          cleanup
  %715 = extractvalue { ptr, i32 } %714, 0
  store ptr %715, ptr %13, align 8
  %716 = extractvalue { ptr, i32 } %714, 1
  store i32 %716, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #12
  br label %721

717:                                              ; preds = %704, %702
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #12
  br label %718

718:                                              ; preds = %717
  %719 = load i64, ptr %82, align 8, !tbaa !9
  %720 = add i64 %719, 1
  store i64 %720, ptr %82, align 8, !tbaa !9
  br label %637, !llvm.loop !25

721:                                              ; preds = %713, %709
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #12
  br label %722

722:                                              ; preds = %721, %705
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #12
  br label %1246

723:                                              ; preds = %641
  %724 = load i8, ptr %81, align 1, !tbaa !16, !range !18, !noundef !19
  %725 = trunc i8 %724 to i1
  %726 = zext i1 %725 to i32
  %727 = icmp eq i32 %726, 1
  br i1 %727, label %728, label %808

728:                                              ; preds = %723
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %91) #12
  store i64 0, ptr %91, align 8, !tbaa !9
  br label %729

729:                                              ; preds = %802, %728
  %730 = load i64, ptr %91, align 8, !tbaa !9
  %731 = load ptr, ptr %6, align 8, !tbaa !5
  %732 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %731) #12
  %733 = icmp ult i64 %730, %732
  br i1 %733, label %735, label %734

734:                                              ; preds = %729
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #12
  br label %807

735:                                              ; preds = %729
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #12
  %736 = load i64, ptr %91, align 8, !tbaa !9
  %737 = add i64 %736, 1
  %738 = load ptr, ptr %6, align 8, !tbaa !5
  %739 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %738) #12
  %740 = urem i64 %737, %739
  %741 = trunc i64 %740 to i32
  store i32 %741, ptr %92, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %93) #12
  %742 = load ptr, ptr %6, align 8, !tbaa !5
  %743 = load i32, ptr %92, align 4, !tbaa !14
  %744 = sext i32 %743 to i64
  %745 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %742, i64 noundef %744) #12
  %746 = load ptr, ptr %745, align 8, !tbaa !5
  %747 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %746)
          to label %748 unwind label %784

748:                                              ; preds = %735
  store <2 x float> %747, ptr %94, align 4
  %749 = load ptr, ptr %6, align 8, !tbaa !5
  %750 = load i64, ptr %91, align 8, !tbaa !9
  %751 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %749, i64 noundef %750) #12
  %752 = load ptr, ptr %751, align 8, !tbaa !5
  %753 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %752)
          to label %754 unwind label %784

754:                                              ; preds = %748
  store <2 x float> %753, ptr %95, align 4
  %755 = load <2 x float>, ptr %94, align 4
  %756 = load <2 x float>, ptr %95, align 4
  %757 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %755, <2 x float> %756)
          to label %758 unwind label %784

758:                                              ; preds = %754
  store <2 x float> %757, ptr %93, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %96) #12
  %759 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %93)
          to label %760 unwind label %788

760:                                              ; preds = %758
  store <2 x float> %759, ptr %96, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !11
  %761 = load <2 x float>, ptr %97, align 4
  %762 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %96, <2 x float> %761)
          to label %763 unwind label %788

763:                                              ; preds = %760
  %764 = fcmp ogt float %762, 0.000000e+00
  br i1 %764, label %765, label %801

765:                                              ; preds = %763
  call void @llvm.lifetime.start.p0(i64 24, ptr %98) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %100) #12
  %766 = load ptr, ptr %6, align 8, !tbaa !5
  %767 = load i64, ptr %91, align 8, !tbaa !9
  %768 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %766, i64 noundef %767) #12
  %769 = load ptr, ptr %768, align 8, !tbaa !5
  store ptr %769, ptr %100, align 8, !tbaa !5
  %770 = getelementptr inbounds ptr, ptr %100, i64 1
  %771 = load ptr, ptr %6, align 8, !tbaa !5
  %772 = load i32, ptr %92, align 4, !tbaa !14
  %773 = sext i32 %772 to i64
  %774 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %771, i64 noundef %773) #12
  %775 = load ptr, ptr %774, align 8, !tbaa !5
  store ptr %775, ptr %770, align 8, !tbaa !5
  %776 = getelementptr inbounds %"class.std::initializer_list", ptr %99, i32 0, i32 0
  store ptr %100, ptr %776, align 8, !tbaa !22
  %777 = getelementptr inbounds %"class.std::initializer_list", ptr %99, i32 0, i32 1
  store i64 2, ptr %777, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %101) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %101) #12
  %778 = getelementptr inbounds { ptr, i64 }, ptr %99, i32 0, i32 0
  %779 = load ptr, ptr %778, align 8
  %780 = getelementptr inbounds { ptr, i64 }, ptr %99, i32 0, i32 1
  %781 = load i64, ptr %780, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr %779, i64 %781, ptr noundef nonnull align 1 dereferenceable(1) %101)
          to label %782 unwind label %792

782:                                              ; preds = %765
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %98)
          to label %783 unwind label %796

783:                                              ; preds = %782
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %98) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %101) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %101) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %100) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %98) #12
  br label %801

784:                                              ; preds = %754, %748, %735
  %785 = landingpad { ptr, i32 }
          cleanup
  %786 = extractvalue { ptr, i32 } %785, 0
  store ptr %786, ptr %13, align 8
  %787 = extractvalue { ptr, i32 } %785, 1
  store i32 %787, ptr %14, align 4
  br label %806

788:                                              ; preds = %760, %758
  %789 = landingpad { ptr, i32 }
          cleanup
  %790 = extractvalue { ptr, i32 } %789, 0
  store ptr %790, ptr %13, align 8
  %791 = extractvalue { ptr, i32 } %789, 1
  store i32 %791, ptr %14, align 4
  br label %805

792:                                              ; preds = %765
  %793 = landingpad { ptr, i32 }
          cleanup
  %794 = extractvalue { ptr, i32 } %793, 0
  store ptr %794, ptr %13, align 8
  %795 = extractvalue { ptr, i32 } %793, 1
  store i32 %795, ptr %14, align 4
  br label %800

796:                                              ; preds = %782
  %797 = landingpad { ptr, i32 }
          cleanup
  %798 = extractvalue { ptr, i32 } %797, 0
  store ptr %798, ptr %13, align 8
  %799 = extractvalue { ptr, i32 } %797, 1
  store i32 %799, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %98) #12
  br label %800

800:                                              ; preds = %796, %792
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %101) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %101) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %100) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %98) #12
  br label %805

801:                                              ; preds = %783, %763
  call void @llvm.lifetime.end.p0(i64 8, ptr %96) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #12
  br label %802

802:                                              ; preds = %801
  %803 = load i64, ptr %91, align 8, !tbaa !9
  %804 = add i64 %803, 1
  store i64 %804, ptr %91, align 8, !tbaa !9
  br label %729, !llvm.loop !26

805:                                              ; preds = %800, %788
  call void @llvm.lifetime.end.p0(i64 8, ptr %96) #12
  br label %806

806:                                              ; preds = %805, %784
  call void @llvm.lifetime.end.p0(i64 8, ptr %93) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #12
  br label %1246

807:                                              ; preds = %734
  store i8 1, ptr %80, align 1, !tbaa !16
  br label %808

808:                                              ; preds = %807, %723
  call void @llvm.lifetime.start.p0(i64 4, ptr %102) #12
  store float 0.000000e+00, ptr %102, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %103) #12
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %103)
          to label %809 unwind label %820

809:                                              ; preds = %808
  call void @llvm.lifetime.start.p0(i64 4, ptr %104) #12
  %810 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !12
  %811 = fneg float %810
  store float %811, ptr %104, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %105) #12
  %812 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !12
  %813 = fneg float %812
  store float %813, ptr %105, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %106) #12
  store i32 0, ptr %106, align 4, !tbaa !14
  br label %814

814:                                              ; preds = %1057, %809
  %815 = load i32, ptr %106, align 4, !tbaa !14
  %816 = sext i32 %815 to i64
  %817 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  %818 = icmp ult i64 %816, %817
  br i1 %818, label %824, label %819

819:                                              ; preds = %814
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %106) #12
  br label %1064

820:                                              ; preds = %808
  %821 = landingpad { ptr, i32 }
          cleanup
  %822 = extractvalue { ptr, i32 } %821, 0
  store ptr %822, ptr %13, align 8
  %823 = extractvalue { ptr, i32 } %821, 1
  store i32 %823, ptr %14, align 4
  br label %1245

824:                                              ; preds = %814
  call void @llvm.lifetime.start.p0(i64 8, ptr %107) #12
  %825 = load i32, ptr %106, align 4, !tbaa !14
  %826 = sext i32 %825 to i64
  %827 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %826) #12
  %828 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %827, i64 noundef 0) #12
  %829 = load ptr, ptr %828, align 8, !tbaa !5
  store ptr %829, ptr %107, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %108) #12
  %830 = load i32, ptr %106, align 4, !tbaa !14
  %831 = sext i32 %830 to i64
  %832 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %831) #12
  %833 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %832, i64 noundef 1) #12
  %834 = load ptr, ptr %833, align 8, !tbaa !5
  store ptr %834, ptr %108, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %109) #12
  %835 = load ptr, ptr %108, align 8, !tbaa !5
  %836 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %835)
          to label %837 unwind label %879

837:                                              ; preds = %824
  store <2 x float> %836, ptr %110, align 4
  %838 = load ptr, ptr %107, align 8, !tbaa !5
  %839 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %838)
          to label %840 unwind label %879

840:                                              ; preds = %837
  store <2 x float> %839, ptr %111, align 4
  %841 = load <2 x float>, ptr %110, align 4
  %842 = load <2 x float>, ptr %111, align 4
  %843 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %841, <2 x float> %842)
          to label %844 unwind label %879

844:                                              ; preds = %840
  store <2 x float> %843, ptr %109, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %112) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %113) #12
  %845 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %109)
          to label %846 unwind label %883

846:                                              ; preds = %844
  store <2 x float> %845, ptr %113, align 4
  %847 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %113)
          to label %848 unwind label %883

848:                                              ; preds = %846
  store <2 x float> %847, ptr %112, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %114) #12
  %849 = load ptr, ptr %107, align 8, !tbaa !5
  %850 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %849)
          to label %851 unwind label %887

851:                                              ; preds = %848
  store <2 x float> %850, ptr %114, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %115) #12
  %852 = load ptr, ptr %108, align 8, !tbaa !5
  %853 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %852)
          to label %854 unwind label %891

854:                                              ; preds = %851
  store <2 x float> %853, ptr %115, align 4
  %855 = load ptr, ptr %107, align 8, !tbaa !5
  %856 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %855)
          to label %857 unwind label %891

857:                                              ; preds = %854
  %858 = load ptr, ptr %108, align 8, !tbaa !5
  %859 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %858)
          to label %860 unwind label %891

860:                                              ; preds = %857
  %861 = fadd float %856, %859
  %862 = fpext float %861 to double
  %863 = fcmp ogt double %862, 1.000000e+00
  br i1 %863, label %864, label %935

864:                                              ; preds = %860
  %865 = load ptr, ptr %107, align 8, !tbaa !5
  %866 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %865)
          to label %867 unwind label %891

867:                                              ; preds = %864
  %868 = fpext float %866 to double
  %869 = fcmp ogt double %868, 5.000000e-01
  br i1 %869, label %870, label %899

870:                                              ; preds = %867
  call void @llvm.lifetime.start.p0(i64 8, ptr %116) #12
  %871 = load ptr, ptr %107, align 8, !tbaa !5
  %872 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %871)
          to label %873 unwind label %895

873:                                              ; preds = %870
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %112, i64 8, i1 false), !tbaa.struct !11
  %874 = load <2 x float>, ptr %117, align 4
  %875 = invoke <2 x float> @_Zmlf7QVector(float noundef %872, <2 x float> %874)
          to label %876 unwind label %895

876:                                              ; preds = %873
  store <2 x float> %875, ptr %116, align 4
  %877 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %114, ptr noundef nonnull align 4 dereferenceable(8) %116)
          to label %878 unwind label %895

878:                                              ; preds = %876
  call void @llvm.lifetime.end.p0(i64 8, ptr %116) #12
  br label %899

879:                                              ; preds = %840, %837, %824
  %880 = landingpad { ptr, i32 }
          cleanup
  %881 = extractvalue { ptr, i32 } %880, 0
  store ptr %881, ptr %13, align 8
  %882 = extractvalue { ptr, i32 } %880, 1
  store i32 %882, ptr %14, align 4
  br label %1063

883:                                              ; preds = %846, %844
  %884 = landingpad { ptr, i32 }
          cleanup
  %885 = extractvalue { ptr, i32 } %884, 0
  store ptr %885, ptr %13, align 8
  %886 = extractvalue { ptr, i32 } %884, 1
  store i32 %886, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %113) #12
  br label %1062

887:                                              ; preds = %848
  %888 = landingpad { ptr, i32 }
          cleanup
  %889 = extractvalue { ptr, i32 } %888, 0
  store ptr %889, ptr %13, align 8
  %890 = extractvalue { ptr, i32 } %888, 1
  store i32 %890, ptr %14, align 4
  br label %1061

891:                                              ; preds = %899, %864, %857, %854, %851
  %892 = landingpad { ptr, i32 }
          cleanup
  %893 = extractvalue { ptr, i32 } %892, 0
  store ptr %893, ptr %13, align 8
  %894 = extractvalue { ptr, i32 } %892, 1
  store i32 %894, ptr %14, align 4
  br label %1060

895:                                              ; preds = %876, %873, %870
  %896 = landingpad { ptr, i32 }
          cleanup
  %897 = extractvalue { ptr, i32 } %896, 0
  store ptr %897, ptr %13, align 8
  %898 = extractvalue { ptr, i32 } %896, 1
  store i32 %898, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %116) #12
  br label %1060

899:                                              ; preds = %878, %867
  %900 = load ptr, ptr %108, align 8, !tbaa !5
  %901 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %900)
          to label %902 unwind label %891

902:                                              ; preds = %899
  %903 = fpext float %901 to double
  %904 = fcmp ogt double %903, 5.000000e-01
  br i1 %904, label %905, label %918

905:                                              ; preds = %902
  call void @llvm.lifetime.start.p0(i64 8, ptr %118) #12
  %906 = load ptr, ptr %108, align 8, !tbaa !5
  %907 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %906)
          to label %908 unwind label %914

908:                                              ; preds = %905
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %119, ptr align 4 %112, i64 8, i1 false), !tbaa.struct !11
  %909 = load <2 x float>, ptr %119, align 4
  %910 = invoke <2 x float> @_Zmlf7QVector(float noundef %907, <2 x float> %909)
          to label %911 unwind label %914

911:                                              ; preds = %908
  store <2 x float> %910, ptr %118, align 4
  %912 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %115, ptr noundef nonnull align 4 dereferenceable(8) %118)
          to label %913 unwind label %914

913:                                              ; preds = %911
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #12
  br label %918

914:                                              ; preds = %911, %908, %905
  %915 = landingpad { ptr, i32 }
          cleanup
  %916 = extractvalue { ptr, i32 } %915, 0
  store ptr %916, ptr %13, align 8
  %917 = extractvalue { ptr, i32 } %915, 1
  store i32 %917, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #12
  br label %1060

918:                                              ; preds = %913, %902
  call void @llvm.lifetime.start.p0(i64 8, ptr %120) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 4 %115, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 4 %114, i64 8, i1 false), !tbaa.struct !11
  %919 = load <2 x float>, ptr %121, align 4
  %920 = load <2 x float>, ptr %122, align 4
  %921 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %919, <2 x float> %920)
          to label %922 unwind label %927

922:                                              ; preds = %918
  store <2 x float> %921, ptr %120, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 4 %120, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %120) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %123) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %124) #12
  %923 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %109)
          to label %924 unwind label %931

924:                                              ; preds = %922
  store <2 x float> %923, ptr %124, align 4
  %925 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %124)
          to label %926 unwind label %931

926:                                              ; preds = %924
  store <2 x float> %925, ptr %123, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %112, ptr align 4 %123, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %124) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %123) #12
  br label %935

927:                                              ; preds = %918
  %928 = landingpad { ptr, i32 }
          cleanup
  %929 = extractvalue { ptr, i32 } %928, 0
  store ptr %929, ptr %13, align 8
  %930 = extractvalue { ptr, i32 } %928, 1
  store i32 %930, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %120) #12
  br label %1060

931:                                              ; preds = %924, %922
  %932 = landingpad { ptr, i32 }
          cleanup
  %933 = extractvalue { ptr, i32 } %932, 0
  store ptr %933, ptr %13, align 8
  %934 = extractvalue { ptr, i32 } %932, 1
  store i32 %934, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %124) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %123) #12
  br label %1060

935:                                              ; preds = %926, %860
  %936 = load ptr, ptr %5, align 8, !tbaa !5
  %937 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %936) #12
  %938 = icmp uge i64 %937, 3
  br i1 %938, label %939, label %1014

939:                                              ; preds = %935
  call void @llvm.lifetime.start.p0(i64 8, ptr %125) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %126, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !11
  %940 = load ptr, ptr %11, align 8, !tbaa !5
  %941 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %940)
          to label %942 unwind label %988

942:                                              ; preds = %939
  store <2 x float> %941, ptr %127, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 4 %114, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %129, ptr align 4 %115, i64 8, i1 false), !tbaa.struct !11
  %943 = load <2 x float>, ptr %126, align 4
  %944 = load <2 x float>, ptr %127, align 4
  %945 = load <2 x float>, ptr %128, align 4
  %946 = load <2 x float>, ptr %129, align 4
  %947 = invoke <2 x float> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float> %943, <2 x float> %944, <2 x float> %945, <2 x float> %946)
          to label %948 unwind label %988

948:                                              ; preds = %942
  store <2 x float> %947, ptr %125, align 4
  %949 = invoke noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8) %125)
          to label %950 unwind label %988

950:                                              ; preds = %948
  %951 = zext i1 %949 to i32
  %952 = icmp eq i32 %951, 0
  br i1 %952, label %953, label %1012

953:                                              ; preds = %950
  call void @llvm.lifetime.start.p0(i64 4, ptr %130) #12
  %954 = load ptr, ptr %11, align 8, !tbaa !5
  %955 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %954)
          to label %956 unwind label %992

956:                                              ; preds = %953
  store float %955, ptr %130, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %131) #12
  %957 = load ptr, ptr %11, align 8, !tbaa !5
  %958 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %957)
          to label %959 unwind label %996

959:                                              ; preds = %956
  store <2 x float> %958, ptr %132, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %133, ptr align 4 %114, i64 8, i1 false), !tbaa.struct !11
  %960 = load <2 x float>, ptr %132, align 4
  %961 = load <2 x float>, ptr %133, align 4
  %962 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %960, <2 x float> %961)
          to label %963 unwind label %996

963:                                              ; preds = %959
  store <2 x float> %962, ptr %131, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %134) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %135, ptr align 4 %112, i64 8, i1 false), !tbaa.struct !11
  %964 = load <2 x float>, ptr %135, align 4
  %965 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %131, <2 x float> %964)
          to label %966 unwind label %1000

966:                                              ; preds = %963
  store float %965, ptr %134, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %136) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %137) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %138, ptr align 4 %125, i64 8, i1 false), !tbaa.struct !11
  %967 = load ptr, ptr %11, align 8, !tbaa !5
  %968 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %967)
          to label %969 unwind label %1004

969:                                              ; preds = %966
  store <2 x float> %968, ptr %139, align 4
  %970 = load <2 x float>, ptr %138, align 4
  %971 = load <2 x float>, ptr %139, align 4
  %972 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %970, <2 x float> %971)
          to label %973 unwind label %1004

973:                                              ; preds = %969
  store <2 x float> %972, ptr %137, align 4
  %974 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %137)
          to label %975 unwind label %1004

975:                                              ; preds = %973
  call void @llvm.lifetime.end.p0(i64 8, ptr %137) #12
  store float %974, ptr %136, align 4, !tbaa !12
  %976 = load float, ptr %134, align 4, !tbaa !12
  %977 = fcmp olt float %976, 0.000000e+00
  br i1 %977, label %978, label %1008

978:                                              ; preds = %975
  %979 = load float, ptr %134, align 4, !tbaa !12
  %980 = load float, ptr %104, align 4, !tbaa !12
  %981 = fcmp ogt float %979, %980
  br i1 %981, label %982, label %1008

982:                                              ; preds = %978
  %983 = load float, ptr %134, align 4, !tbaa !12
  store float %983, ptr %104, align 4, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %112, i64 8, i1 false), !tbaa.struct !11
  %984 = load float, ptr %134, align 4, !tbaa !12
  %985 = load float, ptr %130, align 4, !tbaa !12
  %986 = fsub float %984, %985
  store float %986, ptr %102, align 4, !tbaa !12
  %987 = load i32, ptr %106, align 4, !tbaa !14
  store i32 %987, ptr %22, align 4, !tbaa !14
  br label %1008

988:                                              ; preds = %948, %942, %939
  %989 = landingpad { ptr, i32 }
          cleanup
  %990 = extractvalue { ptr, i32 } %989, 0
  store ptr %990, ptr %13, align 8
  %991 = extractvalue { ptr, i32 } %989, 1
  store i32 %991, ptr %14, align 4
  br label %1013

992:                                              ; preds = %953
  %993 = landingpad { ptr, i32 }
          cleanup
  %994 = extractvalue { ptr, i32 } %993, 0
  store ptr %994, ptr %13, align 8
  %995 = extractvalue { ptr, i32 } %993, 1
  store i32 %995, ptr %14, align 4
  br label %1011

996:                                              ; preds = %959, %956
  %997 = landingpad { ptr, i32 }
          cleanup
  %998 = extractvalue { ptr, i32 } %997, 0
  store ptr %998, ptr %13, align 8
  %999 = extractvalue { ptr, i32 } %997, 1
  store i32 %999, ptr %14, align 4
  br label %1010

1000:                                             ; preds = %963
  %1001 = landingpad { ptr, i32 }
          cleanup
  %1002 = extractvalue { ptr, i32 } %1001, 0
  store ptr %1002, ptr %13, align 8
  %1003 = extractvalue { ptr, i32 } %1001, 1
  store i32 %1003, ptr %14, align 4
  br label %1009

1004:                                             ; preds = %973, %969, %966
  %1005 = landingpad { ptr, i32 }
          cleanup
  %1006 = extractvalue { ptr, i32 } %1005, 0
  store ptr %1006, ptr %13, align 8
  %1007 = extractvalue { ptr, i32 } %1005, 1
  store i32 %1007, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %137) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #12
  br label %1009

1008:                                             ; preds = %982, %978, %975
  call void @llvm.lifetime.end.p0(i64 4, ptr %136) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %134) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %131) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %130) #12
  br label %1012

1009:                                             ; preds = %1004, %1000
  call void @llvm.lifetime.end.p0(i64 4, ptr %134) #12
  br label %1010

1010:                                             ; preds = %1009, %996
  call void @llvm.lifetime.end.p0(i64 8, ptr %131) #12
  br label %1011

1011:                                             ; preds = %1010, %992
  call void @llvm.lifetime.end.p0(i64 4, ptr %130) #12
  br label %1013

1012:                                             ; preds = %1008, %950
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #12
  br label %1056

1013:                                             ; preds = %1011, %988
  call void @llvm.lifetime.end.p0(i64 8, ptr %125) #12
  br label %1060

1014:                                             ; preds = %935
  call void @llvm.lifetime.start.p0(i64 8, ptr %140) #12
  %1015 = load ptr, ptr %11, align 8, !tbaa !5
  %1016 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1015)
          to label %1017 unwind label %1041

1017:                                             ; preds = %1014
  store <2 x float> %1016, ptr %141, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %142, ptr align 4 %114, i64 8, i1 false), !tbaa.struct !11
  %1018 = load <2 x float>, ptr %141, align 4
  %1019 = load <2 x float>, ptr %142, align 4
  %1020 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1018, <2 x float> %1019)
          to label %1021 unwind label %1041

1021:                                             ; preds = %1017
  store <2 x float> %1020, ptr %140, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %143) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %144, ptr align 4 %112, i64 8, i1 false), !tbaa.struct !11
  %1022 = load <2 x float>, ptr %144, align 4
  %1023 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %140, <2 x float> %1022)
          to label %1024 unwind label %1045

1024:                                             ; preds = %1021
  store float %1023, ptr %143, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %145) #12
  %1025 = load ptr, ptr %11, align 8, !tbaa !5
  %1026 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1025)
          to label %1027 unwind label %1049

1027:                                             ; preds = %1024
  store float %1026, ptr %145, align 4, !tbaa !12
  %1028 = load float, ptr %143, align 4, !tbaa !12
  %1029 = load float, ptr %104, align 4, !tbaa !12
  %1030 = fcmp ogt float %1028, %1029
  br i1 %1030, label %1031, label %1053

1031:                                             ; preds = %1027
  %1032 = load float, ptr %143, align 4, !tbaa !12
  %1033 = load float, ptr %145, align 4, !tbaa !12
  %1034 = fcmp olt float %1032, %1033
  br i1 %1034, label %1035, label %1053

1035:                                             ; preds = %1031
  %1036 = load float, ptr %143, align 4, !tbaa !12
  store float %1036, ptr %104, align 4, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %112, i64 8, i1 false), !tbaa.struct !11
  %1037 = load float, ptr %143, align 4, !tbaa !12
  %1038 = load float, ptr %145, align 4, !tbaa !12
  %1039 = fsub float %1037, %1038
  store float %1039, ptr %102, align 4, !tbaa !12
  %1040 = load i32, ptr %106, align 4, !tbaa !14
  store i32 %1040, ptr %22, align 4, !tbaa !14
  br label %1053

1041:                                             ; preds = %1017, %1014
  %1042 = landingpad { ptr, i32 }
          cleanup
  %1043 = extractvalue { ptr, i32 } %1042, 0
  store ptr %1043, ptr %13, align 8
  %1044 = extractvalue { ptr, i32 } %1042, 1
  store i32 %1044, ptr %14, align 4
  br label %1055

1045:                                             ; preds = %1021
  %1046 = landingpad { ptr, i32 }
          cleanup
  %1047 = extractvalue { ptr, i32 } %1046, 0
  store ptr %1047, ptr %13, align 8
  %1048 = extractvalue { ptr, i32 } %1046, 1
  store i32 %1048, ptr %14, align 4
  br label %1054

1049:                                             ; preds = %1024
  %1050 = landingpad { ptr, i32 }
          cleanup
  %1051 = extractvalue { ptr, i32 } %1050, 0
  store ptr %1051, ptr %13, align 8
  %1052 = extractvalue { ptr, i32 } %1050, 1
  store i32 %1052, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %145) #12
  br label %1054

1053:                                             ; preds = %1035, %1031, %1027
  call void @llvm.lifetime.end.p0(i64 4, ptr %145) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %143) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %140) #12
  br label %1056

1054:                                             ; preds = %1049, %1045
  call void @llvm.lifetime.end.p0(i64 4, ptr %143) #12
  br label %1055

1055:                                             ; preds = %1054, %1041
  call void @llvm.lifetime.end.p0(i64 8, ptr %140) #12
  br label %1060

1056:                                             ; preds = %1053, %1012
  call void @llvm.lifetime.end.p0(i64 8, ptr %115) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %109) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %108) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #12
  br label %1057

1057:                                             ; preds = %1056
  %1058 = load i32, ptr %106, align 4, !tbaa !14
  %1059 = add nsw i32 %1058, 1
  store i32 %1059, ptr %106, align 4, !tbaa !14
  br label %814, !llvm.loop !27

1060:                                             ; preds = %1055, %1013, %931, %927, %914, %895, %891
  call void @llvm.lifetime.end.p0(i64 8, ptr %115) #12
  br label %1061

1061:                                             ; preds = %1060, %887
  call void @llvm.lifetime.end.p0(i64 8, ptr %114) #12
  br label %1062

1062:                                             ; preds = %1061, %883
  call void @llvm.lifetime.end.p0(i64 8, ptr %112) #12
  br label %1063

1063:                                             ; preds = %1062, %879
  call void @llvm.lifetime.end.p0(i64 8, ptr %109) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %108) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %106) #12
  br label %1244

1064:                                             ; preds = %819
  %1065 = load i32, ptr %22, align 4, !tbaa !14
  %1066 = icmp eq i32 %1065, -1
  br i1 %1066, label %1067, label %1187

1067:                                             ; preds = %1064
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr %146) #12
  call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %146) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %147) #12
  %1068 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !12
  store float %1068, ptr %147, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %148) #12
  store i32 0, ptr %148, align 4, !tbaa !14
  br label %1069

1069:                                             ; preds = %1171, %1067
  %1070 = load i32, ptr %148, align 4, !tbaa !14
  %1071 = sext i32 %1070 to i64
  %1072 = load ptr, ptr %6, align 8, !tbaa !5
  %1073 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1072) #12
  %1074 = icmp ult i64 %1071, %1073
  br i1 %1074, label %1076, label %1075

1075:                                             ; preds = %1069
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %148) #12
  br label %1180

1076:                                             ; preds = %1069
  call void @llvm.lifetime.start.p0(i64 8, ptr %149) #12
  %1077 = load ptr, ptr %6, align 8, !tbaa !5
  %1078 = load i32, ptr %148, align 4, !tbaa !14
  %1079 = sext i32 %1078 to i64
  %1080 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1077, i64 noundef %1079) #12
  %1081 = load ptr, ptr %1080, align 8, !tbaa !5
  store ptr %1081, ptr %149, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %150) #12
  %1082 = load ptr, ptr %6, align 8, !tbaa !5
  %1083 = load i32, ptr %148, align 4, !tbaa !14
  %1084 = add nsw i32 %1083, 1
  %1085 = sext i32 %1084 to i64
  %1086 = load ptr, ptr %6, align 8, !tbaa !5
  %1087 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1086) #12
  %1088 = urem i64 %1085, %1087
  %1089 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1082, i64 noundef %1088) #12
  %1090 = load ptr, ptr %1089, align 8, !tbaa !5
  store ptr %1090, ptr %150, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %151) #12
  %1091 = load ptr, ptr %150, align 8, !tbaa !5
  %1092 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1091)
          to label %1093 unwind label %1142

1093:                                             ; preds = %1076
  store <2 x float> %1092, ptr %152, align 4
  %1094 = load ptr, ptr %149, align 8, !tbaa !5
  %1095 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1094)
          to label %1096 unwind label %1142

1096:                                             ; preds = %1093
  store <2 x float> %1095, ptr %153, align 4
  %1097 = load <2 x float>, ptr %152, align 4
  %1098 = load <2 x float>, ptr %153, align 4
  %1099 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1097, <2 x float> %1098)
          to label %1100 unwind label %1142

1100:                                             ; preds = %1096
  store <2 x float> %1099, ptr %151, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %154) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %155) #12
  %1101 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %151)
          to label %1102 unwind label %1146

1102:                                             ; preds = %1100
  store <2 x float> %1101, ptr %155, align 4
  %1103 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %155)
          to label %1104 unwind label %1146

1104:                                             ; preds = %1102
  store <2 x float> %1103, ptr %154, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %155) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %156) #12
  %1105 = load ptr, ptr %149, align 8, !tbaa !5
  %1106 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1105)
          to label %1107 unwind label %1150

1107:                                             ; preds = %1104
  store <2 x float> %1106, ptr %156, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %157) #12
  %1108 = load ptr, ptr %150, align 8, !tbaa !5
  %1109 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1108)
          to label %1110 unwind label %1154

1110:                                             ; preds = %1107
  store <2 x float> %1109, ptr %157, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %158) #12
  %1111 = load ptr, ptr %11, align 8, !tbaa !5
  %1112 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1111)
          to label %1113 unwind label %1158

1113:                                             ; preds = %1110
  store <2 x float> %1112, ptr %159, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %160, ptr align 4 %156, i64 8, i1 false), !tbaa.struct !11
  %1114 = load <2 x float>, ptr %159, align 4
  %1115 = load <2 x float>, ptr %160, align 4
  %1116 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1114, <2 x float> %1115)
          to label %1117 unwind label %1158

1117:                                             ; preds = %1113
  store <2 x float> %1116, ptr %158, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %161) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %162, ptr align 4 %154, i64 8, i1 false), !tbaa.struct !11
  %1118 = load <2 x float>, ptr %162, align 4
  %1119 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %158, <2 x float> %1118)
          to label %1120 unwind label %1162

1120:                                             ; preds = %1117
  store float %1119, ptr %161, align 4, !tbaa !12
  %1121 = load float, ptr %161, align 4, !tbaa !12
  %1122 = invoke noundef float @_ZSt3absf(float noundef %1121)
          to label %1123 unwind label %1162

1123:                                             ; preds = %1120
  %1124 = load float, ptr %147, align 4, !tbaa !12
  %1125 = fcmp olt float %1122, %1124
  br i1 %1125, label %1126, label %1170

1126:                                             ; preds = %1123
  %1127 = load float, ptr %161, align 4, !tbaa !12
  %1128 = invoke noundef float @_ZSt3absf(float noundef %1127)
          to label %1129 unwind label %1162

1129:                                             ; preds = %1126
  store float %1128, ptr %147, align 4, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %154, i64 8, i1 false), !tbaa.struct !11
  %1130 = load float, ptr %161, align 4, !tbaa !12
  store float %1130, ptr %102, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %164) #12
  %1131 = load ptr, ptr %149, align 8, !tbaa !5
  store ptr %1131, ptr %164, align 8, !tbaa !5
  %1132 = getelementptr inbounds ptr, ptr %164, i64 1
  %1133 = load ptr, ptr %150, align 8, !tbaa !5
  store ptr %1133, ptr %1132, align 8, !tbaa !5
  %1134 = getelementptr inbounds %"class.std::initializer_list", ptr %163, i32 0, i32 0
  store ptr %164, ptr %1134, align 8, !tbaa !22
  %1135 = getelementptr inbounds %"class.std::initializer_list", ptr %163, i32 0, i32 1
  store i64 2, ptr %1135, align 8, !tbaa !24
  %1136 = getelementptr inbounds { ptr, i64 }, ptr %163, i32 0, i32 0
  %1137 = load ptr, ptr %1136, align 8
  %1138 = getelementptr inbounds { ptr, i64 }, ptr %163, i32 0, i32 1
  %1139 = load i64, ptr %1138, align 8
  %1140 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEaSESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr %1137, i64 %1139)
          to label %1141 unwind label %1166

1141:                                             ; preds = %1129
  call void @llvm.lifetime.end.p0(i64 16, ptr %164) #12
  br label %1170

1142:                                             ; preds = %1096, %1093, %1076
  %1143 = landingpad { ptr, i32 }
          cleanup
  %1144 = extractvalue { ptr, i32 } %1143, 0
  store ptr %1144, ptr %13, align 8
  %1145 = extractvalue { ptr, i32 } %1143, 1
  store i32 %1145, ptr %14, align 4
  br label %1179

1146:                                             ; preds = %1102, %1100
  %1147 = landingpad { ptr, i32 }
          cleanup
  %1148 = extractvalue { ptr, i32 } %1147, 0
  store ptr %1148, ptr %13, align 8
  %1149 = extractvalue { ptr, i32 } %1147, 1
  store i32 %1149, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %155) #12
  br label %1178

1150:                                             ; preds = %1104
  %1151 = landingpad { ptr, i32 }
          cleanup
  %1152 = extractvalue { ptr, i32 } %1151, 0
  store ptr %1152, ptr %13, align 8
  %1153 = extractvalue { ptr, i32 } %1151, 1
  store i32 %1153, ptr %14, align 4
  br label %1177

1154:                                             ; preds = %1107
  %1155 = landingpad { ptr, i32 }
          cleanup
  %1156 = extractvalue { ptr, i32 } %1155, 0
  store ptr %1156, ptr %13, align 8
  %1157 = extractvalue { ptr, i32 } %1155, 1
  store i32 %1157, ptr %14, align 4
  br label %1176

1158:                                             ; preds = %1113, %1110
  %1159 = landingpad { ptr, i32 }
          cleanup
  %1160 = extractvalue { ptr, i32 } %1159, 0
  store ptr %1160, ptr %13, align 8
  %1161 = extractvalue { ptr, i32 } %1159, 1
  store i32 %1161, ptr %14, align 4
  br label %1175

1162:                                             ; preds = %1126, %1120, %1117
  %1163 = landingpad { ptr, i32 }
          cleanup
  %1164 = extractvalue { ptr, i32 } %1163, 0
  store ptr %1164, ptr %13, align 8
  %1165 = extractvalue { ptr, i32 } %1163, 1
  store i32 %1165, ptr %14, align 4
  br label %1174

1166:                                             ; preds = %1129
  %1167 = landingpad { ptr, i32 }
          cleanup
  %1168 = extractvalue { ptr, i32 } %1167, 0
  store ptr %1168, ptr %13, align 8
  %1169 = extractvalue { ptr, i32 } %1167, 1
  store i32 %1169, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %164) #12
  br label %1174

1170:                                             ; preds = %1141, %1123
  call void @llvm.lifetime.end.p0(i64 4, ptr %161) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %158) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %157) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %156) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %154) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %151) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %150) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %149) #12
  br label %1171

1171:                                             ; preds = %1170
  %1172 = load i32, ptr %148, align 4, !tbaa !14
  %1173 = add nsw i32 %1172, 1
  store i32 %1173, ptr %148, align 4, !tbaa !14
  br label %1069, !llvm.loop !28

1174:                                             ; preds = %1166, %1162
  call void @llvm.lifetime.end.p0(i64 4, ptr %161) #12
  br label %1175

1175:                                             ; preds = %1174, %1158
  call void @llvm.lifetime.end.p0(i64 8, ptr %158) #12
  br label %1176

1176:                                             ; preds = %1175, %1154
  call void @llvm.lifetime.end.p0(i64 8, ptr %157) #12
  br label %1177

1177:                                             ; preds = %1176, %1150
  call void @llvm.lifetime.end.p0(i64 8, ptr %156) #12
  br label %1178

1178:                                             ; preds = %1177, %1146
  call void @llvm.lifetime.end.p0(i64 8, ptr %154) #12
  br label %1179

1179:                                             ; preds = %1178, %1142
  call void @llvm.lifetime.end.p0(i64 8, ptr %151) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %150) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %149) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %148) #12
  br label %1186

1180:                                             ; preds = %1075
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %146)
          to label %1181 unwind label %1182

1181:                                             ; preds = %1180
  store i32 0, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %147) #12
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %146) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %146) #12
  br label %1187

1182:                                             ; preds = %1180
  %1183 = landingpad { ptr, i32 }
          cleanup
  %1184 = extractvalue { ptr, i32 } %1183, 0
  store ptr %1184, ptr %13, align 8
  %1185 = extractvalue { ptr, i32 } %1183, 1
  store i32 %1185, ptr %14, align 4
  br label %1186

1186:                                             ; preds = %1182, %1179
  call void @llvm.lifetime.end.p0(i64 4, ptr %147) #12
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %146) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %146) #12
  br label %1244

1187:                                             ; preds = %1181, %1064
  %1188 = load i8, ptr %80, align 1, !tbaa !16, !range !18, !noundef !19
  %1189 = trunc i8 %1188 to i1
  br i1 %1189, label %1190, label %1193

1190:                                             ; preds = %1187
  %1191 = load float, ptr %102, align 4, !tbaa !12
  %1192 = fmul float %1191, 0x3FC99999A0000000
  store float %1192, ptr %102, align 4, !tbaa !12
  br label %1193

1193:                                             ; preds = %1190, %1187
  call void @llvm.lifetime.start.p0(i64 8, ptr %165) #12
  %1194 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
          to label %1195 unwind label %1230

1195:                                             ; preds = %1193
  %1196 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %1194)
          to label %1197 unwind label %1230

1197:                                             ; preds = %1195
  %1198 = getelementptr inbounds %"struct.QObjectPool<QCollision::Contact>::Node", ptr %1196, i32 0, i32 0
  %1199 = load ptr, ptr %1198, align 8, !tbaa !29
  store ptr %1199, ptr %165, align 8, !tbaa !5
  %1200 = load ptr, ptr %165, align 8, !tbaa !5
  %1201 = load ptr, ptr %11, align 8, !tbaa !5
  %1202 = load ptr, ptr %11, align 8, !tbaa !5
  %1203 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1202)
          to label %1204 unwind label %1230

1204:                                             ; preds = %1197
  store <2 x float> %1203, ptr %166, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %167, ptr align 4 %103, i64 8, i1 false), !tbaa.struct !11
  %1205 = load float, ptr %102, align 4, !tbaa !12
  %1206 = fneg float %1205
  call void @llvm.lifetime.start.p0(i64 16, ptr %170) #12
  %1207 = load i32, ptr %22, align 4, !tbaa !14
  %1208 = sext i32 %1207 to i64
  %1209 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1208) #12
  %1210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1209, i64 noundef 0) #12
  %1211 = load ptr, ptr %1210, align 8, !tbaa !5
  store ptr %1211, ptr %170, align 8, !tbaa !5
  %1212 = getelementptr inbounds ptr, ptr %170, i64 1
  %1213 = load i32, ptr %22, align 4, !tbaa !14
  %1214 = sext i32 %1213 to i64
  %1215 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1214) #12
  %1216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1215, i64 noundef 1) #12
  %1217 = load ptr, ptr %1216, align 8, !tbaa !5
  store ptr %1217, ptr %1212, align 8, !tbaa !5
  %1218 = getelementptr inbounds %"class.std::initializer_list", ptr %169, i32 0, i32 0
  store ptr %170, ptr %1218, align 8, !tbaa !22
  %1219 = getelementptr inbounds %"class.std::initializer_list", ptr %169, i32 0, i32 1
  store i64 2, ptr %1219, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %171) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %171) #12
  %1220 = getelementptr inbounds { ptr, i64 }, ptr %169, i32 0, i32 0
  %1221 = load ptr, ptr %1220, align 8
  %1222 = getelementptr inbounds { ptr, i64 }, ptr %169, i32 0, i32 1
  %1223 = load i64, ptr %1222, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %168, ptr %1221, i64 %1223, ptr noundef nonnull align 1 dereferenceable(1) %171)
          to label %1224 unwind label %1234

1224:                                             ; preds = %1204
  %1225 = load <2 x float>, ptr %166, align 4
  %1226 = load <2 x float>, ptr %167, align 4
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %1200, ptr noundef %1201, <2 x float> %1225, <2 x float> %1226, float noundef %1206, ptr noundef %168)
          to label %1227 unwind label %1238

1227:                                             ; preds = %1224
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %171) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %171) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %170) #12
  %1228 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1228, ptr noundef nonnull align 8 dereferenceable(8) %165)
          to label %1229 unwind label %1230

1229:                                             ; preds = %1227
  call void @llvm.lifetime.end.p0(i64 8, ptr %165) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %105) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %104) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %81) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %80) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #12
  br label %1721

1230:                                             ; preds = %1227, %1197, %1195, %1193
  %1231 = landingpad { ptr, i32 }
          cleanup
  %1232 = extractvalue { ptr, i32 } %1231, 0
  store ptr %1232, ptr %13, align 8
  %1233 = extractvalue { ptr, i32 } %1231, 1
  store i32 %1233, ptr %14, align 4
  br label %1243

1234:                                             ; preds = %1204
  %1235 = landingpad { ptr, i32 }
          cleanup
  %1236 = extractvalue { ptr, i32 } %1235, 0
  store ptr %1236, ptr %13, align 8
  %1237 = extractvalue { ptr, i32 } %1235, 1
  store i32 %1237, ptr %14, align 4
  br label %1242

1238:                                             ; preds = %1224
  %1239 = landingpad { ptr, i32 }
          cleanup
  %1240 = extractvalue { ptr, i32 } %1239, 0
  store ptr %1240, ptr %13, align 8
  %1241 = extractvalue { ptr, i32 } %1239, 1
  store i32 %1241, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #12
  br label %1242

1242:                                             ; preds = %1238, %1234
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %171) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %171) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %170) #12
  br label %1243

1243:                                             ; preds = %1242, %1230
  call void @llvm.lifetime.end.p0(i64 8, ptr %165) #12
  br label %1244

1244:                                             ; preds = %1243, %1186, %1063
  call void @llvm.lifetime.end.p0(i64 4, ptr %105) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %104) #12
  br label %1245

1245:                                             ; preds = %1244, %820
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #12
  br label %1246

1246:                                             ; preds = %1245, %806, %722
  call void @llvm.lifetime.end.p0(i64 1, ptr %81) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %80) #12
  br label %1247

1247:                                             ; preds = %1246, %667, %658
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #12
  br label %1248

1248:                                             ; preds = %1247, %646, %642
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #12
  br label %1249

1249:                                             ; preds = %1248, %584, %513
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #12
  br label %1250

1250:                                             ; preds = %1249, %509
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  br label %1251

1251:                                             ; preds = %1250, %505
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #12
  br label %1729

1252:                                             ; preds = %426
  %1253 = load ptr, ptr %11, align 8, !tbaa !5
  %1254 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1253)
          to label %1255 unwind label %302

1255:                                             ; preds = %1252
  %1256 = fpext float %1254 to double
  %1257 = fcmp ogt double %1256, 5.000000e-01
  br i1 %1257, label %1258, label %1720

1258:                                             ; preds = %1255
  call void @llvm.lifetime.start.p0(i64 8, ptr %172) #12
  %1259 = load ptr, ptr %11, align 8, !tbaa !5
  %1260 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1259)
          to label %1261 unwind label %1275

1261:                                             ; preds = %1258
  store <2 x float> %1260, ptr %173, align 4
  %1262 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %174, ptr noundef nonnull align 8 dereferenceable(24) %1262)
          to label %1263 unwind label %1275

1263:                                             ; preds = %1261
  %1264 = load <2 x float>, ptr %173, align 4
  %1265 = invoke i64 @_ZN10QCollision24FindNearestSideOfPolygonE7QVectorSt6vectorIP9QParticleSaIS3_EEbb(<2 x float> %1264, ptr noundef %174, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %1266 unwind label %1279

1266:                                             ; preds = %1263
  store i64 %1265, ptr %172, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #12
  %1267 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 0
  %1268 = load i32, ptr %1267, align 4, !tbaa !31
  %1269 = icmp eq i32 %1268, -1
  br i1 %1269, label %1270, label %1283

1270:                                             ; preds = %1266
  %1271 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 1
  %1272 = load i32, ptr %1271, align 4, !tbaa !33
  %1273 = icmp eq i32 %1272, -1
  br i1 %1273, label %1274, label %1283

1274:                                             ; preds = %1270
  store i32 4, ptr %10, align 4
  br label %1711

1275:                                             ; preds = %1261, %1258
  %1276 = landingpad { ptr, i32 }
          cleanup
  %1277 = extractvalue { ptr, i32 } %1276, 0
  store ptr %1277, ptr %13, align 8
  %1278 = extractvalue { ptr, i32 } %1276, 1
  store i32 %1278, ptr %14, align 4
  br label %1719

1279:                                             ; preds = %1263
  %1280 = landingpad { ptr, i32 }
          cleanup
  %1281 = extractvalue { ptr, i32 } %1280, 0
  store ptr %1281, ptr %13, align 8
  %1282 = extractvalue { ptr, i32 } %1280, 1
  store i32 %1282, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #12
  br label %1719

1283:                                             ; preds = %1270, %1266
  call void @llvm.lifetime.start.p0(i64 4, ptr %175) #12
  %1284 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %178) #12
  %1285 = load ptr, ptr %6, align 8, !tbaa !5
  %1286 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 0
  %1287 = load i32, ptr %1286, align 4, !tbaa !31
  %1288 = sext i32 %1287 to i64
  %1289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1285, i64 noundef %1288) #12
  %1290 = load ptr, ptr %1289, align 8, !tbaa !5
  store ptr %1290, ptr %178, align 8, !tbaa !5
  %1291 = getelementptr inbounds ptr, ptr %178, i64 1
  %1292 = load ptr, ptr %6, align 8, !tbaa !5
  %1293 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 1
  %1294 = load i32, ptr %1293, align 4, !tbaa !33
  %1295 = sext i32 %1294 to i64
  %1296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1292, i64 noundef %1295) #12
  %1297 = load ptr, ptr %1296, align 8, !tbaa !5
  store ptr %1297, ptr %1291, align 8, !tbaa !5
  %1298 = getelementptr inbounds %"class.std::initializer_list", ptr %177, i32 0, i32 0
  store ptr %178, ptr %1298, align 8, !tbaa !22
  %1299 = getelementptr inbounds %"class.std::initializer_list", ptr %177, i32 0, i32 1
  store i64 2, ptr %1299, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %179) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %179) #12
  %1300 = getelementptr inbounds { ptr, i64 }, ptr %177, i32 0, i32 0
  %1301 = load ptr, ptr %1300, align 8
  %1302 = getelementptr inbounds { ptr, i64 }, ptr %177, i32 0, i32 1
  %1303 = load i64, ptr %1302, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %176, ptr %1301, i64 %1303, ptr noundef nonnull align 1 dereferenceable(1) %179)
          to label %1304 unwind label %1312

1304:                                             ; preds = %1283
  %1305 = invoke noundef i32 @_ZN10QCollision28FindNearestParticleOfPolygonEP9QParticleSt6vectorIS1_SaIS1_EE(ptr noundef %1284, ptr noundef %176)
          to label %1306 unwind label %1316

1306:                                             ; preds = %1304
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %176) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %179) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %179) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %178) #12
  store i32 %1305, ptr %175, align 4, !tbaa !14
  %1307 = load i32, ptr %175, align 4, !tbaa !14
  %1308 = icmp eq i32 %1307, 0
  br i1 %1308, label %1309, label %1321

1309:                                             ; preds = %1306
  %1310 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 0
  %1311 = load i32, ptr %1310, align 4, !tbaa !31
  store i32 %1311, ptr %175, align 4, !tbaa !14
  br label %1324

1312:                                             ; preds = %1283
  %1313 = landingpad { ptr, i32 }
          cleanup
  %1314 = extractvalue { ptr, i32 } %1313, 0
  store ptr %1314, ptr %13, align 8
  %1315 = extractvalue { ptr, i32 } %1313, 1
  store i32 %1315, ptr %14, align 4
  br label %1320

1316:                                             ; preds = %1304
  %1317 = landingpad { ptr, i32 }
          cleanup
  %1318 = extractvalue { ptr, i32 } %1317, 0
  store ptr %1318, ptr %13, align 8
  %1319 = extractvalue { ptr, i32 } %1317, 1
  store i32 %1319, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %176) #12
  br label %1320

1320:                                             ; preds = %1316, %1312
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %179) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %179) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %178) #12
  br label %1718

1321:                                             ; preds = %1306
  %1322 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 1
  %1323 = load i32, ptr %1322, align 4, !tbaa !33
  store i32 %1323, ptr %175, align 4, !tbaa !14
  br label %1324

1324:                                             ; preds = %1321, %1309
  call void @llvm.lifetime.start.p0(i64 8, ptr %180) #12
  %1325 = load ptr, ptr %6, align 8, !tbaa !5
  %1326 = load i32, ptr %175, align 4, !tbaa !14
  %1327 = sext i32 %1326 to i64
  %1328 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1325, i64 noundef %1327) #12
  %1329 = load ptr, ptr %1328, align 8, !tbaa !5
  store ptr %1329, ptr %180, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %181) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %183) #12
  %1330 = load ptr, ptr %6, align 8, !tbaa !5
  %1331 = load i32, ptr %175, align 4, !tbaa !14
  %1332 = sub nsw i32 %1331, 1
  %1333 = sext i32 %1332 to i64
  %1334 = load ptr, ptr %6, align 8, !tbaa !5
  %1335 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1334) #12
  %1336 = add i64 %1333, %1335
  %1337 = load ptr, ptr %6, align 8, !tbaa !5
  %1338 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1337) #12
  %1339 = urem i64 %1336, %1338
  %1340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1330, i64 noundef %1339) #12
  %1341 = load ptr, ptr %1340, align 8, !tbaa !5
  store ptr %1341, ptr %183, align 8, !tbaa !5
  %1342 = getelementptr inbounds ptr, ptr %183, i64 1
  %1343 = load ptr, ptr %180, align 8, !tbaa !5
  store ptr %1343, ptr %1342, align 8, !tbaa !5
  %1344 = getelementptr inbounds %"class.std::initializer_list", ptr %182, i32 0, i32 0
  store ptr %183, ptr %1344, align 8, !tbaa !22
  %1345 = getelementptr inbounds %"class.std::initializer_list", ptr %182, i32 0, i32 1
  store i64 2, ptr %1345, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %184) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %184) #12
  %1346 = getelementptr inbounds { ptr, i64 }, ptr %182, i32 0, i32 0
  %1347 = load ptr, ptr %1346, align 8
  %1348 = getelementptr inbounds { ptr, i64 }, ptr %182, i32 0, i32 1
  %1349 = load i64, ptr %1348, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr %1347, i64 %1349, ptr noundef nonnull align 1 dereferenceable(1) %184)
          to label %1350 unwind label %1379

1350:                                             ; preds = %1324
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %181)
          to label %1351 unwind label %1383

1351:                                             ; preds = %1350
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %184) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %184) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %183) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %181) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr %185) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %187) #12
  %1352 = load ptr, ptr %180, align 8, !tbaa !5
  store ptr %1352, ptr %187, align 8, !tbaa !5
  %1353 = getelementptr inbounds ptr, ptr %187, i64 1
  %1354 = load ptr, ptr %6, align 8, !tbaa !5
  %1355 = load i32, ptr %175, align 4, !tbaa !14
  %1356 = add nsw i32 %1355, 1
  %1357 = sext i32 %1356 to i64
  %1358 = load ptr, ptr %6, align 8, !tbaa !5
  %1359 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1358) #12
  %1360 = urem i64 %1357, %1359
  %1361 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1354, i64 noundef %1360) #12
  %1362 = load ptr, ptr %1361, align 8, !tbaa !5
  store ptr %1362, ptr %1353, align 8, !tbaa !5
  %1363 = getelementptr inbounds %"class.std::initializer_list", ptr %186, i32 0, i32 0
  store ptr %187, ptr %1363, align 8, !tbaa !22
  %1364 = getelementptr inbounds %"class.std::initializer_list", ptr %186, i32 0, i32 1
  store i64 2, ptr %1364, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %188) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %188) #12
  %1365 = getelementptr inbounds { ptr, i64 }, ptr %186, i32 0, i32 0
  %1366 = load ptr, ptr %1365, align 8
  %1367 = getelementptr inbounds { ptr, i64 }, ptr %186, i32 0, i32 1
  %1368 = load i64, ptr %1367, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %185, ptr %1366, i64 %1368, ptr noundef nonnull align 1 dereferenceable(1) %188)
          to label %1369 unwind label %1388

1369:                                             ; preds = %1351
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %185)
          to label %1370 unwind label %1392

1370:                                             ; preds = %1369
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %185) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %188) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %188) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %187) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %185) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %189) #12
  store i32 -1, ptr %189, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %190) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %191) #12
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %191)
          to label %1371 unwind label %1397

1371:                                             ; preds = %1370
  call void @llvm.lifetime.start.p0(i64 8, ptr %192) #12
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %192)
          to label %1372 unwind label %1401

1372:                                             ; preds = %1371
  call void @llvm.lifetime.start.p0(i64 4, ptr %193) #12
  %1373 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !12
  store float %1373, ptr %193, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %194) #12
  store i64 0, ptr %194, align 8, !tbaa !9
  br label %1374

1374:                                             ; preds = %1645, %1372
  %1375 = load i64, ptr %194, align 8, !tbaa !9
  %1376 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  %1377 = icmp ult i64 %1375, %1376
  br i1 %1377, label %1405, label %1378

1378:                                             ; preds = %1374
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %194) #12
  br label %1658

1379:                                             ; preds = %1324
  %1380 = landingpad { ptr, i32 }
          cleanup
  %1381 = extractvalue { ptr, i32 } %1380, 0
  store ptr %1381, ptr %13, align 8
  %1382 = extractvalue { ptr, i32 } %1380, 1
  store i32 %1382, ptr %14, align 4
  br label %1387

1383:                                             ; preds = %1350
  %1384 = landingpad { ptr, i32 }
          cleanup
  %1385 = extractvalue { ptr, i32 } %1384, 0
  store ptr %1385, ptr %13, align 8
  %1386 = extractvalue { ptr, i32 } %1384, 1
  store i32 %1386, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #12
  br label %1387

1387:                                             ; preds = %1383, %1379
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %184) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %184) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %183) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %181) #12
  br label %1717

1388:                                             ; preds = %1351
  %1389 = landingpad { ptr, i32 }
          cleanup
  %1390 = extractvalue { ptr, i32 } %1389, 0
  store ptr %1390, ptr %13, align 8
  %1391 = extractvalue { ptr, i32 } %1389, 1
  store i32 %1391, ptr %14, align 4
  br label %1396

1392:                                             ; preds = %1369
  %1393 = landingpad { ptr, i32 }
          cleanup
  %1394 = extractvalue { ptr, i32 } %1393, 0
  store ptr %1394, ptr %13, align 8
  %1395 = extractvalue { ptr, i32 } %1393, 1
  store i32 %1395, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %185) #12
  br label %1396

1396:                                             ; preds = %1392, %1388
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %188) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %188) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %187) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %185) #12
  br label %1717

1397:                                             ; preds = %1370
  %1398 = landingpad { ptr, i32 }
          cleanup
  %1399 = extractvalue { ptr, i32 } %1398, 0
  store ptr %1399, ptr %13, align 8
  %1400 = extractvalue { ptr, i32 } %1398, 1
  store i32 %1400, ptr %14, align 4
  br label %1716

1401:                                             ; preds = %1371
  %1402 = landingpad { ptr, i32 }
          cleanup
  %1403 = extractvalue { ptr, i32 } %1402, 0
  store ptr %1403, ptr %13, align 8
  %1404 = extractvalue { ptr, i32 } %1402, 1
  store i32 %1404, ptr %14, align 4
  br label %1715

1405:                                             ; preds = %1374
  call void @llvm.lifetime.start.p0(i64 8, ptr %195) #12
  %1406 = load i64, ptr %194, align 8, !tbaa !9
  %1407 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1406) #12
  %1408 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1407, i64 noundef 0) #12
  %1409 = load ptr, ptr %1408, align 8, !tbaa !5
  store ptr %1409, ptr %195, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %196) #12
  %1410 = load i64, ptr %194, align 8, !tbaa !9
  %1411 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1410) #12
  %1412 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1411, i64 noundef 1) #12
  %1413 = load ptr, ptr %1412, align 8, !tbaa !5
  store ptr %1413, ptr %196, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %197) #12
  %1414 = load ptr, ptr %195, align 8, !tbaa !5
  %1415 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1414)
          to label %1416 unwind label %1454

1416:                                             ; preds = %1405
  store <2 x float> %1415, ptr %197, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %198) #12
  %1417 = load ptr, ptr %196, align 8, !tbaa !5
  %1418 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1417)
          to label %1419 unwind label %1458

1419:                                             ; preds = %1416
  store <2 x float> %1418, ptr %198, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %199) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %200, ptr align 4 %198, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %201, ptr align 4 %197, i64 8, i1 false), !tbaa.struct !11
  %1420 = load <2 x float>, ptr %200, align 4
  %1421 = load <2 x float>, ptr %201, align 4
  %1422 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1420, <2 x float> %1421)
          to label %1423 unwind label %1462

1423:                                             ; preds = %1419
  store <2 x float> %1422, ptr %199, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %202) #12
  %1424 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %199)
          to label %1425 unwind label %1466

1425:                                             ; preds = %1423
  store <2 x float> %1424, ptr %202, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %203) #12
  %1426 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %202)
          to label %1427 unwind label %1470

1427:                                             ; preds = %1425
  store <2 x float> %1426, ptr %203, align 4
  %1428 = load ptr, ptr %195, align 8, !tbaa !5
  %1429 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1428)
          to label %1430 unwind label %1470

1430:                                             ; preds = %1427
  %1431 = fpext float %1429 to double
  %1432 = fcmp ogt double %1431, 5.000000e-01
  br i1 %1432, label %1439, label %1433

1433:                                             ; preds = %1430
  %1434 = load ptr, ptr %196, align 8, !tbaa !5
  %1435 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1434)
          to label %1436 unwind label %1470

1436:                                             ; preds = %1433
  %1437 = fpext float %1435 to double
  %1438 = fcmp ogt double %1437, 5.000000e-01
  br i1 %1438, label %1439, label %1518

1439:                                             ; preds = %1436, %1430
  %1440 = load ptr, ptr %195, align 8, !tbaa !5
  %1441 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1440)
          to label %1442 unwind label %1470

1442:                                             ; preds = %1439
  %1443 = fpext float %1441 to double
  %1444 = fcmp ogt double %1443, 5.000000e-01
  br i1 %1444, label %1445, label %1478

1445:                                             ; preds = %1442
  call void @llvm.lifetime.start.p0(i64 8, ptr %204) #12
  %1446 = load ptr, ptr %195, align 8, !tbaa !5
  %1447 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1446)
          to label %1448 unwind label %1474

1448:                                             ; preds = %1445
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %205, ptr align 4 %203, i64 8, i1 false), !tbaa.struct !11
  %1449 = load <2 x float>, ptr %205, align 4
  %1450 = invoke <2 x float> @_Zmlf7QVector(float noundef %1447, <2 x float> %1449)
          to label %1451 unwind label %1474

1451:                                             ; preds = %1448
  store <2 x float> %1450, ptr %204, align 4
  %1452 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %197, ptr noundef nonnull align 4 dereferenceable(8) %204)
          to label %1453 unwind label %1474

1453:                                             ; preds = %1451
  call void @llvm.lifetime.end.p0(i64 8, ptr %204) #12
  br label %1478

1454:                                             ; preds = %1405
  %1455 = landingpad { ptr, i32 }
          cleanup
  %1456 = extractvalue { ptr, i32 } %1455, 0
  store ptr %1456, ptr %13, align 8
  %1457 = extractvalue { ptr, i32 } %1455, 1
  store i32 %1457, ptr %14, align 4
  br label %1657

1458:                                             ; preds = %1416
  %1459 = landingpad { ptr, i32 }
          cleanup
  %1460 = extractvalue { ptr, i32 } %1459, 0
  store ptr %1460, ptr %13, align 8
  %1461 = extractvalue { ptr, i32 } %1459, 1
  store i32 %1461, ptr %14, align 4
  br label %1656

1462:                                             ; preds = %1419
  %1463 = landingpad { ptr, i32 }
          cleanup
  %1464 = extractvalue { ptr, i32 } %1463, 0
  store ptr %1464, ptr %13, align 8
  %1465 = extractvalue { ptr, i32 } %1463, 1
  store i32 %1465, ptr %14, align 4
  br label %1655

1466:                                             ; preds = %1423
  %1467 = landingpad { ptr, i32 }
          cleanup
  %1468 = extractvalue { ptr, i32 } %1467, 0
  store ptr %1468, ptr %13, align 8
  %1469 = extractvalue { ptr, i32 } %1467, 1
  store i32 %1469, ptr %14, align 4
  br label %1654

1470:                                             ; preds = %1478, %1439, %1433, %1427, %1425
  %1471 = landingpad { ptr, i32 }
          cleanup
  %1472 = extractvalue { ptr, i32 } %1471, 0
  store ptr %1472, ptr %13, align 8
  %1473 = extractvalue { ptr, i32 } %1471, 1
  store i32 %1473, ptr %14, align 4
  br label %1653

1474:                                             ; preds = %1451, %1448, %1445
  %1475 = landingpad { ptr, i32 }
          cleanup
  %1476 = extractvalue { ptr, i32 } %1475, 0
  store ptr %1476, ptr %13, align 8
  %1477 = extractvalue { ptr, i32 } %1475, 1
  store i32 %1477, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %204) #12
  br label %1653

1478:                                             ; preds = %1453, %1442
  %1479 = load ptr, ptr %196, align 8, !tbaa !5
  %1480 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1479)
          to label %1481 unwind label %1470

1481:                                             ; preds = %1478
  %1482 = fpext float %1480 to double
  %1483 = fcmp ogt double %1482, 5.000000e-01
  br i1 %1483, label %1484, label %1497

1484:                                             ; preds = %1481
  call void @llvm.lifetime.start.p0(i64 8, ptr %206) #12
  %1485 = load ptr, ptr %196, align 8, !tbaa !5
  %1486 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1485)
          to label %1487 unwind label %1493

1487:                                             ; preds = %1484
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %207, ptr align 4 %203, i64 8, i1 false), !tbaa.struct !11
  %1488 = load <2 x float>, ptr %207, align 4
  %1489 = invoke <2 x float> @_Zmlf7QVector(float noundef %1486, <2 x float> %1488)
          to label %1490 unwind label %1493

1490:                                             ; preds = %1487
  store <2 x float> %1489, ptr %206, align 4
  %1491 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %198, ptr noundef nonnull align 4 dereferenceable(8) %206)
          to label %1492 unwind label %1493

1492:                                             ; preds = %1490
  call void @llvm.lifetime.end.p0(i64 8, ptr %206) #12
  br label %1497

1493:                                             ; preds = %1490, %1487, %1484
  %1494 = landingpad { ptr, i32 }
          cleanup
  %1495 = extractvalue { ptr, i32 } %1494, 0
  store ptr %1495, ptr %13, align 8
  %1496 = extractvalue { ptr, i32 } %1494, 1
  store i32 %1496, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %206) #12
  br label %1653

1497:                                             ; preds = %1492, %1481
  call void @llvm.lifetime.start.p0(i64 8, ptr %208) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %209, ptr align 4 %198, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %210, ptr align 4 %197, i64 8, i1 false), !tbaa.struct !11
  %1498 = load <2 x float>, ptr %209, align 4
  %1499 = load <2 x float>, ptr %210, align 4
  %1500 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1498, <2 x float> %1499)
          to label %1501 unwind label %1506

1501:                                             ; preds = %1497
  store <2 x float> %1500, ptr %208, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %199, ptr align 4 %208, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %208) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %211) #12
  %1502 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %199)
          to label %1503 unwind label %1510

1503:                                             ; preds = %1501
  store <2 x float> %1502, ptr %211, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %202, ptr align 4 %211, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %211) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %212) #12
  %1504 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %202)
          to label %1505 unwind label %1514

1505:                                             ; preds = %1503
  store <2 x float> %1504, ptr %212, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %203, ptr align 4 %212, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %212) #12
  br label %1518

1506:                                             ; preds = %1497
  %1507 = landingpad { ptr, i32 }
          cleanup
  %1508 = extractvalue { ptr, i32 } %1507, 0
  store ptr %1508, ptr %13, align 8
  %1509 = extractvalue { ptr, i32 } %1507, 1
  store i32 %1509, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %208) #12
  br label %1653

1510:                                             ; preds = %1501
  %1511 = landingpad { ptr, i32 }
          cleanup
  %1512 = extractvalue { ptr, i32 } %1511, 0
  store ptr %1512, ptr %13, align 8
  %1513 = extractvalue { ptr, i32 } %1511, 1
  store i32 %1513, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %211) #12
  br label %1653

1514:                                             ; preds = %1503
  %1515 = landingpad { ptr, i32 }
          cleanup
  %1516 = extractvalue { ptr, i32 } %1515, 0
  store ptr %1516, ptr %13, align 8
  %1517 = extractvalue { ptr, i32 } %1515, 1
  store i32 %1517, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %212) #12
  br label %1653

1518:                                             ; preds = %1505, %1436
  call void @llvm.lifetime.start.p0(i64 4, ptr %213) #12
  %1519 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %199)
          to label %1520 unwind label %1608

1520:                                             ; preds = %1518
  store float %1519, ptr %213, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %214) #12
  %1521 = load ptr, ptr %11, align 8, !tbaa !5
  %1522 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1521)
          to label %1523 unwind label %1612

1523:                                             ; preds = %1520
  store <2 x float> %1522, ptr %215, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %216, ptr align 4 %197, i64 8, i1 false), !tbaa.struct !11
  %1524 = load <2 x float>, ptr %215, align 4
  %1525 = load <2 x float>, ptr %216, align 4
  %1526 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1524, <2 x float> %1525)
          to label %1527 unwind label %1612

1527:                                             ; preds = %1523
  store <2 x float> %1526, ptr %214, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %217) #12
  %1528 = getelementptr inbounds [2 x %struct.QVector], ptr %217, i32 0, i32 0
  %1529 = getelementptr inbounds %struct.QVector, ptr %1528, i64 2
  br label %1530

1530:                                             ; preds = %1532, %1527
  %1531 = phi ptr [ %1528, %1527 ], [ %1533, %1532 ]
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %1531)
          to label %1532 unwind label %1616

1532:                                             ; preds = %1530
  %1533 = getelementptr inbounds %struct.QVector, ptr %1531, i64 1
  %1534 = icmp eq ptr %1533, %1529
  br i1 %1534, label %1535, label %1530

1535:                                             ; preds = %1532
  %1536 = getelementptr inbounds [2 x %struct.QVector], ptr %217, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1536, ptr align 4 %197, i64 8, i1 false), !tbaa.struct !11
  %1537 = getelementptr inbounds [2 x %struct.QVector], ptr %217, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %1537, ptr align 4 %198, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %218) #12
  %1538 = load ptr, ptr %11, align 8, !tbaa !5
  %1539 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1538)
          to label %1540 unwind label %1620

1540:                                             ; preds = %1535
  store <2 x float> %1539, ptr %219, align 4
  %1541 = getelementptr inbounds [2 x %struct.QVector], ptr %217, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %220, ptr align 16 %1541, i64 8, i1 false), !tbaa.struct !11
  %1542 = load <2 x float>, ptr %219, align 4
  %1543 = load <2 x float>, ptr %220, align 4
  %1544 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1542, <2 x float> %1543)
          to label %1545 unwind label %1620

1545:                                             ; preds = %1540
  store <2 x float> %1544, ptr %218, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %221) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %222, ptr align 4 %203, i64 8, i1 false), !tbaa.struct !11
  %1546 = load <2 x float>, ptr %222, align 4
  %1547 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %218, <2 x float> %1546)
          to label %1548 unwind label %1624

1548:                                             ; preds = %1545
  store float %1547, ptr %221, align 4, !tbaa !12
  %1549 = load float, ptr %221, align 4, !tbaa !12
  %1550 = invoke noundef float @_ZSt3absf(float noundef %1549)
          to label %1551 unwind label %1624

1551:                                             ; preds = %1548
  %1552 = load float, ptr %193, align 4, !tbaa !12
  %1553 = fcmp olt float %1550, %1552
  br i1 %1553, label %1554, label %1644

1554:                                             ; preds = %1551
  %1555 = load float, ptr %221, align 4, !tbaa !12
  %1556 = invoke noundef float @_ZSt3absf(float noundef %1555)
          to label %1557 unwind label %1624

1557:                                             ; preds = %1554
  %1558 = load ptr, ptr %11, align 8, !tbaa !5
  %1559 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1558)
          to label %1560 unwind label %1624

1560:                                             ; preds = %1557
  %1561 = fcmp olt float %1556, %1559
  br i1 %1561, label %1562, label %1643

1562:                                             ; preds = %1560
  call void @llvm.lifetime.start.p0(i64 4, ptr %223) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %224, ptr align 4 %202, i64 8, i1 false), !tbaa.struct !11
  %1563 = load <2 x float>, ptr %224, align 4
  %1564 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %214, <2 x float> %1563)
          to label %1565 unwind label %1628

1565:                                             ; preds = %1562
  store float %1564, ptr %223, align 4, !tbaa !12
  %1566 = load float, ptr %223, align 4, !tbaa !12
  %1567 = fcmp oge float %1566, 0.000000e+00
  br i1 %1567, label %1568, label %1641

1568:                                             ; preds = %1565
  %1569 = load float, ptr %223, align 4, !tbaa !12
  %1570 = load float, ptr %213, align 4, !tbaa !12
  %1571 = fcmp ole float %1569, %1570
  br i1 %1571, label %1572, label %1641

1572:                                             ; preds = %1568
  call void @llvm.lifetime.start.p0(i64 4, ptr %225) #12
  %1573 = load float, ptr %221, align 4, !tbaa !12
  %1574 = fcmp olt float %1573, 0.000000e+00
  %1575 = zext i1 %1574 to i64
  %1576 = select i1 %1574, i32 -1, i32 1
  store i32 %1576, ptr %225, align 4, !tbaa !14
  %1577 = load ptr, ptr %11, align 8, !tbaa !5
  %1578 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1577)
          to label %1579 unwind label %1632

1579:                                             ; preds = %1572
  %1580 = load i32, ptr %225, align 4, !tbaa !14
  %1581 = sitofp i32 %1580 to float
  %1582 = load float, ptr %221, align 4, !tbaa !12
  %1583 = fneg float %1582
  %1584 = call float @llvm.fmuladd.f32(float %1578, float %1581, float %1583)
  %1585 = invoke noundef float @_ZSt3absf(float noundef %1584)
          to label %1586 unwind label %1632

1586:                                             ; preds = %1579
  store float %1585, ptr %190, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %226) #12
  %1587 = load ptr, ptr %11, align 8, !tbaa !5
  %1588 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %1587)
          to label %1589 unwind label %1636

1589:                                             ; preds = %1586
  store <2 x float> %1588, ptr %227, align 4
  %1590 = load ptr, ptr %11, align 8, !tbaa !5
  %1591 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %1590)
          to label %1592 unwind label %1636

1592:                                             ; preds = %1589
  %1593 = load i32, ptr %225, align 4, !tbaa !14
  %1594 = sitofp i32 %1593 to float
  %1595 = fmul float %1591, %1594
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %229, ptr align 4 %203, i64 8, i1 false), !tbaa.struct !11
  %1596 = load <2 x float>, ptr %229, align 4
  %1597 = invoke <2 x float> @_Zmlf7QVector(float noundef %1595, <2 x float> %1596)
          to label %1598 unwind label %1636

1598:                                             ; preds = %1592
  store <2 x float> %1597, ptr %228, align 4
  %1599 = load <2 x float>, ptr %227, align 4
  %1600 = load <2 x float>, ptr %228, align 4
  %1601 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %1599, <2 x float> %1600)
          to label %1602 unwind label %1636

1602:                                             ; preds = %1598
  store <2 x float> %1601, ptr %226, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %192, ptr align 4 %226, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %226) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %191, ptr align 4 %203, i64 8, i1 false), !tbaa.struct !11
  %1603 = load i64, ptr %194, align 8, !tbaa !9
  %1604 = trunc i64 %1603 to i32
  store i32 %1604, ptr %189, align 4, !tbaa !14
  %1605 = load float, ptr %221, align 4, !tbaa !12
  %1606 = invoke noundef float @_ZSt3absf(float noundef %1605)
          to label %1607 unwind label %1632

1607:                                             ; preds = %1602
  store float %1606, ptr %193, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %225) #12
  br label %1641

1608:                                             ; preds = %1518
  %1609 = landingpad { ptr, i32 }
          cleanup
  %1610 = extractvalue { ptr, i32 } %1609, 0
  store ptr %1610, ptr %13, align 8
  %1611 = extractvalue { ptr, i32 } %1609, 1
  store i32 %1611, ptr %14, align 4
  br label %1652

1612:                                             ; preds = %1523, %1520
  %1613 = landingpad { ptr, i32 }
          cleanup
  %1614 = extractvalue { ptr, i32 } %1613, 0
  store ptr %1614, ptr %13, align 8
  %1615 = extractvalue { ptr, i32 } %1613, 1
  store i32 %1615, ptr %14, align 4
  br label %1651

1616:                                             ; preds = %1530
  %1617 = landingpad { ptr, i32 }
          cleanup
  %1618 = extractvalue { ptr, i32 } %1617, 0
  store ptr %1618, ptr %13, align 8
  %1619 = extractvalue { ptr, i32 } %1617, 1
  store i32 %1619, ptr %14, align 4
  br label %1650

1620:                                             ; preds = %1540, %1535
  %1621 = landingpad { ptr, i32 }
          cleanup
  %1622 = extractvalue { ptr, i32 } %1621, 0
  store ptr %1622, ptr %13, align 8
  %1623 = extractvalue { ptr, i32 } %1621, 1
  store i32 %1623, ptr %14, align 4
  br label %1649

1624:                                             ; preds = %1557, %1554, %1548, %1545
  %1625 = landingpad { ptr, i32 }
          cleanup
  %1626 = extractvalue { ptr, i32 } %1625, 0
  store ptr %1626, ptr %13, align 8
  %1627 = extractvalue { ptr, i32 } %1625, 1
  store i32 %1627, ptr %14, align 4
  br label %1648

1628:                                             ; preds = %1562
  %1629 = landingpad { ptr, i32 }
          cleanup
  %1630 = extractvalue { ptr, i32 } %1629, 0
  store ptr %1630, ptr %13, align 8
  %1631 = extractvalue { ptr, i32 } %1629, 1
  store i32 %1631, ptr %14, align 4
  br label %1642

1632:                                             ; preds = %1602, %1579, %1572
  %1633 = landingpad { ptr, i32 }
          cleanup
  %1634 = extractvalue { ptr, i32 } %1633, 0
  store ptr %1634, ptr %13, align 8
  %1635 = extractvalue { ptr, i32 } %1633, 1
  store i32 %1635, ptr %14, align 4
  br label %1640

1636:                                             ; preds = %1598, %1592, %1589, %1586
  %1637 = landingpad { ptr, i32 }
          cleanup
  %1638 = extractvalue { ptr, i32 } %1637, 0
  store ptr %1638, ptr %13, align 8
  %1639 = extractvalue { ptr, i32 } %1637, 1
  store i32 %1639, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %226) #12
  br label %1640

1640:                                             ; preds = %1636, %1632
  call void @llvm.lifetime.end.p0(i64 4, ptr %225) #12
  br label %1642

1641:                                             ; preds = %1607, %1568, %1565
  call void @llvm.lifetime.end.p0(i64 4, ptr %223) #12
  br label %1643

1642:                                             ; preds = %1640, %1628
  call void @llvm.lifetime.end.p0(i64 4, ptr %223) #12
  br label %1648

1643:                                             ; preds = %1641, %1560
  br label %1644

1644:                                             ; preds = %1643, %1551
  call void @llvm.lifetime.end.p0(i64 4, ptr %221) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %218) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %217) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %214) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %213) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %203) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %202) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %199) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %198) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %197) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %196) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %195) #12
  br label %1645

1645:                                             ; preds = %1644
  %1646 = load i64, ptr %194, align 8, !tbaa !9
  %1647 = add i64 %1646, 1
  store i64 %1647, ptr %194, align 8, !tbaa !9
  br label %1374, !llvm.loop !34

1648:                                             ; preds = %1642, %1624
  call void @llvm.lifetime.end.p0(i64 4, ptr %221) #12
  br label %1649

1649:                                             ; preds = %1648, %1620
  call void @llvm.lifetime.end.p0(i64 8, ptr %218) #12
  br label %1650

1650:                                             ; preds = %1649, %1616
  call void @llvm.lifetime.end.p0(i64 16, ptr %217) #12
  br label %1651

1651:                                             ; preds = %1650, %1612
  call void @llvm.lifetime.end.p0(i64 8, ptr %214) #12
  br label %1652

1652:                                             ; preds = %1651, %1608
  call void @llvm.lifetime.end.p0(i64 4, ptr %213) #12
  br label %1653

1653:                                             ; preds = %1652, %1514, %1510, %1506, %1493, %1474, %1470
  call void @llvm.lifetime.end.p0(i64 8, ptr %203) #12
  br label %1654

1654:                                             ; preds = %1653, %1466
  call void @llvm.lifetime.end.p0(i64 8, ptr %202) #12
  br label %1655

1655:                                             ; preds = %1654, %1462
  call void @llvm.lifetime.end.p0(i64 8, ptr %199) #12
  br label %1656

1656:                                             ; preds = %1655, %1458
  call void @llvm.lifetime.end.p0(i64 8, ptr %198) #12
  br label %1657

1657:                                             ; preds = %1656, %1454
  call void @llvm.lifetime.end.p0(i64 8, ptr %197) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %196) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %195) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %194) #12
  br label %1714

1658:                                             ; preds = %1378
  %1659 = load i32, ptr %189, align 4, !tbaa !14
  %1660 = icmp ne i32 %1659, -1
  br i1 %1660, label %1661, label %1710

1661:                                             ; preds = %1658
  call void @llvm.lifetime.start.p0(i64 8, ptr %230) #12
  %1662 = load i32, ptr %189, align 4, !tbaa !14
  %1663 = sext i32 %1662 to i64
  %1664 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1663) #12
  %1665 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1664, i64 noundef 0) #12
  %1666 = load ptr, ptr %1665, align 8, !tbaa !5
  store ptr %1666, ptr %230, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %231) #12
  %1667 = load i32, ptr %189, align 4, !tbaa !14
  %1668 = sext i32 %1667 to i64
  %1669 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %1668) #12
  %1670 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1669, i64 noundef 1) #12
  %1671 = load ptr, ptr %1670, align 8, !tbaa !5
  store ptr %1671, ptr %231, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %232) #12
  %1672 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
          to label %1673 unwind label %1696

1673:                                             ; preds = %1661
  %1674 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %1672)
          to label %1675 unwind label %1696

1675:                                             ; preds = %1673
  %1676 = getelementptr inbounds %"struct.QObjectPool<QCollision::Contact>::Node", ptr %1674, i32 0, i32 0
  %1677 = load ptr, ptr %1676, align 8, !tbaa !29
  store ptr %1677, ptr %232, align 8, !tbaa !5
  %1678 = load ptr, ptr %232, align 8, !tbaa !5
  %1679 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %233, ptr align 4 %192, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %234, ptr align 4 %191, i64 8, i1 false), !tbaa.struct !11
  %1680 = load float, ptr %190, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %237) #12
  %1681 = load ptr, ptr %230, align 8, !tbaa !5
  store ptr %1681, ptr %237, align 8, !tbaa !5
  %1682 = getelementptr inbounds ptr, ptr %237, i64 1
  %1683 = load ptr, ptr %231, align 8, !tbaa !5
  store ptr %1683, ptr %1682, align 8, !tbaa !5
  %1684 = getelementptr inbounds %"class.std::initializer_list", ptr %236, i32 0, i32 0
  store ptr %237, ptr %1684, align 8, !tbaa !22
  %1685 = getelementptr inbounds %"class.std::initializer_list", ptr %236, i32 0, i32 1
  store i64 2, ptr %1685, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %238) #12
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %238) #12
  %1686 = getelementptr inbounds { ptr, i64 }, ptr %236, i32 0, i32 0
  %1687 = load ptr, ptr %1686, align 8
  %1688 = getelementptr inbounds { ptr, i64 }, ptr %236, i32 0, i32 1
  %1689 = load i64, ptr %1688, align 8
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %235, ptr %1687, i64 %1689, ptr noundef nonnull align 1 dereferenceable(1) %238)
          to label %1690 unwind label %1700

1690:                                             ; preds = %1675
  %1691 = load <2 x float>, ptr %233, align 4
  %1692 = load <2 x float>, ptr %234, align 4
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %1678, ptr noundef %1679, <2 x float> %1691, <2 x float> %1692, float noundef %1680, ptr noundef %235)
          to label %1693 unwind label %1704

1693:                                             ; preds = %1690
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %235) #12
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %238) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %238) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %237) #12
  %1694 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1694, ptr noundef nonnull align 8 dereferenceable(8) %232)
          to label %1695 unwind label %1696

1695:                                             ; preds = %1693
  call void @llvm.lifetime.end.p0(i64 8, ptr %232) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %231) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %230) #12
  br label %1710

1696:                                             ; preds = %1693, %1673, %1661
  %1697 = landingpad { ptr, i32 }
          cleanup
  %1698 = extractvalue { ptr, i32 } %1697, 0
  store ptr %1698, ptr %13, align 8
  %1699 = extractvalue { ptr, i32 } %1697, 1
  store i32 %1699, ptr %14, align 4
  br label %1709

1700:                                             ; preds = %1675
  %1701 = landingpad { ptr, i32 }
          cleanup
  %1702 = extractvalue { ptr, i32 } %1701, 0
  store ptr %1702, ptr %13, align 8
  %1703 = extractvalue { ptr, i32 } %1701, 1
  store i32 %1703, ptr %14, align 4
  br label %1708

1704:                                             ; preds = %1690
  %1705 = landingpad { ptr, i32 }
          cleanup
  %1706 = extractvalue { ptr, i32 } %1705, 0
  store ptr %1706, ptr %13, align 8
  %1707 = extractvalue { ptr, i32 } %1705, 1
  store i32 %1707, ptr %14, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %235) #12
  br label %1708

1708:                                             ; preds = %1704, %1700
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %238) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %238) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %237) #12
  br label %1709

1709:                                             ; preds = %1708, %1696
  call void @llvm.lifetime.end.p0(i64 8, ptr %232) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %231) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %230) #12
  br label %1714

1710:                                             ; preds = %1695, %1658
  call void @llvm.lifetime.end.p0(i64 4, ptr %193) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %192) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %191) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %190) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %189) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %180) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %175) #12
  store i32 0, ptr %10, align 4
  br label %1711

1711:                                             ; preds = %1710, %1274
  call void @llvm.lifetime.end.p0(i64 8, ptr %172) #12
  %1712 = load i32, ptr %10, align 4
  switch i32 %1712, label %1722 [
    i32 0, label %1713
  ]

1713:                                             ; preds = %1711
  br label %1720

1714:                                             ; preds = %1709, %1657
  call void @llvm.lifetime.end.p0(i64 4, ptr %193) #12
  br label %1715

1715:                                             ; preds = %1714, %1401
  call void @llvm.lifetime.end.p0(i64 8, ptr %192) #12
  br label %1716

1716:                                             ; preds = %1715, %1397
  call void @llvm.lifetime.end.p0(i64 8, ptr %191) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %190) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %189) #12
  br label %1717

1717:                                             ; preds = %1716, %1396, %1387
  call void @llvm.lifetime.end.p0(i64 8, ptr %180) #12
  br label %1718

1718:                                             ; preds = %1717, %1320
  call void @llvm.lifetime.end.p0(i64 4, ptr %175) #12
  br label %1719

1719:                                             ; preds = %1718, %1279, %1275
  call void @llvm.lifetime.end.p0(i64 8, ptr %172) #12
  br label %1729

1720:                                             ; preds = %1713, %1255
  br label %1721

1721:                                             ; preds = %1720, %1229
  store i32 0, ptr %10, align 4
  br label %1722

1722:                                             ; preds = %1721, %1711
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #12
  br label %1723

1723:                                             ; preds = %1722, %278
  call void @llvm.lifetime.end.p0(i64 28, ptr %15) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  %1724 = load i32, ptr %10, align 4
  switch i32 %1724, label %1738 [
    i32 0, label %1725
    i32 4, label %1726
  ]

1725:                                             ; preds = %1723
  br label %1726

1726:                                             ; preds = %1725, %1723
  %1727 = load i64, ptr %9, align 8, !tbaa !9
  %1728 = add i64 %1727, 1
  store i64 %1728, ptr %9, align 8, !tbaa !9
  br label %239, !llvm.loop !35

1729:                                             ; preds = %1719, %1251, %422, %306, %302
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #12
  br label %1730

1730:                                             ; preds = %1729, %283
  call void @llvm.lifetime.end.p0(i64 28, ptr %15) #12
  br label %1731

1731:                                             ; preds = %1730, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #12
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #12
  br label %1733

1732:                                             ; preds = %244
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #12
  ret void

1733:                                             ; preds = %1731
  %1734 = load ptr, ptr %13, align 8
  %1735 = load i32, ptr %14, align 4
  %1736 = insertvalue { ptr, i32 } poison, ptr %1734, 0
  %1737 = insertvalue { ptr, i32 } %1736, i32 %1735, 1
  resume { ptr, i32 } %1737

1738:                                             ; preds = %1723
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 uwtable
declare dso_local void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28), <2 x float>, <2 x float>) unnamed_addr #4 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIP9QParticleSaIS1_EEbRKSt6vectorIT_T0_ES8_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10QCollision16PointInPolygonWNE7QVectorSt6vectorIP9QParticleSaIS3_EE(<2 x float>, ptr noundef) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QMesh26GetPolygonBisectorVectorAtEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10QCollision28FindNearestParticleOfPolygonEP9QParticleSt6vectorIS1_SaIS1_EE(ptr noundef, ptr noundef) #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN10QCollision24FindNearestSideOfPolygonE7QVectorSt6vectorIP9QParticleSaIS3_EEbb(<2 x float>, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #11

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = { 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 #10 = { 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 #11 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #12 = { 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 = !{!"long", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSSt16initializer_listIP9QParticleE", !6, i64 0, !10, i64 8}
!24 = !{!23, !10, i64 8}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSN11QObjectPoolIN10QCollision7ContactEE4NodeE", !6, i64 0, !15, i64 8, !15, i64 12}
!31 = !{!32, !15, i64 0}
!32 = !{!"_ZTSSt4pairIiiE", !15, i64 0, !15, i64 4}
!33 = !{!32, !15, i64 4}
!34 = distinct !{!34, !21}
!35 = distinct !{!35, !21}


; 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.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }

@_ZN6QWorld14MAX_WORLD_SIZEE = external dso_local local_unnamed_addr global float, align 4

; 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

declare <2 x float> @_ZN7QVector22GeteBisectorUnitVectorES_S_S_b(<2 x float>, <2 x float>, <2 x float>, i1 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN7QVector4ZeroEv() local_unnamed_addr #4 align 2

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

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

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

; 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> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float>, <2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #8 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) 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 #4

; 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 #9 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 #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 #9 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 #9 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10QCollision19PolylineAndPolylineERSt6vectorIP9QParticleSaIS2_EES5_5QAABBRS0_IPNS_7ContactESaIS8_EE(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) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.35", align 8
  %6 = alloca %struct.QVector, align 8
  %7 = alloca %class.QAABB, align 4
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %struct.QVector, align 8
  %10 = alloca %struct.QVector, align 8
  %11 = alloca %struct.QVector, align 8
  %12 = alloca %struct.QVector, align 8
  %13 = alloca %struct.QVector, align 8
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca %"class.std::vector.0", align 8
  %16 = alloca [2 x ptr], align 8
  %17 = alloca %"class.std::allocator.2", align 1
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca [2 x ptr], align 8
  %20 = alloca %"class.std::allocator.2", align 1
  %21 = alloca %struct.QVector, align 8
  %22 = alloca %struct.QVector, align 8
  %23 = alloca %struct.QVector, align 8
  %24 = alloca %struct.QVector, align 8
  %25 = alloca %"class.std::vector.0", align 8
  %26 = alloca [2 x ptr], align 8
  %27 = alloca %"class.std::allocator.2", align 1
  %28 = alloca %struct.QVector, align 8
  %29 = alloca %struct.QVector, align 8
  %30 = alloca %struct.QVector, align 8
  %31 = alloca %struct.QVector, align 8
  %32 = alloca %struct.QVector, align 8
  %33 = alloca %struct.QVector, align 8
  %34 = alloca %struct.QVector, align 8
  %35 = alloca %struct.QVector, align 8
  %36 = alloca %struct.QVector, align 8
  %37 = alloca %struct.QVector, align 8
  %38 = alloca %struct.QVector, align 8
  %39 = alloca %struct.QVector, align 8
  %40 = alloca %"class.std::vector.0", align 8
  %41 = alloca %struct.QVector, align 8
  %42 = alloca %struct.QVector, align 8
  %43 = alloca %struct.QVector, align 8
  %44 = alloca [2 x ptr], align 8
  %45 = alloca ptr, align 8
  %46 = alloca %"class.std::vector.0", align 8
  %47 = alloca [2 x ptr], align 8
  %48 = alloca %"class.std::allocator.2", align 1
  %49 = alloca %"class.std::vector.0", align 8
  %50 = alloca %"class.std::vector.0", align 8
  %51 = alloca [2 x ptr], align 8
  %52 = alloca %"class.std::allocator.2", align 1
  %53 = alloca %"class.std::vector.0", align 8
  %54 = alloca [2 x ptr], align 8
  %55 = alloca %"class.std::allocator.2", align 1
  %56 = alloca %"class.std::vector.0", align 8
  %57 = alloca [2 x ptr], align 8
  %58 = alloca %"class.std::allocator.2", align 1
  %59 = alloca %struct.QVector, align 8
  %60 = alloca %struct.QVector, align 8
  %61 = alloca %struct.QVector, align 8
  %62 = alloca %struct.QVector, align 8
  %63 = alloca %struct.QVector, align 8
  %64 = alloca %struct.QVector, align 8
  %65 = alloca %struct.QVector, align 8
  %66 = alloca %struct.QVector, align 8
  %67 = alloca %struct.QVector, align 8
  %68 = alloca [2 x %struct.QVector], align 16
  %69 = alloca %struct.QVector, align 8
  %70 = alloca ptr, align 8
  %71 = alloca %"class.std::vector.0", align 8
  %72 = alloca [2 x ptr], align 8
  %73 = alloca %"class.std::allocator.2", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #11
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %74 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %.not627 = icmp eq i64 %74, 0
  br i1 %.not627, label %._crit_edge626, label %.lr.ph625

.lr.ph625:                                        ; preds = %4
  %75 = getelementptr inbounds i8, ptr %51, i64 8
  %76 = getelementptr inbounds i8, ptr %54, i64 8
  %77 = getelementptr inbounds i8, ptr %57, i64 8
  %78 = getelementptr inbounds i8, ptr %68, i64 8
  %79 = getelementptr inbounds i8, ptr %72, i64 8
  %80 = getelementptr inbounds i8, ptr %16, i64 8
  %81 = getelementptr inbounds i8, ptr %19, i64 8
  %82 = getelementptr inbounds i8, ptr %26, i64 8
  %83 = getelementptr inbounds i8, ptr %44, i64 8
  %84 = getelementptr inbounds i8, ptr %47, i64 8
  br label %85

._crit_edge626:                                   ; preds = %748, %4
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #11
  ret void

85:                                               ; preds = %.lr.ph625, %748
  %.0622 = phi i64 [ 0, %.lr.ph625 ], [ %749, %748 ]
  %.0436621 = phi float [ undef, %.lr.ph625 ], [ %.7443, %748 ]
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0622) #11
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #11
  %88 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %89 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  call void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %88, float noundef %89)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %7) #11
  %90 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.0250.0.copyload = load <2 x float>, ptr %6, align 8
  %91 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %90, <2 x float> %.sroa.0250.0.copyload)
          to label %92 unwind label %98

92:                                               ; preds = %85
  %93 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.0247.0.copyload = load <2 x float>, ptr %6, align 8
  %94 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %93, <2 x float> %.sroa.0247.0.copyload)
          to label %95 unwind label %98

95:                                               ; preds = %92
  invoke void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28) %7, <2 x float> %91, <2 x float> %94)
          to label %96 unwind label %98

96:                                               ; preds = %95
  %97 = call noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %7, ptr noundef nonnull align 4 dereferenceable(28) %2)
  br i1 %97, label %100, label %748

98:                                               ; preds = %95, %92, %85
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %752

100:                                              ; preds = %96
  %101 = invoke noundef zeroext i1 @_ZStneIP9QParticleSaIS1_EEbRKSt6vectorIT_T0_ES8_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %102 unwind label %108

102:                                              ; preds = %100
  br i1 %101, label %103, label %.thread

103:                                              ; preds = %102
  %104 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %105 unwind label %108

105:                                              ; preds = %103
  %106 = invoke noundef zeroext i1 @_ZN10QCollision16PointInPolygonWNE7QVectorSt6vectorIP9QParticleSaIS3_EE(<2 x float> %104, ptr noundef nonnull %8)
          to label %107 unwind label %110

107:                                              ; preds = %105
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #11
  br i1 %106, label %.thread527, label %112

108:                                              ; preds = %103, %100
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %752

110:                                              ; preds = %105
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #11
  br label %752

112:                                              ; preds = %107
  %113 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %114 = icmp ugt i64 %113, 3
  br i1 %114, label %115, label %.thread

115:                                              ; preds = %112
  %116 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %117 = icmp ugt i64 %116, 3
  br i1 %117, label %118, label %.thread

118:                                              ; preds = %115
  %119 = add i64 %.0622, -1
  %120 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %121 = add i64 %119, %120
  %122 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %123 = urem i64 %121, %122
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %123) #11
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = add nuw i64 %.0622, 1
  %127 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %128 = urem i64 %126, %127
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %128) #11
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %.not628 = icmp eq i64 %131, 0
  br i1 %.not628, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %118, %160
  %.0404585 = phi i1 [ %.2406, %160 ], [ false, %118 ]
  %.0408584 = phi i64 [ %134, %160 ], [ 0, %118 ]
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0408584) #11
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = add nuw i64 %.0408584, 1
  %135 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %136 = urem i64 %134, %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %136) #11
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  %139 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %125)
  %140 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %141 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %133)
  %142 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %138)
  %143 = invoke <2 x float> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float> %139, <2 x float> %140, <2 x float> %141, <2 x float> %142)
          to label %144 unwind label %156

144:                                              ; preds = %.lr.ph
  store <2 x float> %143, ptr %9, align 8
  %145 = invoke noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %146 unwind label %156

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  br i1 %145, label %160, label %147

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  %148 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %149 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %130)
  %150 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %133)
  %151 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %138)
  %152 = invoke <2 x float> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float> %148, <2 x float> %149, <2 x float> %150, <2 x float> %151)
          to label %153 unwind label %158

153:                                              ; preds = %147
  store <2 x float> %152, ptr %10, align 8
  %154 = invoke noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %155 unwind label %158

155:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %not. = xor i1 %154, true
  %spec.select = select i1 %not., i1 true, i1 %.0404585
  br label %160

156:                                              ; preds = %144, %.lr.ph
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  br label %752

158:                                              ; preds = %153, %147
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  br label %752

160:                                              ; preds = %155, %146
  %.2406 = phi i1 [ %spec.select, %155 ], [ %.0404585, %146 ]
  %161 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %162 = icmp ult i64 %134, %161
  br i1 %162, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %160
  br i1 %.2406, label %.thread527, label %.thread

.thread527:                                       ; preds = %107, %._crit_edge
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %163 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %164 unwind label %204

164:                                              ; preds = %.thread527
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #11
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %165 unwind label %206

165:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #11
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %166 unwind label %208

166:                                              ; preds = %165
  %167 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %168 = icmp ugt i64 %167, 2
  br i1 %168, label %169, label %239

169:                                              ; preds = %166
  %170 = add i64 %.0622, -1
  %171 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %172 = add i64 %170, %171
  %173 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %174 = urem i64 %172, %173
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %174) #11
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = add nuw i64 %.0622, 1
  %178 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %179 = urem i64 %177, %178
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %179) #11
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %181)
  %183 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %176)
  %184 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %182, <2 x float> %183)
          to label %185 unwind label %210

185:                                              ; preds = %169
  %186 = invoke <2 x float> @_Zml7QVectorf(<2 x float> %184, float noundef 5.000000e-01)
          to label %187 unwind label %210

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  %188 = call <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %181)
  %189 = call <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %176)
  %190 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %188, <2 x float> %189)
          to label %191 unwind label %212

191:                                              ; preds = %187
  store <2 x float> %190, ptr %13, align 8
  %192 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %193 unwind label %212

193:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  %194 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %195 = icmp eq ptr %194, null
  br i1 %195, label %196, label %218

196:                                              ; preds = %193
  %197 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %176)
  %198 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %199 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %181)
  %200 = invoke <2 x float> @_ZN7QVector22GeteBisectorUnitVectorES_S_S_b(<2 x float> %197, <2 x float> %198, <2 x float> %199, i1 noundef zeroext true)
          to label %201 unwind label %214

201:                                              ; preds = %196
  store <2 x float> %200, ptr %12, align 8
  %202 = invoke <2 x float> @_Zml7QVectorf(<2 x float> %200, float noundef %192)
          to label %203 unwind label %216

203:                                              ; preds = %201
  store <2 x float> %202, ptr %11, align 8
  br label %234

204:                                              ; preds = %.thread527
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %752

206:                                              ; preds = %164
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %538

208:                                              ; preds = %165
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %537

210:                                              ; preds = %185, %169
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %537

212:                                              ; preds = %191, %187
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  br label %537

214:                                              ; preds = %196
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %537

216:                                              ; preds = %201
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %537

218:                                              ; preds = %193
  %219 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %220 = trunc i64 %.0622 to i32
  %221 = call <2 x float> @_ZN5QMesh26GetPolygonBisectorVectorAtEi(ptr noundef nonnull align 8 dereferenceable(256) %219, i32 noundef %220)
  store <2 x float> %221, ptr %11, align 8
  %222 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %223 unwind label %230

223:                                              ; preds = %218
  store <2 x float> %222, ptr %12, align 8
  %224 = call noundef float @_ZNK7QVector13LengthSquaredEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %225 = fmul float %192, %192
  %226 = fcmp olt float %224, %225
  br i1 %226, label %227, label %234

227:                                              ; preds = %223
  %.sroa.0195.0.copyload = load <2 x float>, ptr %12, align 8
  %228 = invoke <2 x float> @_Zml7QVectorf(<2 x float> %.sroa.0195.0.copyload, float noundef %192)
          to label %229 unwind label %232

229:                                              ; preds = %227
  store <2 x float> %228, ptr %11, align 8
  br label %234

230:                                              ; preds = %218
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %537

232:                                              ; preds = %227
  %233 = landingpad { ptr, i32 }
          cleanup
  br label %537

234:                                              ; preds = %223, %229, %203
  %235 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.0192.0.copyload = load <2 x float>, ptr %11, align 8
  %236 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %235, <2 x float> %.sroa.0192.0.copyload)
          to label %239 unwind label %237

237:                                              ; preds = %234
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %537

239:                                              ; preds = %234, %166
  %.sroa.0221.0 = phi <2 x float> [ %163, %166 ], [ %236, %234 ]
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %240 unwind label %265

240:                                              ; preds = %239
  %241 = invoke noundef i32 @_ZN10QCollision28FindNearestParticleOfPolygonEP9QParticleSt6vectorIS1_SaIS1_EE(ptr noundef nonnull %87, ptr noundef nonnull %14)
          to label %242 unwind label %267

242:                                              ; preds = %240
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  %243 = sext i32 %241 to i64
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %243) #11
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  %246 = add nsw i32 %241, -1
  %247 = sext i32 %246 to i64
  %248 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %249 = add i64 %248, %247
  %250 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %251 = urem i64 %249, %250
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %251) #11
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  store ptr %253, ptr %16, align 8, !tbaa !5
  store ptr %245, ptr %80, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr nonnull %16, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %254 unwind label %269

254:                                              ; preds = %242
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %255 unwind label %271

255:                                              ; preds = %254
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #11
  store ptr %245, ptr %19, align 8, !tbaa !5
  %256 = add nsw i32 %241, 1
  %257 = sext i32 %256 to i64
  %258 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %259 = urem i64 %257, %258
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %259) #11
  %261 = load ptr, ptr %260, align 8, !tbaa !5
  store ptr %261, ptr %81, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr nonnull %19, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %262 unwind label %274

262:                                              ; preds = %255
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %263 unwind label %276

263:                                              ; preds = %262
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #11
  %264 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %.not630 = icmp eq i64 %264, 0
  br i1 %.not630, label %._crit_edge599.thread, label %.lr.ph598

._crit_edge599:                                   ; preds = %297
  br i1 %.1411, label %._crit_edge599.thread, label %.loopexit

265:                                              ; preds = %239
  %266 = landingpad { ptr, i32 }
          cleanup
  br label %537

267:                                              ; preds = %240
  %268 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  br label %537

269:                                              ; preds = %242
  %270 = landingpad { ptr, i32 }
          cleanup
  br label %273

271:                                              ; preds = %254
  %272 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #11
  br label %273

273:                                              ; preds = %271, %269
  %.pn487 = phi { ptr, i32 } [ %272, %271 ], [ %270, %269 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #11
  br label %537

274:                                              ; preds = %255
  %275 = landingpad { ptr, i32 }
          cleanup
  br label %278

276:                                              ; preds = %262
  %277 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #11
  br label %278

278:                                              ; preds = %276, %274
  %.pn489 = phi { ptr, i32 } [ %277, %276 ], [ %275, %274 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #11
  br label %537

.lr.ph598:                                        ; preds = %263, %297
  %.0410596 = phi i1 [ %.1411, %297 ], [ true, %263 ]
  %.0412595 = phi i64 [ %300, %297 ], [ 0, %263 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #11
  %279 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.0412595) #11
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %279, i64 noundef 1) #11
  %281 = load ptr, ptr %280, align 8, !tbaa !5
  %282 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %281)
  %283 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.0412595) #11
  %284 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef 0) #11
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %285)
  %287 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %282, <2 x float> %286)
          to label %288 unwind label %303

288:                                              ; preds = %.lr.ph598
  store <2 x float> %287, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #11
  %289 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %290 unwind label %305

290:                                              ; preds = %288
  store <2 x float> %289, ptr %22, align 8
  %291 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %292 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.0412595) #11
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %292, i64 noundef 0) #11
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %294)
  %296 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %291, <2 x float> %295)
          to label %297 unwind label %307

297:                                              ; preds = %290
  %.sroa.0170.0.copyload = load <2 x float>, ptr %12, align 8
  %298 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %22, <2 x float> %.sroa.0170.0.copyload)
  %299 = fcmp ule float %298, 0.000000e+00
  %.1411 = select i1 %299, i1 %.0410596, i1 false
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #11
  %300 = add nuw i64 %.0412595, 1
  %301 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %302 = icmp ult i64 %300, %301
  br i1 %302, label %.lr.ph598, label %._crit_edge599, !llvm.loop !11

303:                                              ; preds = %.lr.ph598
  %304 = landingpad { ptr, i32 }
          cleanup
  br label %310

305:                                              ; preds = %288
  %306 = landingpad { ptr, i32 }
          cleanup
  br label %309

307:                                              ; preds = %290
  %308 = landingpad { ptr, i32 }
          cleanup
  br label %309

309:                                              ; preds = %307, %305
  %.pn513 = phi { ptr, i32 } [ %308, %307 ], [ %306, %305 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  br label %310

310:                                              ; preds = %309, %303
  %.pn513.pn = phi { ptr, i32 } [ %.pn513, %309 ], [ %304, %303 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #11
  br label %537

._crit_edge599.thread:                            ; preds = %263, %._crit_edge599
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %311 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %.not632 = icmp eq i64 %311, 0
  br i1 %.not632, label %.loopexit, label %.lr.ph603

.lr.ph603:                                        ; preds = %._crit_edge599.thread, %344
  %.0413601 = phi i64 [ %312, %344 ], [ 0, %._crit_edge599.thread ]
  %312 = add nuw i64 %.0413601, 1
  %313 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %314 = urem i64 %312, %313
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #11
  %sext508 = shl i64 %314, 32
  %315 = ashr exact i64 %sext508, 32
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %315) #11
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  %318 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %317)
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0413601) #11
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %320)
  %322 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %318, <2 x float> %321)
          to label %323 unwind label %335

323:                                              ; preds = %.lr.ph603
  store <2 x float> %322, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #11
  %324 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %325 unwind label %337

325:                                              ; preds = %323
  store <2 x float> %324, ptr %24, align 8
  %.sroa.0160.0.copyload = load <2 x float>, ptr %12, align 8
  %326 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %24, <2 x float> %.sroa.0160.0.copyload)
  %327 = fcmp ogt float %326, 0.000000e+00
  br i1 %327, label %328, label %344

328:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #11
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0413601) #11
  %330 = load ptr, ptr %329, align 8, !tbaa !5
  store ptr %330, ptr %26, align 8, !tbaa !5
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %315) #11
  %332 = load ptr, ptr %331, align 8, !tbaa !5
  store ptr %332, ptr %82, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr nonnull %26, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %333 unwind label %339

333:                                              ; preds = %328
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %334 unwind label %341

334:                                              ; preds = %333
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #11
  br label %344

335:                                              ; preds = %.lr.ph603
  %336 = landingpad { ptr, i32 }
          cleanup
  br label %348

337:                                              ; preds = %323
  %338 = landingpad { ptr, i32 }
          cleanup
  br label %347

339:                                              ; preds = %328
  %340 = landingpad { ptr, i32 }
          cleanup
  br label %343

341:                                              ; preds = %333
  %342 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #11
  br label %343

343:                                              ; preds = %341, %339
  %.pn509 = phi { ptr, i32 } [ %342, %341 ], [ %340, %339 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #11
  br label %347

344:                                              ; preds = %334, %325
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #11
  %345 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %346 = icmp ult i64 %312, %345
  br i1 %346, label %.lr.ph603, label %.loopexit, !llvm.loop !12

347:                                              ; preds = %343, %337
  %.pn509.pn = phi { ptr, i32 } [ %.pn509, %343 ], [ %338, %337 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #11
  br label %348

348:                                              ; preds = %347, %335
  %.pn509.pn.pn = phi { ptr, i32 } [ %.pn509.pn, %347 ], [ %336, %335 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #11
  br label %537

.loopexit:                                        ; preds = %344, %._crit_edge599.thread, %._crit_edge599
  %.0410.lcssa640 = phi i1 [ true, %._crit_edge599.thread ], [ false, %._crit_edge599 ], [ true, %344 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #11
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %28)
          to label %349 unwind label %354

349:                                              ; preds = %.loopexit
  %350 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !13
  %351 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %.not633 = icmp eq i64 %351, 0
  br i1 %.not633, label %._crit_edge611.thread, label %.lr.ph610.preheader

.lr.ph610.preheader:                              ; preds = %349
  %352 = fneg float %350
  br label %.lr.ph610

._crit_edge611:                                   ; preds = %460
  %353 = icmp eq i32 %.4402, -1
  br i1 %353, label %._crit_edge611.thread, label %510

354:                                              ; preds = %.loopexit
  %355 = landingpad { ptr, i32 }
          cleanup
  br label %536

.lr.ph610:                                        ; preds = %.lr.ph610.preheader, %460
  %indvars.iv = phi i64 [ 0, %.lr.ph610.preheader ], [ %indvars.iv.next, %460 ]
  %.0398608 = phi i32 [ -1, %.lr.ph610.preheader ], [ %.4402, %460 ]
  %.0414607 = phi float [ 0.000000e+00, %.lr.ph610.preheader ], [ %.4418, %460 ]
  %.0423606 = phi float [ %352, %.lr.ph610.preheader ], [ %.4427, %460 ]
  %356 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #11
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef 0) #11
  %358 = load ptr, ptr %357, align 8, !tbaa !5
  %359 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #11
  %360 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef 1) #11
  %361 = load ptr, ptr %360, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #11
  %362 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %361)
  %363 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %358)
  %364 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %362, <2 x float> %363)
          to label %365 unwind label %384

365:                                              ; preds = %.lr.ph610
  store <2 x float> %364, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #11
  %366 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %29)
          to label %367 unwind label %386

367:                                              ; preds = %365
  store <2 x float> %366, ptr %30, align 8
  %368 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %369 unwind label %386

369:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #11
  %370 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %358)
  store <2 x float> %370, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #11
  %371 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %361)
  store <2 x float> %371, ptr %32, align 8
  %372 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %358)
  %373 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %361)
  %374 = fadd float %372, %373
  %375 = fcmp ogt float %374, 1.000000e+00
  br i1 %375, label %376, label %411

376:                                              ; preds = %369
  %377 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %358)
  %378 = fcmp ogt float %377, 5.000000e-01
  br i1 %378, label %379, label %390

379:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #11
  %380 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %358)
  %381 = invoke <2 x float> @_Zmlf7QVector(float noundef %380, <2 x float> %368)
          to label %382 unwind label %388

382:                                              ; preds = %379
  store <2 x float> %381, ptr %33, align 8
  %383 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #11
  br label %390

384:                                              ; preds = %.lr.ph610
  %385 = landingpad { ptr, i32 }
          cleanup
  br label %464

386:                                              ; preds = %367, %365
  %387 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #11
  br label %464

388:                                              ; preds = %379
  %389 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #11
  br label %463

390:                                              ; preds = %382, %376
  %391 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %361)
  %392 = fcmp ogt float %391, 5.000000e-01
  br i1 %392, label %393, label %400

393:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #11
  %394 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %361)
  %395 = invoke <2 x float> @_Zmlf7QVector(float noundef %394, <2 x float> %368)
          to label %396 unwind label %398

396:                                              ; preds = %393
  store <2 x float> %395, ptr %34, align 8
  %397 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #11
  br label %400

398:                                              ; preds = %393
  %399 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #11
  br label %463

400:                                              ; preds = %396, %390
  %.sroa.0127.0.copyload = load <2 x float>, ptr %32, align 8
  %.sroa.0126.0.copyload = load <2 x float>, ptr %31, align 8
  %401 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.0127.0.copyload, <2 x float> %.sroa.0126.0.copyload)
          to label %402 unwind label %407

402:                                              ; preds = %400
  store <2 x float> %401, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #11
  %403 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %29)
          to label %404 unwind label %409

404:                                              ; preds = %402
  store <2 x float> %403, ptr %35, align 8
  %405 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %406 unwind label %409

406:                                              ; preds = %404
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #11
  br label %411

407:                                              ; preds = %400
  %408 = landingpad { ptr, i32 }
          cleanup
  br label %463

409:                                              ; preds = %404, %402
  %410 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #11
  br label %463

411:                                              ; preds = %406, %369
  %.sroa.0131.0 = phi <2 x float> [ %405, %406 ], [ %368, %369 ]
  %412 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %413 = icmp ugt i64 %412, 2
  br i1 %413, label %414, label %446

414:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #11
  %415 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.0122.0.copyload = load <2 x float>, ptr %31, align 8
  %.sroa.0121.0.copyload = load <2 x float>, ptr %32, align 8
  %416 = invoke <2 x float> @_ZN10QCollision20LineIntersectionLineE7QVectorS0_S0_S0_(<2 x float> %.sroa.0221.0, <2 x float> %415, <2 x float> %.sroa.0122.0.copyload, <2 x float> %.sroa.0121.0.copyload)
          to label %417 unwind label %436

417:                                              ; preds = %414
  store <2 x float> %416, ptr %36, align 8
  %418 = invoke noundef zeroext i1 @_ZNK7QVector5isNaNEv(ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %419 unwind label %436

419:                                              ; preds = %417
  br i1 %418, label %444, label %420

420:                                              ; preds = %419
  %421 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #11
  %422 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.0118.0.copyload = load <2 x float>, ptr %31, align 8
  %423 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %422, <2 x float> %.sroa.0118.0.copyload)
          to label %424 unwind label %438

424:                                              ; preds = %420
  store <2 x float> %423, ptr %37, align 8
  %425 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %37, <2 x float> %.sroa.0131.0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #11
  %.sroa.0112.0.copyload = load <2 x float>, ptr %36, align 8
  %426 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %427 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.0112.0.copyload, <2 x float> %426)
          to label %428 unwind label %440

428:                                              ; preds = %424
  store <2 x float> %427, ptr %38, align 8
  %429 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %38)
          to label %430 unwind label %440

430:                                              ; preds = %428
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #11
  %431 = fcmp olt float %425, 0.000000e+00
  %432 = fcmp ogt float %425, %.0423606
  %or.cond = select i1 %431, i1 %432, i1 false
  br i1 %or.cond, label %433, label %442

433:                                              ; preds = %430
  store <2 x float> %.sroa.0131.0, ptr %28, align 8
  %434 = fsub float %425, %421
  %435 = trunc nuw nsw i64 %indvars.iv to i32
  br label %442

436:                                              ; preds = %417, %414
  %437 = landingpad { ptr, i32 }
          cleanup
  br label %445

438:                                              ; preds = %420
  %439 = landingpad { ptr, i32 }
          cleanup
  br label %443

440:                                              ; preds = %428, %424
  %441 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #11
  br label %443

442:                                              ; preds = %433, %430
  %.1424 = phi float [ %425, %433 ], [ %.0423606, %430 ]
  %.1415 = phi float [ %434, %433 ], [ %.0414607, %430 ]
  %.1399 = phi i32 [ %435, %433 ], [ %.0398608, %430 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #11
  br label %444

443:                                              ; preds = %440, %438
  %.pn500 = phi { ptr, i32 } [ %441, %440 ], [ %439, %438 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #11
  br label %445

444:                                              ; preds = %442, %419
  %.2425 = phi float [ %.1424, %442 ], [ %.0423606, %419 ]
  %.2416 = phi float [ %.1415, %442 ], [ %.0414607, %419 ]
  %.2400 = phi i32 [ %.1399, %442 ], [ %.0398608, %419 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #11
  br label %460

445:                                              ; preds = %443, %436
  %.pn500.pn = phi { ptr, i32 } [ %.pn500, %443 ], [ %437, %436 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #11
  br label %463

446:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #11
  %447 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.0109.0.copyload = load <2 x float>, ptr %31, align 8
  %448 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %447, <2 x float> %.sroa.0109.0.copyload)
          to label %449 unwind label %457

449:                                              ; preds = %446
  store <2 x float> %448, ptr %39, align 8
  %450 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %39, <2 x float> %.sroa.0131.0)
  %451 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %452 = fcmp ogt float %450, %.0423606
  %453 = fcmp olt float %450, %451
  %or.cond524 = and i1 %452, %453
  br i1 %or.cond524, label %454, label %459

454:                                              ; preds = %449
  store <2 x float> %.sroa.0131.0, ptr %28, align 8
  %455 = fsub float %450, %451
  %456 = trunc nuw nsw i64 %indvars.iv to i32
  br label %459

457:                                              ; preds = %446
  %458 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #11
  br label %463

459:                                              ; preds = %454, %449
  %.3426 = phi float [ %450, %454 ], [ %.0423606, %449 ]
  %.3417 = phi float [ %455, %454 ], [ %.0414607, %449 ]
  %.3401 = phi i32 [ %456, %454 ], [ %.0398608, %449 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #11
  br label %460

460:                                              ; preds = %459, %444
  %.4427 = phi float [ %.2425, %444 ], [ %.3426, %459 ]
  %.4418 = phi float [ %.2416, %444 ], [ %.3417, %459 ]
  %.4402 = phi i32 [ %.2400, %444 ], [ %.3401, %459 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %461 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %462 = icmp ugt i64 %461, %indvars.iv.next
  br i1 %462, label %.lr.ph610, label %._crit_edge611, !llvm.loop !15

463:                                              ; preds = %457, %445, %409, %407, %398, %388
  %.pn500.pn.pn = phi { ptr, i32 } [ %.pn500.pn, %445 ], [ %458, %457 ], [ %410, %409 ], [ %408, %407 ], [ %399, %398 ], [ %389, %388 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #11
  br label %464

464:                                              ; preds = %386, %463, %384
  %.pn500.pn.pn.pn.pn = phi { ptr, i32 } [ %385, %384 ], [ %.pn500.pn.pn, %463 ], [ %387, %386 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #11
  br label %536

._crit_edge611.thread:                            ; preds = %349, %._crit_edge611
  %.0414.lcssa644 = phi float [ %.4418, %._crit_edge611 ], [ 0.000000e+00, %349 ]
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %40) #11
  call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #11
  %465 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !13
  %466 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %.not634 = icmp eq i64 %466, 0
  br i1 %.not634, label %._crit_edge619, label %.lr.ph618

._crit_edge619:                                   ; preds = %501, %._crit_edge611.thread
  %.5419.lcssa = phi float [ %.0414.lcssa644, %._crit_edge611.thread ], [ %.6420, %501 ]
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %506 unwind label %507

.lr.ph618:                                        ; preds = %._crit_edge611.thread, %501
  %indvars.iv636 = phi i64 [ %indvars.iv.next637, %501 ], [ 0, %._crit_edge611.thread ]
  %.5419616 = phi float [ %.6420, %501 ], [ %.0414.lcssa644, %._crit_edge611.thread ]
  %.0429615 = phi float [ %.1430, %501 ], [ %465, %._crit_edge611.thread ]
  %467 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv636) #11
  %468 = load ptr, ptr %467, align 8, !tbaa !5
  %indvars.iv.next637 = add nuw nsw i64 %indvars.iv636, 1
  %469 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %470 = urem i64 %indvars.iv.next637, %469
  %471 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %470) #11
  %472 = load ptr, ptr %471, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #11
  %473 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %472)
  %474 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %468)
  %475 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %473, <2 x float> %474)
          to label %476 unwind label %493

476:                                              ; preds = %.lr.ph618
  store <2 x float> %475, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #11
  %477 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %41)
          to label %478 unwind label %495

478:                                              ; preds = %476
  store <2 x float> %477, ptr %42, align 8
  %479 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %42)
          to label %480 unwind label %495

480:                                              ; preds = %478
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #11
  %481 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %468)
  %482 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %472)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #11
  %483 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %484 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %483, <2 x float> %481)
          to label %485 unwind label %497

485:                                              ; preds = %480
  store <2 x float> %484, ptr %43, align 8
  %486 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %43, <2 x float> %479)
  %487 = call noundef float @_ZSt3absf(float noundef %486)
  %488 = fcmp olt float %487, %.0429615
  br i1 %488, label %489, label %501

489:                                              ; preds = %485
  %490 = call noundef float @_ZSt3absf(float noundef %486)
  store <2 x float> %479, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %44) #11
  store ptr %468, ptr %44, align 8, !tbaa !5
  store ptr %472, ptr %83, align 8, !tbaa !5
  %491 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEaSESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr nonnull %44, i64 2)
          to label %492 unwind label %499

492:                                              ; preds = %489
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %44) #11
  br label %501

493:                                              ; preds = %.lr.ph618
  %494 = landingpad { ptr, i32 }
          cleanup
  br label %505

495:                                              ; preds = %478, %476
  %496 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #11
  br label %505

497:                                              ; preds = %480
  %498 = landingpad { ptr, i32 }
          cleanup
  br label %504

499:                                              ; preds = %489
  %500 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %44) #11
  br label %504

501:                                              ; preds = %492, %485
  %.1430 = phi float [ %490, %492 ], [ %.0429615, %485 ]
  %.6420 = phi float [ %486, %492 ], [ %.5419616, %485 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #11
  %502 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %503 = icmp ugt i64 %502, %indvars.iv.next637
  br i1 %503, label %.lr.ph618, label %._crit_edge619, !llvm.loop !16

504:                                              ; preds = %499, %497
  %.pn495 = phi { ptr, i32 } [ %500, %499 ], [ %498, %497 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #11
  br label %505

505:                                              ; preds = %495, %504, %493
  %.pn495.pn.pn = phi { ptr, i32 } [ %494, %493 ], [ %.pn495, %504 ], [ %496, %495 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #11
  br label %509

506:                                              ; preds = %._crit_edge619
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #11
  br label %510

507:                                              ; preds = %._crit_edge619
  %508 = landingpad { ptr, i32 }
          cleanup
  br label %509

509:                                              ; preds = %507, %505
  %.pn495.pn.pn.pn = phi { ptr, i32 } [ %.pn495.pn.pn, %505 ], [ %508, %507 ]
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #11
  br label %536

510:                                              ; preds = %506, %._crit_edge611
  %.7421 = phi float [ %.5419.lcssa, %506 ], [ %.4418, %._crit_edge611 ]
  %.5403 = phi i32 [ 0, %506 ], [ %.4402, %._crit_edge611 ]
  %511 = fmul float %.7421, 0x3FC99999A0000000
  %.8422 = select i1 %.0410.lcssa640, float %511, float %.7421
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #11
  %512 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
  %513 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %512)
          to label %514 unwind label %528

514:                                              ; preds = %510
  %515 = load ptr, ptr %513, align 8, !tbaa !17
  store ptr %515, ptr %45, align 8, !tbaa !5
  %516 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.076.0.copyload = load <2 x float>, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #11
  %517 = sext i32 %.5403 to i64
  %518 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %517) #11
  %519 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %518, i64 noundef 0) #11
  %520 = load ptr, ptr %519, align 8, !tbaa !5
  store ptr %520, ptr %47, align 8, !tbaa !5
  %521 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %517) #11
  %522 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %521, i64 noundef 1) #11
  %523 = load ptr, ptr %522, align 8, !tbaa !5
  store ptr %523, ptr %84, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %48) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr nonnull %47, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %524 unwind label %530

524:                                              ; preds = %514
  %525 = fneg float %.8422
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %515, ptr noundef nonnull %87, <2 x float> %516, <2 x float> %.sroa.076.0.copyload, float noundef %525, ptr noundef nonnull %46)
          to label %526 unwind label %532

526:                                              ; preds = %524
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #11
  invoke void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %527 unwind label %528

527:                                              ; preds = %526
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  br label %748

528:                                              ; preds = %526, %510
  %529 = landingpad { ptr, i32 }
          cleanup
  br label %535

530:                                              ; preds = %514
  %531 = landingpad { ptr, i32 }
          cleanup
  br label %534

532:                                              ; preds = %524
  %533 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #11
  br label %534

534:                                              ; preds = %532, %530
  %.pn491 = phi { ptr, i32 } [ %533, %532 ], [ %531, %530 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #11
  br label %535

535:                                              ; preds = %534, %528
  %.pn493 = phi { ptr, i32 } [ %529, %528 ], [ %.pn491, %534 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #11
  br label %536

536:                                              ; preds = %464, %509, %535, %354
  %.pn500.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %355, %354 ], [ %.pn500.pn.pn.pn.pn, %464 ], [ %.pn495.pn.pn.pn, %509 ], [ %.pn493, %535 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #11
  br label %537

537:                                              ; preds = %265, %267, %310, %348, %536, %278, %273, %210, %237, %232, %230, %216, %214, %212, %208
  %.pn513.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %209, %208 ], [ %211, %210 ], [ %238, %237 ], [ %217, %216 ], [ %215, %214 ], [ %233, %232 ], [ %231, %230 ], [ %213, %212 ], [ %268, %267 ], [ %266, %265 ], [ %.pn489, %278 ], [ %.pn487, %273 ], [ %.pn513.pn, %310 ], [ %.pn509.pn.pn, %348 ], [ %.pn500.pn.pn.pn.pn.pn.pn, %536 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #11
  br label %538

538:                                              ; preds = %537, %206
  %.pn513.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn513.pn.pn.pn.pn.pn, %537 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  br label %752

.thread:                                          ; preds = %118, %102, %112, %115, %._crit_edge
  %539 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %540 = fcmp ogt float %539, 5.000000e-01
  br i1 %540, label %541, label %748

541:                                              ; preds = %.thread
  %542 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %543 unwind label %548

543:                                              ; preds = %541
  %544 = invoke i64 @_ZN10QCollision24FindNearestSideOfPolygonE7QVectorSt6vectorIP9QParticleSaIS3_EEbb(<2 x float> %542, ptr noundef nonnull %49, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %545 unwind label %550

545:                                              ; preds = %543
  %.sroa.069.0.extract.trunc = trunc i64 %544 to i32
  %.sroa.7.0.extract.shift = lshr i64 %544, 32
  %.sroa.7.0.extract.trunc = trunc nuw i64 %.sroa.7.0.extract.shift to i32
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #11
  %546 = icmp ne i32 %.sroa.069.0.extract.trunc, -1
  %547 = icmp ne i64 %.sroa.7.0.extract.shift, 4294967295
  %or.cond.not = or i1 %546, %547
  br i1 %or.cond.not, label %552, label %748

548:                                              ; preds = %541
  %549 = landingpad { ptr, i32 }
          cleanup
  br label %752

550:                                              ; preds = %543
  %551 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #11
  br label %752

552:                                              ; preds = %545
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %51) #11
  %sext = shl i64 %544, 32
  %553 = ashr exact i64 %sext, 32
  %554 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %553) #11
  %555 = load ptr, ptr %554, align 8, !tbaa !5
  store ptr %555, ptr %51, align 8, !tbaa !5
  %556 = ashr i64 %544, 32
  %557 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %556) #11
  %558 = load ptr, ptr %557, align 8, !tbaa !5
  store ptr %558, ptr %75, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %52) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr nonnull %51, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %52)
          to label %559 unwind label %574

559:                                              ; preds = %552
  %560 = invoke noundef i32 @_ZN10QCollision28FindNearestParticleOfPolygonEP9QParticleSt6vectorIS1_SaIS1_EE(ptr noundef nonnull %87, ptr noundef nonnull %50)
          to label %561 unwind label %576

561:                                              ; preds = %559
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %52) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %51) #11
  %562 = icmp eq i32 %560, 0
  %.sroa.069.0.extract.trunc..sroa.7.0.extract.trunc = select i1 %562, i32 %.sroa.069.0.extract.trunc, i32 %.sroa.7.0.extract.trunc
  %563 = sext i32 %.sroa.069.0.extract.trunc..sroa.7.0.extract.trunc to i64
  %564 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %563) #11
  %565 = load ptr, ptr %564, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %53) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #11
  %566 = add nsw i32 %.sroa.069.0.extract.trunc..sroa.7.0.extract.trunc, -1
  %567 = sext i32 %566 to i64
  %568 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %569 = add i64 %568, %567
  %570 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %571 = urem i64 %569, %570
  %572 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %571) #11
  %573 = load ptr, ptr %572, align 8, !tbaa !5
  store ptr %573, ptr %54, align 8, !tbaa !5
  store ptr %565, ptr %76, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %55) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr nonnull %54, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %579 unwind label %593

574:                                              ; preds = %552
  %575 = landingpad { ptr, i32 }
          cleanup
  br label %578

576:                                              ; preds = %559
  %577 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #11
  br label %578

578:                                              ; preds = %576, %574
  %.pn457 = phi { ptr, i32 } [ %577, %576 ], [ %575, %574 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %52) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %51) #11
  br label %752

579:                                              ; preds = %561
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %580 unwind label %595

580:                                              ; preds = %579
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %53) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %56) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %57) #11
  store ptr %565, ptr %57, align 8, !tbaa !5
  %581 = add nsw i32 %.sroa.069.0.extract.trunc..sroa.7.0.extract.trunc, 1
  %582 = sext i32 %581 to i64
  %583 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #11
  %584 = urem i64 %582, %583
  %585 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %584) #11
  %586 = load ptr, ptr %585, align 8, !tbaa !5
  store ptr %586, ptr %77, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %58) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr nonnull %57, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %587 unwind label %598

587:                                              ; preds = %580
  invoke void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %588 unwind label %600

588:                                              ; preds = %587
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %58) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %56) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #11
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %59)
          to label %589 unwind label %603

589:                                              ; preds = %588
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %60) #11
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %60)
          to label %590 unwind label %605

590:                                              ; preds = %589
  %591 = load float, ptr @_ZN6QWorld14MAX_WORLD_SIZEE, align 4, !tbaa !13
  %592 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %.not629 = icmp eq i64 %592, 0
  br i1 %.not629, label %._crit_edge592.thread, label %.lr.ph591

._crit_edge592:                                   ; preds = %714
  %.not = icmp eq i32 %.2435, -1
  br i1 %.not, label %._crit_edge592.thread, label %723

593:                                              ; preds = %561
  %594 = landingpad { ptr, i32 }
          cleanup
  br label %597

595:                                              ; preds = %579
  %596 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #11
  br label %597

597:                                              ; preds = %595, %593
  %.pn459 = phi { ptr, i32 } [ %596, %595 ], [ %594, %593 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %53) #11
  br label %752

598:                                              ; preds = %580
  %599 = landingpad { ptr, i32 }
          cleanup
  br label %602

600:                                              ; preds = %587
  %601 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #11
  br label %602

602:                                              ; preds = %600, %598
  %.pn461 = phi { ptr, i32 } [ %601, %600 ], [ %599, %598 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %58) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %56) #11
  br label %752

603:                                              ; preds = %588
  %604 = landingpad { ptr, i32 }
          cleanup
  br label %747

605:                                              ; preds = %589
  %606 = landingpad { ptr, i32 }
          cleanup
  br label %746

.lr.ph591:                                        ; preds = %590, %714
  %.0433589 = phi i32 [ %.2435, %714 ], [ -1, %590 ]
  %.1437588 = phi float [ %.3439, %714 ], [ %.0436621, %590 ]
  %.0444587 = phi float [ %.2446, %714 ], [ %591, %590 ]
  %.0447586 = phi i64 [ %715, %714 ], [ 0, %590 ]
  %607 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.0447586) #11
  %608 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %607, i64 noundef 0) #11
  %609 = load ptr, ptr %608, align 8, !tbaa !5
  %610 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.0447586) #11
  %611 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %610, i64 noundef 1) #11
  %612 = load ptr, ptr %611, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %61) #11
  %613 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %609)
  store <2 x float> %613, ptr %61, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %62) #11
  %614 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %612)
  store <2 x float> %614, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %63) #11
  %.sroa.036.0.copyload = load <2 x float>, ptr %61, align 8
  %615 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %614, <2 x float> %.sroa.036.0.copyload)
          to label %616 unwind label %634

616:                                              ; preds = %.lr.ph591
  store <2 x float> %615, ptr %63, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %64) #11
  %617 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %63)
          to label %618 unwind label %636

618:                                              ; preds = %616
  store <2 x float> %617, ptr %64, align 8
  %619 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %64)
          to label %620 unwind label %638

620:                                              ; preds = %618
  %621 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %609)
  %622 = fcmp ogt float %621, 5.000000e-01
  br i1 %622, label %626, label %623

623:                                              ; preds = %620
  %624 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %612)
  %625 = fcmp ogt float %624, 5.000000e-01
  br i1 %625, label %626, label %664

626:                                              ; preds = %623, %620
  %627 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %609)
  %628 = fcmp ogt float %627, 5.000000e-01
  br i1 %628, label %629, label %642

629:                                              ; preds = %626
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #11
  %630 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %609)
  %631 = invoke <2 x float> @_Zmlf7QVector(float noundef %630, <2 x float> %619)
          to label %632 unwind label %640

632:                                              ; preds = %629
  store <2 x float> %631, ptr %65, align 8
  %633 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(8) %65)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #11
  br label %642

634:                                              ; preds = %.lr.ph591
  %635 = landingpad { ptr, i32 }
          cleanup
  br label %722

636:                                              ; preds = %616
  %637 = landingpad { ptr, i32 }
          cleanup
  br label %721

638:                                              ; preds = %618
  %639 = landingpad { ptr, i32 }
          cleanup
  br label %721

640:                                              ; preds = %629
  %641 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #11
  br label %721

642:                                              ; preds = %632, %626
  %643 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %612)
  %644 = fcmp ogt float %643, 5.000000e-01
  br i1 %644, label %645, label %652

645:                                              ; preds = %642
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %66) #11
  %646 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %612)
  %647 = invoke <2 x float> @_Zmlf7QVector(float noundef %646, <2 x float> %619)
          to label %648 unwind label %650

648:                                              ; preds = %645
  store <2 x float> %647, ptr %66, align 8
  %649 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectorpLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %62, ptr noundef nonnull align 4 dereferenceable(8) %66)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #11
  br label %652

650:                                              ; preds = %645
  %651 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #11
  br label %721

652:                                              ; preds = %648, %642
  %.sroa.028.0.copyload = load <2 x float>, ptr %62, align 8
  %.sroa.027.0.copyload = load <2 x float>, ptr %61, align 8
  %653 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.028.0.copyload, <2 x float> %.sroa.027.0.copyload)
          to label %654 unwind label %658

654:                                              ; preds = %652
  store <2 x float> %653, ptr %63, align 8
  %655 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %63)
          to label %656 unwind label %660

656:                                              ; preds = %654
  store <2 x float> %655, ptr %64, align 8
  %657 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %64)
          to label %664 unwind label %662

658:                                              ; preds = %652
  %659 = landingpad { ptr, i32 }
          cleanup
  br label %721

660:                                              ; preds = %654
  %661 = landingpad { ptr, i32 }
          cleanup
  br label %721

662:                                              ; preds = %656
  %663 = landingpad { ptr, i32 }
          cleanup
  br label %721

664:                                              ; preds = %656, %623
  %.sroa.032.0 = phi <2 x float> [ %619, %623 ], [ %657, %656 ]
  %665 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %63)
          to label %666 unwind label %704

666:                                              ; preds = %664
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %67) #11
  %667 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.022.0.copyload = load <2 x float>, ptr %61, align 8
  %668 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %667, <2 x float> %.sroa.022.0.copyload)
          to label %669 unwind label %706

669:                                              ; preds = %666
  store <2 x float> %668, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %68) #11
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %68)
          to label %670 unwind label %708

670:                                              ; preds = %669
  invoke void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %78)
          to label %671 unwind label %708

671:                                              ; preds = %670
  %672 = load i64, ptr %61, align 8
  store i64 %672, ptr %68, align 16
  %673 = load i64, ptr %62, align 8
  store i64 %673, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %69) #11
  %674 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %.sroa.020.0.copyload = load <2 x float>, ptr %68, align 16
  %675 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %674, <2 x float> %.sroa.020.0.copyload)
          to label %676 unwind label %710

676:                                              ; preds = %671
  store <2 x float> %675, ptr %69, align 8
  %677 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %69, <2 x float> %.sroa.032.0)
  %678 = call noundef float @_ZSt3absf(float noundef %677)
  %679 = fcmp olt float %678, %.0444587
  br i1 %679, label %680, label %714

680:                                              ; preds = %676
  %681 = call noundef float @_ZSt3absf(float noundef %677)
  %682 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %683 = fcmp olt float %681, %682
  br i1 %683, label %684, label %714

684:                                              ; preds = %680
  %.sroa.011.0.copyload = load <2 x float>, ptr %64, align 8
  %685 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %67, <2 x float> %.sroa.011.0.copyload)
  %686 = fcmp ult float %685, 0.000000e+00
  %687 = fcmp ugt float %685, %665
  %or.cond525 = or i1 %686, %687
  br i1 %or.cond525, label %714, label %688

688:                                              ; preds = %684
  %689 = fcmp olt float %677, 0.000000e+00
  %690 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %691 = select i1 %689, float -1.000000e+00, float 1.000000e+00
  %692 = fneg float %677
  %693 = call float @llvm.fmuladd.f32(float %690, float %691, float %692)
  %694 = call noundef float @_ZSt3absf(float noundef %693)
  %695 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %696 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %697 = fmul float %691, %696
  %698 = invoke <2 x float> @_Zmlf7QVector(float noundef %697, <2 x float> %.sroa.032.0)
          to label %699 unwind label %712

699:                                              ; preds = %688
  %700 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %695, <2 x float> %698)
          to label %701 unwind label %712

701:                                              ; preds = %699
  store <2 x float> %700, ptr %60, align 8
  store <2 x float> %.sroa.032.0, ptr %59, align 8
  %702 = trunc i64 %.0447586 to i32
  %703 = call noundef float @_ZSt3absf(float noundef %677)
  br label %714

704:                                              ; preds = %664
  %705 = landingpad { ptr, i32 }
          cleanup
  br label %721

706:                                              ; preds = %666
  %707 = landingpad { ptr, i32 }
          cleanup
  br label %720

708:                                              ; preds = %670, %669
  %709 = landingpad { ptr, i32 }
          cleanup
  br label %719

710:                                              ; preds = %671
  %711 = landingpad { ptr, i32 }
          cleanup
  br label %718

712:                                              ; preds = %699, %688
  %713 = landingpad { ptr, i32 }
          cleanup
  br label %718

714:                                              ; preds = %684, %701, %680, %676
  %.2446 = phi float [ %.0444587, %680 ], [ %.0444587, %676 ], [ %703, %701 ], [ %.0444587, %684 ]
  %.3439 = phi float [ %.1437588, %680 ], [ %.1437588, %676 ], [ %694, %701 ], [ %.1437588, %684 ]
  %.2435 = phi i32 [ %.0433589, %680 ], [ %.0433589, %676 ], [ %702, %701 ], [ %.0433589, %684 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %69) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %68) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #11
  %715 = add nuw i64 %.0447586, 1
  %716 = call noundef i64 @_ZNKSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  %717 = icmp ult i64 %715, %716
  br i1 %717, label %.lr.ph591, label %._crit_edge592, !llvm.loop !20

718:                                              ; preds = %712, %710
  %.pn468 = phi { ptr, i32 } [ %713, %712 ], [ %711, %710 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %69) #11
  br label %719

719:                                              ; preds = %718, %708
  %.pn468.pn = phi { ptr, i32 } [ %.pn468, %718 ], [ %709, %708 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %68) #11
  br label %720

720:                                              ; preds = %719, %706
  %.pn468.pn.pn = phi { ptr, i32 } [ %.pn468.pn, %719 ], [ %707, %706 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %67) #11
  br label %721

721:                                              ; preds = %638, %640, %650, %658, %660, %662, %720, %704, %636
  %.pn468.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %637, %636 ], [ %663, %662 ], [ %661, %660 ], [ %659, %658 ], [ %651, %650 ], [ %641, %640 ], [ %639, %638 ], [ %.pn468.pn.pn, %720 ], [ %705, %704 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #11
  br label %722

722:                                              ; preds = %721, %634
  %.pn468.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn468.pn.pn.pn.pn.pn, %721 ], [ %635, %634 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %62) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #11
  br label %746

723:                                              ; preds = %._crit_edge592
  %724 = sext i32 %.2435 to i64
  %725 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %724) #11
  %726 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %725, i64 noundef 0) #11
  %727 = load ptr, ptr %726, align 8, !tbaa !5
  %728 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %724) #11
  %729 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %728, i64 noundef 1) #11
  %730 = load ptr, ptr %729, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %70) #11
  %731 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN10QCollision14GetContactPoolEv()
  %732 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN11QObjectPoolIN10QCollision7ContactEE6CreateEv(ptr noundef nonnull align 8 dereferenceable(40) %731)
          to label %733 unwind label %738

733:                                              ; preds = %723
  %734 = load ptr, ptr %732, align 8, !tbaa !17
  store ptr %734, ptr %70, align 8, !tbaa !5
  %.sroa.04.0.copyload = load <2 x float>, ptr %60, align 8
  %.sroa.03.0.copyload = load <2 x float>, ptr %59, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %72) #11
  store ptr %727, ptr %72, align 8, !tbaa !5
  store ptr %730, ptr %79, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %73) #11
  call void @_ZNSaIP9QParticleEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %73) #11
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr nonnull %72, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %73)
          to label %735 unwind label %740

735:                                              ; preds = %733
  invoke void @_ZN10QCollision7Contact9ConfigureEP9QParticle7QVectorS3_fSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(57) %734, ptr noundef nonnull %87, <2 x float> %.sroa.04.0.copyload, <2 x float> %.sroa.03.0.copyload, float noundef %.3439, ptr noundef nonnull %71)
          to label %736 unwind label %742

736:                                              ; preds = %735
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #11
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %73) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %73) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %72) #11
  invoke void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %737 unwind label %738

737:                                              ; preds = %736
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %70) #11
  br label %._crit_edge592.thread

738:                                              ; preds = %736, %723
  %739 = landingpad { ptr, i32 }
          cleanup
  br label %745

740:                                              ; preds = %733
  %741 = landingpad { ptr, i32 }
          cleanup
  br label %744

742:                                              ; preds = %735
  %743 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #11
  br label %744

744:                                              ; preds = %742, %740
  %.pn463 = phi { ptr, i32 } [ %743, %742 ], [ %741, %740 ]
  call void @_ZNSt15__new_allocatorIP9QParticleED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %73) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %73) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %72) #11
  br label %745

745:                                              ; preds = %744, %738
  %.pn465 = phi { ptr, i32 } [ %739, %738 ], [ %.pn463, %744 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %70) #11
  br label %746

._crit_edge592.thread:                            ; preds = %590, %737, %._crit_edge592
  %.1437.lcssa648 = phi float [ %.3439, %737 ], [ %.3439, %._crit_edge592 ], [ %.0436621, %590 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #11
  br label %748

746:                                              ; preds = %722, %745, %605
  %.pn468.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %606, %605 ], [ %.pn468.pn.pn.pn.pn.pn.pn, %722 ], [ %.pn465, %745 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #11
  br label %747

747:                                              ; preds = %746, %603
  %.pn468.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn468.pn.pn.pn.pn.pn.pn.pn.pn, %746 ], [ %604, %603 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #11
  br label %752

748:                                              ; preds = %._crit_edge592.thread, %545, %.thread, %527, %96
  %.7443 = phi float [ %.0436621, %96 ], [ %.0436621, %527 ], [ %.0436621, %.thread ], [ %.1437.lcssa648, %._crit_edge592.thread ], [ %.0436621, %545 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #11
  %749 = add nuw i64 %.0622, 1
  %750 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  %751 = icmp ult i64 %749, %750
  br i1 %751, label %85, label %._crit_edge626, !llvm.loop !21

752:                                              ; preds = %108, %110, %158, %156, %538, %204, %578, %747, %602, %597, %550, %548, %98
  %.pn513.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %99, %98 ], [ %111, %110 ], [ %109, %108 ], [ %159, %158 ], [ %157, %156 ], [ %.pn513.pn.pn.pn.pn.pn.pn, %538 ], [ %205, %204 ], [ %551, %550 ], [ %549, %548 ], [ %.pn457, %578 ], [ %.pn468.pn.pn.pn.pn.pn.pn.pn.pn.pn, %747 ], [ %.pn461, %602 ], [ %.pn459, %597 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #11
  call void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #11
  resume { ptr, i32 } %.pn513.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 uwtable
declare dso_local void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28), <2 x float>, <2 x float>) unnamed_addr #4 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIP9QParticleSaIS1_EEbRKSt6vectorIT_T0_ES8_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10QCollision16PointInPolygonWNE7QVectorSt6vectorIP9QParticleSaIS3_EE(<2 x float>, ptr noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QMesh26GetPolygonBisectorVectorAtEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10QCollision28FindNearestParticleOfPolygonEP9QParticleSt6vectorIS1_SaIS1_EE(ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN10QCollision24FindNearestSideOfPolygonE7QVectorSt6vectorIP9QParticleSaIS3_EEbb(<2 x float>, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #10

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="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 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #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 = { 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 #9 = { 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 #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN11QObjectPoolIN10QCollision7ContactEE4NodeE", !6, i64 0, !19, i64 8, !19, i64 12}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass