• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
            • Vl-interfaceportlist->ifnames
            • Vl-blockscope
            • Vl-scope-find-item
            • Vl-scopestack-find-item/ss/package
            • Vl-importlist-find-explicit-item
            • Vl-scopestack-find-item/context
            • Vl-importlist-find-implicit-item
            • Vl-import-stars-find-item
            • Vl-scopeinfo
            • Vl-importlist->explicit-item-alist
            • Vl-scopestack-find-definition/ss
            • Vl-scopeitem
              • Vl-scopeitem-p
                • Vl-scopeitem-fix
                • Vl-maybe-scopeitem
                • Vl-scopeitem-equiv
                • Vl-scopeitem-alist-count
                • Vl-scopeitem-alist
                • Vl-scopeitemlist
              • Vl-scopestack-find-package/ss
              • Vl-scopestack
              • Vl-scopeinfo-find-item
              • Vl-scopestack-find-item/ss
              • Vl-scopestack-find-class/ss
              • Scopestack-constants
              • Vl-scope-namespace
              • Vl-maybe-scope
              • Vl-importresult
              • Vl-scopestack-push
              • Vl-import-stars-itemnames
              • Vl-scope->scopeinfo
              • Vl-scope-find-item-fast
              • Vl-interface-scope-find-item
              • Vl-genblob-scope-find-item
              • Vl-module-scope-find-item
              • Vl-design-scope-find-definition
              • Vl-scopestack-find-item
              • Vl-scopestack-find-definition
              • Vl-scopeinfo->itemnames
              • Vl-scope-find-portdecl
              • Vl-scope-find-definition
              • Vl-package-scope-find-item
              • Vl-interface-scope-find-portdecl
              • Vl-genblob-scope-find-portdecl
              • Vl-design-scope-find-item
              • Vl-blockscope-scope-find-item
              • Vl-scopestack-find-package
              • Vl-scope-find-package
              • Vl-module-scope-find-portdecl
              • Vl-design-scope-find-package
              • Vl-design-scope-find-class
              • Vl-class-scope-find-item
              • Vl-scopestack-find-class
              • Vl-scope-find-class
              • Vl-scopestack->hashkey
              • Vl-scope-find-portdecl-fast
              • Vl-package-scope-item-alist-top
              • Vl-scopestack->path-aux
              • Vl-scopedef
              • Vl-scope-portdecl-alist
              • Vl-scope-package-alist
              • Vl-scope-find-definition-fast
              • Vl-scope-definition-alist
              • Vl-scope-find-package-fast
              • Vl-scope-find-class-fast
              • Vl-scope-class-alist
              • Vl-scopestack->path
              • Vl-scopestack->design
              • Vl-scopeitem->name
              • Vl-scope
              • Vl-scopestack-init
              • Vl-importlist->star-packages
              • Vl-scopestack-pop
              • Vl-scopestack-nesting-level
              • Vl-scopestack->toplevel
              • Vl-scope->scopetype
              • Vl-scope->id
              • Vl-design-scope-package-alist-top
              • Vl-bindlist->modinsts
              • Vl-scopestack-toplevel-p
              • Vl-scopestacks-free
              • Vl-importresult-alist
            • Hid-tools
            • Filtering-by-name
            • Vl-interface-mocktype
            • Stripping-functions
            • Genblob
            • Expr-tools
            • Extract-vl-types
            • Hierarchy
            • Range-tools
            • Finding-by-name
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-scopeitem

    Vl-scopeitem-p

    Recognizer for vl-scopeitem.

    Signature
    (vl-scopeitem-p x) → *

    Definitions and Theorems

    Function: vl-scopeitem-p

    (defun vl-scopeitem-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-scopeitem-p))
        (declare (ignorable __function__))
        (common-lisp::case (tag x)
          ((:vl-modinst) (vl-modinst-p x))
          ((:vl-gateinst) (vl-gateinst-p x))
          ((:vl-genvar) (vl-genvar-p x))
          ((:vl-genbase :vl-genbegin
                        :vl-genif :vl-gencase
                        :vl-genloop :vl-genarray)
           (vl-genelement-p x))
          ((:vl-interfaceport)
           (vl-interfaceport-p x))
          ((:vl-modport) (vl-modport-p x))
          ((:vl-paramdecl) (vl-paramdecl-p x))
          ((:vl-vardecl) (vl-vardecl-p x))
          ((:vl-fundecl) (vl-fundecl-p x))
          ((:vl-taskdecl) (vl-taskdecl-p x))
          ((:vl-typedef) (vl-typedef-p x))
          (otherwise (vl-dpiimport-p x)))))

    Theorem: consp-when-vl-scopeitem-p

    (defthm consp-when-vl-scopeitem-p
      (implies (vl-scopeitem-p x) (consp x))
      :rule-classes :compound-recognizer)

    Theorem: vl-scopeitem-p-when-vl-modinst-p

    (defthm vl-scopeitem-p-when-vl-modinst-p
      (implies (vl-modinst-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-gateinst-p

    (defthm vl-scopeitem-p-when-vl-gateinst-p
      (implies (vl-gateinst-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-genvar-p

    (defthm vl-scopeitem-p-when-vl-genvar-p
      (implies (vl-genvar-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-genelement-p

    (defthm vl-scopeitem-p-when-vl-genelement-p
      (implies (vl-genelement-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-interfaceport-p

    (defthm vl-scopeitem-p-when-vl-interfaceport-p
      (implies (vl-interfaceport-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-modport-p

    (defthm vl-scopeitem-p-when-vl-modport-p
      (implies (vl-modport-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-paramdecl-p

    (defthm vl-scopeitem-p-when-vl-paramdecl-p
      (implies (vl-paramdecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-vardecl-p

    (defthm vl-scopeitem-p-when-vl-vardecl-p
      (implies (vl-vardecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-fundecl-p

    (defthm vl-scopeitem-p-when-vl-fundecl-p
      (implies (vl-fundecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-taskdecl-p

    (defthm vl-scopeitem-p-when-vl-taskdecl-p
      (implies (vl-taskdecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-typedef-p

    (defthm vl-scopeitem-p-when-vl-typedef-p
      (implies (vl-typedef-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-dpiimport-p

    (defthm vl-scopeitem-p-when-vl-dpiimport-p
      (implies (vl-dpiimport-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-modinst-p-by-tag-when-vl-scopeitem-p

    (defthm vl-modinst-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-modinst))
                    (vl-scopeitem-p x))
               (vl-modinst-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-gateinst-p-by-tag-when-vl-scopeitem-p

    (defthm vl-gateinst-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-gateinst))
                    (vl-scopeitem-p x))
               (vl-gateinst-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-genvar-p-by-tag-when-vl-scopeitem-p

    (defthm vl-genvar-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-genvar))
                    (vl-scopeitem-p x))
               (vl-genvar-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-genelement-p-by-tag-when-vl-scopeitem-p

    (defthm vl-genelement-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-genbase)
                        (equal (tag x) :vl-genbegin)
                        (equal (tag x) :vl-genif)
                        (equal (tag x) :vl-gencase)
                        (equal (tag x) :vl-genloop)
                        (equal (tag x) :vl-genarray))
                    (vl-scopeitem-p x))
               (vl-genelement-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-interfaceport-p-by-tag-when-vl-scopeitem-p

    (defthm vl-interfaceport-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-interfaceport))
                    (vl-scopeitem-p x))
               (vl-interfaceport-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-modport-p-by-tag-when-vl-scopeitem-p

    (defthm vl-modport-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-modport))
                    (vl-scopeitem-p x))
               (vl-modport-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-paramdecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-paramdecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-paramdecl))
                    (vl-scopeitem-p x))
               (vl-paramdecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-vardecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-vardecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-vardecl))
                    (vl-scopeitem-p x))
               (vl-vardecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-fundecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-fundecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-fundecl))
                    (vl-scopeitem-p x))
               (vl-fundecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-taskdecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-taskdecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-taskdecl))
                    (vl-scopeitem-p x))
               (vl-taskdecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-typedef-p-by-tag-when-vl-scopeitem-p

    (defthm vl-typedef-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-typedef))
                    (vl-scopeitem-p x))
               (vl-typedef-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-dpiimport-p-by-tag-when-vl-scopeitem-p

    (defthm vl-dpiimport-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-dpiimport))
                    (vl-scopeitem-p x))
               (vl-dpiimport-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-invalid-tag

    (defthm vl-scopeitem-p-when-invalid-tag
      (implies (and (not (equal (tag x) :vl-modinst))
                    (not (equal (tag x) :vl-gateinst))
                    (not (equal (tag x) :vl-genvar))
                    (not (equal (tag x) :vl-genbase))
                    (not (equal (tag x) :vl-genbegin))
                    (not (equal (tag x) :vl-genif))
                    (not (equal (tag x) :vl-gencase))
                    (not (equal (tag x) :vl-genloop))
                    (not (equal (tag x) :vl-genarray))
                    (not (equal (tag x) :vl-interfaceport))
                    (not (equal (tag x) :vl-modport))
                    (not (equal (tag x) :vl-paramdecl))
                    (not (equal (tag x) :vl-vardecl))
                    (not (equal (tag x) :vl-fundecl))
                    (not (equal (tag x) :vl-taskdecl))
                    (not (equal (tag x) :vl-typedef))
                    (not (equal (tag x) :vl-dpiimport)))
               (not (vl-scopeitem-p x)))
      :rule-classes ((:rewrite :backchain-limit-lst 0)))

    Theorem: tag-when-vl-scopeitem-p-forward

    (defthm tag-when-vl-scopeitem-p-forward
      (implies (vl-scopeitem-p x)
               (or (equal (tag x) :vl-modinst)
                   (equal (tag x) :vl-gateinst)
                   (equal (tag x) :vl-genvar)
                   (equal (tag x) :vl-genbase)
                   (equal (tag x) :vl-genbegin)
                   (equal (tag x) :vl-genif)
                   (equal (tag x) :vl-gencase)
                   (equal (tag x) :vl-genloop)
                   (equal (tag x) :vl-genarray)
                   (equal (tag x) :vl-interfaceport)
                   (equal (tag x) :vl-modport)
                   (equal (tag x) :vl-paramdecl)
                   (equal (tag x) :vl-vardecl)
                   (equal (tag x) :vl-fundecl)
                   (equal (tag x) :vl-taskdecl)
                   (equal (tag x) :vl-typedef)
                   (equal (tag x) :vl-dpiimport)))
      :rule-classes ((:forward-chaining)))