; LLVM IR from yangfengzzz/DigitalVox3 :: vox.geometry/fields (custom_vector_field)

; 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"

%"class.vox::geometry::Matrix" = type { double, double }
%"class.vox::geometry::MatrixElemWiseBinaryOp" = type <{ ptr, ptr, [8 x i8] }>
%"class.vox::geometry::MatrixElemWiseBinaryOp.6" = type <{ ptr, ptr, [8 x i8] }>

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::Matrix") 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometrymiIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometryplIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp.6") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN3vox8geometry8internal4curlERKSt8functionIFNS0_6MatrixIdLm2ELm1EEERKS4_EES6_d(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.vox::geometry::Matrix", align 8
  %8 = alloca %"class.vox::geometry::Matrix", align 8
  %9 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %10 = alloca %"class.vox::geometry::Matrix", align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.vox::geometry::Matrix", align 8
  %14 = alloca %"class.vox::geometry::Matrix", align 8
  %15 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp.6", align 8
  %16 = alloca %"class.vox::geometry::Matrix", align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.vox::geometry::Matrix", align 8
  %20 = alloca %"class.vox::geometry::Matrix", align 8
  %21 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %22 = alloca %"class.vox::geometry::Matrix", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %"class.vox::geometry::Matrix", align 8
  %26 = alloca %"class.vox::geometry::Matrix", align 8
  %27 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp.6", align 8
  %28 = alloca %"class.vox::geometry::Matrix", align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #3
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %37 = load double, ptr %6, align 8, !tbaa !9
  %38 = fmul double 5.000000e-01, %37
  store double %38, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @_ZN3vox8geometrymiIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %9, ptr noundef nonnull align 1 dereferenceable(1) %36, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind writable sret(%"class.vox::geometry::Matrix") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %41 = load double, ptr %6, align 8, !tbaa !9
  %42 = fmul double 5.000000e-01, %41
  store double %42, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @_ZN3vox8geometryplIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp.6") align 8 %15, ptr noundef nonnull align 1 dereferenceable(1) %40, ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St4plusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind writable sret(%"class.vox::geometry::Matrix") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #3
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store double 0.000000e+00, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %45 = load double, ptr %6, align 8, !tbaa !9
  %46 = fmul double 5.000000e-01, %45
  store double %46, ptr %24, align 8, !tbaa !9
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @_ZN3vox8geometrymiIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %21, ptr noundef nonnull align 1 dereferenceable(1) %44, ptr noundef nonnull align 1 dereferenceable(1) %22)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind writable sret(%"class.vox::geometry::Matrix") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #3
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %49 = load double, ptr %6, align 8, !tbaa !9
  %50 = fmul double 5.000000e-01, %49
  store double %50, ptr %30, align 8, !tbaa !9
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
  call void @_ZN3vox8geometryplIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp.6") align 8 %27, ptr noundef nonnull align 1 dereferenceable(1) %48, ptr noundef nonnull align 1 dereferenceable(1) %28)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St4plusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind writable sret(%"class.vox::geometry::Matrix") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(16) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %51 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %19, i32 0, i32 0
  %52 = load double, ptr %51, align 8, !tbaa !11
  store double %52, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  %53 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %25, i32 0, i32 0
  %54 = load double, ptr %53, align 8, !tbaa !11
  store double %54, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %55 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 1
  %56 = load double, ptr %55, align 8, !tbaa !13
  store double %56, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %57 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %13, i32 0, i32 1
  %58 = load double, ptr %57, align 8, !tbaa !13
  store double %58, ptr %34, align 8, !tbaa !9
  %59 = load double, ptr %34, align 8, !tbaa !9
  %60 = load double, ptr %33, align 8, !tbaa !9
  %61 = fsub double %59, %60
  %62 = fmul double 5.000000e-01, %61
  %63 = load double, ptr %6, align 8, !tbaa !9
  %64 = fdiv double %62, %63
  %65 = load double, ptr %32, align 8, !tbaa !9
  %66 = load double, ptr %31, align 8, !tbaa !9
  %67 = fsub double %65, %66
  %68 = fmul double 5.000000e-01, %67
  %69 = load double, ptr %6, align 8, !tbaa !9
  %70 = fdiv double %68, %69
  %71 = fsub double %64, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  ret double %71
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN3vox8geometry6MatrixIdLm2ELm1EEE", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, 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"

