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

; 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.vox::Point" = type { double, double }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.vox::CustomImplicitSurface2" = type <{ %"class.vox::ImplicitSurface2.base", [7 x i8], %"class.std::function", %"struct.vox::BoundingBox", double, double, i32, [4 x i8] }>
%"class.vox::ImplicitSurface2.base" = type { %"class.vox::Surface2.base" }
%"class.vox::Surface2.base" = type <{ ptr, %"class.vox::Transform2", i8 }>
%"class.vox::Transform2" = type { %"struct.vox::Vector", double, double, double }
%"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 } }
%"struct.vox::BoundingBox" = type { %"struct.vox::Point", %"struct.vox::Point" }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox22CustomImplicitSurface213gradientLocalERKNS_5PointIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca %"struct.vox::Point", align 8
  %9 = alloca %"struct.vox::Vector", align 8
  %10 = alloca double, align 8
  %11 = alloca %"struct.vox::Point", align 8
  %12 = alloca %"struct.vox::Vector", align 8
  %13 = alloca double, align 8
  %14 = alloca %"struct.vox::Point", align 8
  %15 = alloca %"struct.vox::Vector", align 8
  %16 = alloca double, align 8
  %17 = alloca %"struct.vox::Point", align 8
  %18 = alloca %"struct.vox::Vector", align 8
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [2 x double], 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
  %21 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %22 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %24 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 4
  %25 = load double, ptr %24, align 8, !tbaa !9
  %26 = fmul double 5.000000e-01, %25
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef %26, double noundef 0.000000e+00)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %27 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  store double %27, ptr %7, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %28 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  %30 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 4
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = fmul double 5.000000e-01, %31
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %32, double noundef 0.000000e+00)
  call void @_ZN3voxplIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %33 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  store double %33, ptr %10, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %34 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  %36 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 4
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = fmul double 5.000000e-01, %37
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef 0.000000e+00, double noundef %38)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %39 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  store double %39, ptr %13, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %40 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %42 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 4
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fmul double 5.000000e-01, %43
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 0.000000e+00, double noundef %44)
  call void @_ZN3voxplIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %45 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  store double %45, ptr %16, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %46 = load double, ptr %10, align 8, !tbaa !22
  %47 = load double, ptr %7, align 8, !tbaa !22
  %48 = fsub double %46, %47
  %49 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 4
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fdiv double %48, %50
  store double %51, ptr %20, align 8, !tbaa !22
  %52 = getelementptr inbounds double, ptr %20, i64 1
  %53 = load double, ptr %16, align 8, !tbaa !22
  %54 = load double, ptr %13, align 8, !tbaa !22
  %55 = fsub double %53, %54
  %56 = getelementptr inbounds %"class.vox::CustomImplicitSurface2", ptr %21, i32 0, i32 4
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = fdiv double %55, %57
  store double %58, ptr %52, align 8, !tbaa !22
  %59 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %59, align 8, !tbaa !23
  %60 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 2, ptr %60, align 8, !tbaa !26
  call void @_ZN3vox6VectorIdLm2EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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

; 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 noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox6VectorIdLm2EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #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, !15, i64 120}
!10 = !{!"_ZTSN3vox22CustomImplicitSurface2E", !11, i64 0, !17, i64 56, !19, i64 88, !15, i64 120, !15, i64 128, !21, i64 136}
!11 = !{!"_ZTSN3vox16ImplicitSurface2E", !12, i64 0}
!12 = !{!"_ZTSN3vox8Surface2E", !13, i64 8, !16, i64 48}
!13 = !{!"_ZTSN3vox10Transform2IdEE", !14, i64 0, !15, i64 16, !15, i64 24, !15, i64 32}
!14 = !{!"_ZTSN3vox6VectorIdLm2EEE", !15, i64 0, !15, i64 8}
!15 = !{!"double", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm2EEEEE", !18, i64 0, !6, i64 24}
!18 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!19 = !{!"_ZTSN3vox11BoundingBoxIdLm2EEE", !20, i64 0, !20, i64 16}
!20 = !{!"_ZTSN3vox5PointIdLm2EEE", !15, i64 0, !15, i64 8}
!21 = !{!"int", !7, i64 0}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !25, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!24, !25, i64 8}


