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