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