Skip to content

Commit 0d01da4

Browse files
committed
KNOWNBUG test for SMV's self
1 parent 371bb9a commit 0d01da4

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

regression/smv/modules/self1.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
self1.smv
3+
^EXIT=0$
4+
^SIGNAL=0$
5+
--
6+
^warning: ignoring
7+
--
8+
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;

0 commit comments

Comments
 (0)