; LLVM IR from yangfengzzz/Arche-webgpu :: vox.geometry/scalar_grid2.ll (ZNK3vox11ScalarGrid28gradientERKNS_5PointIdLm2EEE)

; 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::Vector" = type { double, double }
%"struct.std::array" = type { [4 x %"struct.vox::Point.0"] }
%"struct.vox::Point.0" = type { i64, i64 }
%"struct.std::array.1" = type { [4 x double] }
%"class.vox::ScalarGrid2" = type { %"class.vox::ScalarField2", %"class.vox::Grid2", %"class.vox::Array", %"class.vox::LinearArraySampler", %"class.std::function" }
%"class.vox::ScalarField2" = type { %"class.vox::Field2" }
%"class.vox::Field2" = type { ptr }
%"class.vox::Grid2" = type { ptr, %"struct.vox::Size2", %"struct.vox::Vector", %"struct.vox::Point", %"struct.vox::BoundingBox" }
%"struct.vox::Size2" = type { i64, i64 }
%"struct.vox::Point" = type { double, double }
%"struct.vox::BoundingBox" = type { %"struct.vox::Point", %"struct.vox::Point" }
%"class.vox::Array" = type { %"struct.vox::Size2", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.vox::LinearArraySampler" = type { %"struct.vox::Vector", %"struct.vox::Vector", %"struct.vox::Point", %"class.vox::ConstArrayAccessor" }
%"class.vox::ConstArrayAccessor" = type { %"struct.vox::Size2", ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

; 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
declare dso_local void @_ZNK3vox11ScalarGrid219gradientAtDataPointEmm(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(240), i64 noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox11ScalarGrid28gradientERKNS_5PointIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::array", align 8
  %8 = alloca %"struct.std::array.1", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.vox::Vector", align 8
  %11 = alloca %"struct.vox::Vector", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #5
  call void @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 32, i1 false)
  %13 = getelementptr inbounds %"class.vox::ScalarGrid2", ptr %12, i32 0, i32 3
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK3vox18LinearArraySamplerIddLm2EE24getCoordinatesAndWeightsERKNS_5PointIdLm2EEEPSt5arrayINS2_ImLm2EEELm4EEPS6_IdLm4EE(ptr noundef nonnull align 8 dereferenceable(72) %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %7, ptr noundef %8)
  call void @_ZN3vox6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %35, %3
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 4
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %38

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %21) #5
  %23 = load double, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %7, i64 noundef %25) #5
  %27 = getelementptr inbounds %"struct.vox::Point.0", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %7, i64 noundef %30) #5
  %32 = getelementptr inbounds %"struct.vox::Point.0", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !16
  call void @_ZNK3vox11ScalarGrid219gradientAtDataPointEmm(ptr dead_on_unwind writable sret(%"struct.vox::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(240) %12, i64 noundef %28, i64 noundef %33)
  call void @_ZN3voxmlIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind writable sret(%"struct.vox::Vector") align 8 %10, double noundef %23, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %35

35:                                               ; preds = %19
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %9, align 4, !tbaa !9
  br label %15, !llvm.loop !17

38:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox18LinearArraySamplerIddLm2EE24getCoordinatesAndWeightsERKNS_5PointIdLm2EEEPSt5arrayINS2_ImLm2EEELm4EEPS6_IdLm4EE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN3vox5PointImLm2EEE", !15, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"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::Vector" = type { double, double }
%"struct.std::array" = type { [4 x %"struct.vox::Point.0"] }
%"struct.vox::Point.0" = type { i64, i64 }
%"struct.std::array.1" = type { [4 x double] }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox11ScalarGrid28gradientERKNS_5PointIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #1 align 2 {
  %4 = alloca %"struct.std::array", align 8
  %5 = alloca %"struct.std::array.1", align 8
  %6 = alloca %"struct.vox::Vector", align 8
  %7 = alloca %"struct.vox::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #5
  call void @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 0, i64 32, i1 false)
  %8 = getelementptr inbounds i8, ptr %1, i64 136
  call void @_ZNK3vox18LinearArraySamplerIddLm2EE24getCoordinatesAndWeightsERKNS_5PointIdLm2EEEPSt5arrayINS2_ImLm2EEELm4EEPS6_IdLm4EE(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @_ZN3vox6VectorIdLm2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 0) #5
  %10 = load double, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 0) #5
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 0) #5
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load i64, ptr %14, align 8, !tbaa !12
  call void @_ZNK3vox11ScalarGrid219gradientAtDataPointEmm(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(240) %1, i64 noundef %12, i64 noundef %15)
  call void @_ZN3voxmlIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %6, double noundef %10, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 1) #5
  %18 = load double, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 1) #5
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 1) #5
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !12
  call void @_ZNK3vox11ScalarGrid219gradientAtDataPointEmm(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(240) %1, i64 noundef %20, i64 noundef %23)
  call void @_ZN3voxmlIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %6, double noundef %18, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 2) #5
  %26 = load double, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 2) #5
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 2) #5
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load i64, ptr %30, align 8, !tbaa !12
  call void @_ZNK3vox11ScalarGrid219gradientAtDataPointEmm(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(240) %1, i64 noundef %28, i64 noundef %31)
  call void @_ZN3voxmlIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %6, double noundef %26, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 3) #5
  %34 = load double, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 3) #5
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %4, i64 noundef 3) #5
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i64, ptr %38, align 8, !tbaa !12
  call void @_ZNK3vox11ScalarGrid219gradientAtDataPointEmm(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(240) %1, i64 noundef %36, i64 noundef %39)
  call void @_ZN3voxmlIdEENS_6VectorIT_Lm2EEES2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Vector") align 8 %6, double noundef %34, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox18LinearArraySamplerIddLm2EE24getCoordinatesAndWeightsERKNS_5PointIdLm2EEEPSt5arrayINS2_ImLm2EEELm4EEPS6_IdLm4EE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIN3vox5PointImLm2EEELm4EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN3vox6VectorIdLm2EEpLERKS1_(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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3vox5PointImLm2EEE", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass