Skip to content

Commit 8975cd6

Browse files
authored
Merge pull request #901 from diffblue/smv-tests2
SMV: KNOWNBUG tests
2 parents d3dc126 + 9686253 commit 8975cd6

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

regression/smv/define/define1.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
define1.smv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
--
8+
This yields a type error.

regression/smv/define/define1.smv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
MODULE main
2+
3+
DEFINE a := 1;
4+
5+
VAR b : 1..4;
6+
ASSIGN next(b) := a + 1;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
smv_if2.smv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
--
8+
This yields a type error.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
MODULE main
2+
3+
VAR input : boolean;
4+
5+
VAR b : 1..4;
6+
7+
ASSIGN init(b) := 1;
8+
ASSIGN next(b) := (input ? 1 : 3) + 1;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
KNOWNBUG
2+
smv_set2.smv
3+
--bdd
4+
^\[spec1\] x in my_set: PROVED$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--
10+
The smv_setin operator is not implemented.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MODULE main
2+
3+
DEFINE my_set := {1, 2};
4+
5+
VAR x : 1..3;
6+
ASSIGN init(x) := {1, 2, 3};
7+
next(x) := x;
8+
9+
SPEC x in my_set;

0 commit comments

Comments
 (0)