• 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
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
            • Vl-loadresult-fix
            • Vl-loadresult-equiv
            • Make-vl-loadresult
            • Vl-loadresult-p
              • Vl-loadresult->ifdefmap
              • Change-vl-loadresult
              • Vl-loadresult->filemap
              • Vl-loadresult->design
              • Vl-loadresult->defmap
              • Vl-loadresult->defines
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • 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 ifdefmap defmap)))
          :exec (fty::alist-with-carsp
                     (cdr x)
                     '(design filemap defines ifdefmap defmap)))
       (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))))
            (ifdefmap (cdr (std::da-nth 3 (cdr x))))
            (defmap (cdr (std::da-nth 4 (cdr x)))))
         (and (vl-design-p design)
              (vl-filemap-p filemap)
              (vl-defines-p defines)
              (vl-ifdef-use-map-p ifdefmap)
              (vl-def-use-map-p defmap))))))

    Theorem: consp-when-vl-loadresult-p

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