Gather all top-level expressions from a vl-range-p.
(vl-range-allexprs x) → exprs
Function:
(defun vl-range-allexprs (x) (declare (xargs :guard (vl-range-p x))) (let ((__function__ 'vl-range-allexprs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (vl-range-fix x))) (b* (((vl-range x) x)) (list x.msb x.lsb))) :exec (with-local-nrev (vl-range-allexprs-nrev x nrev)))))
Theorem:
(defthm vl-exprlist-p-of-vl-range-allexprs (b* ((exprs (vl-range-allexprs x))) (vl-exprlist-p exprs)) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-range-allexprs (true-listp (vl-range-allexprs x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-range-allexprs-nrev-removal (equal (vl-range-allexprs-nrev x nrev) (append nrev (vl-range-allexprs x))))
Theorem:
(defthm vl-range-allexprs-of-vl-range-fix-x (equal (vl-range-allexprs (vl-range-fix x)) (vl-range-allexprs x)))
Theorem:
(defthm vl-range-allexprs-vl-range-equiv-congruence-on-x (implies (vl-range-equiv x x-equiv) (equal (vl-range-allexprs x) (vl-range-allexprs x-equiv))) :rule-classes :congruence)