• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • 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
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Pfcs
        • Wp-gen
        • Dimacs-reader
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Restrict-input-processing

    Restrict-process-old

    Process the old input.

    Signature
    (restrict-process-old old verify-guards ctx state) 
      → 
    (mv erp old state)
    Returns
    old — A symbolp that is the name of the target function of the transformation, denoted by the old input.

    Definitions and Theorems

    Function: restrict-process-old

    (defun restrict-process-old (old verify-guards ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard t))
     (let ((__function__ 'restrict-process-old))
      (declare (ignorable __function__))
      (b*
       ((wrld (w state))
        ((er old)
         (ensure-function-name-or-numbered-wildcard$
              old "The first input" t nil))
        (description (msg "The target function ~x0" old))
        ((er &)
         (ensure-function-is-logic-mode$ old description t nil))
        ((er &)
         (ensure-function-is-defined$ old description t nil))
        ((er &)
         (ensure-function-has-args$ old description t nil))
        ((er &)
         (ensure-function-number-of-results$ old 1 description t nil))
        ((er &)
         (ensure-function-no-stobjs$ old description t nil))
        (recursive (recursivep old nil wrld))
        ((er &)
         (if recursive
             (ensure-function-singly-recursive$ old description t nil)
           (value nil)))
        ((er &)
         (if recursive
             (ensure-function-known-measure$ old description t nil)
           (value nil)))
        ((er &)
         (if
          (eq verify-guards t)
          (ensure-function-is-guard-verified$
           old
           (msg
            "Since the :VERIFY-GUARDS input is T, ~
                              the target function ~x0"
            old)
           t nil)
          (value nil))))
       (value old))))