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