• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
        • Kit
        • Printer
          • Ps
          • Basic-printing
          • Verilog-printing
          • Printing-locally
          • Formatted-printing
          • Accessing-printed-output
          • Vl-printedlist
            • Vl-printedlist-fix
            • Vl-printedlist-p
            • Vl-printedlist-equiv
            • Vl-printedlist->string
              • Vl-printed-p
            • Json-printing
          • Esim-vl
          • Well-formedness
        • Sv
        • Vwsim
        • Fgl
        • Vl
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-printedlist

    Vl-printedlist->string

    (vl-printedlist->string) returns the printed characters as a string in the proper, non-reversed, printed order.

    Signature
    (vl-printedlist->string x) → str
    Arguments
    x — Guard (vl-printedlist-p x).
    Returns
    str — Type (stringp str).

    This is logically just (implode (vl-printedlist->chars)), but we install a more efficient definition under the hood in raw Lisp.

    Definitions and Theorems

    Function: vl-printedlist->string

    (defun vl-printedlist->string (x)
      (declare (xargs :guard (vl-printedlist-p x)))
      (let ((__function__ 'vl-printedlist->string))
        (declare (ignorable __function__))
        (implode (vl-printedlist->chars x nil))))

    Theorem: stringp-of-vl-printedlist->string

    (defthm stringp-of-vl-printedlist->string
      (b* ((str (vl-printedlist->string x)))
        (stringp str))
      :rule-classes :type-prescription)