Recognizer for vl-blockscope structures.
(vl-blockscope-p x) → *
Function:
(defun vl-blockscope-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-blockscope-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-blockscope) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (std::prod-car (cdr x)))) (std::prod-consp (std::prod-cdr (cdr x))) (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x)))) (b* ((imports (std::prod-car (std::prod-car (cdr x)))) (paramdecls (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (vardecls (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (typedefs (std::prod-car (std::prod-cdr (cdr x)))) (scopetype (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (name (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (vl-importlist-p imports) (vl-paramdecllist-p paramdecls) (vl-vardecllist-p vardecls) (vl-typedeflist-p typedefs) (vl-scopetype-p scopetype) (maybe-stringp name))))))
Theorem:
(defthm consp-when-vl-blockscope-p (implies (vl-blockscope-p x) (consp x)) :rule-classes :compound-recognizer)