• 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-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-programlist-gather-reportcard

    Signature
    (vl-programlist-gather-reportcard x acc) → new-acc
    Arguments
    x — Guard (vl-programlist-p x).
    acc — Guard (vl-reportcard-p acc).
    Returns
    new-acc — Type (vl-reportcard-p new-acc).

    Definitions and Theorems

    Function: vl-programlist-gather-reportcard

    (defun vl-programlist-gather-reportcard (x acc)
     (declare (xargs :guard (and (vl-programlist-p x)
                                 (vl-reportcard-p acc))))
     (let ((__function__ 'vl-programlist-gather-reportcard))
       (declare (ignorable __function__))
       (b*
         (((when (atom x))
           (vl-reportcard-fix acc))
          (acc (vl-extend-reportcard-list (vl-program->name (car x))
                                          (vl-program->warnings (car x))
                                          acc)))
         (vl-programlist-gather-reportcard (cdr x)
                                           acc))))

    Theorem: vl-reportcard-p-of-vl-programlist-gather-reportcard

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

    Theorem: vl-programlist-gather-reportcard-of-vl-programlist-fix-x

    (defthm vl-programlist-gather-reportcard-of-vl-programlist-fix-x
      (equal (vl-programlist-gather-reportcard (vl-programlist-fix x)
                                               acc)
             (vl-programlist-gather-reportcard x acc)))

    Theorem: vl-programlist-gather-reportcard-vl-programlist-equiv-congruence-on-x

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

    Theorem: vl-programlist-gather-reportcard-of-vl-reportcard-fix-acc

    (defthm vl-programlist-gather-reportcard-of-vl-reportcard-fix-acc
     (equal (vl-programlist-gather-reportcard x (vl-reportcard-fix acc))
            (vl-programlist-gather-reportcard x acc)))

    Theorem: vl-programlist-gather-reportcard-vl-reportcard-equiv-congruence-on-acc

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