• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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-warninglist-add-ctx
          • Vl-warninglist->types
          • Propagating-errors
          • Vl-reportcard
          • Vl-some-warning-fatalp
          • 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-program-clean-warnings
            • Vl-package-clean-warnings
            • Vl-interface-clean-warnings
              • Vl-module-clean-warnings
              • Vl-config-clean-warnings
              • Vl-class-clean-warnings
              • Vl-udp-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
    • 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)