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