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