Basic constructor macro for program structures.
(make-program [:packages <packages>] [:functions <functions>])
This is the usual way to construct program structures. It simply conses together a structure with the specified fields.
This macro generates a new program structure from scratch. See also change-program, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-program (&rest args) (std::make-aggregate 'program args '((:packages) (:functions)) 'make-program nil))
Function:
(defun program (packages functions) (declare (xargs :guard (and (package-listp packages) (function-setp functions)))) (declare (xargs :guard t)) (let ((__function__ 'program)) (declare (ignorable __function__)) (b* ((packages (mbe :logic (package-list-fix packages) :exec packages)) (functions (mbe :logic (function-set-fix functions) :exec functions))) (list packages functions))))