; LLVM IR from yangfengzzz/Arche-webgpu :: vox.geometry (point_hash_grid_searcher2)

; 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.vox::Point" = type { i64, i64 }
%"class.vox::PointHashGridSearcher2" = type { %"class.vox::PointNeighborSearcher2", double, %"struct.vox::Point", %"class.std::vector", %"class.std::vector.0" }
%"class.vox::PointNeighborSearcher2" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<vox::Point<double, 2>, std::allocator<vox::Point<double, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<vox::Point<double, 2>, std::allocator<vox::Point<double, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<vox::Point<double, 2>, std::allocator<vox::Point<double, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vox::Point<double, 2>, std::allocator<vox::Point<double, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned long>, std::allocator<std::vector<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vox::Point.5" = type { 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 void @_ZNK3vox22PointHashGridSearcher213getNearbyKeysERKNS_5PointIdLm2EEEPm(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.vox::Point", align 8
  %8 = alloca [4 x %"struct.vox::Point"], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK3vox22PointHashGridSearcher214getBucketIndexERKNS_5PointIdLm2EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %7, ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #3
  %16 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i32 0, i32 0
  %17 = getelementptr inbounds %"struct.vox::Point", ptr %16, i64 4
  br label %18

18:                                               ; preds = %18, %3
  %19 = phi ptr [ %16, %3 ], [ %20, %18 ]
  call void @_ZN3vox5PointIlLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %20 = getelementptr inbounds %"struct.vox::Point", ptr %19, i64 1
  %21 = icmp eq ptr %20, %17
  br i1 %21, label %22, label %18

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr %8, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %23, i64 0, i64 0
  store ptr %24, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %25, i64 0, i64 0
  %27 = getelementptr inbounds %"struct.vox::Point", ptr %26, i64 4
  store ptr %27, ptr %11, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %37, %22
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = icmp ne ptr %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %40

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %34, ptr %12, align 8, !tbaa !5
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %37

37:                                               ; preds = %33
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.vox::Point", ptr %38, i32 1
  store ptr %39, ptr %10, align 8, !tbaa !5
  br label %28

40:                                               ; preds = %32
  %41 = getelementptr inbounds %"struct.vox::Point", ptr %7, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = sitofp i64 %42 to float
  %44 = fadd float %43, 5.000000e-01
  %45 = fpext float %44 to double
  %46 = getelementptr inbounds %"class.vox::PointHashGridSearcher2", ptr %14, i32 0, i32 1
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = fmul double %45, %47
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.vox::Point.5", ptr %49, i32 0, i32 0
  %51 = load double, ptr %50, align 8, !tbaa !24
  %52 = fcmp ole double %48, %51
  br i1 %52, label %53, label %62

53:                                               ; preds = %40
  %54 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 2
  %55 = getelementptr inbounds %"struct.vox::Point", ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 16, !tbaa !9
  %57 = add nsw i64 %56, 1
  store i64 %57, ptr %55, align 16, !tbaa !9
  %58 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 3
  %59 = getelementptr inbounds %"struct.vox::Point", ptr %58, i32 0, i32 0
  %60 = load i64, ptr %59, align 16, !tbaa !9
  %61 = add nsw i64 %60, 1
  store i64 %61, ptr %59, align 16, !tbaa !9
  br label %71

62:                                               ; preds = %40
  %63 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 2
  %64 = getelementptr inbounds %"struct.vox::Point", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 16, !tbaa !9
  %66 = sub nsw i64 %65, 1
  store i64 %66, ptr %64, align 16, !tbaa !9
  %67 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 3
  %68 = getelementptr inbounds %"struct.vox::Point", ptr %67, i32 0, i32 0
  %69 = load i64, ptr %68, align 16, !tbaa !9
  %70 = sub nsw i64 %69, 1
  store i64 %70, ptr %68, align 16, !tbaa !9
  br label %71

71:                                               ; preds = %62, %53
  %72 = getelementptr inbounds %"struct.vox::Point", ptr %7, i32 0, i32 1
  %73 = load i64, ptr %72, align 8, !tbaa !26
  %74 = sitofp i64 %73 to float
  %75 = fadd float %74, 5.000000e-01
  %76 = fpext float %75 to double
  %77 = getelementptr inbounds %"class.vox::PointHashGridSearcher2", ptr %14, i32 0, i32 1
  %78 = load double, ptr %77, align 8, !tbaa !12
  %79 = fmul double %76, %78
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.vox::Point.5", ptr %80, i32 0, i32 1
  %82 = load double, ptr %81, align 8, !tbaa !27
  %83 = fcmp ole double %79, %82
  br i1 %83, label %84, label %93

84:                                               ; preds = %71
  %85 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 1
  %86 = getelementptr inbounds %"struct.vox::Point", ptr %85, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !26
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %86, align 8, !tbaa !26
  %89 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 3
  %90 = getelementptr inbounds %"struct.vox::Point", ptr %89, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !26
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %90, align 8, !tbaa !26
  br label %102

