Check redundancy, process the inputs, and generate the event.
(solve-fn old method method? method-rules solution-name solution-enable solution-enable? solution-guard solution-guard? solution-guard-hints solution-guard-hints? solution-body solution-body? solution-hints solution-hints? new-name new-enable old-if-new-name old-if-new-name? old-if-new-enable old-if-new-enable? verify-guards print show-only call ctx state) → (mv erp event state)
Function:
(defun solve-fn (old method method? method-rules solution-name solution-enable solution-enable? solution-guard solution-guard? solution-guard-hints solution-guard-hints? solution-body solution-body? solution-hints solution-hints? new-name new-enable old-if-new-name old-if-new-name? old-if-new-enable old-if-new-enable? verify-guards print show-only call ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (booleanp method?) (booleanp solution-enable?) (booleanp solution-guard?) (booleanp solution-guard-hints?) (booleanp solution-body?) (booleanp solution-hints?) (booleanp old-if-new-name?) (booleanp old-if-new-enable?) (pseudo-event-formp call)))) (let ((__function__ 'solve-fn)) (declare (ignorable __function__)) (b* ((encapsulate? (previous-transformation-expansion call (w state))) ((when encapsulate?) (b* (((run-when show-only) (cw "~x0~|" encapsulate?))) (cw "~%The transformation ~x0 is redundant.~%" call) (value '(value-triple :invisible)))) ((er (list old ??f x1...xn matrix f f-existsp new new-enable old-if-new old-if-new-enable verify-guards names-to-avoid)) (solve-process-inputs old method method? method-rules solution-name solution-enable solution-enable? solution-guard solution-guard? solution-guard-hints solution-guard-hints? solution-body solution-body? solution-hints solution-hints? new-name new-enable old-if-new-name old-if-new-name? old-if-new-enable old-if-new-enable? verify-guards print show-only ctx state)) ((er event) (solve-gen-everything old ?f x1...xn matrix method method-rules f f-existsp solution-enable solution-guard solution-guard-hints solution-body solution-hints new new-enable old-if-new old-if-new-enable verify-guards print show-only call names-to-avoid ctx state))) (value event))))