• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
          • Genblob
          • Expr-tools
          • Hierarchy
          • Extract-vl-types
          • Range-tools
          • Finding-by-name
          • Stmt-tools
          • Modnamespace
          • Flat-warnings
          • Reordering-by-name
          • Datatype-tools
            • Vl-dimensionlist-total-size
            • Vl-maybe-usertype-resolve
            • Vl-dimensionlist-resolved-p
            • Vl-datatype-packedp
            • Vl-datatype-select-ok
            • Vl-dimension-size
            • Vl-datatype-size
            • Vl-maybe-dimension-size
            • Vl-hidexpr-name1
              • Maybe-nat-list
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Datatype-tools

    Vl-hidexpr-name1

    Signature
    (vl-hidexpr-name1 x) → name
    Arguments
    x — Guard (vl-hidexpr-p x).
    Returns
    name — Type (vl-hidname-p name).

    Definitions and Theorems

    Function: vl-hidexpr-name1

    (defun vl-hidexpr-name1 (x)
           (declare (xargs :guard (vl-hidexpr-p x)))
           (let ((__function__ 'vl-hidexpr-name1))
                (declare (ignorable __function__))
                (vl-hidexpr-case x
                                 :end x.name
                                 :dot (vl-hidindex->name x.first))))

    Theorem: vl-hidname-p-of-vl-hidexpr-name1

    (defthm vl-hidname-p-of-vl-hidexpr-name1
            (b* ((name (vl-hidexpr-name1 x)))
                (vl-hidname-p name))
            :rule-classes :rewrite)

    Theorem: vl-hidexpr-name1-of-vl-hidexpr-fix-x

    (defthm vl-hidexpr-name1-of-vl-hidexpr-fix-x
            (equal (vl-hidexpr-name1 (vl-hidexpr-fix x))
                   (vl-hidexpr-name1 x)))

    Theorem: vl-hidexpr-name1-vl-hidexpr-equiv-congruence-on-x

    (defthm vl-hidexpr-name1-vl-hidexpr-equiv-congruence-on-x
            (implies (vl-hidexpr-equiv x x-equiv)
                     (equal (vl-hidexpr-name1 x)
                            (vl-hidexpr-name1 x-equiv)))
            :rule-classes :congruence)