Print a string, escaping backslashes and some other character.
(print-escaped-str x slash-char acc) → new-acc
Function:
(defun print-escaped-str$inline (x slash-char acc) (declare (xargs :guard (and (stringp x) (characterp slash-char)))) (let ((acl2::__function__ 'print-escaped-str)) (declare (ignorable acl2::__function__)) (mbe :logic (print-escaped-charlist (explode x) slash-char acc) :exec (print-escaped-str-aux x 0 (length (the string x)) slash-char acc))))
Theorem:
(defthm character-listp-of-print-escaped-str (implies (character-listp acc) (b* ((new-acc (print-escaped-str$inline x slash-char acc))) (character-listp new-acc))) :rule-classes :rewrite)