• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-read-file
          • Vl-find-basename/extension
          • Vl-find-file
          • Vl-read-files
          • Extended-characters
            • Vl-echar-p
            • Vl-location
              • Vl-location-p
              • Vl-location-fix
              • Vl-string-between-locs
              • Vl-location-between-p
              • Vl-string-findloc
              • Vl-location-equiv
              • Make-vl-location
              • Vl-location-string
              • Vl-location->filename
                • Vl-location->line
                • Change-vl-location
                • Vl-location->col
                • *vl-fakeloc*
              • 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-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-location

    Vl-location->filename

    Get the filename field from a vl-location.

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

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vl-location->filename$inline

    (defun vl-location->filename$inline (x)
      (declare (xargs :guard (vl-location-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-location->filename))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (str-fix (std::prod-car (cdr x))))
             :exec (std::prod-car (cdr 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$inline-of-vl-location-fix-x

    (defthm vl-location->filename$inline-of-vl-location-fix-x
      (equal (vl-location->filename$inline (vl-location-fix x))
             (vl-location->filename$inline x)))

    Theorem: vl-location->filename$inline-vl-location-equiv-congruence-on-x

    (defthm
         vl-location->filename$inline-vl-location-equiv-congruence-on-x
      (implies (vl-location-equiv x x-equiv)
               (equal (vl-location->filename$inline x)
                      (vl-location->filename$inline x-equiv)))
      :rule-classes :congruence)