• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
          • Lint-warning-suppression
          • Warning-basics
          • Vl-warning
            • Vl-warning-p
              • Vl-warning-fix
              • Make-vl-warning
              • Vl-warning-equiv
              • Change-vl-warning
              • Vl-warning->suppressedp
              • Vl-warning->type
              • Vl-warning->fatalp
              • Vl-warning->args
              • Vl-warning->msg
              • Vl-warning->fn
              • Vl-warning->context
            • Vl-warninglist-add-ctx
            • Vl-warninglist->types
            • Propagating-errors
            • Vl-reportcard
            • 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
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-warning

    Vl-warning-p

    Recognizer for vl-warning structures.

    Signature
    (vl-warning-p x) → *

    Definitions and Theorems

    Function: vl-warning-p

    (defun vl-warning-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'vl-warning-p))
      (declare (ignorable __function__))
      (and
       (consp x)
       (eq (car x) :vl-warning)
       (mbe
         :logic (and (alistp (cdr x))
                     (equal (strip-cars (cdr x))
                            '(type msg
                                   args fn fatalp suppressedp context)))
         :exec (fty::alist-with-carsp
                    (cdr x)
                    '(type msg
                           args fn fatalp suppressedp context)))
       (b* ((type (cdr (std::da-nth 0 (cdr x))))
            (msg (cdr (std::da-nth 1 (cdr x))))
            (args (cdr (std::da-nth 2 (cdr x))))
            (fn (cdr (std::da-nth 3 (cdr x))))
            (fatalp (cdr (std::da-nth 4 (cdr x))))
            (suppressedp (cdr (std::da-nth 5 (cdr x))))
            (?context (cdr (std::da-nth 6 (cdr x)))))
         (and (symbolp type)
              (stringp msg)
              (true-listp args)
              (symbolp fn)
              (booleanp fatalp)
              (booleanp suppressedp))))))

    Theorem: consp-when-vl-warning-p

    (defthm consp-when-vl-warning-p
      (implies (vl-warning-p x) (consp x))
      :rule-classes :compound-recognizer)