Basic constructor macro for vl-casestmt structures.
(make-vl-casestmt [:test <test>] [:caselist <caselist>] [:default <default>] [:loc <loc>] [:casetype <casetype>] [:check <check>] [:atts <atts>] [:casekey <casekey>])
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 '((:test) (:caselist) (:default) (:loc) (:casetype) (:check) (:atts) (:casekey)) 'make-vl-casestmt nil))
Function:
(defun vl-casestmt (test caselist default loc casetype check atts casekey) (declare (xargs :guard (and (vl-expr-p test) (vl-caselist-p caselist) (vl-stmt-p default) (vl-location-p loc) (vl-casetype-p casetype) (vl-casecheck-p check) (vl-atts-p atts) (vl-casekey-p casekey)))) (declare (xargs :guard t)) (let ((__function__ 'vl-casestmt)) (declare (ignorable __function__)) (b* ((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)) (loc (mbe :logic (vl-location-fix loc) :exec loc)) (casetype (mbe :logic (vl-casetype-fix casetype) :exec casetype)) (check (mbe :logic (vl-casecheck-fix check) :exec check)) (atts (mbe :logic (vl-atts-fix atts) :exec atts)) (casekey (mbe :logic (vl-casekey-fix casekey) :exec casekey))) (cons :vl-casestmt (std::prod-cons (std::prod-cons (std::prod-cons test caselist) (std::prod-cons default loc)) (std::prod-cons (std::prod-cons casetype check) (std::prod-cons atts casekey)))))))