Get the bits field from a uinteger-format.
(uinteger-format->bits x) → bits
This is an ordinary field accessor created by fty::defprod.
Function:
(defun uinteger-format->bits$inline (x) (declare (xargs :guard (uinteger-formatp x))) (declare (xargs :guard t)) (let ((__function__ 'uinteger-format->bits)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (bits (uinteger-bit-role-list-fix (cdr (std::da-nth 0 x)))) (traps (cdr (std::da-nth 1 x)))) (if (uinteger-bit-roles-wfp bits) bits (list (uinteger-bit-role-value 0)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm uinteger-bit-role-listp-of-uinteger-format->bits (b* ((bits (uinteger-format->bits$inline x))) (uinteger-bit-role-listp bits)) :rule-classes :rewrite)
Theorem:
(defthm uinteger-format->bits$inline-of-uinteger-format-fix-x (equal (uinteger-format->bits$inline (uinteger-format-fix x)) (uinteger-format->bits$inline x)))
Theorem:
(defthm uinteger-format->bits$inline-uinteger-format-equiv-congruence-on-x (implies (uinteger-format-equiv x x-equiv) (equal (uinteger-format->bits$inline x) (uinteger-format->bits$inline x-equiv))) :rule-classes :congruence)