Recognizer for vl-parsed-portdecl-head structures.
(vl-parsed-portdecl-head-p x) → *
Function:
(defun vl-parsed-portdecl-head-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-parsed-portdecl-head-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-parsed-portdecl-head) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x)))) (b* ((nettype (std::prod-car (std::prod-car (cdr x)))) (var-p (std::prod-cdr (std::prod-car (cdr x)))) (explicit-p (std::prod-car (std::prod-cdr (cdr x)))) (implicit-p (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (type (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (vl-maybe-nettypename-p nettype) (booleanp var-p) (booleanp explicit-p) (booleanp implicit-p) (vl-datatype-p type))))))
Theorem:
(defthm consp-when-vl-parsed-portdecl-head-p (implies (vl-parsed-portdecl-head-p x) (consp x)) :rule-classes :compound-recognizer)