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