Process the
(process-input-wrapper-enable wrapper-enable wrapper-enable-present gen-wrapper ctx state) → (mv erp processed-wrapper-enable state)
The APT transformations that use this utility
have a
The
The caller of this utility must set
the parameter
Function:
(defun process-input-wrapper-enable (wrapper-enable wrapper-enable-present gen-wrapper ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (booleanp wrapper-enable-present) (booleanp gen-wrapper)))) (let ((__function__ 'process-input-wrapper-enable)) (declare (ignorable __function__)) (if gen-wrapper (if wrapper-enable-present (b* (((er &) (ensure-value-is-boolean$ wrapper-enable "The :WRAPPER-ENABLE input" t nil))) (value wrapper-enable)) (value (get-default-input-wrapper-enable (w state)))) (if wrapper-enable-present (er-soft+ ctx t nil "Since the :WRAPPER input is (perhaps by default) NIL, ~ no :WRAPPER-ENABLE input may be supplied, but ~x0 was supplied instead." wrapper-enable) (value nil)))))
Theorem:
(defthm booleanp-of-process-input-wrapper-enable.processed-wrapper-enable (b* (((mv ?erp ?processed-wrapper-enable acl2::?state) (process-input-wrapper-enable wrapper-enable wrapper-enable-present gen-wrapper ctx state))) (booleanp processed-wrapper-enable)) :rule-classes :rewrite)