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