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