Skip to content

Commit 053eab0

Browse files
committed
Remove quotes around STL module names
This commit introduces an extra state to the STL scanner in order to detect if the current identifier is a module name. If it is, the surrounding quotes are cut. The quotes are syntactically required but do not contribute to the module names being unique, therefore cutting them is allowed. Doing so simplifies both the user and the language interface. Existing regression tests were changed in a way that all directly refer to the default entry point which was introduced by a past commit. One test, Function_Call2, is now responsible for checking the --function flag.
1 parent c494b9c commit 053eab0

File tree

25 files changed

+53
-32
lines changed

25 files changed

+53
-32
lines changed

regression/statement-list/Add_Int/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.awl
33
--show-parse-tree
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Name: "Add_Int"$
6+
^Name: Add_Int$
77
^Version: 0[.]1$
88
^ \* type: signedbv$
99
^ \* width: 16$

regression/statement-list/Add_Int2/main.awl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FUNCTION_BLOCK "Add_Int2"
1+
FUNCTION_BLOCK "Main"
22
VERSION : 0.1
33
VAR_INPUT
44
in1 : Int;

regression/statement-list/Add_Int2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.awl
3-
--function \"Add_Int2\"
3+
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/statement-list/Arithmetic/main.awl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FUNCTION_BLOCK "Arithmetic"
1+
FUNCTION_BLOCK "Main"
22
VERSION : 0.1
33
VAR_TEMP
44
compResult : Bool;

regression/statement-list/Arithmetic/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.awl
3-
--function \"Arithmetic\"
3+
44
^VERIFICATION SUCCESSFUL$
55
^EXIT=0$
66
^SIGNAL=0$

regression/statement-list/Bool1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ main.awl
33
--show-parse-tree
44
^EXIT=0$
55
^SIGNAL=0$
6-
^Name: "Bool1"$
6+
^Name: Bool1$
77
^Version: 0[.]1$
88
^ \* type: bool$
99
^ \* identifier: in1$

regression/statement-list/Bool2/main.awl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FUNCTION_BLOCK "Bool2"
1+
FUNCTION_BLOCK "Main"
22
VERSION : 0.1
33
VAR_INPUT
44
in1 : Bool;

regression/statement-list/Bool2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.awl
3-
--function \"Bool2\"
3+
44
^EXIT=10$
55
^SIGNAL=0$
66
^SAT checker: instance is SATISFIABLE$

regression/statement-list/Bool3/main.awl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FUNCTION_BLOCK "Bool3"
1+
FUNCTION_BLOCK "Main"
22
VERSION : 0.1
33
VAR_INPUT
44
in1 : Bool;

regression/statement-list/Bool3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.awl
3-
--function \"Bool3\"
3+
44
^EXIT=0$
55
^SIGNAL=0$
66
^\*\* 0 of 1 failed \(1 iterations\)$

0 commit comments

Comments
 (0)