• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Isodata
          • Isodata-implementation
            • Isodata-event-generation
            • Isodata-fn
            • Isodata-input-processing
              • Isodata-symbol-isomap-alistp
              • Isodata-isomapp
              • Isodata-pos-isomap-alistp
              • Isodata-process-iso
              • Isodata-process-inputs
              • Isodata-process-arg/res-list-iso
              • Isodata-process-isomaps
              • Isodata-fresh-defiso-thm-names
              • Isodata-process-arg/res-list
              • Isodata-process-arg/res-list-iso-list
              • Isodata-process-res
              • Isodata-process-old
              • Isodata-fresh-defiso-name-with-*s-suffix
              • Isodata-process-newp-of-new-name
              • Isodata-process-undefined
                • Isodata-isomap-listp
              • Isodata-macro-definition
          • Simplify-defun
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
          • Wrap-output
          • Propagate-iso
          • Simplify
          • Finite-difference
          • Drop-irrelevant-params
          • Copy-function
          • Lift-iso
          • Rename-params
          • Utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
              • Isodata
                • Isodata-implementation
                  • Isodata-event-generation
                  • Isodata-fn
                  • Isodata-input-processing
                    • Isodata-symbol-isomap-alistp
                    • Isodata-isomapp
                    • Isodata-pos-isomap-alistp
                    • Isodata-process-iso
                    • Isodata-process-inputs
                    • Isodata-process-arg/res-list-iso
                    • Isodata-process-isomaps
                    • Isodata-fresh-defiso-thm-names
                    • Isodata-process-arg/res-list
                    • Isodata-process-arg/res-list-iso-list
                    • Isodata-process-res
                    • Isodata-process-old
                    • Isodata-fresh-defiso-name-with-*s-suffix
                    • Isodata-process-newp-of-new-name
                    • Isodata-process-undefined
                      • Isodata-isomap-listp
                    • Isodata-macro-definition
                • Simplify-defun
                • Tailrec
                • Schemalg
                • Restrict
                • Expdata
                • Casesplit
                • Simplify-term
                • Simplify-defun-sk
                • Parteval
                • Solve
                • Wrap-output
                • Propagate-iso
                • Simplify
                • Finite-difference
                • Drop-irrelevant-params
                • Copy-function
                • Lift-iso
                • Rename-params
                • Utilities
                • Simplify-term-programmatic
                • Simplify-defun-sk-programmatic
                • Simplify-defun-programmatic
                • Simplify-defun+
                • Common-options
                • Common-concepts
              • Std/util
              • Defdata
              • Defrstobj
              • Seq
              • Match-tree
              • Defrstobj
              • With-supporters
              • Def-partial-measure
              • Template-subst
              • Soft
              • Defthm-domain
              • Event-macros
              • Def-universal-equiv
              • Def-saved-obligs
              • With-supporters-after
              • Definec
              • Sig
              • Outer-local
              • Data-structures
            • Add-macro-fn
            • Check-vars-not-free
            • Safe-mode
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Installation
          • Mailing-lists
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Isodata-input-processing

      Isodata-process-undefined

      Process the :undefined input.

      Signature
      (isodata-process-undefined undefined old$ ctx state) 
        → 
      (mv erp undefined$ state)
      Arguments
      old$ — Guard (symbolp old$).
      Returns
      undefined$ — Either :base-case-then, or :base-case-else, or a pseudo-termp.

      Definitions and Theorems

      Function: isodata-process-undefined

      (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))
               (stobjs-out (acl2::stobjs-out+ old$ (w state)))
               (m (len stobjs-out))
               ((when (eq :auto undefined))
                (value (if (< 1 m)
                           (cons 'mv stobjs-out)
                         (car stobjs-out))))
               ((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))))