Process the
(input-files-process-preprocess-args
preprocessor preprocess-args state)
→
(mv erp preprocess-extra-args)The
If processing of the
Function:
(defun input-files-process-preprocess-args (preprocessor preprocess-args state) (declare (xargs :stobjs (state))) (declare (xargs :guard (string-optionp preprocessor))) (declare (ignore state)) (let ((__function__ 'input-files-process-preprocess-args)) (declare (ignorable __function__)) (b* (((reterr) nil) ((when (and (not preprocessor) preprocess-args)) (reterr (msg "Since the :PREPROCESS input is NIL, ~ the :PREPROCESS-ARGS input must also be NIL, ~ but it is ~x0 instead." preprocess-args))) ((unless (or (string-listp preprocess-args) (acl2::string-stringlist-mapp preprocess-args))) (reterr (msg "The :PREPROCESS-ARGS input must evaluate to ~ a list of strings ~ or an omap associating strings to lists of strings, ~ but it evaluates to ~x0 instead." preprocess-args)))) (retok preprocess-args))))
Theorem:
(defthm return-type-of-input-files-process-preprocess-args.preprocess-extra-args (b* (((mv acl2::?erp ?preprocess-extra-args) (input-files-process-preprocess-args preprocessor preprocess-args state))) (or (string-listp preprocess-extra-args) (acl2::string-stringlist-mapp preprocess-extra-args))) :rule-classes :rewrite)
Theorem:
(defthm string-listp-of-input-files-process-preprocess-args.preprocess-extra-args (b* (((mv acl2::?erp ?preprocess-extra-args) (input-files-process-preprocess-args preprocessor preprocess-args state))) (implies (not (acl2::string-stringlist-mapp preprocess-extra-args)) (string-listp preprocess-extra-args))))
Theorem:
(defthm string-stringlist-mapp-of-input-files-process-preprocess-args.preprocess-extra-args (b* (((mv acl2::?erp ?preprocess-extra-args) (input-files-process-preprocess-args preprocessor preprocess-args state))) (implies (not (string-listp preprocess-extra-args)) (acl2::string-stringlist-mapp preprocess-extra-args))))