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

; 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.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: mustprogress uwtable
define dso_local void @_ZN7cyclone13ParticleWorldC2Ejj(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8
  %10 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 0
  call void @_ZNSt6vectorIPN7cyclone8ParticleESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %11 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 3
  call void @_ZN7cyclone21ParticleForceRegistryC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %12 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 4
  %13 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN7cyclone23ParticleContactResolverC1Ej(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %13)
          to label %14 unwind label %40

14:                                               ; preds = %3
  %15 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 5
  call void @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %16 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 7
  %17 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %17, ptr %16, align 8, !tbaa !11
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %19, i64 128)
  %21 = extractvalue { i64, i1 } %20, 1
  %22 = extractvalue { i64, i1 } %20, 0
  %23 = select i1 %21, i64 -1, i64 %22
  %24 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %23) #9
          to label %25 unwind label %44

25:                                               ; preds = %14
  %26 = icmp eq i64 %19, 0
  br i1 %26, label %34, label %27

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.cyclone::ParticleContact", ptr %24, i64 %19
  br label %29

29:                                               ; preds = %31, %27
  %30 = phi ptr [ %24, %27 ], [ %32, %31 ]
  invoke void @_ZN7cyclone15ParticleContactC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %31 unwind label %48

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"class.cyclone::ParticleContact", ptr %30, i64 1
  %33 = icmp eq ptr %32, %28
  br i1 %33, label %34, label %29

34:                                               ; preds = %31, %25
  %35 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 6
  store ptr %24, ptr %35, align 8, !tbaa !28
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 0
  %38 = getelementptr inbounds %"class.cyclone::ParticleWorld", ptr %9, i32 0, i32 1
  %39 = zext i1 %37 to i8
  store i8 %39, ptr %38, align 8, !tbaa !29
  ret void

40:                                               ; preds = %3
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %7, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %8, align 4
  br label %53

44:                                               ; preds = %14
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %52

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  call void @_ZdaPvm(ptr noundef %24, i64 noundef %23) #10
  br label %52

52:                                               ; preds = %48, %44
  call void @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %53

53:                                               ; preds = %52, %40
  call void @_ZN7cyclone21ParticleForceRegistryD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @_ZNSt6vectorIPN7cyclone8ParticleESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %7, align 8
  %56 = load i32, ptr %8, align 4
  %57 = insertvalue { ptr, i32 } poison, ptr %55, 0
  %58 = insertvalue { ptr, i32 } %57, i32 %56, 1
  resume { ptr, i32 } %58
}

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

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

declare void @_ZN7cyclone23ParticleContactResolverC1Ej(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 96}
!12 = !{!"_ZTSN7cyclone13ParticleWorldE", !13, i64 0, !17, i64 24, !18, i64 32, !23, i64 56, !24, i64 64, !6, i64 88, !10, i64 96}
!13 = !{!"_ZTSSt6vectorIPN7cyclone8ParticleESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone8ParticleESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN7cyclone21ParticleForceRegistryE", !19, i64 0}
!19 = !{!"_ZTSSt6vectorIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7cyclone21ParticleForceRegistry25ParticleForceRegistrationESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN7cyclone23ParticleContactResolverE", !10, i64 0, !10, i64 4}
!24 = !{!"_ZTSSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN7cyclone24ParticleContactGeneratorESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!12, !6, i64 88}
!29 = !{!12, !17, i64 24}


; 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.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 uwtable
define dso_local void @_ZN7cyclone13ParticleWorldC2Ejj(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %1, i32 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZNSt6vectorIPN7cyclone8ParticleESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN7cyclone21ParticleForceRegistryC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN7cyclone23ParticleContactResolverC1Ej(ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %2)
          to label %6 unwind label %25

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %1, ptr %8, align 8, !tbaa !5
  %9 = zext i32 %1 to i64
  %10 = shl nuw nsw i64 %9, 7
  %11 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %10) #8
          to label %12 unwind label %27

12:                                               ; preds = %6
  %13 = icmp eq i32 %1, 0
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %12
  %15 = getelementptr inbounds %"class.cyclone::ParticleContact", ptr %11, i64 %9
  br label %16

16:                                               ; preds = %18, %14
  %17 = phi ptr [ %11, %14 ], [ %19, %18 ]
  invoke void @_ZN7cyclone15ParticleContactC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %17)
          to label %18 unwind label %29

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %17, i64 128
  %20 = icmp eq ptr %19, %15
  br i1 %20, label %.loopexit, label %16

.loopexit:                                        ; preds = %18, %12
  %21 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %11, ptr %21, align 8, !tbaa !26
  %22 = icmp eq i32 %2, 0
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = zext i1 %22 to i8
  store i8 %24, ptr %23, align 8, !tbaa !27
  ret void

25:                                               ; preds = %3
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %32

27:                                               ; preds = %6
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %16
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdaPvm(ptr noundef nonnull %11, i64 noundef %10) #9
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  tail call void @_ZNSt6vectorIPN7cyclone24ParticleContactGeneratorESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %32

32:                                               ; preds = %31, %25
  %.pn.pn = phi { ptr, i32 } [ %.pn, %31 ], [ %26, %25 ]
  tail call void @_ZN7cyclone21ParticleForceRegistryD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  tail call void @_ZNSt6vectorIPN7cyclone8ParticleESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

declare void @_ZN7cyclone23ParticleContactResolverC1Ej(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

attributes #0 = { 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 #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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!6, !14, i64 24}


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