Process the
(isodata-process-undefined undefined old$ ctx state) → (mv erp undefined$ state)
Function:
(defun isodata-process-undefined (undefined old$ ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (symbolp old$))) (let ((__function__ 'isodata-process-undefined)) (declare (ignorable __function__)) (b* ((wrld (w state)) (m (number-of-results old$ wrld)) ((when (eq :auto undefined)) (value (if (< 1 m) (fcons-term 'mv (repeat m nil)) nil))) ((when (member-eq undefined '(:base-case-then :base-case-else))) (value undefined)) ((er (list term stobjs-out)) (ensure-value-is-untranslated-term$ undefined "The :UNDEFINED input" t nil)) (description (msg "The term ~x0 that denotes the undefined value" undefined)) ((er &) (ensure-term-free-vars-subset$ term (formals old$ wrld) description t nil)) ((er &) (ensure-term-logic-mode$ term description t nil)) ((er &) (ensure-function/lambda/term-number-of-results$ stobjs-out m description t nil)) ((er &) (ensure-term-no-stobjs$ stobjs-out description t nil)) ((er &) (ensure-term-does-not-call$ term old$ description t nil))) (value term))))