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

; 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" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.15" = type { ptr }
%struct.vec2 = type { float, float }
%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.Cluster = type { %"class.std::vector.5", %"class.std::vector.10" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl" }
%"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl" }
%"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Particle = type { i8, %struct.vec2, %struct.vec2, float, float, float, %struct.vec2, [2 x %struct.vec2] }

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP7ClusterSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP7ClusterSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.vec2, align 4
  %21 = alloca %struct.vec2, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr %2, align 8
  %26 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 1
  call void @_ZNSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %27 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 0
  store ptr %27, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call ptr @_ZNSt6vectorIP7ClusterSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = call ptr @_ZNSt6vectorIP7ClusterSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  br label %34

34:                                               ; preds = %160, %1
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP7ClusterSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %162

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP7ClusterSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %39, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Cluster, ptr %40, i32 0, i32 0
  store ptr %41, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call ptr @_ZNSt6vectorIP8ParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.15", ptr %9, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call ptr @_ZNSt6vectorIP8ParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.15", ptr %10, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  br label %48

48:                                               ; preds = %157, %37
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP8ParticleSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %49, label %51, label %50

50:                                               ; preds = %48
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %159

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP8ParticleSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %53, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Particle, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %struct.vec2, ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Particle, ptr %58, i32 0, i32 4
  %60 = load float, ptr %59, align 4, !tbaa !14
  %61 = fadd float %57, %60
  store float %61, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Particle, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds %struct.vec2, ptr %63, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Particle, ptr %66, i32 0, i32 4
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = fsub float %65, %68
  store float %69, ptr %13, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Particle, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.vec2, ptr %71, i32 0, i32 0
  %73 = load float, ptr %72, align 4, !tbaa !16
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Particle, ptr %74, i32 0, i32 4
  %76 = load float, ptr %75, align 4, !tbaa !14
  %77 = fadd float %73, %76
  store float %77, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Particle, ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds %struct.vec2, ptr %79, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !16
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Particle, ptr %82, i32 0, i32 4
  %84 = load float, ptr %83, align 4, !tbaa !14
  %85 = fsub float %81, %84
  store float %85, ptr %15, align 4, !tbaa !15
  %86 = load float, ptr %15, align 4, !tbaa !15
  %87 = fcmp olt float %86, 0.000000e+00
  br i1 %87, label %88, label %93

88:                                               ; preds = %51
  %89 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 5
  %90 = load float, ptr %89, align 8, !tbaa !17
  %91 = load float, ptr %15, align 4, !tbaa !15
  %92 = fsub float %91, %90
  store float %92, ptr %15, align 4, !tbaa !15
  br label %93

93:                                               ; preds = %88, %51
  %94 = load float, ptr %14, align 4, !tbaa !15
  %95 = fcmp olt float %94, 0.000000e+00
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 5
  %98 = load float, ptr %97, align 8, !tbaa !17
  %99 = load float, ptr %14, align 4, !tbaa !15
  %100 = fsub float %99, %98
  store float %100, ptr %14, align 4, !tbaa !15
  br label %101

101:                                              ; preds = %96, %93
  %102 = load float, ptr %13, align 4, !tbaa !15
  %103 = fcmp olt float %102, 0.000000e+00
  br i1 %103, label %104, label %109

104:                                              ; preds = %101
  %105 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 5
  %106 = load float, ptr %105, align 8, !tbaa !17
  %107 = load float, ptr %13, align 4, !tbaa !15
  %108 = fsub float %107, %106
  store float %108, ptr %13, align 4, !tbaa !15
  br label %109

109:                                              ; preds = %104, %101
  %110 = load float, ptr %12, align 4, !tbaa !15
  %111 = fcmp olt float %110, 0.000000e+00
  br i1 %111, label %112, label %117

112:                                              ; preds = %109
  %113 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 5
  %114 = load float, ptr %113, align 8, !tbaa !17
  %115 = load float, ptr %12, align 4, !tbaa !15
  %116 = fsub float %115, %114
  store float %116, ptr %12, align 4, !tbaa !15
  br label %117

