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