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