Skip to content

Commit 2ceda01

Browse files
committed
SMV: grammar for missing declarations
This adds the grammar for IVAR, FROZENVAR, CONSTANTS, COMPUTE, and ISA declarations to the SMV parser. Usage of these constructs yields an error message that the feature is not supported.
1 parent 0c80385 commit 2ceda01

File tree

11 files changed

+128
-0
lines changed

11 files changed

+128
-0
lines changed

regression/smv/compute/compute1.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
compute1.smv
3+
4+
^file .* line 3: No support for COMPUTE specifications .*$
5+
^EXIT=1$
6+
^SIGNAL=0$
7+
--
8+
--

regression/smv/compute/compute1.smv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE main
2+
3+
COMPUTE MIN [TRUE, TRUE];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
constants1.smv
3+
4+
^file .* line 3: No support for CONSTANTS declarations .*$
5+
^EXIT=1$
6+
^SIGNAL=0$
7+
--
8+
--
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE main
2+
3+
CONSTANTS some_constant;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
frozenvar1.smv
3+
4+
^file .* line 3: No support for FROZENVAR declarations$
5+
^EXIT=1$
6+
^SIGNAL=0$
7+
--
8+
--
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE main
2+
3+
FROZENVAR some_var : boolean;

regression/smv/isa/isa1.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
isa1.smv
3+
4+
^file .* line 3: No support for ISA declarations .*$
5+
^EXIT=1$
6+
^SIGNAL=0$
7+
--
8+
--

regression/smv/isa/isa1.smv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE main
2+
3+
ISA some_isa

regression/smv/ivar/ivar1.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
ivar1.smv
3+
4+
^file .* line 3: No support for IVAR declarations$
5+
^EXIT=1$
6+
^SIGNAL=0$
7+
--
8+
--

regression/smv/ivar/ivar1.smv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE main
2+
3+
IVAR some_input : boolean;

0 commit comments

Comments
 (0)