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