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