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