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