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