• 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-interface-clean-warnings

    Clean warnings in a vl-interface-p.

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

    Definitions and Theorems

    Function: vl-interface-clean-warnings

    (defun
     vl-interface-clean-warnings (x)
     (declare (xargs :guard (vl-interface-p x)))
     (let
      ((__function__ 'vl-interface-clean-warnings))
      (declare (ignorable __function__))
      (mbe
       :logic
       (b*
         (((vl-interface x) x))
         (change-vl-interface x
                              :warnings (vl-clean-warnings x.warnings)))
       :exec (b* (((vl-interface x) x)
                  ((unless x.warnings) x))
                 (change-vl-interface
                      x
                      :warnings (vl-clean-warnings x.warnings))))))

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

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

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

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

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

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