Skip to content

Commit f4f5c9e

Browse files
authored
Merge pull request #1468 from diffblue/self1
KNOWNBUG test for SMV's `self`
2 parents b357ced + 895541d commit f4f5c9e

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

regression/smv/modules/self1.desc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
self1.smv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This does not parse.

regression/smv/modules/self1.smv

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- from the NuSMV 2.7 manual
2+
3+
MODULE container(init_value1, init_value2)
4+
VAR c1 : counter(init_value1, self);
5+
VAR c2 : counter(init_value2, self);
6+
7+
MODULE counter(init_value, my_container)
8+
VAR v: 1..100;
9+
ASSIGN
10+
init(v) := init_value;
11+
DEFINE
12+
greatestCounterInContainer := v >= my_container.c1.v &
13+
v >= my_container.c2.v;
14+
15+
MODULE main
16+
VAR c : container(14, 7);
17+
SPEC
18+
c.c1.greatestCounterInContainer;

regression/smv/modules/use_before_declaration1.desc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
CORE
1+
CORE broken-smt-backend
22
use_before_declaration1.smv
3+
34
^EXIT=0$
45
^SIGNAL=0$
56
--

0 commit comments

Comments
 (0)