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