Basic constructor macro for stmt-labeled structures.
(make-stmt-labeled [:label <label>]
[:stmt <stmt>])
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) (:stmt)) 'make-stmt-labeled nil))
Function:
(defun stmt-labeled (label stmt) (declare (xargs :guard (and (labelp label) (stmtp stmt)))) (declare (xargs :guard t)) (b* ((label (mbe :logic (label-fix label) :exec label)) (stmt (mbe :logic (stmt-fix stmt) :exec stmt))) (cons :labeled (cons label stmt))))