• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
          • Unparameterization
          • Elaborate
          • Addnames
          • Annotate
          • Clean-warnings
            • Vl-interfacelist-clean-warnings
            • Vl-programlist-clean-warnings
            • Vl-packagelist-clean-warnings
            • Vl-modulelist-clean-warnings
            • Vl-configlist-clean-warnings
            • Vl-classlist-clean-warnings
            • Vl-udplist-clean-warnings
            • Vl-design-clean-warnings
              • Vl-clean-warnings
              • Vl-interface-clean-warnings
              • Vl-program-clean-warnings
              • Vl-package-clean-warnings
              • Vl-module-clean-warnings
              • Vl-config-clean-warnings
              • Vl-udp-clean-warnings
              • Vl-class-clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Clean-warnings

    Vl-design-clean-warnings

    Clean warnings everywhere throughout a design.

    Signature
    (vl-design-clean-warnings x) → new-x
    Arguments
    x — Guard (vl-design-p x).
    Returns
    new-x — Type (vl-design-p new-x).

    We apply vl-clean-warnings everywhere throughout the design. It may occasionally be useful to run this transformation to clean up any redundant warnings.

    Definitions and Theorems

    Function: vl-design-clean-warnings

    (defun
     vl-design-clean-warnings (x)
     (declare (xargs :guard (vl-design-p x)))
     (let
      ((__function__ 'vl-design-clean-warnings))
      (declare (ignorable __function__))
      (b*
         (((vl-design x) x))
         (change-vl-design
              x
              :mods (vl-modulelist-clean-warnings x.mods)
              :udps (vl-udplist-clean-warnings x.udps)
              :interfaces (vl-interfacelist-clean-warnings x.interfaces)
              :programs (vl-programlist-clean-warnings x.programs)
              :classes (vl-classlist-clean-warnings x.classes)
              :packages (vl-packagelist-clean-warnings x.packages)
              :configs (vl-configlist-clean-warnings x.configs)))))

    Theorem: vl-design-p-of-vl-design-clean-warnings

    (defthm vl-design-p-of-vl-design-clean-warnings
            (b* ((new-x (vl-design-clean-warnings x)))
                (vl-design-p new-x))
            :rule-classes :rewrite)

    Theorem: vl-design-clean-warnings-of-vl-design-fix-x

    (defthm vl-design-clean-warnings-of-vl-design-fix-x
            (equal (vl-design-clean-warnings (vl-design-fix x))
                   (vl-design-clean-warnings x)))

    Theorem: vl-design-clean-warnings-vl-design-equiv-congruence-on-x

    (defthm vl-design-clean-warnings-vl-design-equiv-congruence-on-x
            (implies (vl-design-equiv x x-equiv)
                     (equal (vl-design-clean-warnings x)
                            (vl-design-clean-warnings x-equiv)))
            :rule-classes :congruence)