• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • Hid-tools
            • Vl-follow-hidexpr
            • Vl-index-expr-typetrace
            • Vl-follow-scopeexpr
            • Vl-follow-hidexpr-dimscheck
            • Vl-datatype-resolve-selects
            • Vl-datatype-remove-dim
            • Vl-operandinfo
            • Vl-follow-hidexpr-dimcheck
            • Vl-follow-data-selects
            • Vl-follow-hidexpr-error
            • Vl-hidstep
            • Vl-scopestack-find-item/ss/path
            • Vl-follow-array-indices
            • Vl-scopecontext
            • Vl-datatype-set-unsigned
            • Vl-selstep
            • Vl-scopestack-find-elabpath
            • Vl-hid-prefix-for-subhid
            • Vl-find-structmember
            • Vl-select
              • Vl-select-fix
              • Vl-select-case
              • Vl-select-equiv
              • Vl-select-field
                • Vl-select-field->name
                  • Make-vl-select-field
                  • Change-vl-select-field
                • Vl-select-index
                • Vl-select-p
                • Vl-select-kind
              • Vl-scopeexpr-replace-hid
              • Vl-genblocklist-find-block
              • Vl-partselect-width
              • Vl-seltrace->indices
              • Vl-datatype->structmembers
              • Vl-hidexpr-resolved-p
              • Vl-operandinfo->indices
              • Vl-flatten-hidindex
              • Vl-subhid-p
              • Vl-seltrace-usertypes-ok
              • Vl-flatten-hidexpr
              • Vl-scopeexpr->hid
              • Vl-seltrace-index-count
              • Vl-operandinfo-usertypes-ok
              • Vl-operandinfo-index-count
              • Vl-datatype-dims-count
              • Vl-scopeexpr-index-count
              • Vl-hidexpr-index-count
              • Vl-usertype-lookup
              • Vl-hidindex-resolved-p
              • Vl-scopeexpr-resolved-p
              • Vl-selstep-usertypes-ok
              • Vl-hidtrace
              • Vl-seltrace
              • Vl-scopedef-interface-p
            • 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-select-field

    Vl-select-field->name

    Get the name field from a vl-select-field.

    Signature
    (vl-select-field->name x) → name
    Arguments
    x — Guard (vl-select-p x).
    Returns
    name — Type (stringp name).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vl-select-field->name$inline

    (defun vl-select-field->name$inline (x)
      (declare (xargs :guard (vl-select-p x)))
      (declare (xargs :guard (equal (vl-select-kind x) :field)))
      (let ((__function__ 'vl-select-field->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (vl-select-kind x) :field)
                          x)))
               (str-fix (cdr x)))
             :exec (cdr x))))

    Theorem: stringp-of-vl-select-field->name

    (defthm stringp-of-vl-select-field->name
      (b* ((name (vl-select-field->name$inline x)))
        (stringp name))
      :rule-classes :rewrite)

    Theorem: vl-select-field->name$inline-of-vl-select-fix-x

    (defthm vl-select-field->name$inline-of-vl-select-fix-x
      (equal (vl-select-field->name$inline (vl-select-fix x))
             (vl-select-field->name$inline x)))

    Theorem: vl-select-field->name$inline-vl-select-equiv-congruence-on-x

    (defthm vl-select-field->name$inline-vl-select-equiv-congruence-on-x
      (implies (vl-select-equiv x x-equiv)
               (equal (vl-select-field->name$inline x)
                      (vl-select-field->name$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: vl-select-field->name-when-wrong-kind

    (defthm vl-select-field->name-when-wrong-kind
      (implies (not (equal (vl-select-kind x) :field))
               (equal (vl-select-field->name x)
                      (str-fix nil))))