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