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