• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
          • Lint-warning-suppression
          • Warning-basics
          • Vl-warning
          • Vl-warninglist-add-ctx
          • Vl-warninglist->types
          • Propagating-errors
          • Vl-reportcard
          • Vl-some-warning-fatalp
          • Clean-warnings
          • Lint-whole-file-suppression
          • Vl-keep-warnings
          • Warn
          • Vl-warninglist
          • Vl-remove-warnings
          • Flat-warnings
          • Vl-some-warning-of-type-p
          • Vl-msg
          • Vl-warning-add-ctx
          • Vl-print-warning
            • Vl-print-warning-text-mode
          • Vmsg-binary-concat
          • Ok
          • Vl-trace-warnings
          • Fatal
          • Vmsg
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Testing-utilities
    • Math
  • Warnings

Vl-print-warning

Pretty-print a vl-warning.

Signature
(vl-print-warning x &key (ps 'ps)) → ps
Arguments
x — Guard (vl-warning-p x).

Definitions and Theorems

Function: vl-print-warning-fn

(defun vl-print-warning-fn (x ps)
       (declare (xargs :stobjs (ps)))
       (declare (xargs :guard (vl-warning-p x)))
       (let ((__function__ 'vl-print-warning))
            (declare (ignorable __function__))
            (if (vl-ps->htmlp)
                (vl-print-warning-html-mode x)
                (vl-print-warning-text-mode x))))

Theorem: vl-print-warning-fn-of-vl-warning-fix-x

(defthm vl-print-warning-fn-of-vl-warning-fix-x
        (equal (vl-print-warning-fn (vl-warning-fix x)
                                    ps)
               (vl-print-warning-fn x ps)))

Theorem: vl-print-warning-fn-vl-warning-equiv-congruence-on-x

(defthm vl-print-warning-fn-vl-warning-equiv-congruence-on-x
        (implies (vl-warning-equiv x x-equiv)
                 (equal (vl-print-warning-fn x ps)
                        (vl-print-warning-fn x-equiv ps)))
        :rule-classes :congruence)

Subtopics

Vl-print-warning-text-mode