• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
          • Svtv-spec
          • Defsvtv
          • Process.lisp
          • Svtv-doc
            • Svtv-to-xml
            • Stv-entry-to-xml
            • Stv-line-to-xml
            • Stv-entries-to-xml
            • Stv-lines-to-xml
            • 4vec-to-bitwise-chars
              • Stv-repeat-last-entry
              • Stv-repeat-last-entries
              • 4vec-to-hex-chars
              • 4vec-to-hex-char
              • Stv-name-to-xml
              • Stv-labels-to-xml
              • 4vec-to-xml-chars
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • Svtv-debug
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svtv-doc

    4vec-to-bitwise-chars

    Signature
    (4vec-to-bitwise-chars upper lower width) → chars
    Arguments
    upper — Guard (integerp upper).
    lower — Guard (integerp lower).
    width — Guard (natp width).
    Returns
    chars — Type (character-listp chars).

    Definitions and Theorems

    Function: 4vec-to-bitwise-chars

    (defun 4vec-to-bitwise-chars (upper lower width)
      (declare (xargs :guard (and (integerp upper)
                                  (integerp lower)
                                  (natp width))))
      (let ((__function__ '4vec-to-bitwise-chars))
        (declare (ignorable __function__))
        (b* (((when (zp width)) nil)
             (width (1- width))
             (up (logbitp width upper))
             (low (logbitp width lower))
             (char (if up (if low #\1 #\x)
                     (if low #\z #\0))))
          (cons char
                (4vec-to-bitwise-chars upper lower width)))))

    Theorem: character-listp-of-4vec-to-bitwise-chars

    (defthm character-listp-of-4vec-to-bitwise-chars
      (b* ((chars (4vec-to-bitwise-chars upper lower width)))
        (character-listp chars))
      :rule-classes :rewrite)