93:                                               ; preds = %71
  %94 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 1
  %95 = getelementptr inbounds %"struct.vox::Point", ptr %94, i32 0, i32 1
  %96 = load i64, ptr %95, align 8, !tbaa !26
  %97 = sub nsw i64 %96, 1
  store i64 %97, ptr %95, align 8, !tbaa !26
  %98 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 3
  %99 = getelementptr inbounds %"struct.vox::Point", ptr %98, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !26
  %101 = sub nsw i64 %100, 1
  store i64 %101, ptr %99, align 8, !tbaa !26
  br label %102

102:                                              ; preds = %93, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !28
  br label %103

103:                                              ; preds = %116, %102
  %104 = load i32, ptr %13, align 4, !tbaa !28
  %105 = icmp slt i32 %104, 4
  br i1 %105, label %107, label %106

106:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %119

107:                                              ; preds = %103
  %108 = load i32, ptr %13, align 4, !tbaa !28
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4 x %"struct.vox::Point"], ptr %8, i64 0, i64 %109
  %111 = call noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 8 dereferenceable(16) %110)
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load i32, ptr %13, align 4, !tbaa !28
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i64, ptr %112, i64 %114
  store i64 %111, ptr %115, align 8, !tbaa !30
  br label %116

116:                                              ; preds = %107
  %117 = load i32, ptr %13, align 4, !tbaa !28
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %13, align 4, !tbaa !28
  br label %103, !llvm.loop !31

119:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox22PointHashGridSearcher214getBucketIndexERKNS_5PointIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Point") align 8, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 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 = { 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, !11, i64 0}
!10 = !{!"_ZTSN3vox5PointIlLm2EEE", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !15, i64 8}
!13 = !{!"_ZTSN3vox22PointHashGridSearcher2E", !14, i64 0, !15, i64 8, !10, i64 16, !16, i64 32, !20, i64 56}
!14 = !{!"_ZTSN3vox22PointNeighborSearcher2E"}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN3vox5PointIdLm2EEESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN3vox5PointIdLm2EEESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3vox5PointIdLm2EEESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3vox5PointIdLm2EEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIS_ImSaImEESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt6vectorImSaImEESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorImSaImEESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt6vectorImSaImEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTSN3vox5PointIdLm2EEE", !15, i64 0, !15, i64 8}
!26 = !{!10, !11, i64 8}
!27 = !{!25, !15, i64 8}
!28 = !{!29, !29, i64 0}
!29 = !{!"int", !7, i64 0}
!30 = !{!11, !11, 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"

%"struct.vox::Point" = type { i64, i64 }

; 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 void @_ZNK3vox22PointHashGridSearcher213getNearbyKeysERKNS_5PointIdLm2EEEPm(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 align 2 {
.preheader.preheader:
  %3 = alloca %"struct.vox::Point", align 16
  %4 = alloca [4 x %"struct.vox::Point"], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @_ZNK3vox22PointHashGridSearcher214getBucketIndexERKNS_5PointIdLm2EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %3, ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #3
  call void @_ZN3vox5PointIlLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.ptr.1 = getelementptr inbounds i8, ptr %4, i64 16
  call void @_ZN3vox5PointIlLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %4, i64 32
  call void @_ZN3vox5PointIlLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %4, i64 48
  call void @_ZN3vox5PointIlLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.3)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.3, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load <2 x double>, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  %12 = load <2 x i64>, ptr %3, align 16, !tbaa !5
  %13 = sitofp <2 x i64> %12 to <2 x float>
  %14 = fadd <2 x float> %13, <float 5.000000e-01, float 5.000000e-01>
  %15 = fpext <2 x float> %14 to <2 x double>
  %16 = shufflevector <2 x double> %10, <2 x double> poison, <2 x i32> zeroinitializer
  %17 = fmul <2 x double> %16, %15
  %18 = load <2 x double>, ptr %1, align 8, !tbaa !9
  %19 = fcmp ugt <2 x double> %17, %18
  %20 = select <2 x i1> %19, <2 x i64> <i64 -1, i64 -1>, <2 x i64> <i64 1, i64 1>
  %21 = shufflevector <2 x i64> %20, <2 x i64> poison, <2 x i32> <i32 1, i32 0>
  %22 = load <2 x i64>, ptr %11, align 8, !tbaa !5
  %23 = add nsw <2 x i64> %22, %21
  store <2 x i64> %23, ptr %11, align 8, !tbaa !5
  %24 = load <2 x i64>, ptr %.ptr.3, align 16, !tbaa !5
  %25 = add nsw <2 x i64> %24, %20
  store <2 x i64> %25, ptr %.ptr.3, align 16, !tbaa !5
  %26 = call noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
  store i64 %26, ptr %2, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %.ptr.1)
  %28 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %27, ptr %28, align 8, !tbaa !5
  %29 = call noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %.ptr.2)
  %30 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 %29, ptr %30, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(16) %.ptr.3)
  %32 = getelementptr inbounds i8, ptr %2, i64 24
  store i64 %31, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox22PointHashGridSearcher214getBucketIndexERKNS_5PointIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Point") align 8, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3vox22PointHashGridSearcher225getHashKeyFromBucketIndexERKNS_5PointIlLm2EEE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox5PointIlLm2EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass