(vl-datatype-$unpacked_dimensions x) → *
Function:
(defun vl-datatype-$unpacked_dimensions (x) (declare (xargs :guard (vl-datatype-p x))) (declare (xargs :guard (vl-datatype-resolved-p x))) (let ((__function__ 'vl-datatype-$unpacked_dimensions)) (declare (ignorable __function__)) (+ (len (vl-datatype->udims x)) (if (consp (vl-datatype->pdims x)) 0 (vl-datatype-case x :vl-usertype (mbe :logic (if x.res (vl-datatype-$unpacked_dimensions x.res) 0) :exec (vl-datatype-$unpacked_dimensions x.res)) :otherwise 0)))))
Theorem:
(defthm vl-datatype-$unpacked_dimensions-of-vl-datatype-fix-x (equal (vl-datatype-$unpacked_dimensions (vl-datatype-fix x)) (vl-datatype-$unpacked_dimensions x)))
Theorem:
(defthm vl-datatype-$unpacked_dimensions-vl-datatype-equiv-congruence-on-x (implies (vl-datatype-equiv x x-equiv) (equal (vl-datatype-$unpacked_dimensions x) (vl-datatype-$unpacked_dimensions x-equiv))) :rule-classes :congruence)