• 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-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

    Make-vl-location

    Basic constructor macro for vl-location structures.

    Syntax
    (make-vl-location [:filename <filename>] 
                      [:line <line>] 
                      [:col <col>]) 
    

    This is the usual way to construct vl-location structures. It simply conses together a structure with the specified fields.

    This macro generates a new vl-location structure from scratch. See also change-vl-location, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-location

    (defmacro make-vl-location (&rest args)
      (std::make-aggregate 'vl-location
                           args '((:filename) (:line) (:col))
                           'make-vl-location
                           nil))

    Function: vl-location

    (defun vl-location (filename line col)
      (declare (xargs :guard (and (stringp filename)
                                  (posp line)
                                  (natp col))))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-location))
        (declare (ignorable __function__))
        (b* ((filename (mbe :logic (str-fix filename)
                            :exec filename))
             (line (mbe :logic (pos-fix line) :exec line))
             (col (mbe :logic (nfix col) :exec col)))
          (cons :vl-location
                (std::prod-cons filename (std::prod-cons line col))))))