Recognizer for vl-modport-port structures.
(vl-modport-port-p x) → *
Function:
(defun vl-modport-port-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-modport-port-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(name dir expr atts loc))) :exec (fty::alist-with-carsp x '(name dir expr atts loc))) (b* ((name (cdr (std::da-nth 0 x))) (dir (cdr (std::da-nth 1 x))) (expr (cdr (std::da-nth 2 x))) (atts (cdr (std::da-nth 3 x))) (loc (cdr (std::da-nth 4 x)))) (and (stringp name) (vl-direction-p dir) (vl-maybe-expr-p expr) (vl-atts-p atts) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-modport-port-p (implies (vl-modport-port-p x) (consp x)) :rule-classes :compound-recognizer)