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