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