Obtain the length of a Java
(byte-array-length array) → length
Function:
(defun byte-array-length (array) (declare (xargs :guard (byte-arrayp array))) (let ((__function__ 'byte-array-length)) (declare (ignorable __function__)) (int-value (len (byte-array->components array)))))
Theorem:
(defthm int-valuep-of-byte-array-length (b* ((length (byte-array-length array))) (int-valuep length)) :rule-classes :rewrite)