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