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