; LLVM IR from idmillington/cyclone-physics :: src/pworld.ll (ZN7cyclone13ParticleWorld16generateContactsEv)

; 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.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.cyclone::ParticleWorld" = type <{ %"class.std::vector", i8, [7 x i8], %"class.cyclone::ParticleForceRegistry", %"class.cyclone::ParticleContactResolver", %"class.std::vector.5", ptr, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cyclone::Particle *, std::allocator<cyclone::Particle *>>::_Vector_impl" }
%"struct.std::_Vector_base<cyclone::Particle *, std::allocator<cyclone::Particle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cyclone::Particle *, std::allocator<cyclone::Particle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cyclone::Particle *, std::allocator<cyclone::Particle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.cyclone::ParticleForceRegistry" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<cyclone::ParticleForceRegistry::ParticleForceRegistration, std::allocator<cyclone::ParticleForceRegistry::ParticleForceRegistration>>::_Vector_impl" }
%"struct.std::_Vector_base<cyclone::ParticleForceRegistry::ParticleForceRegistration, std::allocator<cyclone::ParticleForceRegistry::ParticleForceRegistration>>::_Vector_impl" = type { %"struct.std::_Vector_base<cyclone::ParticleForceRegistry::ParticleForceRegistration, std::allocator<cyclone::ParticleForceRegistry::ParticleForceRegistration>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cyclone::ParticleForceRegistry::ParticleForceRegistration, std::allocator<cyclone::ParticleForceRegistry::ParticleForceRegistration>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.cyclone::ParticleContactResolver" = type { i32, i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<cyclone::ParticleContactGenerator *, std::allocator<cyclone::ParticleContactGenerator *>>::_Vector_impl" }
%"struct.std::_Vector_base<cyclone::ParticleContactGenerator *, std::allocator<cyclone::ParticleContactGenerator *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cyclone::ParticleContactGenerator *, std::allocator<cyclone::ParticleContactGenerator *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cyclone::ParticleContactGenerator *, std::allocator<cyclone::ParticleContactGenerator *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.cyclone::ParticleContact" = type { [2 x ptr], double, %"class.cyclone::Vector3", double, [2 x %"class.cyclone::Vector3"] }
%"class.cyclone::Vector3" = type { double, double, double, double }

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

; 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
define dso_local noundef i32 @_ZN7cyclone13ParticleWorld16generateContactsEv(ptr noundef nonnull align 8 dereferenceable(100) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %11 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %10, i32 0, i32 7
  %12 = load i32, ptr %11, align 8, !tbaa !9
  store i32 %12, ptr %3, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %13 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %10, i32 0, i32 6
  %14 = load ptr, ptr %13, align 8, !tbaa !28
  store ptr %14, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %15 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %10, i32 0, i32 5
  %16 = call ptr @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  %17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %5, i32 0, i32 0
  store ptr %16, ptr %17, align 8
  br label %18

18:                                               ; preds = %47, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %19 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %10, i32 0, i32 5
  %20 = call ptr @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %21 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %6, i32 0, i32 0
  store ptr %20, ptr %21, align 8
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br i1 %22, label %24, label %23

23:                                               ; preds = %18
  store i32 2, ptr %7, align 4
  br label %50

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !27
  %29 = load ptr, ptr %26, align 8, !tbaa !29
  %30 = getelementptr inbounds ptr, ptr %29, i64 0
  %31 = load ptr, ptr %30, align 8
  %32 = call noundef i32 %31(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef %27, i32 noundef %28)
  store i32 %32, ptr %8, align 4, !tbaa !27
  %33 = load i32, ptr %8, align 4, !tbaa !27
  %34 = load i32, ptr %3, align 4, !tbaa !27
  %35 = sub i32 %34, %33
  store i32 %35, ptr %3, align 4, !tbaa !27
  %36 = load i32, ptr %8, align 4, !tbaa !27
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = zext i32 %36 to i64
  %39 = getelementptr inbounds %"class.cyclone::ParticleContact", ptr %37, i64 %38
  store ptr %39, ptr %4, align 8, !tbaa !5
  %40 = load i32, ptr %3, align 4, !tbaa !27
  %41 = icmp ule i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %24
  store i32 2, ptr %7, align 4
  br label %44

43:                                               ; preds = %24
  store i32 0, ptr %7, align 4
  br label %44

44:                                               ; preds = %43, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %45 = load i32, ptr %7, align 4
  switch i32 %45, label %50 [
    i32 0, label %46
  ]

46:                                               ; preds = %44
  br label %47

47:                                               ; preds = %46
  %48 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #4
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %9, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  br label %18, !llvm.loop !31

50:                                               ; preds = %44, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %51

51:                                               ; preds = %50
  %52 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %10, i32 0, i32 7
  %53 = load i32, ptr %52, align 8, !tbaa !9
  %54 = load i32, ptr %3, align 4, !tbaa !27
  %55 = sub i32 %53, %54
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret i32 %55
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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, !22, i64 96}
!10 = !{!"_ZTSN7cyclone13ParticleWorldE", !11, i64 0, !15, i64 24, !16, i64 32, !21, i64 56, !23, i64 64, !6, i64 88, !22, i64 96}
!11 = !{!"_ZTSSt6vectorIPN7cyclone8ParticleESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN7cyclone21ParticleForceRegistryE", !17, i64 0}
!17 = !{!"_ZTSSt6vectorIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSN7cyclone23ParticleContactResolverE", !22, i64 0, !22, i64 4}
!22 = !{!"int", !7, i64 0}
!23 = !{!"_ZTSSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!22, !22, i64 0}
!28 = !{!10, !6, i64 88}
!29 = !{!30, !30, i64 0}
!30 = !{!"vtable pointer", !8, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; 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.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.cyclone::ParticleContact" = type { [2 x ptr], double, %"class.cyclone::Vector3", double, [2 x %"class.cyclone::Vector3"] }
%"class.cyclone::Vector3" = type { double, double, double, double }

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

; 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
define dso_local noundef i32 @_ZN7cyclone13ParticleWorld16generateContactsEv(ptr noundef nonnull align 8 dereferenceable(100) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  %7 = load ptr, ptr %6, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = tail call ptr @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  store ptr %9, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %10 = tail call ptr @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  store ptr %10, ptr %3, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1, %18
  %.012 = phi i32 [ %17, %18 ], [ %5, %1 ]
  %.0911 = phi ptr [ %20, %18 ], [ %7, %1 ]
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %13 = load ptr, ptr %12, align 8, !tbaa !27
  %14 = load ptr, ptr %13, align 8, !tbaa !28
  %15 = load ptr, ptr %14, align 8
  %16 = call noundef i32 %15(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %.0911, i32 noundef %.012)
  %17 = sub i32 %.012, %16
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %._crit_edge, label %18

18:                                               ; preds = %.lr.ph
  %19 = zext i32 %16 to i64
  %20 = getelementptr inbounds %"class.cyclone::ParticleContact", ptr %.0911, i64 %19
  %21 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %22 = call ptr @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  store ptr %22, ptr %3, align 8
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %.lr.ph, %18, %1
  %.1 = phi i32 [ %5, %1 ], [ %17, %18 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %24 = load i32, ptr %4, align 8, !tbaa !5
  %25 = sub i32 %24, %.1
  ret i32 %25
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7cyclone24ParticleContactGeneratorESt6vectorIS3_SaIS3_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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, !21, i64 96}
!6 = !{!"_ZTSN7cyclone13ParticleWorldE", !7, i64 0, !14, i64 24, !15, i64 32, !20, i64 56, !22, i64 64, !11, i64 88, !21, i64 96}
!7 = !{!"_ZTSSt6vectorIPN7cyclone8ParticleESaIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"_ZTSN7cyclone21ParticleForceRegistryE", !16, i64 0}
!16 = !{!"_ZTSSt6vectorIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!20 = !{!"_ZTSN7cyclone23ParticleContactResolverE", !21, i64 0, !21, i64 4}
!21 = !{!"int", !12, i64 0}
!22 = !{!"_ZTSSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!26 = !{!6, !11, i64 88}
!27 = !{!11, !11, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !13, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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