; LLVM IR from Sonryle/JoePhys :: JoePhys/src/World.ll (ZN5World4StepEi)

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

%struct.World = type <{ %"class.std::vector", %"class.std::unordered_map", i32, i32, %struct.vec2, float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Cluster *, std::allocator<Cluster *>>::_Vector_impl" }
%"struct.std::_Vector_base<Cluster *, std::allocator<Cluster *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Cluster *, std::allocator<Cluster *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Cluster *, std::allocator<Cluster *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.vec2 = type { float, float }

; 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 void @_ZN5World4StepEi(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %7 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %8 = getelementptr inbounds %struct.World, ptr %7, i32 0, i32 2
  %9 = load i32, ptr %8, align 8, !tbaa !11
  %10 = sitofp i32 %9 to float
  %11 = fdiv float 1.000000e+00, %10
  store float %11, ptr %5, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %54, %2
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = getelementptr inbounds %struct.World, ptr %7, i32 0, i32 3
  %15 = load i32, ptr %14, align 4, !tbaa !25
  %16 = icmp slt i32 %13, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %57

18:                                               ; preds = %12
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = and i32 %19, 1
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %7)
  br label %23

23:                                               ; preds = %22, %18
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = and i32 %24, 2
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %7)
  br label %28

28:                                               ; preds = %27, %23
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = and i32 %29, 16
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %38, label %32

32:                                               ; preds = %28
  %33 = load float, ptr %5, align 4, !tbaa !24
  %34 = getelementptr inbounds %struct.World, ptr %7, i32 0, i32 3
  %35 = load i32, ptr %34, align 4, !tbaa !25
  %36 = sitofp i32 %35 to float
  %37 = fdiv float %33, %36
  call void @_ZN5World13UpdateSpringsEf(ptr noundef nonnull align 8 dereferenceable(100) %7, float noundef %37)
  br label %38

38:                                               ; preds = %32, %28
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = and i32 %39, 4
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %48, label %42

42:                                               ; preds = %38
  %43 = load float, ptr %5, align 4, !tbaa !24
  %44 = getelementptr inbounds %struct.World, ptr %7, i32 0, i32 3
  %45 = load i32, ptr %44, align 4, !tbaa !25
  %46 = sitofp i32 %45 to float
  %47 = fdiv float %43, %46
  call void @_ZN5World23UpdateParticlePositionsEf(ptr noundef nonnull align 8 dereferenceable(100) %7, float noundef %47)
  br label %48

48:                                               ; preds = %42, %38
  %49 = load i32, ptr %4, align 4, !tbaa !9
  %50 = and i32 %49, 8
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %7)
  call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %7)
  br label %53

53:                                               ; preds = %52, %48
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %6, align 4, !tbaa !9
  br label %12, !llvm.loop !26

57:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World13UpdateSpringsEf(ptr noundef nonnull align 8 dereferenceable(100), float noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World23UpdateParticlePositionsEf(ptr noundef nonnull align 8 dereferenceable(100), float noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100)) #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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 80}
!12 = !{!"_ZTS5World", !13, i64 0, !17, i64 24, !10, i64 80, !10, i64 84, !23, i64 88, !22, i64 96}
!13 = !{!"_ZTSSt6vectorIP7ClusterSaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIP7ClusterSaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIP7ClusterSaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP7ClusterSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIlSt4pairIKlSt6vectorIP8ParticleSaIS4_EEESaIS7_ENSt8__detail10_Select1stESt8equal_toIlESt4hashIlENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !22, i64 0, !19, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTS4vec2", !22, i64 0, !22, i64 4}
!24 = !{!22, !22, i64 0}
!25 = !{!12, !10, i64 84}
!26 = distinct !{!26, !27}
!27 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5World4StepEi(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 80
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = sitofp i32 %4 to float
  %6 = fdiv float 1.000000e+00, %5
  %7 = getelementptr inbounds i8, ptr %0, i64 84
  %8 = load i32, ptr %7, align 4, !tbaa !22
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %10 = and i32 %1, 1
  %.not = icmp eq i32 %10, 0
  %11 = and i32 %1, 2
  %.not9 = icmp eq i32 %11, 0
  %12 = and i32 %1, 16
  %.not10 = icmp eq i32 %12, 0
  %13 = and i32 %1, 4
  %.not11 = icmp eq i32 %13, 0
  %14 = and i32 %1, 8
  %.not12 = icmp eq i32 %14, 0
  br i1 %.not10, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %28
  %.013.us = phi i32 [ %29, %28 ], [ 0, %.lr.ph ]
  br i1 %.not, label %15, label %16

15:                                               ; preds = %.lr.ph.split.us
  tail call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %16

16:                                               ; preds = %15, %.lr.ph.split.us
  br i1 %.not9, label %17, label %18

17:                                               ; preds = %16
  tail call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %18

18:                                               ; preds = %17, %16
  %19 = load i32, ptr %7, align 4, !tbaa !22
  %20 = sitofp i32 %19 to float
  %21 = fdiv float %6, %20
  tail call void @_ZN5World13UpdateSpringsEf(ptr noundef nonnull align 8 dereferenceable(100) %0, float noundef %21)
  br i1 %.not11, label %22, label %26

22:                                               ; preds = %18
  %23 = load i32, ptr %7, align 4, !tbaa !22
  %24 = sitofp i32 %23 to float
  %25 = fdiv float %6, %24
  tail call void @_ZN5World23UpdateParticlePositionsEf(ptr noundef nonnull align 8 dereferenceable(100) %0, float noundef %25)
  br label %26

26:                                               ; preds = %22, %18
  br i1 %.not12, label %27, label %28

27:                                               ; preds = %26
  tail call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %28

28:                                               ; preds = %27, %26
  %29 = add nuw nsw i32 %.013.us, 1
  %30 = load i32, ptr %7, align 4, !tbaa !22
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !23

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %.not11, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %40
  %.013.us14 = phi i32 [ %41, %40 ], [ 0, %.lr.ph.split ]
  br i1 %.not, label %32, label %33

32:                                               ; preds = %.lr.ph.split.split.us
  tail call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %33

33:                                               ; preds = %32, %.lr.ph.split.split.us
  br i1 %.not9, label %34, label %35

34:                                               ; preds = %33
  tail call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %35

35:                                               ; preds = %34, %33
  %36 = load i32, ptr %7, align 4, !tbaa !22
  %37 = sitofp i32 %36 to float
  %38 = fdiv float %6, %37
  tail call void @_ZN5World23UpdateParticlePositionsEf(ptr noundef nonnull align 8 dereferenceable(100) %0, float noundef %38)
  br i1 %.not12, label %39, label %40

39:                                               ; preds = %35
  tail call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %40

40:                                               ; preds = %39, %35
  %41 = add nuw nsw i32 %.013.us14, 1
  %42 = load i32, ptr %7, align 4, !tbaa !22
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.lr.ph.split.split.us, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split:                               ; preds = %.lr.ph.split
  br i1 %.not12, label %.lr.ph.split.split.split.us, label %.lr.ph.split.split.split

.lr.ph.split.split.split.us:                      ; preds = %.lr.ph.split.split
  br i1 %.not, label %.lr.ph.split.split.split.us.split.us, label %.lr.ph.split.split.split.us.split

.lr.ph.split.split.split.us.split.us:             ; preds = %.lr.ph.split.split.split.us
  br i1 %.not9, label %.lr.ph.split.split.split.us.split.us.split.us, label %.lr.ph.split.split.split.us.split.us.split

.lr.ph.split.split.split.us.split.us.split.us:    ; preds = %.lr.ph.split.split.split.us.split.us, %.lr.ph.split.split.split.us.split.us.split.us
  %.013.us15.us.us = phi i32 [ %44, %.lr.ph.split.split.split.us.split.us.split.us ], [ 0, %.lr.ph.split.split.split.us.split.us ]
  tail call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %44 = add nuw nsw i32 %.013.us15.us.us, 1
  %45 = load i32, ptr %7, align 4, !tbaa !22
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %.lr.ph.split.split.split.us.split.us.split.us, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split.split.us.split.us.split:       ; preds = %.lr.ph.split.split.split.us.split.us, %.lr.ph.split.split.split.us.split.us.split
  %.013.us15.us = phi i32 [ %47, %.lr.ph.split.split.split.us.split.us.split ], [ 0, %.lr.ph.split.split.split.us.split.us ]
  tail call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %47 = add nuw nsw i32 %.013.us15.us, 1
  %48 = load i32, ptr %7, align 4, !tbaa !22
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %.lr.ph.split.split.split.us.split.us.split, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split.split.us.split:                ; preds = %.lr.ph.split.split.split.us
  br i1 %.not9, label %.lr.ph.split.split.split.us.split.split.us, label %.lr.ph.split.split.split.us.split.split

.lr.ph.split.split.split.us.split.split.us:       ; preds = %.lr.ph.split.split.split.us.split, %.lr.ph.split.split.split.us.split.split.us
  %.013.us15.us18 = phi i32 [ %50, %.lr.ph.split.split.split.us.split.split.us ], [ 0, %.lr.ph.split.split.split.us.split ]
  tail call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %50 = add nuw nsw i32 %.013.us15.us18, 1
  %51 = load i32, ptr %7, align 4, !tbaa !22
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %.lr.ph.split.split.split.us.split.split.us, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split.split.us.split.split:          ; preds = %.lr.ph.split.split.split.us.split, %.lr.ph.split.split.split.us.split.split
  %.013.us15 = phi i32 [ %53, %.lr.ph.split.split.split.us.split.split ], [ 0, %.lr.ph.split.split.split.us.split ]
  tail call void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %53 = add nuw nsw i32 %.013.us15, 1
  %54 = load i32, ptr %7, align 4, !tbaa !22
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %.lr.ph.split.split.split.us.split.split, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split.split:                         ; preds = %.lr.ph.split.split
  br i1 %.not, label %.lr.ph.split.split.split.split.us, label %.lr.ph.split.split.split.split

.lr.ph.split.split.split.split.us:                ; preds = %.lr.ph.split.split.split
  br i1 %.not9, label %.lr.ph.split.split.split.split.us.split.us, label %.lr.ph.split.split.split.split.us.split

.lr.ph.split.split.split.split.us.split.us:       ; preds = %.lr.ph.split.split.split.split.us, %.lr.ph.split.split.split.split.us.split.us
  %.013.us16.us = phi i32 [ %56, %.lr.ph.split.split.split.split.us.split.us ], [ 0, %.lr.ph.split.split.split.split.us ]
  tail call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  tail call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %56 = add nuw nsw i32 %.013.us16.us, 1
  %57 = load i32, ptr %7, align 4, !tbaa !22
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %.lr.ph.split.split.split.split.us.split.us, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split.split.split.us.split:          ; preds = %.lr.ph.split.split.split.split.us, %.lr.ph.split.split.split.split.us.split
  %.013.us16 = phi i32 [ %59, %.lr.ph.split.split.split.split.us.split ], [ 0, %.lr.ph.split.split.split.split.us ]
  tail call void @_ZN5World23ApplyGravityToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %59 = add nuw nsw i32 %.013.us16, 1
  %60 = load i32, ptr %7, align 4, !tbaa !22
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %.lr.ph.split.split.split.split.us.split, label %._crit_edge, !llvm.loop !23

.lr.ph.split.split.split.split:                   ; preds = %.lr.ph.split.split.split
  br i1 %.not9, label %.lr.ph.split.split.split.split.split.us, label %._crit_edge

.lr.ph.split.split.split.split.split.us:          ; preds = %.lr.ph.split.split.split.split, %.lr.ph.split.split.split.split.split.us
  %.013.us17 = phi i32 [ %62, %.lr.ph.split.split.split.split.split.us ], [ 0, %.lr.ph.split.split.split.split ]
  tail call void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %62 = add nuw nsw i32 %.013.us17, 1
  %63 = load i32, ptr %7, align 4, !tbaa !22
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %.lr.ph.split.split.split.split.split.us, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph.split.split.split.split.split.us, %.lr.ph.split.split.split.split.us.split, %.lr.ph.split.split.split.split.us.split.us, %.lr.ph.split.split.split.us.split.split, %.lr.ph.split.split.split.us.split.split.us, %.lr.ph.split.split.split.us.split.us.split, %.lr.ph.split.split.split.us.split.us.split.us, %40, %28, %.lr.ph.split.split.split.split, %2
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World20ApplyDragToParticlesEv(ptr noundef nonnull align 8 dereferenceable(100)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World13UpdateSpringsEf(ptr noundef nonnull align 8 dereferenceable(100), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World23UpdateParticlePositionsEf(ptr noundef nonnull align 8 dereferenceable(100), float noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5World20ResolveAllCollisionsEv(ptr noundef nonnull align 8 dereferenceable(100)) local_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 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" }

!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, !20, i64 80}
!6 = !{!"_ZTS5World", !7, i64 0, !14, i64 24, !20, i64 80, !20, i64 84, !21, i64 88, !19, i64 96}
!7 = !{!"_ZTSSt6vectorIP7ClusterSaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIP7ClusterSaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIP7ClusterSaIS1_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIP7ClusterSaIS1_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 = !{!"_ZTSSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableIlSt4pairIKlSt6vectorIP8ParticleSaIS4_EEESaIS7_ENSt8__detail10_Select1stESt8equal_toIlESt4hashIlENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!16 = !{!"long", !12, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !12, i64 0}
!20 = !{!"int", !12, i64 0}
!21 = !{!"_ZTS4vec2", !19, i64 0, !19, i64 4}
!22 = !{!6, !20, i64 84}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass