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