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