%"class.vox::geometry::Matrix" = type { double, double }
%"class.vox::geometry::MatrixElemWiseBinaryOp" = type <{ ptr, ptr, [8 x i8] }>
%"class.vox::geometry::MatrixElemWiseBinaryOp.6" = type <{ ptr, ptr, [8 x i8] }>

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::Matrix") 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometrymiIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometryplIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp.6") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN3vox8geometry8internal4curlERKSt8functionIFNS0_6MatrixIdLm2ELm1EEERKS4_EES6_d(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, double noundef %2) local_unnamed_addr #0 {
  %4 = alloca %"class.vox::geometry::Matrix", align 16
  %5 = alloca %"class.vox::geometry::Matrix", align 8
  %6 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %7 = alloca %"class.vox::geometry::Matrix", align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %"class.vox::geometry::Matrix", align 16
  %11 = alloca %"class.vox::geometry::Matrix", align 8
  %12 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp.6", align 8
  %13 = alloca %"class.vox::geometry::Matrix", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.vox::geometry::Matrix", align 8
  %17 = alloca %"class.vox::geometry::Matrix", align 8
  %18 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %19 = alloca %"class.vox::geometry::Matrix", align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %"class.vox::geometry::Matrix", align 8
  %23 = alloca %"class.vox::geometry::Matrix", align 8
  %24 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp.6", align 8
  %25 = alloca %"class.vox::geometry::Matrix", align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 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
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %28 = fmul double %2, 5.000000e-01
  store double %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @_ZN3vox8geometrymiIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %6, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::Matrix") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #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
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  store double %28, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #3
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @_ZN3vox8geometryplIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp.6") align 8 %12, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St4plusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::Matrix") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #3
  store double 0.000000e+00, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #3
  store double %28, ptr %21, align 8, !tbaa !5
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @_ZN3vox8geometrymiIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %18, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) %19)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::Matrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #3
  store double 0.000000e+00, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #3
  store double %28, ptr %27, align 8, !tbaa !5
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
  call void @_ZN3vox8geometryplIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp.6") align 8 %24, ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 1 dereferenceable(1) %25)
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ILm2ELm1ENS0_22MatrixElemWiseBinaryOpIdLm2ELm1ERKS2_S6_St4plusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
  call void @_ZNKSt8functionIFN3vox8geometry6MatrixIdLm2ELm1EEERKS3_EEclES5_(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::Matrix") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #3
  %29 = load double, ptr %16, align 8, !tbaa !9
  %30 = load double, ptr %22, align 8, !tbaa !9
  %31 = load <2 x double>, ptr %4, align 16
  %32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %33 = load <2 x double>, ptr %10, align 16
  %34 = shufflevector <2 x double> %33, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %35 = insertelement <2 x double> %34, double %30, i64 1
  %36 = insertelement <2 x double> %32, double %29, i64 1
  %37 = fsub <2 x double> %35, %36
  %38 = fmul <2 x double> %37, <double 5.000000e-01, double 5.000000e-01>
  %39 = insertelement <2 x double> poison, double %2, i64 0
  %40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> zeroinitializer
  %41 = fdiv <2 x double> %38, %40
  %shift = shufflevector <2 x double> %41, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %42 = fsub <2 x double> %41, %shift
  %43 = extractelement <2 x double> %42, i64 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret double %43
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN3vox8geometry6MatrixIdLm2ELm1EEE", !6, i64 0, !6, i64 8}


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