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