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