Get the reg field from a function-input.
(function-input->reg x) → reg
This is an ordinary field accessor created by fty::defprod.
Function:
(defun function-input->reg$inline (x) (declare (xargs :guard (function-inputp x))) (declare (xargs :guard t)) (let ((__function__ 'function-input->reg)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (register-fix (cdr (std::da-nth 0 (cdr x))))) :exec (cdr (std::da-nth 0 (cdr x))))))
Theorem:
(defthm registerp-of-function-input->reg (b* ((reg (function-input->reg$inline x))) (registerp reg)) :rule-classes :rewrite)
Theorem:
(defthm function-input->reg$inline-of-function-input-fix-x (equal (function-input->reg$inline (function-input-fix x)) (function-input->reg$inline x)))
Theorem:
(defthm function-input->reg$inline-function-input-equiv-congruence-on-x (implies (function-input-equiv x x-equiv) (equal (function-input->reg$inline x) (function-input->reg$inline x-equiv))) :rule-classes :congruence)