Basic constructor macro for vl-class structures.
(make-vl-class [:name <name>] [:warnings <warnings>] [:minloc <minloc>] [:maxloc <maxloc>] [:atts <atts>] [:comments <comments>] [:virtualp <virtualp>] [:lifetime <lifetime>] [:paramdecls <paramdecls>] [:fundecls <fundecls>] [:taskdecls <taskdecls>] [:vardecls <vardecls>] [:imports <imports>] [:typedefs <typedefs>])
This is the usual way to construct vl-class structures. It simply conses together a structure with the specified fields.
This macro generates a new vl-class structure from scratch. See also change-vl-class, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-vl-class (&rest args) (std::make-aggregate 'vl-class args '((:name) (:warnings) (:minloc) (:maxloc) (:atts) (:comments) (:virtualp) (:lifetime) (:paramdecls) (:fundecls) (:taskdecls) (:vardecls) (:imports) (:typedefs)) 'make-vl-class nil))
Function:
(defun vl-class (name warnings minloc maxloc atts comments virtualp lifetime paramdecls fundecls taskdecls vardecls imports typedefs) (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) (booleanp virtualp) (vl-lifetime-p lifetime) (vl-paramdecllist-p paramdecls) (vl-fundecllist-p fundecls) (vl-taskdecllist-p taskdecls) (vl-vardecllist-p vardecls) (vl-importlist-p imports) (vl-typedeflist-p typedefs)))) (declare (xargs :guard t)) (let ((__function__ 'vl-class)) (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)) (virtualp (mbe :logic (acl2::bool-fix virtualp) :exec virtualp)) (lifetime (mbe :logic (vl-lifetime-fix lifetime) :exec lifetime)) (paramdecls (mbe :logic (vl-paramdecllist-fix paramdecls) :exec paramdecls)) (fundecls (mbe :logic (vl-fundecllist-fix fundecls) :exec fundecls)) (taskdecls (mbe :logic (vl-taskdecllist-fix taskdecls) :exec taskdecls)) (vardecls (mbe :logic (vl-vardecllist-fix vardecls) :exec vardecls)) (imports (mbe :logic (vl-importlist-fix imports) :exec imports)) (typedefs (mbe :logic (vl-typedeflist-fix typedefs) :exec typedefs))) (cons :vl-class (std::prod-cons (std::prod-cons (std::prod-cons name (std::prod-cons warnings minloc)) (std::prod-cons (std::prod-cons maxloc atts) (std::prod-cons comments virtualp))) (std::prod-cons (std::prod-cons lifetime (std::prod-cons paramdecls fundecls)) (std::prod-cons (std::prod-cons taskdecls vardecls) (std::prod-cons imports typedefs))))))))