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