General case.
(vl-print-markup-main x &key (ps 'ps)) → ps
Function:
(defun vl-print-markup-main-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-printable-p x))) (let ((__function__ 'vl-print-markup-main)) (declare (ignorable __function__)) (let* ((rchars (vl-ps->rchars)) (x (vl-printable-fix x))) (cond ((stringp x) (vl-ps-update-rchars (cons x rchars))) ((and (atom x) x) (vl-ps-update-rchars (revappend (explode-atom x 10) rchars))) (t (vl-ps-update-rchars (revappend x rchars)))))))
Theorem:
(defthm vl-print-markup-main-fn-of-vl-printable-fix-x (equal (vl-print-markup-main-fn (vl-printable-fix x) ps) (vl-print-markup-main-fn x ps)))
Theorem:
(defthm vl-print-markup-main-fn-vl-printable-equiv-congruence-on-x (implies (vl-printable-equiv x x-equiv) (equal (vl-print-markup-main-fn x ps) (vl-print-markup-main-fn x-equiv ps))) :rule-classes :congruence)