Files
pplus-library/pseudo/prover/foreach-invariant-exit.pseudo
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

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