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