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