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