Recognizer for vl-config structures.
(vl-config-p x) → *
Function:
(defun vl-config-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-config-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-config) (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* ((name (std::prod-car (std::prod-car (cdr x)))) (warnings (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (minloc (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (maxloc (std::prod-car (std::prod-cdr (cdr x)))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (comments (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (stringp name) (vl-warninglist-p warnings) (vl-location-p minloc) (vl-location-p maxloc) (vl-atts-p atts) (vl-commentmap-p comments))))))
Theorem:
(defthm consp-when-vl-config-p (implies (vl-config-p x) (consp x)) :rule-classes :compound-recognizer)