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