Print a header name after preprocessing.
(pprint-header-name header bytes) → new-bytes
Function:
(defun pprint-header-name (header bytes) (declare (xargs :guard (and (header-namep header) (byte-listp bytes)))) (header-name-case header :angles (b* ((bytes (pprint-astring "<" bytes)) (bytes (pprint-h-char-list header.chars bytes)) (bytes (pprint-astring ">" bytes))) bytes) :quotes (b* ((bytes (pprint-astring "\"" bytes)) (bytes (pprint-q-char-list header.chars bytes)) (bytes (pprint-astring "\"" bytes))) bytes)))
Theorem:
(defthm byte-listp-of-pprint-header-name (b* ((new-bytes (pprint-header-name header bytes))) (byte-listp new-bytes)) :rule-classes :rewrite)