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