Recognizer for vl-ansi-portdecl structures.
(vl-ansi-portdecl-p x) → *
Function:
(defun vl-ansi-portdecl-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-ansi-portdecl-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-ansi-portdecl) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(name loc dir typename type pdims udims nettype varp modport signedness atts))) :exec (fty::alist-with-carsp (cdr x) '(name loc dir typename type pdims udims nettype varp modport signedness atts))) (b* ((name (cdr (std::da-nth 0 (cdr x)))) (loc (cdr (std::da-nth 1 (cdr x)))) (dir (cdr (std::da-nth 2 (cdr x)))) (typename (cdr (std::da-nth 3 (cdr x)))) (type (cdr (std::da-nth 4 (cdr x)))) (pdims (cdr (std::da-nth 5 (cdr x)))) (udims (cdr (std::da-nth 6 (cdr x)))) (nettype (cdr (std::da-nth 7 (cdr x)))) (varp (cdr (std::da-nth 8 (cdr x)))) (modport (cdr (std::da-nth 9 (cdr x)))) (signedness (cdr (std::da-nth 10 (cdr x)))) (atts (cdr (std::da-nth 11 (cdr x))))) (and (stringp name) (vl-location-p loc) (vl-maybe-direction-p dir) (maybe-stringp typename) (vl-maybe-datatype-p type) (vl-dimensionlist-p pdims) (vl-dimensionlist-p udims) (vl-maybe-nettypename-p nettype) (booleanp varp) (maybe-stringp modport) (vl-maybe-exprsign-p signedness) (vl-atts-p atts))))))
Theorem:
(defthm consp-when-vl-ansi-portdecl-p (implies (vl-ansi-portdecl-p x) (consp x)) :rule-classes :compound-recognizer)