• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
          • Parser
          • Vl-load-merge-descriptions
          • Scope-of-defines
          • Vl-load-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-loadresult
            • Vl-loadresult-fix
            • Vl-loadresult-equiv
            • Make-vl-loadresult
            • Vl-loadresult->filemap
            • Vl-loadresult->design
            • Vl-loadresult->defines
            • Change-vl-loadresult
            • Vl-loadresult-p
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-loadresult

    Vl-loadresult-p

    Recognizer for vl-loadresult structures.

    Signature
    (vl-loadresult-p x) → *

    Definitions and Theorems

    Function: vl-loadresult-p

    (defun vl-loadresult-p (x)
     (declare (xargs :guard t))
     (let ((__function__ 'vl-loadresult-p))
      (declare (ignorable __function__))
      (and (consp x)
           (eq (car x) :vl-loadresult)
           (mbe :logic (and (alistp (cdr x))
                            (equal (strip-cars (cdr x))
                                   '(design filemap defines)))
                :exec (fty::alist-with-carsp (cdr x)
                                             '(design filemap defines)))
           (b* ((design (cdr (std::da-nth 0 (cdr x))))
                (filemap (cdr (std::da-nth 1 (cdr x))))
                (defines (cdr (std::da-nth 2 (cdr x)))))
             (and (vl-design-p design)
                  (vl-filemap-p filemap)
                  (vl-defines-p defines))))))

    Theorem: consp-when-vl-loadresult-p

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