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