Pretty-print a vl-warninglist into a string.
(vl-warnings-to-string warnings) → str
See vl-print-warnings-with-header and with-local-ps.
Function:
(defun vl-warnings-to-string (warnings) (declare (xargs :guard (vl-warninglist-p warnings))) (let ((__function__ 'vl-warnings-to-string)) (declare (ignorable __function__)) (with-local-ps (vl-print-warnings-with-header warnings))))
Theorem:
(defthm stringp-of-vl-warnings-to-string (b* ((str (vl-warnings-to-string warnings))) (stringp str)) :rule-classes :type-prescription)
Theorem:
(defthm vl-warnings-to-string-of-vl-warninglist-fix-warnings (equal (vl-warnings-to-string (vl-warninglist-fix warnings)) (vl-warnings-to-string warnings)))
Theorem:
(defthm vl-warnings-to-string-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-warnings-to-string warnings) (vl-warnings-to-string warnings-equiv))) :rule-classes :congruence)