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