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