• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
            • Concrete-syntax
            • Disambiguation
            • Validation
            • Gcc-builtins
            • Preprocessing
              • Preprocessor
                • Pproc
                • Preprocessor-states
                • Preprocessor-printer
                  • Pprint-char
                  • Pprint-astring
                  • Pprint-pnumber
                  • Pprint-oct-digit-achar
                  • Pprint-hex-digit-achar
                  • Pprint-dec-digit-achar
                  • Pprint-simple-escape
                  • Pprint-lexeme
                  • Pprint-chars
                  • Plexemes-to-bytes
                  • Pprint-univ-char-name
                  • Pprint-s-char-list
                  • Pprint-s-char
                  • Pprint-q-char-list
                  • Pprint-q-char
                  • Pprint-other
                  • Pprint-oct-escape
                  • Pprint-hex-digit-achars
                  • Pprint-header-name
                  • Pprint-h-char-list
                  • Pprint-h-char
                  • Pprint-c-char-list
                    • Pprint-c-char
                    • Pprint-block-comment
                    • Pprint-stringlit
                    • Pprint-punctuator
                    • Pprint-line-comment
                    • Pprint-lexeme-list
                    • Pprint-ident
                    • Pprint-hex-quad
                    • Pprint-cconst
                    • Pprint-newline
                    • Pprint-escape
                    • Pprint-eprefix
                    • Pprint-cprefix
                    • Pprint-spaces
                    • Pprint-sign
                    • Pprint-vertical-tab
                    • Pprint-horizontal-tab
                    • Pprint-form-feed
                  • Pread-token/newline
                  • Pread-token
                  • Pproc-files
                  • Preprocessor-lexer
                  • Pproc-file
                  • Pproc-group-part
                  • Pproc-*-group-part
                  • Pproc-directive
                  • *pproc-files-max*
                  • String-plexeme-list-alist-to-filepath-filedata-map
                  • String-plexeme-list-alist
                  • Read-input-file-to-preproc
                  • Preprocessor-reader
                  • Preprocessor-messages
                • External-preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Preprocessor-printer

    Pprint-c-char-list

    Print a list of characters and escape sequences usable in character constants, after preprocessing.

    Signature
    (pprint-c-char-list cchars bytes) → new-bytes
    Arguments
    cchars — Guard (c-char-listp cchars).
    bytes — Guard (byte-listp bytes).
    Returns
    new-bytes — Type (byte-listp new-bytes).

    Definitions and Theorems

    Function: pprint-c-char-list

    (defun pprint-c-char-list (cchars bytes)
      (declare (xargs :guard (and (c-char-listp cchars)
                                  (byte-listp bytes))))
      (b* (((when (endp cchars))
            (byte-list-fix bytes))
           (bytes (pprint-c-char (car cchars) bytes)))
        (pprint-c-char-list (cdr cchars)
                            bytes)))

    Theorem: byte-listp-of-pprint-c-char-list

    (defthm byte-listp-of-pprint-c-char-list
      (b* ((new-bytes (pprint-c-char-list cchars bytes)))
        (byte-listp new-bytes))
      :rule-classes :rewrite)