(vl-seltrace-index-count x) → count
Function:
(defun vl-seltrace-index-count (x) (declare (xargs :guard (vl-seltrace-p x))) (let ((__function__ 'vl-seltrace-index-count)) (declare (ignorable __function__)) (if (atom x) 0 (+ (b* (((vl-selstep x1) (car x))) (vl-select-case x1.select :field 0 :index 1)) (vl-seltrace-index-count (cdr x))))))
Theorem:
(defthm natp-of-vl-seltrace-index-count (b* ((count (vl-seltrace-index-count x))) (natp count)) :rule-classes :type-prescription)
Theorem:
(defthm vl-seltrace-index-count-of-vl-seltrace-fix-x (equal (vl-seltrace-index-count (vl-seltrace-fix x)) (vl-seltrace-index-count x)))
Theorem:
(defthm vl-seltrace-index-count-vl-seltrace-equiv-congruence-on-x (implies (vl-seltrace-equiv x x-equiv) (equal (vl-seltrace-index-count x) (vl-seltrace-index-count x-equiv))) :rule-classes :congruence)