ltlsynt: improve construction of turn-based games
Improve the way transitions are duplicated when preparing the turn-based game for synthesis. The resulting arena should now be deterministic on nodes owned by the environment. Also move the code to another file, so that it is easier to test (e.g. in Python). * bin/ltlsynt.cc: move the code * spot/twaalgos/split.cc, spot/twaalgos/split.hh: move the code and implement the improvements * tests/Makefile.am, tests/python/split.py: test it * tests/core/ltlsynt.test: update existing tests to reflect the changes
This commit is contained in:
parent
4fbcdaca91
commit
1fdc32f9bb
6 changed files with 289 additions and 62 deletions
|
|
@ -23,22 +23,25 @@
|
|||
set -e
|
||||
|
||||
cat >exp <<EOF
|
||||
parity 16;
|
||||
parity 19;
|
||||
0 0 0 1,2 "INIT";
|
||||
2 0 1 3;
|
||||
3 2 0 4,5;
|
||||
5 0 1 3,6;
|
||||
6 3 0 4,5;
|
||||
4 0 1 7,8;
|
||||
8 2 0 9,10;
|
||||
10 3 1 3,11;
|
||||
11 0 0 4,5;
|
||||
9 0 1 8,12;
|
||||
12 1 0 9,10;
|
||||
7 1 0 4,13;
|
||||
13 2 1 3,6;
|
||||
1 3 1 3,14;
|
||||
14 3 0 1,2;
|
||||
8 0 0 9,10;
|
||||
10 0 1 11,12;
|
||||
12 0 0 9,13;
|
||||
13 1 1 11,12;
|
||||
11 2 0 9,10;
|
||||
9 3 1 3,6;
|
||||
7 0 0 14,15;
|
||||
15 1 1 7,11;
|
||||
14 2 1 3,6;
|
||||
1 0 1 3,16;
|
||||
16 3 0 2,17;
|
||||
17 3 1 3,16;
|
||||
EOF
|
||||
ltlsynt --ins='a' --outs='b' -f 'GFa <-> GFb' --print-pg > out
|
||||
diff out exp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue