Basic constructor macro for vl-structmember structures.
(make-vl-structmember [:atts <atts>] [:rand <rand>] [:type <type>] [:name <name>] [:rhs <rhs>])
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 '((:atts) (:rand) (:type) (:name) (:rhs)) 'make-vl-structmember nil))
Function:
(defun vl-structmember (atts rand type name rhs) (declare (xargs :guard (and (vl-atts-p atts) (vl-randomqualifier-p rand) (vl-datatype-p type) (stringp name) (vl-maybe-expr-p rhs)))) (declare (xargs :guard t)) (let ((__function__ 'vl-structmember)) (declare (ignorable __function__)) (b* ((atts (mbe :logic (vl-atts-fix atts) :exec atts)) (rand (mbe :logic (vl-randomqualifier-fix rand) :exec rand)) (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))) (cons :vl-structmember (std::prod-cons (std::prod-cons atts rand) (std::prod-cons type (std::prod-cons name rhs)))))))