Add
(vl-maybe-range-origexprs x) → new-x
Function:
(defun vl-maybe-range-origexprs (x) (declare (xargs :guard (vl-maybe-range-p x))) (let ((__function__ 'vl-maybe-range-origexprs)) (declare (ignorable __function__)) (let ((x (vl-maybe-range-fix x))) (if x (vl-range-origexprs x) nil))))
Theorem:
(defthm vl-maybe-range-p-of-vl-maybe-range-origexprs (b* ((new-x (vl-maybe-range-origexprs x))) (vl-maybe-range-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-maybe-range-origexprs-of-vl-maybe-range-fix-x (equal (vl-maybe-range-origexprs (vl-maybe-range-fix x)) (vl-maybe-range-origexprs x)))
Theorem:
(defthm vl-maybe-range-origexprs-vl-maybe-range-equiv-congruence-on-x (implies (vl-maybe-range-equiv x x-equiv) (equal (vl-maybe-range-origexprs x) (vl-maybe-range-origexprs x-equiv))) :rule-classes :congruence)