• 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
          • 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-location
              • Vl-location-p
                • Vl-string-between-locs
                • Vl-location-between-p
                • Vl-string-findloc
                • Vl-linecol
                • Vl-location-string
                • Vl-location-fix
                • Vl-location->line
                • Vl-location->filename
                • Vl-location->col
                • Vl-locationlist
                • *vl-fakeloc*
              • Vl-echar-p
              • Vl-echarlist->chars
              • Vl-echarlist-from-chars
              • Vl-echarlist-from-str
              • Vl-echarlist-unsigned-value
              • Vl-change-echarlist-locations
              • Vl-echar-digit-value
              • Vl-echarlist->string
            • 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-location

    Vl-location-p

    Recognizer for vl-location structures.

    Signature
    (vl-location-p x) → *

    Definitions and Theorems

    Function: vl-location-p$inline

    (defun vl-location-p$inline (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-location-p))
        (declare (ignorable __function__))
        (and (consp x)
             (consp (cdr x))
             (eq (cadr x) :vl-location)
             (vl-linecol-p (car x))
             (stringp (cddr x)))))

    Theorem: consp-when-vl-location-p

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