11 lines
268 B
Plaintext
11 lines
268 B
Plaintext
// STEP 1 + 1 moves I by 2. The checker advances a counter whose STEP is not
|
|
// a plain number by 1, and proves N == I kept.
|
|
// MUST-NOT-PROVE: invariant-keep@7
|
|
DECLARE N : INTEGER
|
|
N <- 0
|
|
FOR I <- 0 TO 10 STEP 1 + 1
|
|
INVARIANT N == I
|
|
N <- N + 1
|
|
NEXT I
|
|
OUTPUT N
|