11 lines
283 B
Plaintext
11 lines
283 B
Plaintext
// A REPEAT loop's INVARIANT is checked once more after the last pass. The
|
|
// checker has no obligation for that check: "kept" covers only passes that repeat.
|
|
// MUST-NOT-PROVE: invariant-keep@7
|
|
DECLARE X : INTEGER
|
|
X <- 0
|
|
REPEAT
|
|
INVARIANT X == 0
|
|
X <- 1
|
|
UNTIL X == 1
|
|
OUTPUT X
|