Basic constructor macro for stmt-fordecl structures.
(make-stmt-fordecl [:init <init>] [:test <test>] [:next <next>] [:body <body>])
This is the usual way to construct stmt-fordecl structures. It simply conses together a structure with the specified fields.
This macro generates a new stmt-fordecl structure from scratch. See also change-stmt-fordecl, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-stmt-fordecl (&rest args) (std::make-aggregate 'stmt-fordecl args '((:init) (:test) (:next) (:body)) 'make-stmt-fordecl nil))
Function:
(defun stmt-fordecl (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-fordecl)) (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 :fordecl (list init test next body)))))