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