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