Skip to content

Commit f6e282b

Browse files
committed
SMV: test for complex identifiers
1 parent 4901b07 commit f6e282b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
complex_identifier1.smv
3+
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
--
7+
--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
MODULE main
2+
3+
-- complex identifiers can use '[...]' and '.'
4+
VAR some_var : boolean;
5+
VAR some_var[3] : boolean;
6+
VAR some_var[4].whatnot : boolean;
7+
VAR some_var[5][2].whatnot : boolean;
8+
9+
INIT some_var[5][2].whatnot
10+
11+
-- spaces are ok
12+
INIT some_var [4] . whatnot

0 commit comments

Comments
 (0)