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