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