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