• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
          • Vl-warninglist->types
          • Vl-warning
          • 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-interface-apply-reportcard
              • Vl-typedef-apply-reportcard
              • Vl-program-apply-reportcard
              • Vl-package-apply-reportcard
              • Vl-module-apply-reportcard
              • Vl-config-apply-reportcard
                • Vl-udp-apply-reportcard
                • Vl-design-reportcard-keys
              • Vl-reportcard-fix
              • Vl-extend-reportcard-list
              • Vl-design-origname-reportcard
              • Vl-design-reportcard
              • Vl-extend-reportcard
              • Vl-reportcard-revive-invalid-warnings
              • Vl-clean-reportcard
              • Vl-reportcard-equiv
              • Vl-print-reportcard
              • Vl-reportcard-to-string
              • Vl-keep-from-reportcard
              • Vl-reportcard-types
              • Vl-reportcardkey-p
            • Vl-warning-sort
            • Lint-warning-suppression
            • Clean-warnings
            • Warn
            • Vl-print-warnings-with-header
            • Vl-some-warning-fatalp
            • Vl-print-warnings-with-named-header
            • Flat-warnings
            • Vl-remove-warnings
            • Vl-keep-warnings
            • Vl-print-warnings
            • Vl-some-warning-of-type-p
            • Vl-clean-warnings
            • Vl-warnings-to-string
            • Vl-warninglist
            • Vl-print-warning
            • Ok
            • Vl-trace-warnings
            • Fatal
          • Primitives
          • Use-set
          • Syntax
          • Getting-started
          • Utilities
          • Loader
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-apply-reportcard

    Vl-config-apply-reportcard

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

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

    Definitions and Theorems

    Function: vl-config-apply-reportcard

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

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

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

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

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

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

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

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

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

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

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