Process all the inputs.
(schemalg-process-inputs old schema schema? list-input list-input? oset-input oset-input? cdr-output cdr-output? tail-output tail-output? fvar-0-name fvar-0-name? fvar-1-name fvar-1-name? fvar-2-name fvar-2-name? algo-name algo-enable spec-0-name spec-0-name? spec-0-enable spec-0-enable? spec-1-name spec-1-name? spec-1-enable spec-1-enable? spec-2-name spec-2-name? spec-2-enable spec-2-enable? equal-algo-name equal-algo-enable 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) → (mv erp result state)
Function:
(defun schemalg-process-inputs (old schema schema? list-input list-input? oset-input oset-input? cdr-output cdr-output? tail-output tail-output? fvar-0-name fvar-0-name? fvar-1-name fvar-1-name? fvar-2-name fvar-2-name? algo-name algo-enable spec-0-name spec-0-name? spec-0-enable spec-0-enable? spec-1-name spec-1-name? spec-1-enable spec-1-enable? spec-2-name spec-2-name? spec-2-enable spec-2-enable? equal-algo-name equal-algo-enable 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) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (booleanp schema?) (booleanp list-input?) (booleanp oset-input?) (booleanp cdr-output?) (booleanp tail-output?) (booleanp fvar-0-name?) (booleanp fvar-1-name?) (booleanp fvar-2-name?) (booleanp spec-0-name?) (booleanp spec-0-enable?) (booleanp spec-1-name?) (booleanp spec-1-enable?) (booleanp spec-2-name?) (booleanp spec-2-enable?) (booleanp old-if-new-name?) (booleanp old-if-new-enable?)))) (let ((__function__ 'schemalg-process-inputs)) (declare (ignorable __function__)) (b* ((names-to-avoid nil) ((er (list old ??f x-x1...xn x-a1...am out iorel)) (process-input-old-soft-io-sel-mod old verify-guards ctx state)) ((er &) (schemalg-process-schema schema schema? ctx state)) ((er (list x y ??g ??g0 ??g1 ??h ??f1...?fp spec-0 spec-1 spec-2 names-to-avoid)) (schemalg-process-schema-inputs schema list-input list-input? oset-input oset-input? cdr-output cdr-output? tail-output tail-output? fvar-0-name fvar-0-name? fvar-1-name fvar-1-name? fvar-2-name fvar-2-name? spec-0-name spec-0-name? spec-0-enable spec-0-enable? spec-1-name spec-1-name? spec-1-enable spec-1-enable? spec-2-name spec-2-name? spec-2-enable spec-2-enable? old ?f x-x1...xn x-a1...am names-to-avoid ctx state)) ((er (list algo names-to-avoid)) (schemalg-process-algo-name algo-name ?f ?f1...?fp names-to-avoid ctx state)) ((er &) (ensure-value-is-boolean$ algo-enable "The :ALGO-ENABLE input" t nil)) ((er (list equal-algo names-to-avoid)) (schemalg-process-equal-algo-name equal-algo-name ?f algo names-to-avoid ctx state)) ((er &) (ensure-value-is-boolean$ equal-algo-enable "The :EQUAL-ALGO-ENABLE input" t nil)) ((er (list new names-to-avoid)) (process-input-new-name new-name old names-to-avoid ctx state)) ((er new-enable) (process-input-new-enable new-enable old ctx state)) ((er (list old-if-new names-to-avoid)) (process-input-old-if-new-name old-if-new-name old-if-new-name? old new names-to-avoid ctx state)) ((er old-if-new-enable) (process-input-old-if-new-enable old-if-new-enable old-if-new-enable? ctx state)) ((er verify-guards) (process-input-verify-guards verify-guards old ctx state)) ((er &) (evmac-process-input-print print ctx state)) ((er &) (evmac-process-input-show-only show-only ctx state))) (value (list old ?f x-x1...xn x-a1...am out iorel x y ?g ?g0 ?g1 ?h ?f1...?fp algo spec-0 spec-1 spec-2 equal-algo new new-enable old-if-new old-if-new-enable verify-guards names-to-avoid)))))