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