(vl-print-warning-text-mode x &key (ps 'ps)) → ps
Function:
(defun vl-print-warning-text-mode-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-warning-p x))) (let ((__function__ 'vl-print-warning-text-mode)) (declare (ignorable __function__)) (b* (((vl-warning x) x) (note (cond ((and x.fn x.fatalp) (cat " (fatal, from " (str::downcase-string (symbol-name x.fn)) ")")) (x.fatalp " (fatal)") (x.fn (cat " (from " (str::downcase-string (symbol-name x.fn)) ")")) (t "")))) (vl-ps-seq (vl-print (symbol-name x.type)) (vl-println note) (vl-indent (vl-ps->autowrap-ind)) (vl-cw-obj x.msg x.args) (vl-println "")))))
Theorem:
(defthm vl-print-warning-text-mode-fn-of-vl-warning-fix-x (equal (vl-print-warning-text-mode-fn (vl-warning-fix x) ps) (vl-print-warning-text-mode-fn x ps)))
Theorem:
(defthm vl-print-warning-text-mode-fn-vl-warning-equiv-congruence-on-x (implies (vl-warning-equiv x x-equiv) (equal (vl-print-warning-text-mode-fn x ps) (vl-print-warning-text-mode-fn x-equiv ps))) :rule-classes :congruence)