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

; 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, double }
%"struct.vox::Point" = type { double, double, double }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.vox::CustomScalarField3" = type { %"class.vox::ScalarField3", %"class.std::function", %"class.std::function.0", %"class.std::function", double }
%"class.vox::ScalarField3" = type { %"class.vox::Field3" }
%"class.vox::Field3" = type { ptr }
%"class.std::function.0" = 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 } }
%"class.std::function" = type { %"class.std::_Function_base", ptr }

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox18CustomScalarField38gradientERKNS_5PointIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #0 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 double, align 8
  %20 = alloca %"struct.vox::Point", align 8
  %21 = alloca %"struct.vox::Vector", align 8
  %22 = alloca double, align 8
  %23 = alloca %"struct.vox::Point", align 8
  %24 = alloca %"struct.vox::Vector", align 8
  %25 = alloca %"class.std::initializer_list", align 8
  %26 = alloca [3 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
  %27 = load ptr, ptr %5, align 8
  %28 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 2
  %29 = call noundef zeroext i1 @_ZNKSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #3
  br i1 %29, label %30, label %33

30:                                               ; preds = %3
  %31 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 2
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNKSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEEclES6_(ptr dead_on_unwind writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(24) %32)
  br label %92

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %34 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #3
  %36 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = fmul double 5.000000e-01, %37
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %38, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %39 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(24) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  store double %39, ptr %7, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %40 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #3
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #3
  %42 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fmul double 5.000000e-01, %43
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %44, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %12)
  %45 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  store double %45, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %46 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  %48 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fmul double 5.000000e-01, %49
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %15, double noundef 0.000000e+00, double noundef %50, double noundef 0.000000e+00)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %51 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  store double %51, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %52 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #3
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #3
  %54 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = fmul double 5.000000e-01, %55
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef 0.000000e+00, double noundef %56, double noundef 0.000000e+00)
  call void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %18)
  %57 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #3
  store double %57, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %58 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #3
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #3
  %60 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = fmul double 5.000000e-01, %61
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %21, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %62)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(24) %21)
  %63 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #3
  store double %63, ptr %19, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %64 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #3
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #3
  %66 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = fmul double 5.000000e-01, %67
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %24, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %68)
  call void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::Point") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(24) %24)
  %69 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef nonnull align 8 dereferenceable(24) %23)
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #3
  store double %69, ptr %22, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #3
  %70 = load double, ptr %10, align 8, !tbaa !17
  %71 = load double, ptr %7, align 8, !tbaa !17
  %72 = fsub double %70, %71
  %73 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = fdiv double %72, %74
  store double %75, ptr %26, align 8, !tbaa !17
  %76 = getelementptr inbounds double, ptr %26, i64 1
  %77 = load double, ptr %16, align 8, !tbaa !17
  %78 = load double, ptr %13, align 8, !tbaa !17
  %79 = fsub double %77, %78
  %80 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fdiv double %79, %81
  store double %82, ptr %76, align 8, !tbaa !17
  %83 = getelementptr inbounds double, ptr %26, i64 2
  %84 = load double, ptr %22, align 8, !tbaa !17
  %85 = load double, ptr %19, align 8, !tbaa !17
  %86 = fsub double %84, %85
  %87 = getelementptr inbounds %"class.vox::CustomScalarField3", ptr %27, i32 0, i32 4
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = fdiv double %86, %88
  store double %89, ptr %83, align 8, !tbaa !17
  %90 = getelementptr inbounds %"class.std::initializer_list", ptr %25, i32 0, i32 0
  store ptr %26, ptr %90, align 8, !tbaa !18
  %91 = getelementptr inbounds %"class.std::initializer_list", ptr %25, i32 0, i32 1
  store i64 3, ptr %91, align 8, !tbaa !21
  call void @_ZN3vox6VectorIdLm3EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %25)
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %92

