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