Recognizer for vl-covergroup structures.
(vl-covergroup-p x) → *
Function:
(defun vl-covergroup-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-covergroup-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-covergroup) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((name (std::prod-car (cdr x))) (loc (std::prod-car (std::prod-cdr (cdr x)))) (atts (std::prod-cdr (std::prod-cdr (cdr x))))) (and (stringp name) (vl-location-p loc) (vl-atts-p atts))))))
Theorem:
(defthm consp-when-vl-covergroup-p (implies (vl-covergroup-p x) (consp x)) :rule-classes :compound-recognizer)