Pretty-print a file.
(pprint-file file include options) → lines
We start with a line comment saying that the file is generated by ATC.
The
Function:
(defun pprint-file (file include options) (declare (xargs :guard (and (filep file) (maybe-stringp include) (pprint-options-p options)))) (let ((__function__ 'pprint-file)) (declare (ignorable __function__)) (b* (((file file) file)) (append (list "// This file is generated by ATC.~%") (and include (list (str::cat "~%#include \"" include "\"~%"))) (pprint-ext-declon-list file.declons options)))))
Theorem:
(defthm msg-listp-of-pprint-file (b* ((lines (pprint-file file include options))) (msg-listp lines)) :rule-classes :rewrite)