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