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