Get the elements field from a uint-array.
(uint-array->elements x) → elements
This is an ordinary field accessor created by fty::defprod.
Function:
(defun uint-array->elements$inline (x) (declare (xargs :guard (uint-arrayp x))) (declare (xargs :guard t)) (let ((__function__ 'uint-array->elements)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (elemtype (type-fix (std::da-nth 0 (cdr x)))) (elements (uint-list-fix (std::da-nth 1 (cdr x))))) (if (consp elements) elements (list (uint-from-integer 0)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm uint-listp-of-uint-array->elements (b* ((elements (uint-array->elements$inline x))) (uint-listp elements)) :rule-classes :rewrite)
Theorem:
(defthm uint-array->elements$inline-of-uint-array-fix-x (equal (uint-array->elements$inline (uint-array-fix x)) (uint-array->elements$inline x)))
Theorem:
(defthm uint-array->elements$inline-uint-array-equiv-congruence-on-x (implies (uint-array-equiv x x-equiv) (equal (uint-array->elements$inline x) (uint-array->elements$inline x-equiv))) :rule-classes :congruence)