This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// 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
|
||||
Reference in new issue
Block a user