Pretty-print the "original," un-transformed version of an expression.
(vl-pp-origexpr x &key (ps 'ps)) → ps
This is like vl-pp-expr but, if
Function:
(defun vl-pp-origexpr-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-pp-origexpr)) (declare (ignorable __function__)) (b* ((misc (vl-ps->misc)) (prev-p (vl-ps->use-origexprs-p))) (vl-ps-seq (if (not prev-p) (vl-ps-update-use-origexprs t) ps) (vl-pp-expr x) (vl-ps-update-misc misc)))))
Theorem:
(defthm vl-pp-origexpr-fn-of-vl-expr-fix-x (equal (vl-pp-origexpr-fn (vl-expr-fix x) ps) (vl-pp-origexpr-fn x ps)))
Theorem:
(defthm vl-pp-origexpr-fn-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-pp-origexpr-fn x ps) (vl-pp-origexpr-fn x-equiv ps))) :rule-classes :congruence)