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