Get the int-bytes field from a ienv.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun ienv->int-bytes$inline (x) (declare (xargs :guard (ienvp x))) (declare (xargs :guard t)) (let ((__function__ 'ienv->int-bytes)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (short-bytes (acl2::pos-fix (cdr (std::da-nth 0 x)))) (int-bytes (acl2::pos-fix (cdr (std::da-nth 1 x)))) (long-bytes (acl2::pos-fix (cdr (std::da-nth 2 x)))) (llong-bytes (acl2::pos-fix (cdr (std::da-nth 3 x)))) (plain-char-signedp (bool-fix (cdr (std::da-nth 4 x))))) (if (and (<= short-bytes int-bytes) (<= int-bytes long-bytes) (<= long-bytes llong-bytes) (<= 2 short-bytes) (<= 4 int-bytes) (<= 8 long-bytes) (<= 8 llong-bytes)) int-bytes 4)) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm posp-of-ienv->int-bytes (b* ((int-bytes (ienv->int-bytes$inline x))) (posp int-bytes)) :rule-classes :rewrite)
Theorem:
(defthm ienv->int-bytes$inline-of-ienv-fix-x (equal (ienv->int-bytes$inline (ienv-fix x)) (ienv->int-bytes$inline x)))
Theorem:
(defthm ienv->int-bytes$inline-ienv-equiv-congruence-on-x (implies (ienv-equiv x x-equiv) (equal (ienv->int-bytes$inline x) (ienv->int-bytes$inline x-equiv))) :rule-classes :congruence)