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