Determine if a range's indices have been resolved to constants.
(vl-range-resolved-p x) → *
Historically we required
Function:
(defun vl-range-resolved-p (x) (declare (xargs :guard (vl-range-p x))) (let ((__function__ 'vl-range-resolved-p)) (declare (ignorable __function__)) (b* (((vl-range x) x)) (and (vl-expr-resolved-p x.msb) (vl-expr-resolved-p x.lsb)))))
Theorem:
(defthm vl-expr-resolved-p-of-vl-range->msb-when-vl-range-resolved-p (implies (vl-range-resolved-p x) (vl-expr-resolved-p (vl-range->msb x))))
Theorem:
(defthm vl-expr-resolved-p-of-vl-range->lsb-when-vl-range-resolved-p (implies (vl-range-resolved-p x) (vl-expr-resolved-p (vl-range->lsb x))))
Theorem:
(defthm vl-range-resolved-p-of-vl-range-fix-x (equal (vl-range-resolved-p (vl-range-fix x)) (vl-range-resolved-p x)))
Theorem:
(defthm vl-range-resolved-p-vl-range-equiv-congruence-on-x (implies (vl-range-equiv x x-equiv) (equal (vl-range-resolved-p x) (vl-range-resolved-p x-equiv))) :rule-classes :congruence)