• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
            • Following-hids
            • Vl-hidexpr-traverse-datatype
            • Abstract-hids
              • Vl-hidexpr-p
              • Vl-hidindex-p
              • Vl-hidexpr-collect-indices
              • Vl-hidindex->indices
              • Vl-hidexpr->rest
              • Vl-indexexpr->indices
              • Vl-hidexpr->first
              • Vl-indexexpr->scopeexpr
              • Vl-scopeexpr->scopes
              • Vl-hidname-p
              • Vl-hidexpr->endp
              • Vl-scopeexpr->hid
                • Vl-hidname->name
                • Vl-hidindex->name
                • Vl-hidindex-count-indices
                • Vl-scopeexpr-p
                • Vl-scopeatom->name
                • Vl-scopename-p
                • Vl-scopename-fix
                • Vl-indexexpr-p
                • Vl-fast-keyguts-p
                • Vl-scopeatom-p
                • Vl-scopenamelist
              • Vl-hidexpr-find-type
            • Vl-consteval
            • Range-tools
            • Lvalexprs
            • Hierarchy
            • Finding-by-name
            • Expr-tools
            • Expr-slicing
            • Stripping-functions
            • Stmt-tools
            • Modnamespace
            • Vl-parse-expr-from-str
            • Welltyped
            • Reordering-by-name
            • Flat-warnings
            • Genblob
            • Expr-building
            • Datatype-tools
            • Syscalls
            • Relocate
            • Expr-cleaning
            • Namemangle
            • Caremask
            • Port-tools
            • Lvalues
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Abstract-hids

    Vl-scopeexpr->hid

    Signature
    (vl-scopeexpr->hid x) → hid
    Arguments
    x — Guard (vl-expr-p x).
    Returns
    hid — Type (vl-expr-p hid).

    Definitions and Theorems

    Function: vl-scopeexpr->hid

    (defun vl-scopeexpr->hid (x)
      (declare (xargs :guard (vl-expr-p x)))
      (declare (xargs :guard (vl-scopeexpr-p x)))
      (let ((__function__ 'vl-scopeexpr->hid))
        (declare (ignorable __function__))
        (b* ((x (vl-expr-fix x))
             ((when (vl-atom-p x)) x)
             ((vl-nonatom x) x)
             ((when (vl-op-equiv x.op :vl-scope))
              (vl-scopeexpr->hid (second x.args))))
          x)))

    Theorem: vl-expr-p-of-vl-scopeexpr->hid

    (defthm vl-expr-p-of-vl-scopeexpr->hid
      (b* ((hid (vl-scopeexpr->hid x)))
        (vl-expr-p hid))
      :rule-classes :rewrite)

    Theorem: vl-hidexpr-p-of-vl-scopeexpr->hid

    (defthm vl-hidexpr-p-of-vl-scopeexpr->hid
      (b* ((?hid (vl-scopeexpr->hid x)))
        (implies (vl-scopeexpr-p x)
                 (vl-hidexpr-p hid))))

    Theorem: vl-scopeexpr->hid-of-vl-expr-fix-x

    (defthm vl-scopeexpr->hid-of-vl-expr-fix-x
      (equal (vl-scopeexpr->hid (vl-expr-fix x))
             (vl-scopeexpr->hid x)))

    Theorem: vl-scopeexpr->hid-vl-expr-equiv-congruence-on-x

    (defthm vl-scopeexpr->hid-vl-expr-equiv-congruence-on-x
      (implies (vl-expr-equiv x x-equiv)
               (equal (vl-scopeexpr->hid x)
                      (vl-scopeexpr->hid x-equiv)))
      :rule-classes :congruence)