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