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

    Vl-reportcard-types

    Collect all types of warnings found in a reportcard.

    Signature
    (vl-reportcard-types x) → types
    Arguments
    x — Guard (vl-reportcard-p x).
    Returns
    types — Typically includes many duplicates.
        Type (symbol-listp types).

    Definitions and Theorems

    Function: vl-reportcard-types

    (defun vl-reportcard-types (x)
      (declare (xargs :guard (vl-reportcard-p x)))
      (let ((__function__ 'vl-reportcard-types))
        (declare (ignorable __function__))
        (b* ((x (vl-reportcard-fix x))
             ((when (atom x)) nil))
          (append (vl-warninglist->types (cdar x))
                  (vl-reportcard-types (cdr x))))))

    Theorem: symbol-listp-of-vl-reportcard-types

    (defthm symbol-listp-of-vl-reportcard-types
      (b* ((types (vl-reportcard-types x)))
        (symbol-listp types))
      :rule-classes :rewrite)

    Theorem: vl-reportcard-types-of-vl-reportcard-fix-x

    (defthm vl-reportcard-types-of-vl-reportcard-fix-x
      (equal (vl-reportcard-types (vl-reportcard-fix x))
             (vl-reportcard-types x)))

    Theorem: vl-reportcard-types-vl-reportcard-equiv-congruence-on-x

    (defthm vl-reportcard-types-vl-reportcard-equiv-congruence-on-x
      (implies (vl-reportcard-equiv x x-equiv)
               (equal (vl-reportcard-types x)
                      (vl-reportcard-types x-equiv)))
      :rule-classes :congruence)