Recognizer for vl-namefactory structures.
(vl-namefactory-p x) → *
Function:
(defun vl-namefactory-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-namefactory-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-namefactory) (std::prod-consp (cdr x)) (b* ((mod (std::prod-car (cdr x))) (namedb (std::prod-cdr (cdr x)))) (and (vl-maybe-module-p mod) (vl-namedb-p namedb) (vl-namefactory-namedb-okp mod namedb))))))
Theorem:
(defthm consp-when-vl-namefactory-p (implies (vl-namefactory-p x) (consp x)) :rule-classes :compound-recognizer)