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