Skip to content

Commit 618dd08

Browse files
authored
Merge pull request #1478 from diffblue/assign_next1
SMV: test for `next(...)` in rhs of `ASSIGN next(...)`
2 parents b349279 + b203cea commit 618dd08

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)