Skip to content

What is variant for in the invariant configurator? #3273

Answered by mattulbrich
waynee95 asked this question in Q&A
Discussion options

You must be logged in to vote

This field allows you to specify a loop variant, an expression whose value (a) never becomes negative and (b) is strictly decreased in every loop iteration. If you can provide such an expression, then termination of the loop is guaranteed.

It is the configurator equivalent of a decreases in JML. You can find that in JML or KeY documentation for comparison,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@waynee95
Comment options

Answer selected by waynee95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants