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