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