Recognizer for vl-fundecl structures.
(vl-fundecl-p x) → *
Function:
(defun vl-fundecl-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-fundecl-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-fundecl) (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))))) (rettype (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (body (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (loc (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (portdecls (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (function-map (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))))) (vardecls (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (paramdecls (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (typedefs (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (imports (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)))))) (loaditems (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (stringp name) (vl-datatype-p rettype) (vl-stmt-p body) (vl-location-p loc) (vl-portdecllist-p portdecls) (vl-function-specialization-map-p function-map) (vl-lifetime-p lifetime) (vl-vardecllist-p vardecls) (vl-paramdecllist-p paramdecls) (vl-typedeflist-p typedefs) (vl-importlist-p imports) (vl-atts-p atts) (vl-portdecl-or-blockitem-list-p loaditems))))))
Theorem:
(defthm consp-when-vl-fundecl-p (implies (vl-fundecl-p x) (consp x)) :rule-classes :compound-recognizer)