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