• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
          • Address
          • Wire
          • Module
          • Lhs
          • Path
            • Path-fix
            • Path-p
            • Path-scope
              • Make-path-scope
                • Path-scope->subpath
                • Path-scope->namespace
                • Change-path-scope
              • Path-equiv
              • Path-count
              • Path-append
              • Path-wire
              • Path-kind
            • Svar-add-namespace
            • Design
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Path-scope

    Make-path-scope

    Basic constructor macro for path-scope structures.

    Syntax
    (make-path-scope [:subpath <subpath>] 
                     [:namespace <namespace>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-path-scope

    (defmacro make-path-scope (&rest args)
      (std::make-aggregate 'path-scope
                           args '((:subpath) (:namespace))
                           'make-path-scope
                           nil))

    Function: path-scope

    (defun path-scope (subpath namespace)
      (declare (xargs :guard (and (path-p subpath)
                                  (name-p namespace))))
      (declare (xargs :guard t))
      (let ((__function__ 'path-scope))
        (declare (ignorable __function__))
        (b* ((subpath (mbe :logic (path-fix subpath)
                           :exec subpath))
             (namespace (mbe :logic (name-fix namespace)
                             :exec namespace)))
          (cons namespace subpath))))