11 lines
334 B
Plaintext
11 lines
334 B
Plaintext
// M is empty, so the loop makes no pass. Its INVARIANT was never checked in
|
|
// a run, and the checker assumed it on the way out all the same.
|
|
// The run now checks it once more when the loop ends, and stops.
|
|
// RUN-STOPS: invariant@7
|
|
DECLARE M : LIST OF INTEGER
|
|
FOR EACH E IN M
|
|
INVARIANT 1 == 2
|
|
OUTPUT E
|
|
NEXT E
|
|
ASSERT 1 == 2
|