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