• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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-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-reportcard

    Vl-extend-reportcard

    Add a single warning to a vl-reportcard-p.

    Signature
    (vl-extend-reportcard name warning reportcard) 
      → 
    new-reportcard
    Arguments
    name — Name of design element to associate the warning with.
        Guard (vl-reportcardkey-p name).
    warning — Warning to add.
        Guard (vl-warning-p warning).
    reportcard — Report card to extend.
        Guard (vl-reportcard-p reportcard).
    Returns
    new-reportcard — Type (vl-reportcard-p new-reportcard).

    Definitions and Theorems

    Function: vl-extend-reportcard

    (defun vl-extend-reportcard (name warning reportcard)
      (declare (xargs :guard (and (vl-reportcardkey-p name)
                                  (vl-warning-p warning)
                                  (vl-reportcard-p reportcard))))
      (let ((__function__ 'vl-extend-reportcard))
        (declare (ignorable __function__))
        (b* ((name (vl-reportcardkey-fix name))
             (warning (vl-warning-fix warning))
             (reportcard (vl-reportcard-fix reportcard))
             (old-warnings (cdr (hons-get name reportcard)))
             (new-warnings (cons warning old-warnings)))
          (hons-acons name new-warnings reportcard))))

    Theorem: vl-reportcard-p-of-vl-extend-reportcard

    (defthm vl-reportcard-p-of-vl-extend-reportcard
      (b*
       ((new-reportcard (vl-extend-reportcard name warning reportcard)))
       (vl-reportcard-p new-reportcard))
      :rule-classes :rewrite)

    Theorem: vl-extend-reportcard-of-vl-reportcardkey-fix-name

    (defthm vl-extend-reportcard-of-vl-reportcardkey-fix-name
      (equal (vl-extend-reportcard (vl-reportcardkey-fix name)
                                   warning reportcard)
             (vl-extend-reportcard name warning reportcard)))

    Theorem: vl-extend-reportcard-vl-reportcardkey-equiv-congruence-on-name

    (defthm
         vl-extend-reportcard-vl-reportcardkey-equiv-congruence-on-name
      (implies
           (vl-reportcardkey-equiv name name-equiv)
           (equal (vl-extend-reportcard name warning reportcard)
                  (vl-extend-reportcard name-equiv warning reportcard)))
      :rule-classes :congruence)

    Theorem: vl-extend-reportcard-of-vl-warning-fix-warning

    (defthm vl-extend-reportcard-of-vl-warning-fix-warning
      (equal (vl-extend-reportcard name (vl-warning-fix warning)
                                   reportcard)
             (vl-extend-reportcard name warning reportcard)))

    Theorem: vl-extend-reportcard-vl-warning-equiv-congruence-on-warning

    (defthm vl-extend-reportcard-vl-warning-equiv-congruence-on-warning
      (implies
           (vl-warning-equiv warning warning-equiv)
           (equal (vl-extend-reportcard name warning reportcard)
                  (vl-extend-reportcard name warning-equiv reportcard)))
      :rule-classes :congruence)

    Theorem: vl-extend-reportcard-of-vl-reportcard-fix-reportcard

    (defthm vl-extend-reportcard-of-vl-reportcard-fix-reportcard
      (equal
           (vl-extend-reportcard name
                                 warning (vl-reportcard-fix reportcard))
           (vl-extend-reportcard name warning reportcard)))

    Theorem: vl-extend-reportcard-vl-reportcard-equiv-congruence-on-reportcard

    (defthm
      vl-extend-reportcard-vl-reportcard-equiv-congruence-on-reportcard
      (implies
           (vl-reportcard-equiv reportcard reportcard-equiv)
           (equal (vl-extend-reportcard name warning reportcard)
                  (vl-extend-reportcard name warning reportcard-equiv)))
      :rule-classes :congruence)