Skip to content

Commit 30ab35a

Browse files
kroeningtautschnig
authored andcommitted
KNOWNBUG test for SMV's self
Also fix pattern misuse in use_before_declaration1.desc.
1 parent 371bb9a commit 30ab35a

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CORE
22
use_before_declaration1.smv
3+
34
^EXIT=0$
45
^SIGNAL=0$
56
--

0 commit comments

Comments
 (0)