Generate Java code to build a Java
(atj-gen-jshort-array short-array) → expr
Function:
(defun atj-gen-jshort-array-aux (shorts) (declare (xargs :guard (short-value-listp shorts))) (let ((__function__ 'atj-gen-jshort-array-aux)) (declare (ignorable __function__)) (cond ((endp shorts) nil) (t (cons (atj-gen-jshort (short-value->int (car shorts))) (atj-gen-jshort-array-aux (cdr shorts)))))))
Theorem:
(defthm jexpr-listp-of-atj-gen-jshort-array-aux (b* ((exprs (atj-gen-jshort-array-aux shorts))) (jexpr-listp exprs)) :rule-classes :rewrite)
Function:
(defun atj-gen-jshort-array (short-array) (declare (xargs :guard (short-arrayp short-array))) (let ((__function__ 'atj-gen-jshort-array)) (declare (ignorable __function__)) (jexpr-newarray-init (jtype-short) (atj-gen-jshort-array-aux (short-array->components short-array)))))
Theorem:
(defthm jexprp-of-atj-gen-jshort-array (b* ((expr (atj-gen-jshort-array short-array))) (jexprp expr)) :rule-classes :rewrite)