Recognizer for vl-parsed-ports structures.
(vl-parsed-ports-p x) → *
Function:
(defun vl-parsed-ports-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-parsed-ports-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :ansi)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((decls (std::da-nth 0 (cdr x)))) (vl-ansi-portdecllist-p decls)))) (t (and (eq (car x) :nonansi) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((ports (std::da-nth 0 (cdr x)))) (vl-portlist-p ports))))))))
Theorem:
(defthm consp-when-vl-parsed-ports-p (implies (vl-parsed-ports-p x) (consp x)) :rule-classes :compound-recognizer)