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