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