Get the code field from a object.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun object->code$inline (x) (declare (xargs :guard (objectp x))) (declare (xargs :guard t)) (let ((__function__ 'object->code)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (block-fix (cdr (std::da-nth 1 (cdr x))))) :exec (cdr (std::da-nth 1 (cdr x))))))
Theorem:
(defthm blockp-of-object->code (b* ((code (object->code$inline x))) (blockp code)) :rule-classes :rewrite)
Theorem:
(defthm object->code$inline-of-object-fix-x (equal (object->code$inline (object-fix x)) (object->code$inline x)))
Theorem:
(defthm object->code$inline-object-equiv-congruence-on-x (implies (object-equiv x x-equiv) (equal (object->code$inline x) (object->code$inline x-equiv))) :rule-classes :congruence)