• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-reportcard-fix
            • Vl-extend-reportcard-list
            • Vl-design-reportcard
              • Vl-design-reportcard-aux
                • Vl-modulelist-gather-origname-reportcard
                • Vl-typedeflist-gather-reportcard
                • Vl-programlist-gather-reportcard
                • Vl-packagelist-gather-reportcard
                • Vl-modulelist-gather-reportcard
                • Vl-interfacelist-gather-reportcard
                • Vl-configlist-gather-reportcard
                • Vl-udplist-gather-reportcard
                • Vl-classlist-gather-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-design-reportcard

    Vl-design-reportcard-aux

    Extend a vl-reportcard-p with all of the warnings for a design.

    Signature
    (vl-design-reportcard-aux x acc) → new-acc
    Arguments
    x — Guard (vl-design-p x).
    acc — Should be a fast alist.
        Guard (vl-reportcard-p acc).
    Returns
    new-acc — Fast alist, stolen from acc. Not cleaned.
        Type (vl-reportcard-p new-acc).

    Definitions and Theorems

    Function: vl-design-reportcard-aux

    (defun vl-design-reportcard-aux (x acc)
      (declare (xargs :guard (and (vl-design-p x)
                                  (vl-reportcard-p acc))))
      (let ((__function__ 'vl-design-reportcard-aux))
        (declare (ignorable __function__))
        (b* (((vl-design x))
             (acc (vl-modulelist-gather-reportcard x.mods acc))
             (acc (vl-udplist-gather-reportcard x.udps acc))
             (acc (vl-interfacelist-gather-reportcard x.interfaces acc))
             (acc (vl-programlist-gather-reportcard x.programs acc))
             (acc (vl-classlist-gather-reportcard x.classes acc))
             (acc (vl-packagelist-gather-reportcard x.packages acc))
             (acc (vl-configlist-gather-reportcard x.configs acc))
             (acc (vl-typedeflist-gather-reportcard x.typedefs acc))
             (acc (vl-extend-reportcard-list :design x.warnings acc)))
          acc)))

    Theorem: vl-reportcard-p-of-vl-design-reportcard-aux

    (defthm vl-reportcard-p-of-vl-design-reportcard-aux
      (b* ((new-acc (vl-design-reportcard-aux x acc)))
        (vl-reportcard-p new-acc))
      :rule-classes :rewrite)

    Theorem: vl-design-reportcard-aux-of-vl-design-fix-x

    (defthm vl-design-reportcard-aux-of-vl-design-fix-x
      (equal (vl-design-reportcard-aux (vl-design-fix x)
                                       acc)
             (vl-design-reportcard-aux x acc)))

    Theorem: vl-design-reportcard-aux-vl-design-equiv-congruence-on-x

    (defthm vl-design-reportcard-aux-vl-design-equiv-congruence-on-x
      (implies (vl-design-equiv x x-equiv)
               (equal (vl-design-reportcard-aux x acc)
                      (vl-design-reportcard-aux x-equiv acc)))
      :rule-classes :congruence)

    Theorem: vl-design-reportcard-aux-of-vl-reportcard-fix-acc

    (defthm vl-design-reportcard-aux-of-vl-reportcard-fix-acc
      (equal (vl-design-reportcard-aux x (vl-reportcard-fix acc))
             (vl-design-reportcard-aux x acc)))

    Theorem: vl-design-reportcard-aux-vl-reportcard-equiv-congruence-on-acc

    (defthm
         vl-design-reportcard-aux-vl-reportcard-equiv-congruence-on-acc
      (implies (vl-reportcard-equiv acc acc-equiv)
               (equal (vl-design-reportcard-aux x acc)
                      (vl-design-reportcard-aux x acc-equiv)))
      :rule-classes :congruence)