Skip to content

Commit b203cea

Browse files
committed
SMV: test for next(...) in rhs of ASSIGN next(...)
1 parent 22d6e48 commit b203cea

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
assign_next1.smv
3+
4+
^\[.*\] AG x = y: PROVED .*$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MODULE main
2+
3+
VAR x : boolean;
4+
y : boolean;
5+
6+
-- The use of next in a 'next' assignment is allowed.
7+
ASSIGN next(x) := next(y);
8+
9+
ASSIGN init(x) := y;
10+
11+
CTLSPEC AG x = y

0 commit comments

Comments
 (0)