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