• 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-reportcard-p
            • Vl-apply-reportcard
              • Vl-udplist-apply-reportcard
              • Vl-typedeflist-apply-reportcard
              • Vl-programlist-apply-reportcard
              • Vl-packagelist-apply-reportcard
              • Vl-modulelist-apply-reportcard
              • Vl-interfacelist-apply-reportcard
              • Vl-configlist-apply-reportcard
              • Vl-classlist-apply-reportcard
              • Vl-interface-apply-reportcard
                • Vl-typedef-apply-reportcard
                • Vl-program-apply-reportcard
                • Vl-package-apply-reportcard
                • Vl-module-apply-reportcard
                • Vl-config-apply-reportcard
                • Vl-class-apply-reportcard
                • Vl-udp-apply-reportcard
                • Vl-design-reportcard-keys
              • Vl-reportcard-fix
              • Vl-extend-reportcard-list
              • Vl-design-reportcard
              • Vl-design-origname-reportcard
              • Vl-extend-reportcard
              • Vl-reportcard-revive-invalid-warnings
              • Vl-clean-reportcard
              • Vl-remove-from-reportcard
              • Vl-reportcard-equiv
              • Vl-print-reportcard
              • Vl-keep-from-reportcard
              • Vl-reportcard-to-string
              • Vl-reportcard-types
              • Vl-reportcardkey-p
            • 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-apply-reportcard

    Vl-interface-apply-reportcard

    Add any warnings from a vl-reportcard-p to a vl-interface-p.

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

    Definitions and Theorems

    Function: vl-interface-apply-reportcard

    (defun vl-interface-apply-reportcard (x reportcard)
      (declare (xargs :guard (and (vl-interface-p x)
                                  (vl-reportcard-p reportcard))))
      (let ((__function__ 'vl-interface-apply-reportcard))
        (declare (ignorable __function__))
        (b* (((vl-interface x) x)
             (entry (hons-get x.name (vl-reportcard-fix reportcard)))
             ((unless entry) (vl-interface-fix x)))
          (change-vl-interface
               x
               :warnings (revappend-without-guard (cdr entry)
                                                  x.warnings)))))

    Theorem: vl-interface-p-of-vl-interface-apply-reportcard

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

    Theorem: vl-interface-apply-reportcard-of-vl-interface-fix-x

    (defthm vl-interface-apply-reportcard-of-vl-interface-fix-x
      (equal (vl-interface-apply-reportcard (vl-interface-fix x)
                                            reportcard)
             (vl-interface-apply-reportcard x reportcard)))

    Theorem: vl-interface-apply-reportcard-vl-interface-equiv-congruence-on-x

    (defthm
       vl-interface-apply-reportcard-vl-interface-equiv-congruence-on-x
      (implies
           (vl-interface-equiv x x-equiv)
           (equal (vl-interface-apply-reportcard x reportcard)
                  (vl-interface-apply-reportcard x-equiv reportcard)))
      :rule-classes :congruence)

    Theorem: vl-interface-apply-reportcard-of-vl-reportcard-fix-reportcard

    (defthm
          vl-interface-apply-reportcard-of-vl-reportcard-fix-reportcard
     (equal
        (vl-interface-apply-reportcard x (vl-reportcard-fix reportcard))
        (vl-interface-apply-reportcard x reportcard)))

    Theorem: vl-interface-apply-reportcard-vl-reportcard-equiv-congruence-on-reportcard

    (defthm
     vl-interface-apply-reportcard-vl-reportcard-equiv-congruence-on-reportcard
     (implies
          (vl-reportcard-equiv reportcard reportcard-equiv)
          (equal (vl-interface-apply-reportcard x reportcard)
                 (vl-interface-apply-reportcard x reportcard-equiv)))
     :rule-classes :congruence)