Pretty-print a vl-warninglist.
(vl-print-warnings x &key (ps 'ps)) → ps
We automatically clean the warnings; see vl-clean-warnings.
Note that no header information is printed, this just prints the list of warnings.
See also vl-print-warnings-with-header and vl-warnings-to-string.
Function:
(defun vl-print-warnings-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-warninglist-p x))) (let ((__function__ 'vl-print-warnings)) (declare (ignorable __function__)) (let* ((htmlp (vl-ps->htmlp)) (x (vl-clean-warnings x))) (cond ((not htmlp) (vl-print-warnings-aux x)) ((atom x) ps) (t (vl-ps-seq (vl-println-markup "<ul class=\"vl_warning_list\">") (vl-print-warnings-aux x) (vl-println-markup "</ul>")))))))
Theorem:
(defthm vl-print-warnings-fn-of-vl-warninglist-fix-x (equal (vl-print-warnings-fn (vl-warninglist-fix x) ps) (vl-print-warnings-fn x ps)))
Theorem:
(defthm vl-print-warnings-fn-vl-warninglist-equiv-congruence-on-x (implies (vl-warninglist-equiv x x-equiv) (equal (vl-print-warnings-fn x ps) (vl-print-warnings-fn x-equiv ps))) :rule-classes :congruence)