Convert a Java
(int-array-to-sbyte32-list array) → list
Function:
(defun int-array-to-sbyte32-list-aux (comps) (declare (xargs :guard (int-value-listp comps))) (let ((__function__ 'int-array-to-sbyte32-list-aux)) (declare (ignorable __function__)) (cond ((endp comps) nil) (t (cons (int-value->int (car comps)) (int-array-to-sbyte32-list-aux (cdr comps)))))))
Theorem:
(defthm sbyte32-listp-of-int-array-to-sbyte32-list-aux (b* ((list (int-array-to-sbyte32-list-aux comps))) (sbyte32-listp list)) :rule-classes :rewrite)
Theorem:
(defthm len-of-int-array-to-sbyte32-list-aux (b* ((common-lisp::?list (int-array-to-sbyte32-list-aux comps))) (equal (len list) (len comps))))
Function:
(defun int-array-to-sbyte32-list (array) (declare (xargs :guard (int-arrayp array))) (let ((__function__ 'int-array-to-sbyte32-list)) (declare (ignorable __function__)) (int-array-to-sbyte32-list-aux (int-array->components array))))
Theorem:
(defthm sbyte32-listp-of-int-array-to-sbyte32-list (b* ((list (int-array-to-sbyte32-list array))) (sbyte32-listp list)) :rule-classes :rewrite)
Theorem:
(defthm len-of-int-array-to-sbyte32-list (b* ((common-lisp::?list (int-array-to-sbyte32-list array))) (equal (len list) (len (int-array->components array)))))