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