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