• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
              • Atj-input-processing
              • Atj-java-pretty-printer
                • Jexpr-rank
                • Print-jexprs
                • Print-jchar
                • Print-jstatems+jblocks
                • Print-jclasses+jcmembers
                • Jbinop-expected-ranks
                • Jexpr->rank
                • Jexpr-rank-<=
                • Print-jexpr
                • Print-optional-integer-type-suffix
                • Print-octdig/uscore-list
                • Print-oct-integer-literal
                • Print-jcunit
                • Print-hexdig/uscore-list
                • Print-hex-integer-literal
                • Print-decdig/uscore-list
                • Print-dec-integer-literal
                • Print-bindig/uscore-list
                • Print-bin-integer-literal
                • Print-integer-literal
                • Print-octdig/uscore
                • Print-jmethod
                • Print-jfield
                • Print-hexdig/uscore
                • Print-decdig/uscore
                • Print-bindig/uscore
                • Print-jclass-list
                • Print-jlocvar
                • Print-jliteral
                • Print-jcinitializer
                • Print-jline
                • Print-jimports
                • Print-jchars
                • Print-comma-sep
                • Print-jimport
                • Print-jbinop
                • Print-primitive-type
                • Print-jparam-list
                • Print-jlines-to-channel
                  • Jexpr-rank-index
                  • Atj-indent
                  • Print-to-jfile
                  • Print-jparam
                  • Print-jaccess
                  • Print-oct-digit
                  • Print-junop
                  • Print-jtype
                  • Print-jresult
                  • Print-hex-digit
                  • Print-dec-digit
                  • Print-bin-digit
                  • Print-jline-blank
                • Atj-code-generation
                • Atj-java-primitives
                • Atj-java-primitive-arrays
                • Atj-type-macros
                • Atj-java-syntax-operations
                • Atj-fn
                • Atj-library-extensions
                • Atj-java-input-types
                • Atj-test-structures
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Atj-java-pretty-printer

    Print-jlines-to-channel

    Write pretty-printed lines to an output channel.

    Signature
    (print-jlines-to-channel lines channel state) → state
    Arguments
    lines — Guard (msg-listp lines).
    channel — Guard (symbolp channel).

    Definitions and Theorems

    Function: print-jlines-to-channel

    (defun print-jlines-to-channel (lines channel state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (msg-listp lines)
                                  (symbolp channel))))
      (let ((__function__ 'print-jlines-to-channel))
        (declare (ignorable __function__))
        (cond ((endp lines) state)
              (t (b* (((mv & state)
                       (fmt1! "~@0" (list (cons #\0 (car lines)))
                              0 channel state nil)))
                   (print-jlines-to-channel (cdr lines)
                                            channel state))))))