Basic constructor macro for transunit structures.
(make-transunit [:decls <decls>] [: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 '((:decls) (:info)) 'make-transunit nil))
Function:
(defun transunit (decls info) (declare (xargs :guard (and (extdecl-listp decls) (acl2::any-p info)))) (declare (xargs :guard t)) (let ((__function__ 'transunit)) (declare (ignorable __function__)) (b* ((decls (mbe :logic (extdecl-list-fix decls) :exec decls)) (info (mbe :logic (identity info) :exec info))) (list (cons 'decls decls) (cons 'info info)))))