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