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