Basic constructor macro for transunit structures.
(make-transunit [:declons <declons>]
[:info <info>])
This is the usual way to construct transunit structures. It simply conses together a structure with the specified fields.
This macro generates a new transunit structure from scratch. See also change-transunit, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-transunit (&rest args) (std::make-aggregate 'transunit args '((:declons) (:info)) 'make-transunit nil))
Function:
(defun transunit (declons info) (declare (xargs :guard (and (ext-declon-listp declons) (acl2::any-p info)))) (declare (xargs :guard t)) (b* ((declons (mbe :logic (ext-declon-list-fix declons) :exec declons)) (info (mbe :logic (identity info) :exec info))) (cons declons info)))