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