Add
(vl-plainarg-origexprs x) → new-x
Function:
(defun vl-plainarg-origexprs (x) (declare (xargs :guard (vl-plainarg-p x))) (let ((__function__ 'vl-plainarg-origexprs)) (declare (ignorable __function__)) (let ((x (vl-plainarg-fix x))) (b* (((vl-plainarg x)) ((unless x.expr) x)) (change-vl-plainarg x :expr (vl-expr-origexprs x.expr))))))
Theorem:
(defthm vl-plainarg-p-of-vl-plainarg-origexprs (b* ((new-x (vl-plainarg-origexprs x))) (vl-plainarg-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-plainarg-origexprs-of-vl-plainarg-fix-x (equal (vl-plainarg-origexprs (vl-plainarg-fix x)) (vl-plainarg-origexprs x)))
Theorem:
(defthm vl-plainarg-origexprs-vl-plainarg-equiv-congruence-on-x (implies (vl-plainarg-equiv x x-equiv) (equal (vl-plainarg-origexprs x) (vl-plainarg-origexprs x-equiv))) :rule-classes :congruence)