Print an identifier after preprocessing.
(pprint-ident ident bytes) → new-bytes
Function:
(defun pprint-ident (ident bytes) (declare (xargs :guard (and (identp ident) (byte-listp bytes)))) (let ((__function__ 'pprint-ident)) (declare (ignorable __function__)) (b* ((string (ident->unwrap ident)) ((unless (stringp string)) (raise "Internal error: bad identifier non-string ~x0." string)) (chars (acl2::string=>nats string)) ((unless (grammar-character-listp chars)) (raise "Internal error: bad identifier characters ~x0." chars))) (pprint-chars chars bytes))))
Theorem:
(defthm byte-listp-of-pprint-ident (b* ((new-bytes (pprint-ident ident bytes))) (byte-listp new-bytes)) :rule-classes :rewrite)