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