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