• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
          • Vl-warninglist->types
          • Vl-warning
          • Propagating-errors
          • Vl-reportcard
          • Vl-warning-sort
          • Lint-warning-suppression
          • Clean-warnings
          • Warn
          • Vl-print-warnings-with-header
          • Vl-some-warning-fatalp
          • Vl-print-warnings-with-named-header
          • Flat-warnings
          • Vl-remove-warnings
          • Vl-keep-warnings
          • Vl-print-warnings
          • Vl-some-warning-of-type-p
          • Vl-clean-warnings
          • Vl-warnings-to-string
          • Vl-warninglist
          • Vl-print-warning
            • Vl-print-warning-text-mode
          • Ok
          • Vl-trace-warnings
          • Fatal
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Warnings

Vl-print-warning

Pretty-print a vl-warning-p.

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