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