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