(json-encode-char x acc) → new-acc
Function:
(defun json-encode-char$inline (x acc) (declare (type character x)) (let ((__function__ 'json-encode-char)) (declare (ignorable __function__)) (b* (((when (eql x #\\)) (cons #\\ (cons #\\ acc))) ((when (eql x #\")) (cons #\" (cons #\\ acc))) ((the (unsigned-byte 8) code) (char-code x)) ((when (or (<= code 31) (>= code 127))) (json-encode-weird-char code acc))) (cons x acc))))
Theorem:
(defthm character-listp-of-json-encode-char (implies (and (characterp x) (character-listp acc)) (b* ((new-acc (json-encode-char$inline x acc))) (character-listp new-acc))) :rule-classes :rewrite)