117:                                              ; preds = %112, %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %118 = load float, ptr %15, align 4, !tbaa !15
  %119 = load float, ptr %12, align 4, !tbaa !15
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %118, float noundef %119)
  %120 = load <2 x float>, ptr %20, align 4
  call void @_ZN5World21PositionToChunkCoordsE4vec2PiS1_(ptr noundef nonnull align 8 dereferenceable(100) %25, <2 x float> %120, ptr noundef %19, ptr noundef %16)
  %121 = load float, ptr %14, align 4, !tbaa !15
  %122 = load float, ptr %13, align 4, !tbaa !15
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %121, float noundef %122)
  %123 = load <2 x float>, ptr %21, align 4
  call void @_ZN5World21PositionToChunkCoordsE4vec2PiS1_(ptr noundef nonnull align 8 dereferenceable(100) %25, <2 x float> %123, ptr noundef %18, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %124 = load i32, ptr %19, align 4, !tbaa !29
  %125 = sitofp i32 %124 to float
  store float %125, ptr %22, align 4, !tbaa !15
  br label %126

126:                                              ; preds = %153, %117
  %127 = load float, ptr %22, align 4, !tbaa !15
  %128 = load i32, ptr %18, align 4, !tbaa !29
  %129 = sitofp i32 %128 to float
  %130 = fcmp ole float %127, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %126
  store i32 6, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %156

132:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %133 = load i32, ptr %17, align 4, !tbaa !29
  %134 = sitofp i32 %133 to float
  store float %134, ptr %23, align 4, !tbaa !15
  br label %135

135:                                              ; preds = %149, %132
  %136 = load float, ptr %23, align 4, !tbaa !15
  %137 = load i32, ptr %16, align 4, !tbaa !29
  %138 = sitofp i32 %137 to float
  %139 = fcmp ole float %136, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  store i32 9, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %152

141:                                              ; preds = %135
  %142 = getelementptr inbounds %struct.World, ptr %25, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %143 = load float, ptr %22, align 4, !tbaa !15
  %144 = fptosi float %143 to i32
  %145 = load float, ptr %23, align 4, !tbaa !15
  %146 = fptosi float %145 to i32
  %147 = call noundef i64 @_ZN5World20ChunkCoordsToHashKeyEii(ptr noundef nonnull align 8 dereferenceable(100) %25, i32 noundef %144, i32 noundef %146)
  store i64 %147, ptr %24, align 8, !tbaa !30
  %148 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEEixEOl(ptr noundef nonnull align 8 dereferenceable(56) %142, ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @_ZNSt6vectorIP8ParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %149

149:                                              ; preds = %141
  %150 = load float, ptr %23, align 4, !tbaa !15
  %151 = fadd float %150, 1.000000e+00
  store float %151, ptr %23, align 4, !tbaa !15
  br label %135, !llvm.loop !31

152:                                              ; preds = %140
  br label %153

153:                                              ; preds = %152
  %154 = load float, ptr %22, align 4, !tbaa !15
  %155 = fadd float %154, 1.000000e+00
  store float %155, ptr %22, align 4, !tbaa !15
  br label %126, !llvm.loop !33

156:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %157

157:                                              ; preds = %156
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP8ParticleSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %48

159:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %160

160:                                              ; preds = %159
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP7ClusterSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %34

162:                                              ; preds = %36
  ret void
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEEixEOl(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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


; 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" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.15" = type { ptr }
%struct.vec2 = type { float, float }

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP7ClusterSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5World12UpdateChunksEv(ptr noundef nonnull align 8 dereferenceable(100) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.15", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.vec2, align 8
  %12 = alloca %struct.vec2, align 8
  %13 = alloca i64, align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEE5clearEv(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %15 = tail call ptr @_ZNSt6vectorIP7ClusterSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %15, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %16 = tail call ptr @_ZNSt6vectorIP7ClusterSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %16, ptr %3, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP7ClusterSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %17, label %.lr.ph45, label %._crit_edge46

.lr.ph45:                                         ; preds = %1
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  br label %19

._crit_edge46:                                    ; preds = %._crit_edge43, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

19:                                               ; preds = %.lr.ph45, %._crit_edge43
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP7ClusterSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %22 = call ptr @_ZNSt6vectorIP8ParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store ptr %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %23 = call ptr @_ZNSt6vectorIP8ParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  store ptr %23, ptr %5, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP8ParticleSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %24, label %.lr.ph42, label %._crit_edge43

._crit_edge43:                                    ; preds = %._crit_edge40, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP7ClusterSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP7ClusterSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %26, label %19, label %._crit_edge46

.lr.ph42:                                         ; preds = %19, %._crit_edge40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP8ParticleSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 4
  %30 = getelementptr inbounds i8, ptr %28, i64 8
  %31 = load float, ptr %30, align 4, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %28, i64 24
  %33 = load float, ptr %32, align 4, !tbaa !14
  %34 = fadd float %31, %33
  %35 = fsub float %31, %33
  %36 = load float, ptr %29, align 4, !tbaa !15
  %37 = fadd float %33, %36
  %38 = fsub float %36, %33
  %39 = fcmp olt float %38, 0.000000e+00
  %40 = load float, ptr %18, align 8
  %41 = fsub float %38, %40
  %.025 = select i1 %39, float %41, float %38
  %42 = fcmp olt float %37, 0.000000e+00
  %43 = fsub float %37, %40
  %.026 = select i1 %42, float %43, float %37
  %44 = fcmp olt float %35, 0.000000e+00
  %45 = fsub float %35, %40
  %.027 = select i1 %44, float %45, float %35
  %46 = fcmp olt float %34, 0.000000e+00
  %47 = fsub float %34, %40
  %.028 = select i1 %46, float %47, float %34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %.025, float noundef %.028)
  %48 = load <2 x float>, ptr %11, align 8
  call void @_ZN5World21PositionToChunkCoordsE4vec2PiS1_(ptr noundef nonnull align 8 dereferenceable(100) %0, <2 x float> %48, ptr noundef nonnull %10, ptr noundef nonnull %7)
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %.026, float noundef %.027)
  %49 = load <2 x float>, ptr %12, align 8
  call void @_ZN5World21PositionToChunkCoordsE4vec2PiS1_(ptr noundef nonnull align 8 dereferenceable(100) %0, <2 x float> %49, ptr noundef nonnull %9, ptr noundef nonnull %8)
  %50 = load i32, ptr %10, align 4, !tbaa !16
  %51 = sitofp i32 %50 to float
  %52 = load i32, ptr %9, align 4, !tbaa !16
  %53 = sitofp i32 %52 to float
  %54 = fcmp ugt float %51, %53
  br i1 %54, label %._crit_edge40, label %.lr.ph39.preheader

.lr.ph39.preheader:                               ; preds = %.lr.ph42
  %.pre = load i32, ptr %7, align 4, !tbaa !16
  br label %.lr.ph39

._crit_edge40:                                    ; preds = %._crit_edge, %.lr.ph42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP8ParticleSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP8ParticleSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %56, label %.lr.ph42, label %._crit_edge43

.lr.ph39:                                         ; preds = %.lr.ph39.preheader, %._crit_edge
  %57 = phi i32 [ %64, %._crit_edge ], [ %52, %.lr.ph39.preheader ]
  %58 = phi i32 [ %65, %._crit_edge ], [ %.pre, %.lr.ph39.preheader ]
  %.02437 = phi float [ %66, %._crit_edge ], [ %51, %.lr.ph39.preheader ]
  %59 = load i32, ptr %8, align 4, !tbaa !16
  %60 = sitofp i32 %59 to float
  %61 = sitofp i32 %58 to float
  %62 = fcmp ugt float %60, %61
  br i1 %62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph39
  %63 = fptosi float %.02437 to i32
  br label %69

._crit_edge.loopexit:                             ; preds = %69
  %.pre47 = load i32, ptr %9, align 4, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph39
  %64 = phi i32 [ %.pre47, %._crit_edge.loopexit ], [ %57, %.lr.ph39 ]
  %65 = phi i32 [ %74, %._crit_edge.loopexit ], [ %58, %.lr.ph39 ]
  %66 = fadd float %.02437, 1.000000e+00
  %67 = sitofp i32 %64 to float
  %68 = fcmp ugt float %66, %67
  br i1 %68, label %._crit_edge40, label %.lr.ph39, !llvm.loop !18

69:                                               ; preds = %.lr.ph, %69
  %.036 = phi float [ %60, %.lr.ph ], [ %73, %69 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %70 = fptosi float %.036 to i32
  %71 = call noundef i64 @_ZN5World20ChunkCoordsToHashKeyEii(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %63, i32 noundef %70)
  store i64 %71, ptr %13, align 8, !tbaa !20
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEEixEOl(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @_ZNSt6vectorIP8ParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %73 = fadd float %.036, 1.000000e+00
  %74 = load i32, ptr %7, align 4, !tbaa !16
  %75 = sitofp i32 %74 to float
  %76 = fcmp ugt float %73, %75
  br i1 %76, label %._crit_edge.loopexit, label %69, !llvm.loop !22
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIlSt6vectorIP8ParticleSaIS2_EESt4hashIlESt8equal_toIlESaISt4pairIKlS4_EEEixEOl(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP8ParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !13, i64 8}
!10 = !{!"_ZTS8Particle", !11, i64 0, !12, i64 4, !12, i64 12, !13, i64 20, !13, i64 24, !13, i64 28, !12, i64 32, !7, i64 40}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS4vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!10, !13, i64 24}
!15 = !{!10, !13, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass