• 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
            • Vls-scannedalist-p
            • Vls-loadedalist-p
            • Vls-commands
            • Vls-data-p
            • Vl-server-opts-p
            • Vl-descriptionlist-summaries
            • Vls-transdb
            • Vl-describe
            • Ts-queue
            • Vls-get-plainsrc
            • Vl-description->warnings
            • Vls-showloc
            • File-layout
              • Vl-zipinfo
                • Vl-zipinfo-fix
                • Vl-zipinfo-equiv
                • Make-vl-zipinfo
                • Vl-zipinfo-p
                  • Change-vl-zipinfo
                  • Vl-zipinfo->syntax
                  • Vl-zipinfo->filename
                  • Vl-zipinfo->name
                  • Vl-zipinfo->ltime
                  • Vl-zipinfo->date
                • Vl-scan-for-zipinfos-aux
                • Vl-scan-for-zipinfos
                • Vl-zipinfolist
              • Vls-remove-from-scannedalist
              • Vls-describe
              • Vl-server-top
              • Vls-port-table
              • Vl-find-description-insensitive
              • Vls-get-warnings
              • Vls-get-summary
              • Vls-get-origsrc
              • Vl-ppc-description
              • Vls-get-parents
              • Vls-get-children
              • Vls-data-origname-reportcard
              • Vls-data-from-zip
              • Start
              • Vls-make-scannedalist
              • Vls-get-summaries
              • Vls-get-unloaded-json
              • Vls-get-desctypes
              • Vls-scannedalist-to-json
              • Vls-loadedalist-to-json
              • Vl-description-summary
              • *vl-server-help*
              • Vl-descalist->descriptions/types
              • Stop
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-zipinfo

    Vl-zipinfo-p

    Recognizer for vl-zipinfo structures.

    Signature
    (vl-zipinfo-p x) → *

    Definitions and Theorems

    Function: vl-zipinfo-p

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

    Theorem: consp-when-vl-zipinfo-p

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