• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Simplify-defun
        • Isodata
        • Tailrec
        • Schemalg
        • Restrict
          • Restrict-implementation
            • Restrict-event-generation
            • Restrict-fn
            • Restrict-macro-definition
            • Restrict-input-processing
              • Restrict-process-inputs
              • Restrict-process-restriction
              • Restrict-process-old
              • Restrict-process-undefined
          • 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
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Restrict-input-processing

    Restrict-process-undefined

    Process the :undefined input.

    Signature
    (restrict-process-undefined undefined old ctx state) 
      → 
    (mv erp undefined state)
    Arguments
    old — Guard (symbolp old).
    Returns
    undefined — A pseudo-termp that is the translation of undefined.

    Definitions and Theorems

    Function: restrict-process-undefined

    (defun restrict-process-undefined (undefined old ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (symbolp old)))
      (let ((__function__ 'restrict-process-undefined))
        (declare (ignorable __function__))
        (b* ((wrld (w state))
             ((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 1 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))))