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