Generate a shallowly embedded ACL2 call of a Java primitive array creation from components.
(atj-gen-shallow-jprimarr-new-init-call fn comp-blocks comp-exprs src-types dst-types) → (mv block expr)
This is called only if
If the
Function:
(defun atj-gen-shallow-jprimarr-new-init-call (fn comp-blocks comp-exprs src-types dst-types) (declare (xargs :guard (and (atj-jprimarr-new-init-fn-p fn) (jblock-listp comp-blocks) (jexpr-listp comp-exprs) (atj-type-listp src-types) (atj-type-listp dst-types)))) (declare (xargs :guard (and (consp src-types) (consp dst-types)))) (let ((__function__ 'atj-gen-shallow-jprimarr-new-init-call)) (declare (ignorable __function__)) (b* ((block (flatten (jblock-list-fix comp-blocks))) (jtype (atj-jprimarr-new-init-fn-to-comp-jtype fn)) (expr (jexpr-newarray-init jtype comp-exprs))) (mv block (atj-adapt-expr-to-type expr (atj-type-list-to-type src-types) (atj-type-list-to-type dst-types) t)))))
Theorem:
(defthm jblockp-of-atj-gen-shallow-jprimarr-new-init-call.block (b* (((mv common-lisp::?block ?expr) (atj-gen-shallow-jprimarr-new-init-call fn comp-blocks comp-exprs src-types dst-types))) (jblockp block)) :rule-classes :rewrite)
Theorem:
(defthm jexprp-of-atj-gen-shallow-jprimarr-new-init-call.expr (b* (((mv common-lisp::?block ?expr) (atj-gen-shallow-jprimarr-new-init-call fn comp-blocks comp-exprs src-types dst-types))) (jexprp expr)) :rule-classes :rewrite)