Read a component from a Java
(byte-array-read array index) → component
Function:
(defun byte-array-read (array index) (declare (xargs :guard (and (byte-arrayp array) (int-valuep index)))) (declare (xargs :guard (byte-array-index-in-range-p array index))) (let ((__function__ 'byte-array-read)) (declare (ignorable __function__)) (byte-value-fix (nth (int-value->int index) (byte-array->components array)))))
Theorem:
(defthm byte-valuep-of-byte-array-read (b* ((component (byte-array-read array index))) (byte-valuep component)) :rule-classes :rewrite)