• 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
            • Svarlist-add-delay
            • Svarlist-addr-p
            • Address-fix
            • Svex-alist-add-delay
            • Svarlist-addr-p-badguy
            • Svar-add-delay
            • Make-scoped-svar
            • Address-p
              • Address-equiv
              • Make-address
              • Svar-addr-p
              • Svar-addr-fix
              • Change-address
              • Address->scope
              • Address->path
              • Address->index
              • Svar->address
              • Make-simple-svar
              • Address->svar
              • Svex-add-delay-top
              • Addr-scope
            • Wire
            • Module
            • Lhs
            • Path
            • 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
    • Address

    Address-p

    Recognizer for address structures.

    Signature
    (address-p x) → *

    Definitions and Theorems

    Function: address-p

    (defun address-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'address-p))
        (declare (ignorable __function__))
        (and (b* (((when (or (atom x)
                             (not (eq (car x) :address))))
                   (path-p x)))
               (and (eq (car x) :address)
                    (true-listp x)
                    (eql (len x) 4)
                    (not (and (eq (nth 2 x) nil)
                              (equal (nth 3 x) 0)))))
             (b* ((path (if (or (atom x)
                                (not (eq (car x) :address)))
                            x
                          (nth 1 x)))
                  (index (if (or (atom x)
                                 (not (eq (car x) :address)))
                             nil
                           (nth 2 x)))
                  (scope (if (or (atom x)
                                 (not (eq (car x) :address)))
                             0
                           (nth 3 x))))
               (and (path-p path)
                    (maybe-natp index)
                    (addr-scope-p scope))))))