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