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