• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • 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-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
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-reportcard

    Vl-extend-reportcard-list

    Add a list of warnings to a vl-reportcard-p.

    Signature
    (vl-extend-reportcard-list name warnings reportcard) 
      → 
    new-reportcard
    Arguments
    name — Name of design element to associate all of these warnings with.
        Guard (vl-reportcardkey-p name).
    warnings — List of warnings to add.
        Guard (vl-warninglist-p warnings).
    reportcard — Report card to extend.
        Guard (vl-reportcard-p reportcard).
    Returns
    new-reportcard — Type (vl-reportcard-p new-reportcard).

    We add all the warnings at once, i.e., with a single fast-alist update.

    Definitions and Theorems

    Function: vl-extend-reportcard-list

    (defun vl-extend-reportcard-list (name warnings reportcard)
     (declare (xargs :guard (and (vl-reportcardkey-p name)
                                 (vl-warninglist-p warnings)
                                 (vl-reportcard-p reportcard))))
     (let ((__function__ 'vl-extend-reportcard-list))
       (declare (ignorable __function__))
       (b* (((when (atom warnings))
             (vl-reportcard-fix reportcard))
            (name (vl-reportcardkey-fix name))
            (warnings (vl-warninglist-fix warnings))
            (reportcard (vl-reportcard-fix reportcard))
            (old-warnings (cdr (hons-get name reportcard)))
            (new-warnings (append-without-guard warnings old-warnings)))
         (hons-acons name new-warnings reportcard))))

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

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

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

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

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

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

    Theorem: vl-extend-reportcard-list-of-vl-warninglist-fix-warnings

    (defthm vl-extend-reportcard-list-of-vl-warninglist-fix-warnings
      (equal
           (vl-extend-reportcard-list name (vl-warninglist-fix warnings)
                                      reportcard)
           (vl-extend-reportcard-list name warnings reportcard)))

    Theorem: vl-extend-reportcard-list-vl-warninglist-equiv-congruence-on-warnings

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

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

    (defthm vl-extend-reportcard-list-of-vl-reportcard-fix-reportcard
      (equal (vl-extend-reportcard-list
                  name
                  warnings (vl-reportcard-fix reportcard))
             (vl-extend-reportcard-list name warnings reportcard)))

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

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