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