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