• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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->filename

    Get the filename from a vl-location.

    Signature
    (vl-location->filename x) → filename
    Arguments
    x — Guard (vl-location-p x).
    Returns
    filename — Type (stringp filename).

    Definitions and Theorems

    Function: vl-location->filename$inline

    (defun vl-location->filename$inline (x)
      (declare (xargs :guard (vl-location-p x)))
      (let ((__function__ 'vl-location->filename))
        (declare (ignorable __function__))
        (cddr (vl-location-fix x))))

    Theorem: stringp-of-vl-location->filename

    (defthm stringp-of-vl-location->filename
      (b* ((filename (vl-location->filename$inline x)))
        (stringp filename))
      :rule-classes :type-prescription)

    Theorem: vl-location->filename-of-vl-location

    (defthm vl-location->filename-of-vl-location
      (equal (vl-location->filename (vl-location filename line col))
             (str-fix filename)))