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