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