• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
          • Ps
          • Verilog-printing
          • Basic-printing
          • Printing-locally
          • Formatted-printing
          • Accessing-printed-output
            • Vl-print-to-file
            • Vl-ps->chars
              • Vl-ps->string
              • With-ps-file
            • Json-printing
            • Vl-printedlist
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Accessing-printed-output

    Vl-ps->chars

    (vl-ps->chars) returns what was printed as a character list in the proper, non-reversed, printed order.

    Signature
    (vl-ps->chars &key (ps 'ps)) → chars
    Returns
    chars — Type (character-listp chars).

    This is expensive. It necessarily involves creating n conses, where n is the number of characters printed. If you really want a string, vl-ps->string will be faster.

    Definitions and Theorems

    Function: vl-ps->chars-fn

    (defun vl-ps->chars-fn (ps)
      (declare (xargs :stobjs (ps)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ps->chars))
        (declare (ignorable __function__))
        (vl-printedlist->chars (vl-ps->rchars)
                               nil)))

    Theorem: character-listp-of-vl-ps->chars

    (defthm character-listp-of-vl-ps->chars
      (b* ((chars (vl-ps->chars-fn ps)))
        (character-listp chars))
      :rule-classes :rewrite)