Gives the number of packed plus unpacked dimensions on a datatype.
(vl-datatype-dims-count x) → ndims
Function:
(defun vl-datatype-dims-count (x) (declare (xargs :guard (vl-datatype-p x))) (let ((__function__ 'vl-datatype-dims-count)) (declare (ignorable __function__)) (+ (len (vl-datatype->udims x)) (len (vl-datatype->pdims x)))))
Theorem:
(defthm natp-of-vl-datatype-dims-count (b* ((ndims (vl-datatype-dims-count x))) (natp ndims)) :rule-classes :type-prescription)
Theorem:
(defthm vl-datatype-dims-count-of-vl-datatype-fix-x (equal (vl-datatype-dims-count (vl-datatype-fix x)) (vl-datatype-dims-count x)))
Theorem:
(defthm vl-datatype-dims-count-vl-datatype-equiv-congruence-on-x (implies (vl-datatype-equiv x x-equiv) (equal (vl-datatype-dims-count x) (vl-datatype-dims-count x-equiv))) :rule-classes :congruence)