; 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.vox::Point" = type { double, double }
%"class.std::initializer_list" = type { ptr, 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 uwtable
define dso_local void @_ZNK3vox22CustomImplicitSurface213gradientLocalERKNS_5PointIdLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(144) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"struct.vox::Point", align 8
  %5 = alloca %"struct.vox::Vector", align 8
  %6 = alloca %"struct.vox::Point", align 8
  %7 = alloca %"struct.vox::Vector", align 8
  %8 = alloca %"struct.vox::Point", align 8
  %9 = alloca %"struct.vox::Vector", align 8
  %10 = alloca %"struct.vox::Point", align 8
  %11 = alloca %"struct.vox::Vector", align 8
  %12 = alloca %"class.std::initializer_list", align 8
  %13 = alloca [2 x double], align 16
  %14 = getelementptr inbounds i8, ptr %1, i64 56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  %15 = getelementptr inbounds i8, ptr %1, i64 120
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = fmul double %16, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %17, double noundef 0.000000e+00)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %18 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  %19 = load double, ptr %15, align 8, !tbaa !5
  %20 = fmul double %19, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %20, double noundef 0.000000e+00)
  call void @_ZN3voxplIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %21 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  %22 = load double, ptr %15, align 8, !tbaa !5
  %23 = fmul double %22, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 0.000000e+00, double noundef %23)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %24 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %25 = load double, ptr %15, align 8, !tbaa !5
  %26 = fmul double %25, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef %26)
  call void @_ZN3voxplIdEENS_5PointIT_Lm2EEERKS3_RKNS_6VectorIS2_Lm2EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %27 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  %28 = load <2 x double>, ptr %15, align 8
  %29 = insertelement <2 x double> poison, double %21, i64 0
  %30 = insertelement <2 x double> %29, double %27, i64 1
  %31 = insertelement <2 x double> poison, double %18, i64 0
  %32 = insertelement <2 x double> %31, double %24, i64 1
  %33 = fsub <2 x double> %30, %32
  %34 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> zeroinitializer
  %35 = fdiv <2 x double> %33, %34
  store <2 x double> %35, ptr %13, align 16, !tbaa !21
  store ptr %13, ptr %12, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 2, ptr %36, align 8, !tbaa !25
  call void @_ZN3vox6VectorIdLm2EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  ret void
}

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

; 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 noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox6VectorIdLm2EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) 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, !11, i64 120}
!6 = !{!"_ZTSN3vox22CustomImplicitSurface2E", !7, i64 0, !15, i64 56, !18, i64 88, !11, i64 120, !11, i64 128, !20, i64 136}
!7 = !{!"_ZTSN3vox16ImplicitSurface2E", !8, i64 0}
!8 = !{!"_ZTSN3vox8Surface2E", !9, i64 8, !14, i64 48}
!9 = !{!"_ZTSN3vox10Transform2IdEE", !10, i64 0, !11, i64 16, !11, i64 24, !11, i64 32}
!10 = !{!"_ZTSN3vox6VectorIdLm2EEE", !11, i64 0, !11, i64 8}
!11 = !{!"double", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm2EEEEE", !16, i64 0, !17, i64 24}
!16 = !{!"_ZTSSt14_Function_base", !12, i64 0, !17, i64 16}
!17 = !{!"any pointer", !12, i64 0}
!18 = !{!"_ZTSN3vox11BoundingBoxIdLm2EEE", !19, i64 0, !19, i64 16}
!19 = !{!"_ZTSN3vox5PointIdLm2EEE", !11, i64 0, !11, i64 8}
!20 = !{!"int", !12, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !17, i64 0}
!23 = !{!"_ZTSSt16initializer_listIdE", !17, i64 0, !24, i64 8}
!24 = !{!"long", !12, i64 0}
!25 = !{!23, !24, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,VectorCombinePass