Recognizer for vl-evatom structures.
(vl-evatom-p x) → *
Function:
(defun vl-evatom-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-evatom-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-evatom) (std::prod-consp (cdr x)) (b* ((type (std::prod-car (cdr x))) (expr (std::prod-cdr (cdr x)))) (and (vl-evatomtype-p type) (vl-expr-p expr))))))
Theorem:
(defthm consp-when-vl-evatom-p (implies (vl-evatom-p x) (consp x)) :rule-classes :compound-recognizer)