Recognizer for vl-portdecl structures.
(vl-portdecl-p x) → *
Function:
(defun vl-portdecl-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-portdecl-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-portdecl) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (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* ((name (std::prod-car (std::prod-car (cdr x)))) (dir (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (nettype (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (type (std::prod-car (std::prod-cdr (cdr x)))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (loc (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (stringp name) (vl-direction-p dir) (vl-maybe-nettypename-p nettype) (vl-datatype-p type) (vl-atts-p atts) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-portdecl-p (implies (vl-portdecl-p x) (consp x)) :rule-classes :compound-recognizer)