Gather all top-level expressions from a vl-port-p.
(vl-port-allexprs x) → exprs
Function:
(defun vl-port-allexprs (x) (declare (xargs :guard (vl-port-p x))) (let ((__function__ 'vl-port-allexprs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (vl-port-fix x))) (b* ((x (vl-port-fix x))) (if (eq (tag x) :vl-interfaceport) (vl-packeddimensionlist-allexprs (vl-interfaceport->udims x)) (vl-maybe-expr-allexprs (vl-regularport->expr x))))) :exec (with-local-nrev (vl-port-allexprs-nrev x nrev)))))
Theorem:
(defthm vl-exprlist-p-of-vl-port-allexprs (b* ((exprs (vl-port-allexprs x))) (vl-exprlist-p exprs)) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-port-allexprs (true-listp (vl-port-allexprs x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-port-allexprs-nrev-removal (equal (vl-port-allexprs-nrev x nrev) (append nrev (vl-port-allexprs x))))
Theorem:
(defthm vl-port-allexprs-of-vl-port-fix-x (equal (vl-port-allexprs (vl-port-fix x)) (vl-port-allexprs x)))
Theorem:
(defthm vl-port-allexprs-vl-port-equiv-congruence-on-x (implies (vl-port-equiv x x-equiv) (equal (vl-port-allexprs x) (vl-port-allexprs x-equiv))) :rule-classes :congruence)