-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMV: do not allow defining identifiers that are already declared
VAR x : ... followed by DEFINE x := ... must be errored.
- Loading branch information
Showing
15 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
KNOWNBUG | ||
assign1.smv | ||
|
||
^file .* line 6: variable `x' already assigned.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
MODULE main | ||
|
||
VAR x : 1..4; | ||
|
||
ASSIGN x := 1; | ||
|
||
-- not allowed, x is already assigned | ||
ASSIGN init(x) := 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
KNOWNBUG | ||
assign1.smv | ||
|
||
^file .* line 6: variable `x' already assigned.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
MODULE main | ||
|
||
VAR x : 1..4; | ||
|
||
ASSIGN x := 1; | ||
|
||
-- not allowed, x is already assigned | ||
ASSIGN next(x) := 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
define2.smv | ||
|
||
^file .* line 6: variable `x' already declared.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MODULE main | ||
|
||
VAR x : boolean; | ||
|
||
-- not allowed, x is already a variable | ||
DEFINE x := TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
define3.smv | ||
|
||
^file .* line 6: variable `x' already defined.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MODULE main | ||
|
||
DEFINE x := TRUE; | ||
|
||
-- not allowed, x is already defined | ||
VAR x : boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
define4.smv | ||
|
||
^file .* line 6: variable `x' already defined.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MODULE main | ||
|
||
DEFINE x := TRUE; | ||
|
||
-- not allowed, x is already defined | ||
ASSIGN x := TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
KNOWNBUG | ||
define5.smv | ||
|
||
^file .* line 6: variable `x' already defined.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MODULE main | ||
|
||
DEFINE x := TRUE; | ||
|
||
-- not allowed, x is already defined | ||
ASSIGN next(x) := TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
KNOWNBUG | ||
define6.smv | ||
|
||
^file .* line 6: variable `x' already defined.*$ | ||
^EXIT=1$ | ||
^SIGNAL=0$ | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MODULE main | ||
|
||
DEFINE x := TRUE; | ||
|
||
-- not allowed, x is already defined | ||
ASSIGN init(x) := TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters