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