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