Recognizer for vl-alias structures.
(vl-alias-p x) → *
Function:
(defun vl-alias-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-alias-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-alias) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((lhs (std::prod-car (std::prod-car (cdr x)))) (rhs (std::prod-cdr (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-expr-p lhs) (vl-expr-p rhs) (vl-atts-p atts) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-alias-p (implies (vl-alias-p x) (consp x)) :rule-classes :compound-recognizer)