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