Encode all the values from an STV line.
(stv-entries-to-xml entries expansions acc) → acc
Function:
(defun stv-entries-to-xml (entries expansions acc) (declare (xargs :guard (true-listp expansions))) (let ((__function__ 'stv-entries-to-xml)) (declare (ignorable __function__)) (b* (((when (atom entries)) acc) (acc (str::revappend-chars "<stv_entry>" acc)) (acc (stv-entry-to-xml (car entries) (car expansions) acc)) (acc (str::revappend-chars "</stv_entry>" acc))) (stv-entries-to-xml (cdr entries) (cdr expansions) acc))))
Theorem:
(defthm character-listp-of-stv-entries-to-xml (implies (character-listp acc) (b* ((acc (stv-entries-to-xml entries expansions acc))) (character-listp acc))) :rule-classes :rewrite)