Skip to content

Commit f39798c

Browse files
authored
Merge pull request #1179 from diffblue/smv_union1
SMV: two tests for `union`
2 parents 0323518 + 8198a7e commit f39798c

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE broken-smt-backend
2+
smv_union1.smv
3+
4+
^\[spec1\] x != 3: PROVED \(CT=1\)$
5+
^\[spec2\] x != 2: REFUTED$
6+
^EXIT=10$
7+
^SIGNAL=0$
8+
--
9+
^warning: ignoring
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 : 1..3;
4+
ASSIGN init(x) := 1 union 2;
5+
next(x) := x;
6+
7+
-- passes
8+
SPEC x != 3
9+
10+
-- fails
11+
SPEC x != 2
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
KNOWNBUG broken-smt-backend
2+
smv_union2.smv
3+
4+
^\[spec1\] x != 3: PROVED \(CT=1\)$
5+
^\[spec2\] x != 2: REFUTED$
6+
^EXIT=10$
7+
^SIGNAL=0$
8+
--
9+
^warning: ignoring
10+
--
11+
The type checker rejects this.
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 : 1..3;
4+
ASSIGN init(x) := 1 union { 2 };
5+
next(x) := x;
6+
7+
-- passes
8+
SPEC x != 3
9+
10+
-- fails
11+
SPEC x != 2

0 commit comments

Comments
 (0)