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