Basic constructor macro for int-array structures.
(make-int-array [:components <components>])
This is the usual way to construct int-array structures. It simply conses together a structure with the specified fields.
This macro generates a new int-array structure from scratch. See also change-int-array, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-int-array (&rest args) (std::make-aggregate 'int-array args '((:components)) 'make-int-array nil))
Function:
(defun int-array (components) (declare (xargs :guard (int-value-listp components))) (declare (xargs :guard (< (len components) (expt 2 31)))) (let ((__function__ 'int-array)) (declare (ignorable __function__)) (b* ((components (mbe :logic (int-value-list-fix components) :exec components))) (let ((components (mbe :logic (if (< (len components) (expt 2 31)) components nil) :exec components))) (cons :int-array (list components))))))