New game api

Introduce a new, uniform way to create and solve
games.
Games can now be created directly from specification
using creat_game, uniformly solved using
solve_game and transformed into a strategy
using create_strategy.
Strategy are mealy machines, which can be minimized.

* bin/ltlsynt.cc: Minor adaption
* spot/twaalgos/game.cc: solve_game, setters and getters
for named properties
* spot/twaalgos/game.hh: Here too
* spot/twaalgos/mealy_machine.cc: Minor adaption
* spot/twaalgos/synthesis.cc: create_game, create_strategy and
minimize_strategy
* spot/twaalgos/synthesis.hh: Here too
* tests/core/ltlsynt.test: Adapting
* tests/python/aiger.py
, tests/python/games.ipynb
, tests/python/mealy.py
, tests/python/parity.py
, tests/python/split.py: Adapting
This commit is contained in:
philipp 2021-08-13 14:50:16 +02:00 committed by Florian Renkin
parent 786599ed20
commit 4260b17fba
12 changed files with 3163 additions and 305 deletions

View file

@ -74,17 +74,11 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 9 1 2 1 6
aag 3 1 1 1 1
2
4 16
6 18
14
8 5 7
10 4 6
12 2 9
14 11 12
16 3 11
18 2 11
4 1
6
6 2 4
i0 a
o0 b
EOF
@ -93,14 +87,10 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 6 1 2 1 3
aag 2 1 1 1 0
2
4 1
2
4 12
6 10
10
8 4 6
10 2 9
12 3 9
i0 a
o0 b
EOF
@ -109,21 +99,11 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 13 1 2 1 10
aag 3 1 1 1 1
2
4 23
6 27
17
8 2 5
10 6 8
12 2 4
14 7 12
16 11 15
18 3 5
20 3 7
22 19 21
24 2 7
26 9 25
4 1
6
6 2 4
i0 a
o0 b
EOF
@ -132,17 +112,11 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 9 1 2 1 6
aag 3 1 1 1 1
2
4 16
6 18
14
8 5 7
10 4 6
12 2 9
14 11 12
16 3 11
18 2 11
4 1
6
6 2 4
i0 a
o0 b
EOF
@ -151,18 +125,11 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 10 1 2 1 7
aag 3 1 1 1 1
2
4 18
6 20
14
8 5 6
10 4 7
12 9 11
14 2 13
16 4 6
18 3 17
20 2 17
4 1
6
6 2 4
i0 a
o0 b
EOF
@ -171,14 +138,10 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 6 1 2 1 3
aag 2 1 1 1 0
2
4 1
2
4 12
6 10
10
8 4 6
10 2 9
12 3 9
i0 a
o0 b
EOF
@ -187,18 +150,11 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 10 1 2 1 7
aag 3 1 1 1 1
2
4 18
6 20
14
8 4 7
10 5 6
12 11 9
14 2 13
16 4 9
18 3 17
20 2 17
4 1
6
6 2 4
i0 a
o0 b
EOF
@ -207,15 +163,10 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 7 1 2 1 4
aag 2 1 1 1 0
2
4 1
2
4 14
6 12
12
8 4 7
10 4 9
12 2 11
14 3 11
i0 a
o0 b
EOF
@ -224,18 +175,12 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 9 1 2 2 6
aag 3 1 1 2 1
2
4 16
6 18
14
14
8 5 7
10 4 6
12 2 9
14 11 12
16 3 11
18 2 11
4 1
6
6
6 2 4
i0 a
o0 b
o1 c
@ -245,15 +190,11 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 6 1 2 2 3
aag 2 1 1 2 0
2
4 1
2
2
4 12
6 10
10
10
8 4 6
10 2 9
12 3 9
i0 a
o0 b
o1 c
@ -263,19 +204,12 @@ diff out exp
cat >exp <<EOF
REALIZABLE
aag 10 1 2 2 7
aag 3 1 1 2 1
2
4 18
6 20
14
14
8 4 7
10 5 6
12 11 9
14 2 13
16 4 9
18 3 17
20 2 17
4 1
6
6
6 4 2
i0 a
o0 b
o1 c