Basic constructor macro for vl-returnstmt structures.
(make-vl-returnstmt [:val <val>] [:atts <atts>] [:loc <loc>])
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) (:loc)) 'make-vl-returnstmt nil))
Function:
(defun vl-returnstmt (val atts loc) (declare (xargs :guard (and (vl-maybe-expr-p val) (vl-atts-p atts) (vl-location-p loc)))) (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)) (loc (mbe :logic (vl-location-fix loc) :exec loc))) (cons :vl-returnstmt (std::prod-cons val (std::prod-cons atts loc))))))