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