Implementation of input-files-prog.
(input-files-prog-fn files-presentp
files path preprocess preprocess-args
process const-presentp const keep-going
std gcc short-bytes int-bytes long-bytes
long-long-bytes plain-char-signed state)
→
(mv erp code state)We set the flag
Function:
(defun input-files-prog-fn (files-presentp files path preprocess preprocess-args process const-presentp const keep-going std gcc short-bytes int-bytes long-bytes long-long-bytes plain-char-signed state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (booleanp files-presentp) (booleanp const-presentp)))) (let ((__function__ 'input-files-prog-fn)) (declare (ignorable __function__)) (b* (((reterr) (irr-code-ensemble) state) ((erp & code state) (input-files-process-inputs-and-gen-events files-presentp files path preprocess preprocess-args process const-presentp const keep-going std gcc short-bytes int-bytes long-bytes long-long-bytes plain-char-signed t state))) (retok code state))))
Theorem:
(defthm code-ensemblep-of-input-files-prog-fn.code (b* (((mv acl2::?erp ?code acl2::?state) (input-files-prog-fn files-presentp files path preprocess preprocess-args process const-presentp const keep-going std gcc short-bytes int-bytes long-bytes long-long-bytes plain-char-signed state))) (code-ensemblep code)) :rule-classes :rewrite)
Theorem:
(defthm code-ensemble-unambp-of-input-files-prog-fn (implies (or (equal process :disambiguate) (equal process :validate)) (b* (((mv acl2::?erp ?code acl2::?state) (input-files-prog-fn files-presentp files path preprocess preprocess-args process const-presentp const keep-going std gcc short-bytes int-bytes long-bytes long-long-bytes plain-char-signed state))) (implies (not erp) (code-ensemble-unambp code)))))