Get the msb field from a vl-range.
(vl-range->msb x) → msb
This is an ordinary field accessor created by defprod.
Function:
(defun vl-range->msb$inline (x) (declare (xargs :guard (vl-range-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-range->msb)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-expr-fix (std::prod-car (cdr x)))) :exec (std::prod-car (cdr x)))))
Theorem:
(defthm vl-expr-p-of-vl-range->msb (b* ((msb (vl-range->msb$inline x))) (vl-expr-p msb)) :rule-classes :rewrite)
Theorem:
(defthm vl-range->msb$inline-of-vl-range-fix-x (equal (vl-range->msb$inline (vl-range-fix x)) (vl-range->msb$inline x)))
Theorem:
(defthm vl-range->msb$inline-vl-range-equiv-congruence-on-x (implies (vl-range-equiv x x-equiv) (equal (vl-range->msb$inline x) (vl-range->msb$inline x-equiv))) :rule-classes :congruence)