Basic constructor macro for const-expr structures.
(make-const-expr [:unwrap <unwrap>])
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 '((:unwrap)) 'make-const-expr nil))
Function:
(defun const-expr (unwrap) (declare (xargs :guard (exprp unwrap))) (declare (xargs :guard t)) (let ((__function__ 'const-expr)) (declare (ignorable __function__)) (b* ((unwrap (mbe :logic (expr-fix unwrap) :exec unwrap))) (list (cons 'unwrap unwrap)))))