Recognizer for vl-vardecl structures.
(vl-vardecl-p x) → *
Function:
(defun vl-vardecl-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-vardecl-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-vardecl) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-car (std::prod-car (cdr x)))) (std::prod-consp (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-car (cdr x)))) (std::prod-consp (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (std::prod-consp (std::prod-cdr (cdr x))) (std::prod-consp (std::prod-car (std::prod-cdr (cdr x)))) (std::prod-consp (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x)))) (std::prod-consp (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))) (b* ((name (std::prod-car (std::prod-car (std::prod-car (cdr x))))) (loc (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (type (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (nettype (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))) (atts (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))) (initval (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (constp (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (constval (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))) (varp (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (lifetime (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (vectoredp (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (scalaredp (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (delay (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (cstrength (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (stringp name) (vl-location-p loc) (vl-datatype-p type) (vl-maybe-nettypename-p nettype) (vl-atts-p atts) (vl-maybe-rhs-p initval) (booleanp constp) (sv::maybe-4vec-p constval) (booleanp varp) (vl-lifetime-p lifetime) (booleanp vectoredp) (booleanp scalaredp) (vl-maybe-gatedelay-p delay) (vl-maybe-cstrength-p cstrength))))))
Theorem:
(defthm consp-when-vl-vardecl-p (implies (vl-vardecl-p x) (consp x)) :rule-classes :compound-recognizer)