92:                                               ; preds = %33, %30
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEEclES6_(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox6VectorIdLm3EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !16, i64 104}
!10 = !{!"_ZTSN3vox18CustomScalarField3E", !11, i64 0, !13, i64 8, !15, i64 40, !13, i64 72, !16, i64 104}
!11 = !{!"_ZTSN3vox12ScalarField3E", !12, i64 0}
!12 = !{!"_ZTSN3vox6Field3E"}
!13 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm3EEEEE", !14, i64 0, !6, i64 24}
!14 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!15 = !{!"_ZTSSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEE", !14, i64 0, !6, i64 24}
!16 = !{!"double", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !20, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!19, !20, 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, double }
%"struct.vox::Point" = type { double, double, double }
%"class.std::initializer_list" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox18CustomScalarField38gradientERKNS_5PointIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #0 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 %"struct.vox::Point", align 8
  %13 = alloca %"struct.vox::Vector", align 8
  %14 = alloca %"struct.vox::Point", align 8
  %15 = alloca %"struct.vox::Vector", align 8
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [3 x double], align 16
  %18 = getelementptr inbounds i8, ptr %1, i64 40
  %19 = tail call noundef zeroext i1 @_ZNKSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #3
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  tail call void @_ZNKSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEEclES6_(ptr dead_on_unwind writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br label %55

21:                                               ; preds = %3
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  %23 = getelementptr inbounds i8, ptr %1, i64 104
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = fmul double %24, 5.000000e-01
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %25, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %5)
  %26 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  %27 = load double, ptr %23, align 8, !tbaa !5
  %28 = fmul double %27, 5.000000e-01
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef %28, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %29 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  %30 = load double, ptr %23, align 8, !tbaa !5
  %31 = fmul double %30, 5.000000e-01
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef 0.000000e+00, double noundef %31, double noundef 0.000000e+00)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %32 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #3
  %33 = load double, ptr %23, align 8, !tbaa !5
  %34 = fmul double %33, 5.000000e-01
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef 0.000000e+00, double noundef %34, double noundef 0.000000e+00)
  call void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %35 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #3
  %36 = load double, ptr %23, align 8, !tbaa !5
  %37 = fmul double %36, 5.000000e-01
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %13, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %37)
  call void @_ZN3voxmiIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
  %38 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #3
  %39 = load double, ptr %23, align 8, !tbaa !5
  %40 = fmul double %39, 5.000000e-01
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %15, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %40)
  call void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::Point") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %41 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm3EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #3
  %42 = load double, ptr %23, align 8, !tbaa !5
  %43 = insertelement <2 x double> poison, double %29, i64 0
  %44 = insertelement <2 x double> %43, double %35, i64 1
  %45 = insertelement <2 x double> poison, double %26, i64 0
  %46 = insertelement <2 x double> %45, double %32, i64 1
  %47 = fsub <2 x double> %44, %46
  %48 = insertelement <2 x double> poison, double %42, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = fdiv <2 x double> %47, %49
  store <2 x double> %50, ptr %17, align 16, !tbaa !16
  %51 = getelementptr inbounds i8, ptr %17, i64 16
  %52 = fsub double %41, %38
  %53 = fdiv double %52, %42
  store double %53, ptr %51, align 16, !tbaa !16
  store ptr %17, ptr %16, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %16, i64 8
  store i64 3, ptr %54, align 8, !tbaa !20
  call void @_ZN3vox6VectorIdLm3EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #3
  br label %55

55:                                               ; preds = %21, %20
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) 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) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox6VectorIdLm3EEC2IdEERKSt16initializer_listIT_E(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !15, i64 104}
!6 = !{!"_ZTSN3vox18CustomScalarField3E", !7, i64 0, !9, i64 8, !14, i64 40, !9, i64 72, !15, i64 104}
!7 = !{!"_ZTSN3vox12ScalarField3E", !8, i64 0}
!8 = !{!"_ZTSN3vox6Field3E"}
!9 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm3EEEEE", !10, i64 0, !13, i64 24}
!10 = !{!"_ZTSSt14_Function_base", !11, i64 0, !13, i64 16}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSSt8functionIFN3vox6VectorIdLm3EEERKNS0_5PointIdLm3EEEEE", !10, i64 0, !13, i64 24}
!15 = !{!"double", !11, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!18, !13, i64 0}
!18 = !{!"_ZTSSt16initializer_listIdE", !13, i64 0, !19, i64 8}
!19 = !{!"long", !11, i64 0}
!20 = !{!18, !19, i64 8}


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