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