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