• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
          • Vls-commands
          • Vl-descriptionlist-summaries
          • Vls-transdb
          • File-layout
          • Vls-data-p
          • Ts-queue
          • Vls-showloc
          • Vls-get-plainsrc
          • Vl-description->warnings
            • Vl-describe
            • Vls-port-table
            • Vls-describe
            • Vls-data-from-translation
            • Vl-find-description-insensitive
            • Vls-get-warnings
            • Vls-get-summary
            • Vls-get-origsrc
            • Vls-data-origname-reportcard
            • Vls-get-parents
            • Vls-get-children
            • Vls-get-summaries
            • Vl-ppc-description
            • Vls-get-desctypes
            • Vl-description-summary
            • Start
            • Vl-descalist->descriptions/types
            • Stop
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Server

    Vl-description->warnings

    Get the warnings from most descriptions, or nil if this description doesn't have any warnings (e.g., an import statement, function declaration, ...).

    Signature
    (vl-description->warnings x) → warnings
    Arguments
    x — Guard (vl-description-p x).
    Returns
    warnings — Type (vl-warninglist-p warnings).

    Definitions and Theorems

    Function: vl-description->warnings

    (defun vl-description->warnings (x)
      (declare (xargs :guard (vl-description-p x)))
      (let ((__function__ 'vl-description->warnings))
        (declare (ignorable __function__))
        (b* ((x (vl-description-fix x)))
          (case (tag x)
                (:vl-module (vl-module->warnings x))
                (:vl-udp (vl-udp->warnings x))
                (:vl-interface (vl-interface->warnings x))
                (:vl-package (vl-package->warnings x))
                (:vl-program (vl-program->warnings x))
                (:vl-config (vl-config->warnings x))
                (:vl-taskdecl nil)
                (:vl-fundecl nil)
                (:vl-paramdecl nil)
                (:vl-import nil)
                (:vl-fwdtypedef nil)
                (:vl-typedef nil)
                (otherwise (impossible))))))

    Theorem: vl-warninglist-p-of-vl-description->warnings

    (defthm vl-warninglist-p-of-vl-description->warnings
      (b* ((warnings (vl-description->warnings x)))
        (vl-warninglist-p warnings))
      :rule-classes :rewrite)