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