• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
          • Vl-lintconfig-p
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
            • Vl-modulelist-check-selfassigns
            • Vl-expr-approx-bits
            • Vl-assignlist-check-selfassigns
            • Vl-assign-check-selfassigns
            • Vl-module-check-selfassigns
            • Vl-selfassign-bits
            • Vl-design-check-selfassigns
            • Vl-selfassign-bit
            • Leftright-check
            • Dupeinst-check
            • Oddexpr-check
            • Remove-toohard
            • Qmarksize-check
            • Portcheck
            • Duplicate-detect
            • Vl-print-certain-warnings
            • Duperhs-check
            • *vl-lint-help*
            • Lint-stmt-rewrite
            • Drop-missing-submodules
            • Check-case
            • Drop-user-submodules
            • Check-namespace
            • Vl-lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Selfassigns

    Vl-selfassign-bit

    Signature
    (vl-selfassign-bit name index) → bit
    Arguments
    name — Guard (stringp name).
    index — Guard (natp index).
    Returns
    bit — Type (stringp bit).

    Definitions and Theorems

    Function: vl-selfassign-bit

    (defun vl-selfassign-bit (name index)
      (declare (xargs :guard (and (stringp name) (natp index))))
      (let ((__function__ 'vl-selfassign-bit))
        (declare (ignorable __function__))
        (cat name "[" (natstr index) "]")))

    Theorem: stringp-of-vl-selfassign-bit

    (defthm stringp-of-vl-selfassign-bit
      (b* ((bit (vl-selfassign-bit name index)))
        (stringp bit))
      :rule-classes :type-prescription)