• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
          • Unparameterization
          • Elaborate
          • Addnames
          • Annotate
          • Clean-warnings
            • Vl-interfacelist-clean-warnings
            • Vl-programlist-clean-warnings
              • Vl-packagelist-clean-warnings
              • Vl-modulelist-clean-warnings
              • Vl-configlist-clean-warnings
              • Vl-classlist-clean-warnings
              • Vl-udplist-clean-warnings
              • Vl-design-clean-warnings
              • Vl-clean-warnings
              • Vl-interface-clean-warnings
              • Vl-program-clean-warnings
              • Vl-package-clean-warnings
              • Vl-module-clean-warnings
              • Vl-config-clean-warnings
              • Vl-udp-clean-warnings
              • Vl-class-clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Clean-warnings

    Vl-programlist-clean-warnings

    (vl-programlist-clean-warnings x) maps vl-program-clean-warnings across a list.

    Signature
    (vl-programlist-clean-warnings x) → new-x
    Arguments
    x — Guard (vl-programlist-p x).
    Returns
    new-x — Type (vl-programlist-p new-x).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-programlist-clean-warnings-exec

    (defun vl-programlist-clean-warnings-exec
           (x acc)
           (declare (xargs :guard (vl-programlist-p x)))
           (declare (xargs :guard t))
           (let ((__function__ 'vl-programlist-clean-warnings-exec))
                (declare (ignorable __function__))
                (if (consp x)
                    (vl-programlist-clean-warnings-exec
                         (cdr x)
                         (cons (vl-program-clean-warnings (car x))
                               acc))
                    acc)))

    Function: vl-programlist-clean-warnings-nrev

    (defun
     vl-programlist-clean-warnings-nrev
     (x nrev)
     (declare (xargs :stobjs (nrev)))
     (declare (xargs :guard (vl-programlist-p x)))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-programlist-clean-warnings-nrev))
          (declare (ignorable __function__))
          (if (atom x)
              (nrev-fix nrev)
              (let ((nrev (nrev-push (vl-program-clean-warnings (car x))
                                     nrev)))
                   (vl-programlist-clean-warnings-nrev (cdr x)
                                                       nrev)))))

    Function: vl-programlist-clean-warnings

    (defun
     vl-programlist-clean-warnings (x)
     (declare (xargs :guard (vl-programlist-p x)))
     (declare (xargs :guard t))
     (let
      ((__function__ 'vl-programlist-clean-warnings))
      (declare (ignorable __function__))
      (mbe
         :logic (if (consp x)
                    (cons (vl-program-clean-warnings (car x))
                          (vl-programlist-clean-warnings (cdr x)))
                    nil)
         :exec (if (atom x)
                   nil
                   (with-local-nrev
                        (vl-programlist-clean-warnings-nrev x nrev))))))

    Theorem: vl-programlist-p-of-vl-programlist-clean-warnings

    (defthm vl-programlist-p-of-vl-programlist-clean-warnings
            (b* ((new-x (vl-programlist-clean-warnings x)))
                (vl-programlist-p new-x))
            :rule-classes :rewrite)

    Theorem: vl-programlist-clean-warnings-of-vl-programlist-fix-x

    (defthm
         vl-programlist-clean-warnings-of-vl-programlist-fix-x
         (equal (vl-programlist-clean-warnings (vl-programlist-fix x))
                (vl-programlist-clean-warnings x)))

    Theorem: vl-programlist-clean-warnings-vl-programlist-equiv-congruence-on-x

    (defthm
      vl-programlist-clean-warnings-vl-programlist-equiv-congruence-on-x
      (implies (vl-programlist-equiv x x-equiv)
               (equal (vl-programlist-clean-warnings x)
                      (vl-programlist-clean-warnings x-equiv)))
      :rule-classes :congruence)

    Theorem: vl-programlist-clean-warnings-of-update-nth

    (defthm
      vl-programlist-clean-warnings-of-update-nth
      (implies
           (<= (nfix acl2::n) (len acl2::x))
           (equal (vl-programlist-clean-warnings
                       (update-nth acl2::n acl2::v acl2::x))
                  (update-nth acl2::n
                              (vl-program-clean-warnings acl2::v)
                              (vl-programlist-clean-warnings acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-of-revappend

    (defthm
      vl-programlist-clean-warnings-of-revappend
      (equal (vl-programlist-clean-warnings (revappend acl2::x acl2::y))
             (revappend (vl-programlist-clean-warnings acl2::x)
                        (vl-programlist-clean-warnings acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: nthcdr-of-vl-programlist-clean-warnings

    (defthm
        nthcdr-of-vl-programlist-clean-warnings
        (equal (nthcdr acl2::n
                       (vl-programlist-clean-warnings acl2::x))
               (vl-programlist-clean-warnings (nthcdr acl2::n acl2::x)))
        :rule-classes ((:rewrite)))

    Theorem: nth-of-vl-programlist-clean-warnings

    (defthm
         nth-of-vl-programlist-clean-warnings
         (equal (nth acl2::n
                     (vl-programlist-clean-warnings acl2::x))
                (and (< (nfix acl2::n) (len acl2::x))
                     (vl-program-clean-warnings (nth acl2::n acl2::x))))
         :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-of-take

    (defthm
      vl-programlist-clean-warnings-of-take
      (implies
           (<= (nfix acl2::n) (len acl2::x))
           (equal (vl-programlist-clean-warnings (take acl2::n acl2::x))
                  (take acl2::n
                        (vl-programlist-clean-warnings acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: set-equiv-congruence-over-vl-programlist-clean-warnings

    (defthm
         set-equiv-congruence-over-vl-programlist-clean-warnings
         (implies (set-equiv acl2::x acl2::y)
                  (set-equiv (vl-programlist-clean-warnings acl2::x)
                             (vl-programlist-clean-warnings acl2::y)))
         :rule-classes ((:congruence)))

    Theorem: subsetp-of-vl-programlist-clean-warnings-when-subsetp

    (defthm subsetp-of-vl-programlist-clean-warnings-when-subsetp
            (implies (subsetp acl2::x acl2::y)
                     (subsetp (vl-programlist-clean-warnings acl2::x)
                              (vl-programlist-clean-warnings acl2::y)))
            :rule-classes ((:rewrite)))

    Theorem: member-of-vl-program-clean-warnings-in-vl-programlist-clean-warnings

    (defthm
     member-of-vl-program-clean-warnings-in-vl-programlist-clean-warnings
     (implies (member acl2::k acl2::x)
              (member (vl-program-clean-warnings acl2::k)
                      (vl-programlist-clean-warnings acl2::x)))
     :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-nrev-removal

    (defthm vl-programlist-clean-warnings-nrev-removal
            (equal (vl-programlist-clean-warnings-nrev acl2::x nrev)
                   (append nrev
                           (vl-programlist-clean-warnings acl2::x)))
            :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-exec-removal

    (defthm
         vl-programlist-clean-warnings-exec-removal
         (equal (vl-programlist-clean-warnings-exec acl2::x acl2::acc)
                (revappend (vl-programlist-clean-warnings acl2::x)
                           acl2::acc))
         :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-of-rev

    (defthm vl-programlist-clean-warnings-of-rev
            (equal (vl-programlist-clean-warnings (rev acl2::x))
                   (rev (vl-programlist-clean-warnings acl2::x)))
            :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-of-list-fix

    (defthm vl-programlist-clean-warnings-of-list-fix
            (equal (vl-programlist-clean-warnings (list-fix acl2::x))
                   (vl-programlist-clean-warnings acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-of-append

    (defthm
         vl-programlist-clean-warnings-of-append
         (equal (vl-programlist-clean-warnings (append acl2::a acl2::b))
                (append (vl-programlist-clean-warnings acl2::a)
                        (vl-programlist-clean-warnings acl2::b)))
         :rule-classes ((:rewrite)))

    Theorem: cdr-of-vl-programlist-clean-warnings

    (defthm cdr-of-vl-programlist-clean-warnings
            (equal (cdr (vl-programlist-clean-warnings acl2::x))
                   (vl-programlist-clean-warnings (cdr acl2::x)))
            :rule-classes ((:rewrite)))

    Theorem: car-of-vl-programlist-clean-warnings

    (defthm car-of-vl-programlist-clean-warnings
            (equal (car (vl-programlist-clean-warnings acl2::x))
                   (and (consp acl2::x)
                        (vl-program-clean-warnings (car acl2::x))))
            :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-under-iff

    (defthm vl-programlist-clean-warnings-under-iff
            (iff (vl-programlist-clean-warnings acl2::x)
                 (consp acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: consp-of-vl-programlist-clean-warnings

    (defthm consp-of-vl-programlist-clean-warnings
            (equal (consp (vl-programlist-clean-warnings acl2::x))
                   (consp acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: len-of-vl-programlist-clean-warnings

    (defthm len-of-vl-programlist-clean-warnings
            (equal (len (vl-programlist-clean-warnings acl2::x))
                   (len acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: true-listp-of-vl-programlist-clean-warnings

    (defthm true-listp-of-vl-programlist-clean-warnings
            (true-listp (vl-programlist-clean-warnings acl2::x))
            :rule-classes :type-prescription)

    Theorem: vl-programlist-clean-warnings-when-not-consp

    (defthm vl-programlist-clean-warnings-when-not-consp
            (implies (not (consp acl2::x))
                     (equal (vl-programlist-clean-warnings acl2::x)
                            nil))
            :rule-classes ((:rewrite)))

    Theorem: vl-programlist-clean-warnings-of-cons

    (defthm
         vl-programlist-clean-warnings-of-cons
         (equal (vl-programlist-clean-warnings (cons acl2::a acl2::b))
                (cons (vl-program-clean-warnings acl2::a)
                      (vl-programlist-clean-warnings acl2::b)))
         :rule-classes ((:rewrite)))