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