diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-11 07:58:48 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-11 07:58:48 (GMT) |
commit | 71c334bf4e35559496feac3f3cf00b72ceb88812 (patch) | |
tree | 859f78af51c8e929559a53d70492035ef3fad862 /test | |
parent | 5180e4666a314db36a15d953fdfa38af4f285758 (diff) | |
download | uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.zip uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.tar.gz uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.tar.bz2 |
More work on promela DM
changed const of Data subscript operator and introduced at(key) and item(index)
Diffstat (limited to 'test')
-rw-r--r-- | test/samples/uscxml/promela/test-simple-promela.scxml | 6 | ||||
-rw-r--r-- | test/src/test-promela-parser.cpp | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/samples/uscxml/promela/test-simple-promela.scxml b/test/samples/uscxml/promela/test-simple-promela.scxml index d209ca6..00b95e4 100644 --- a/test/samples/uscxml/promela/test-simple-promela.scxml +++ b/test/samples/uscxml/promela/test-simple-promela.scxml @@ -31,10 +31,14 @@ <state id="init"> <onentry> <script> + busy[4 - 3] = 1; + </script> + <log expr="busy" /> + <script> v2=1; v3=1; </script> </onentry> - <transition target="pass" cond="v2==v3"> + <transition target="pass" cond="v2==v3 && busy[1] == 1"> </transition> <transition target="fail" /> </state> diff --git a/test/src/test-promela-parser.cpp b/test/src/test-promela-parser.cpp index 6dc58d1..940e55a 100644 --- a/test/src/test-promela-parser.cpp +++ b/test/src/test-promela-parser.cpp @@ -39,6 +39,7 @@ int main(int argc, char** argv) { // expressions.push_back("(a + 1) << b"); // expressions.push_back("(b < N)"); // expressions.push_back("(mt+1)%MAX;"); +// expressions.push_back("state[0] = state[3] + 5 * state[3*2/n]"); /* statements */ // expressions.push_back("t = Bturn;"); |