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