Recognizer for vl-constint structures.
(vl-constint-p x) → *
Function:
(defun vl-constint-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-constint-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-constint) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((origwidth (std::prod-car (std::prod-car (cdr x)))) (value (std::prod-cdr (std::prod-car (cdr x)))) (origtype (std::prod-car (std::prod-cdr (cdr x)))) (wasunsized (std::prod-cdr (std::prod-cdr (cdr x))))) (and (posp origwidth) (natp value) (vl-exprtype-p origtype) (booleanp wasunsized) (< value (expt 2 origwidth)))))))
Theorem:
(defthm consp-when-vl-constint-p (implies (vl-constint-p x) (consp x)) :rule-classes :compound-recognizer)