(vl-hidexpr-index-count x) → nunres
Function:
(defun vl-hidexpr-index-count (x) (declare (xargs :guard (vl-hidexpr-p x))) (let ((__function__ 'vl-hidexpr-index-count)) (declare (ignorable __function__)) (vl-hidexpr-case x :end 0 :dot (+ (len (vl-hidindex->indices x.first)) (vl-hidexpr-index-count x.rest)))))
Theorem:
(defthm natp-of-vl-hidexpr-index-count (b* ((nunres (vl-hidexpr-index-count x))) (natp nunres)) :rule-classes :type-prescription)
Theorem:
(defthm vl-hidexpr-index-count-of-vl-hidexpr-fix-x (equal (vl-hidexpr-index-count (vl-hidexpr-fix x)) (vl-hidexpr-index-count x)))
Theorem:
(defthm vl-hidexpr-index-count-vl-hidexpr-equiv-congruence-on-x (implies (vl-hidexpr-equiv x x-equiv) (equal (vl-hidexpr-index-count x) (vl-hidexpr-index-count x-equiv))) :rule-classes :congruence)