Get the iconst field from a const-int.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun const-int->iconst$inline (x) (declare (xargs :guard (constp x))) (declare (xargs :guard (equal (const-kind x) :int))) (mbe :logic (b* ((x (and (equal (const-kind x) :int) x))) (iconst-fix (cdr x))) :exec (cdr x)))
Theorem:
(defthm iconstp-of-const-int->iconst (b* ((iconst (const-int->iconst$inline x))) (iconstp iconst)) :rule-classes :rewrite)
Theorem:
(defthm const-int->iconst$inline-of-const-fix-x (equal (const-int->iconst$inline (const-fix x)) (const-int->iconst$inline x)))
Theorem:
(defthm const-int->iconst$inline-const-equiv-congruence-on-x (implies (const-equiv x x-equiv) (equal (const-int->iconst$inline x) (const-int->iconst$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm const-int->iconst-when-wrong-kind (implies (not (equal (const-kind x) :int)) (equal (const-int->iconst x) (iconst-fix nil))))