Basic constructor macro for vl-propport structures.
(make-vl-propport [:name <name>] [:localp <localp>] [:dir <dir>] [:type <type>] [:arg <arg>] [:atts <atts>] [:loc <loc>])
This is the usual way to construct vl-propport structures. It simply conses together a structure with the specified fields.
This macro generates a new vl-propport structure from scratch. See also change-vl-propport, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-vl-propport (&rest args) (std::make-aggregate 'vl-propport args '((:name) (:localp) (:dir) (:type) (:arg) (:atts) (:loc)) 'make-vl-propport nil))
Function:
(defun vl-propport (name localp dir type arg atts loc) (declare (xargs :guard (and (stringp name) (booleanp localp) (vl-direction-p dir) (vl-datatype-p type) (vl-propactual-p arg) (vl-atts-p atts) (vl-location-p loc)))) (declare (xargs :guard t)) (let ((__function__ 'vl-propport)) (declare (ignorable __function__)) (b* ((name (mbe :logic (str-fix name) :exec name)) (localp (mbe :logic (acl2::bool-fix localp) :exec localp)) (dir (mbe :logic (vl-direction-fix dir) :exec dir)) (type (mbe :logic (vl-datatype-fix type) :exec type)) (arg (mbe :logic (vl-propactual-fix arg) :exec arg)) (atts (mbe :logic (vl-atts-fix atts) :exec atts)) (loc (mbe :logic (vl-location-fix loc) :exec loc))) (cons :vl-propport (list (cons 'name name) (cons 'localp localp) (cons 'dir dir) (cons 'type type) (cons 'arg arg) (cons 'atts atts) (cons 'loc loc))))))