Get the reg field from a nxst-node.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun nxst-node->reg$inline (x) (declare (xargs :guard (node-p x))) (declare (xargs :guard (equal (stype x) :nxst))) (let ((__function__ 'nxst-node->reg)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (stype x) :nxst) x))) (nfix (caddr x))) :exec (caddr x))))
Theorem:
(defthm natp-of-nxst-node->reg (b* ((reg (nxst-node->reg$inline x))) (natp reg)) :rule-classes :type-prescription)
Theorem:
(defthm nxst-node->reg$inline-of-node-fix-x (equal (nxst-node->reg$inline (node-fix x)) (nxst-node->reg$inline x)))
Theorem:
(defthm nxst-node->reg$inline-node-equiv-congruence-on-x (implies (node-equiv x x-equiv) (equal (nxst-node->reg$inline x) (nxst-node->reg$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm nxst-node->reg-when-wrong-kind (implies (not (equal (stype x) :nxst)) (equal (nxst-node->reg x) (nfix nil))))