Skip to content

Commit 44cc5a1

Browse files
authored
Merge pull request #1189 from diffblue/smv-next
SMV: tests for `next(...)`
2 parents 155e1ff + 473826d commit 44cc5a1

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed

regression/smv/next/next1.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
next1.smv
3+
--bdd
4+
^\[.*\] !x: PROVED$
5+
^\[.*\] AX x: PROVED$
6+
^EXIT=0$
7+
^SIGNAL=0$
8+
--

regression/smv/next/next1.smv

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MODULE main
2+
3+
VAR x : boolean;
4+
5+
INIT !x
6+
TRANS next(x)
7+
8+
CTLSPEC !x
9+
CTLSPEC AX x

regression/smv/next/next2.desc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
next2.smv
3+
--bdd
4+
^\[.*\] AX x <-> !x: PROVED$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--

regression/smv/next/next2.smv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MODULE main
2+
3+
VAR x : boolean;
4+
5+
TRANS next(x)=!x
6+
7+
CTLSPEC (AX x) <-> !x

regression/smv/next/next3.desc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
next3.smv
3+
--bdd
4+
^\[.*\] AX x <-> !x: PROVED$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
--
9+
The BDD engine gives the wrong answer.

regression/smv/next/next3.smv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MODULE main
2+
3+
VAR x : boolean;
4+
5+
TRANS next(!x)=x
6+
7+
CTLSPEC (AX x) <-> !x

0 commit comments

Comments
 (0)