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