• 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-bits

    Signature
    (vl-selfassign-bits name low high) → bits
    Arguments
    name — Guard (stringp name).
    low — Guard (natp low).
    high — Guard (natp high).
    Returns
    bits — Type (string-listp bits).

    Definitions and Theorems

    Function: vl-selfassign-bits

    (defun vl-selfassign-bits (name low high)
      (declare (xargs :guard (and (stringp name)
                                  (natp low)
                                  (natp high))))
      (declare (xargs :guard (<= low high)))
      (let ((__function__ 'vl-selfassign-bits))
        (declare (ignorable __function__))
        (if (mbe :logic (zp (- (nfix high) (nfix low)))
                 :exec (eql high low))
            (list (vl-selfassign-bit name low))
          (cons (vl-selfassign-bit name low)
                (vl-selfassign-bits name (+ (lnfix low) 1)
                                    high)))))

    Theorem: string-listp-of-vl-selfassign-bits

    (defthm string-listp-of-vl-selfassign-bits
      (b* ((bits (vl-selfassign-bits name low high)))
        (string-listp bits))
      :rule-classes :rewrite)