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

; 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::CustomScalarField2" = type { %"class.vox::ScalarField2", %"class.std::function", %"class.std::function.0", %"class.std::function", double }
%"class.vox::ScalarField2" = type { %"class.vox::Field2" }
%"class.vox::Field2" = 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 @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox18CustomScalarField28gradientERKNS_5PointIdLm2EEE(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(16) %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 %"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
  %22 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 2
  %23 = call noundef zeroext i1 @_ZNKSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #3
  br i1 %23, label %24, label %27

24:                                               ; preds = %3
  %25 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 2
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNKSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEclES6_(ptr dead_on_unwind writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  br label %67

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %28 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %30 = getelementptr inbounds %"class.vox::CustomScalarField2", 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) %9, double noundef %32, 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) %29, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %33 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %28, 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 %33, ptr %7, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %34 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  %36 = getelementptr inbounds %"class.vox::CustomScalarField2", 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) %12, double noundef %38, 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) %35, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %39 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %34, 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 %39, ptr %10, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %40 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  %42 = getelementptr inbounds %"class.vox::CustomScalarField2", 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) %15, double noundef 0.000000e+00, double noundef %44)
  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) %41, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %45 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %40, 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 %45, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %46 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %48 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 4
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fmul double 5.000000e-01, %49
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef 0.000000e+00, double noundef %50)
  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) %47, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %51 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %46, 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 %51, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %52 = load double, ptr %10, align 8, !tbaa !17
  %53 = load double, ptr %7, align 8, !tbaa !17
  %54 = fsub double %52, %53
  %55 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 4
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = fdiv double %54, %56
  store double %57, ptr %20, align 8, !tbaa !17
  %58 = getelementptr inbounds double, ptr %20, i64 1
  %59 = load double, ptr %16, align 8, !tbaa !17
  %60 = load double, ptr %13, align 8, !tbaa !17
  %61 = fsub double %59, %60
  %62 = getelementptr inbounds %"class.vox::CustomScalarField2", ptr %21, i32 0, i32 4
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = fdiv double %61, %63
  store double %64, ptr %58, align 8, !tbaa !17
  %65 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %65, align 8, !tbaa !18
  %66 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 2, ptr %66, align 8, !tbaa !21
  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
  br label %67

67:                                               ; preds = %27, %24
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEclES6_(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(16)) #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_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)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), 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_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)) #0

; 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 #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 = !{!"_ZTSN3vox18CustomScalarField2E", !11, i64 0, !13, i64 8, !15, i64 40, !13, i64 72, !16, i64 104}
!11 = !{!"_ZTSN3vox12ScalarField2E", !12, i64 0}
!12 = !{!"_ZTSN3vox6Field2E"}
!13 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm2EEEEE", !14, i64 0, !6, i64 24}
!14 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!15 = !{!"_ZTSSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEE", !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 }
%"struct.vox::Point" = type { double, double }
%"class.std::initializer_list" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(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 @_ZNK3vox18CustomScalarField28gradientERKNS_5PointIdLm2EEE(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(16) %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 %"class.std::initializer_list", align 8
  %13 = alloca [2 x double], align 16
  %14 = getelementptr inbounds i8, ptr %1, i64 40
  %15 = tail call noundef zeroext i1 @_ZNKSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #3
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  tail call void @_ZNKSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEclES6_(ptr dead_on_unwind writable sret(%"struct.vox::Vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %2)
  br label %42

17:                                               ; preds = %3
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  %19 = getelementptr inbounds i8, ptr %1, i64 104
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fmul double %20, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %21, 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)
  %22 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %18, 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
  %23 = load double, ptr %19, align 8, !tbaa !5
  %24 = fmul double %23, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %24, 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)
  %25 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %18, 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
  %26 = load double, ptr %19, align 8, !tbaa !5
  %27 = fmul double %26, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 0.000000e+00, double noundef %27)
  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)
  %28 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %18, 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
  %29 = load double, ptr %19, align 8, !tbaa !5
  %30 = fmul double %29, 5.000000e-01
  call void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef %30)
  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)
  %31 = call noundef double @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEclES4_(ptr noundef nonnull align 8 dereferenceable(32) %18, 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
  %32 = load double, ptr %19, align 8, !tbaa !5
  %33 = insertelement <2 x double> poison, double %25, i64 0
  %34 = insertelement <2 x double> %33, double %31, i64 1
  %35 = insertelement <2 x double> poison, double %22, i64 0
  %36 = insertelement <2 x double> %35, double %28, i64 1
  %37 = fsub <2 x double> %34, %36
  %38 = insertelement <2 x double> poison, double %32, i64 0
  %39 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> zeroinitializer
  %40 = fdiv <2 x double> %37, %39
  store <2 x double> %40, ptr %13, align 16, !tbaa !16
  store ptr %13, ptr %12, align 8, !tbaa !17
  %41 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 2, ptr %41, align 8, !tbaa !20
  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
  br label %42

42:                                               ; preds = %17, %16
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEclES6_(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(16)) 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_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 #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), 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_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 #0

; 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 #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 = !{!"_ZTSN3vox18CustomScalarField2E", !7, i64 0, !9, i64 8, !14, i64 40, !9, i64 72, !15, i64 104}
!7 = !{!"_ZTSN3vox12ScalarField2E", !8, i64 0}
!8 = !{!"_ZTSN3vox6Field2E"}
!9 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm2EEEEE", !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 = !{!"_ZTSSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEE", !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