CADiZ

Reference manual / Z-related commands / Decision procedure commands / evaluation


The evaluation command calculates the value of a numeric expression that involves only constants (number literal expressions, no references to variables). It evaluates applications of the functions unary -, +, -, *, divides, div and mod. All the functions used must have been declared in the prelude, or in sections called numdefs or numkit or toolkit.

The result is an expression containing, if the result is negative, one use of unary -, then, if the result is an integer, a single number literal, or otherwise one use of divides between number literals in lowest terms. The result of the command may be the original expression unchanged. In that case the command still succeeds; the report ``Nothing changed'' is issued, and no new sub-goal is created.

Tactic example

"evaluation" e1 e2

This example applies the evaluation command to expressions e1 and e2.


IT 21-Oct-2000