Body of a non-executable defined named function, without the ``non-executable wrapper''.
(unwrapped-nonexec-body fn wrld) → unwrapped-body
defun-nx generates a logic-mode function whose body is wrapped as follows:
(return-last 'progn (throw-nonexec-error 'fn (cons arg1 ... (cons argN 'nil)...)) body)
If defun is used for a logic-mode function with
It is also possible to use defun to introduce
program-mode functions with
This utility returns
the unwrapped body of a logic-mode or program-mode
defined non-executable function
See unwrapped-nonexec-body+ for an enhanced variant of this utility.
Function:
(defun unwrapped-nonexec-body (fn wrld) (declare (xargs :guard (and (symbolp fn) (plist-worldp wrld)))) (let ((__function__ 'unwrapped-nonexec-body)) (declare (ignorable __function__)) (fourth (ubody fn wrld))))