Pretty-print the "original," un-transformed version of an expression into a string.
Function:
(defun vl-pps-origexpr (x) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-pps-origexpr)) (declare (ignorable __function__)) (with-local-ps (vl-pp-origexpr x))))
Theorem:
(defthm stringp-of-vl-pps-origexpr (b* ((pretty-x (vl-pps-origexpr x))) (stringp pretty-x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-pps-origexpr-of-vl-expr-fix-x (equal (vl-pps-origexpr (vl-expr-fix x)) (vl-pps-origexpr x)))
Theorem:
(defthm vl-pps-origexpr-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-pps-origexpr x) (vl-pps-origexpr x-equiv))) :rule-classes :congruence)