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