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