Recognizer for vl-package structures.
(vl-package-p x) → *
Function:
(defun vl-package-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-package-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-package) (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-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))))) (lifetime (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (imports (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (fundecls (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (taskdecls (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (typedefs (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (paramdecls (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))) (vardecls (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (warnings (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (minloc (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (maxloc (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (comments (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (stringp name) (vl-lifetime-p lifetime) (vl-importlist-p imports) (vl-fundecllist-p fundecls) (vl-taskdecllist-p taskdecls) (vl-typedeflist-p typedefs) (vl-paramdecllist-p paramdecls) (vl-vardecllist-p vardecls) (vl-warninglist-p warnings) (vl-location-p minloc) (vl-location-p maxloc) (vl-atts-p atts) (vl-commentmap-p comments))))))
Theorem:
(defthm consp-when-vl-package-p (implies (vl-package-p x) (consp x)) :rule-classes :compound-recognizer)