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