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