• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
          • Vl-server
          • Vl-gather
          • Vl-zip
            • Vl-zip-opts-p
            • Vl-zipfile
              • Vl-zipfile-fix
              • Vl-read-zip-header
              • Vl-maybe-zipfile
              • Vl-read-zip
              • Make-vl-zipfile
              • Vl-zipfile-equiv
              • Vl-zipfile-p
                • Change-vl-zipfile
                • Vl-zipfile->syntax
                • Vl-zipfile->filemap
                • Vl-zipfile->design
                • Vl-zipfile->defines
                • Vl-zipfile->name
                • Vl-zipfile->ltime
                • Vl-zipfile->date
                • Vl-write-zip
              • *vl-zip-help*
              • Vl-zip-top
              • Vl-zip-main
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-zipfile

    Vl-zipfile-p

    Recognizer for vl-zipfile structures.

    Signature
    (vl-zipfile-p x) → *

    Definitions and Theorems

    Function: vl-zipfile-p

    (defun vl-zipfile-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'vl-zipfile-p))
      (declare (ignorable __function__))
      (and
       (consp x)
       (eq (car x) :vl-zip)
       (mbe
          :logic (and (alistp (cdr x))
                      (equal (strip-cars (cdr x))
                             '(name syntax
                                    date ltime design filemap defines)))
          :exec (fty::alist-with-carsp
                     (cdr x)
                     '(name syntax
                            date ltime design filemap defines)))
       (b* ((name (cdr (std::da-nth 0 (cdr x))))
            (syntax (cdr (std::da-nth 1 (cdr x))))
            (date (cdr (std::da-nth 2 (cdr x))))
            (ltime (cdr (std::da-nth 3 (cdr x))))
            (design (cdr (std::da-nth 4 (cdr x))))
            (filemap (cdr (std::da-nth 5 (cdr x))))
            (defines (cdr (std::da-nth 6 (cdr x)))))
         (and (stringp name)
              (stringp syntax)
              (stringp date)
              (natp ltime)
              (vl-design-p design)
              (vl-filemap-p filemap)
              (vl-defines-p defines))))))

    Theorem: consp-when-vl-zipfile-p

    (defthm consp-when-vl-zipfile-p
      (implies (vl-zipfile-p x) (consp x))
      :rule-classes :compound-recognizer)