Recognizer for vl-lexscope-entry structures.
(vl-lexscope-entry-p x) → *
Function:
(defun vl-lexscope-entry-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-lexscope-entry-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-lexscope-entry) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((decl (std::prod-car (std::prod-car (cdr x)))) (direct-pkg (std::prod-cdr (std::prod-car (cdr x)))) (wildpkgs (std::prod-car (std::prod-cdr (cdr x)))) (genblockp (std::prod-cdr (std::prod-cdr (cdr x))))) (and (any-p decl) (maybe-stringp direct-pkg) (string-listp wildpkgs) (booleanp genblockp))))))
Theorem:
(defthm consp-when-vl-lexscope-entry-p (implies (vl-lexscope-entry-p x) (consp x)) :rule-classes :compound-recognizer)