Basic constructor macro for array-type-primitive structures.
(make-array-type-primitive [:element <element>] [:dimensions <dimensions>])
This is the usual way to construct array-type-primitive structures. It simply conses together a structure with the specified fields.
This macro generates a new array-type-primitive structure from scratch. See also change-array-type-primitive, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-array-type-primitive (&rest args) (std::make-aggregate 'array-type-primitive args '((:element) (:dimensions)) 'make-array-type-primitive nil))
Function:
(defun array-type-primitive (element dimensions) (declare (xargs :guard (and (primitive-typep element) (posp dimensions)))) (declare (xargs :guard t)) (let ((__function__ 'array-type-primitive)) (declare (ignorable __function__)) (b* ((element (mbe :logic (primitive-type-fix element) :exec element)) (dimensions (mbe :logic (acl2::pos-fix dimensions) :exec dimensions))) (cons :primitive (list element dimensions)))))