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