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