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