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