Recognizer for ports whose expressions are well-formed.
(vl-port-wellformed-p x) → *
Function:
(defun vl-port-wellformed-p (x) (declare (xargs :guard (vl-port-p x))) (let ((__function__ 'vl-port-wellformed-p)) (declare (ignorable __function__)) (b* ((x (vl-port-fix x))) (or (eq (tag x) :vl-interfaceport) (vl-maybe-portexpr-p (vl-regularport->expr x))))))
Theorem:
(defthm vl-port-wellformed-p-of-vl-port-fix-x (equal (vl-port-wellformed-p (vl-port-fix x)) (vl-port-wellformed-p x)))
Theorem:
(defthm vl-port-wellformed-p-vl-port-equiv-congruence-on-x (implies (vl-port-equiv x x-equiv) (equal (vl-port-wellformed-p x) (vl-port-wellformed-p x-equiv))) :rule-classes :congruence)