(vl-range-update-subexprs x subexprs) → new-x
Function:
(defun vl-range-update-subexprs (x subexprs) (declare (xargs :guard (and (vl-range-p x) (vl-exprlist-p subexprs)))) (declare (xargs :guard (equal (len subexprs) (len (vl-range->subexprs x))))) (let ((__function__ 'vl-range-update-subexprs)) (declare (ignorable __function__)) (change-vl-range x :msb (car subexprs) :lsb (cadr subexprs))))
Theorem:
(defthm vl-range-p-of-vl-range-update-subexprs (b* ((new-x (vl-range-update-subexprs x subexprs))) (vl-range-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-range-update-subexprs-identity (equal (vl-range-update-subexprs x (vl-range->subexprs x)) (vl-range-fix x)))
Theorem:
(defthm vl-range-update-subexprs-identity2 (implies (equal (len y) (len (vl-range->subexprs x))) (equal (vl-range->subexprs (vl-range-update-subexprs x y)) (vl-exprlist-fix y))))
Theorem:
(defthm vl-range-update-subexprs-of-vl-range-fix-x (equal (vl-range-update-subexprs (vl-range-fix x) subexprs) (vl-range-update-subexprs x subexprs)))
Theorem:
(defthm vl-range-update-subexprs-vl-range-equiv-congruence-on-x (implies (vl-range-equiv x x-equiv) (equal (vl-range-update-subexprs x subexprs) (vl-range-update-subexprs x-equiv subexprs))) :rule-classes :congruence)
Theorem:
(defthm vl-range-update-subexprs-of-vl-exprlist-fix-subexprs (equal (vl-range-update-subexprs x (vl-exprlist-fix subexprs)) (vl-range-update-subexprs x subexprs)))
Theorem:
(defthm vl-range-update-subexprs-vl-exprlist-equiv-congruence-on-subexprs (implies (vl-exprlist-equiv subexprs subexprs-equiv) (equal (vl-range-update-subexprs x subexprs) (vl-range-update-subexprs x subexprs-equiv))) :rule-classes :congruence)