Recognizer for vl-taskdecl structures.
(vl-taskdecl-p x) → *
Function:
(defun vl-taskdecl-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-taskdecl-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-taskdecl) (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 (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-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-cdr (std::prod-car (std::prod-car (cdr x))))) (portdecls (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (imports (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (vardecls (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))))) (blockitems (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (body (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)))))) (loc (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (stringp name) (vl-lifetime-p lifetime) (vl-portdecllist-p portdecls) (vl-importlist-p imports) (vl-vardecllist-p vardecls) (vl-paramdecllist-p paramdecls) (vl-blockitemlist-p blockitems) (vl-stmt-p body) (vl-atts-p atts) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-taskdecl-p (implies (vl-taskdecl-p x) (consp x)) :rule-classes :compound-recognizer)