(vl-expr-val-alist-max-count x) → *
Function:
(defun vl-expr-val-alist-max-count (x) (declare (xargs :guard (vl-expr-val-alist-p x))) (let ((__function__ 'vl-expr-val-alist-max-count)) (declare (ignorable __function__)) (b* ((x (vl-expr-val-alist-fix x))) (if (atom x) 0 (max (vl-expr-count (cdar x)) (vl-expr-val-alist-max-count (cdr x)))))))
Theorem:
(defthm vl-expr-val-alist-max-count-of-vl-expr-val-alist-fix-x (equal (vl-expr-val-alist-max-count (vl-expr-val-alist-fix x)) (vl-expr-val-alist-max-count x)))
Theorem:
(defthm vl-expr-val-alist-max-count-vl-expr-val-alist-equiv-congruence-on-x (implies (vl-expr-val-alist-equiv x x-equiv) (equal (vl-expr-val-alist-max-count x) (vl-expr-val-alist-max-count x-equiv))) :rule-classes :congruence)