• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
            • Vl-basic-fmt
              • Vl-basic-fmt-parse-tilde
              • Vl-skip-ws
              • Vl-basic-fmt-aux
              • Vl-fmt-tilde-x
              • Vl-fmt-print-space
                • Vl-fmt-tilde-&
                • Vl-fmt-tilde-s
                • Vl-fmt-print-normal
              • Vl-basic-cw-obj
              • Vl-basic-cw
            • Accessing-printed-output
            • Vl-printedlist
            • Json-printing
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-basic-fmt

    Vl-fmt-print-space

    Signature
    (vl-fmt-print-space &key (ps 'ps)) → ps

    Definitions and Theorems

    Function: vl-fmt-print-space-fn

    (defun vl-fmt-print-space-fn (ps)
      (declare (xargs :stobjs (ps)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-fmt-print-space))
        (declare (ignorable __function__))
        (if (vl-ps->htmlp)
            (vl-print " ")
          (b* ((rchars (vl-ps->rchars))
               (col (vl-ps->col))
               (autowrap-col (vl-ps->autowrap-col))
               ((when (< col autowrap-col))
                (vl-ps-seq (vl-ps-update-rchars (cons #\Space rchars))
                           (vl-ps-update-col (+ 1 col))))
               (indent (vl-ps->autowrap-ind))
               (rchars (cons #\Newline rchars))
               (rchars (make-list-ac indent #\Space rchars)))
            (vl-ps-seq (vl-ps-update-rchars rchars)
                       (vl-ps-update-col indent))))))