Get the components field from a byte-array.
(byte-array->components x) → components
This is an ordinary field accessor created by fty::defprod.
Function:
(defun byte-array->components$inline (x) (declare (xargs :guard (byte-arrayp x))) (declare (xargs :guard t)) (let ((__function__ 'byte-array->components)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x)) (components (byte-value-list-fix (std::da-nth 0 (cdr x))))) (if (< (len components) (expt 2 31)) components nil)) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm byte-value-listp-of-byte-array->components (b* ((components (byte-array->components$inline x))) (byte-value-listp components)) :rule-classes :rewrite)
Theorem:
(defthm byte-array->components$inline-of-byte-array-fix-x (equal (byte-array->components$inline (byte-array-fix x)) (byte-array->components$inline x)))
Theorem:
(defthm byte-array->components$inline-byte-array-equiv-congruence-on-x (implies (byte-array-equiv x x-equiv) (equal (byte-array->components$inline x) (byte-array->components$inline x-equiv))) :rule-classes :congruence)