rename pg_print() as print_pg() and add it to to_str()

* NEWS: Mention those change.
* spot/twaalgos/game.hh (print_pg): New function.
(pg_print): Mark as deprecated.
* spot/twaalgos/game.cc (pg_print): Redirect to print_pg().
(print_pg): Update to output state names.
* python/spot/__init__.py: Teach to_str() about print_pg().
* bin/ltlsynt.cc: Adjust to call print_pg().
* tests/python/games.ipynb: Add an example.
* tests/core/ltlsynt.test: Adjust to remove the "INIT" note.
This commit is contained in:
Alexandre Duret-Lutz 2022-07-22 16:52:03 +02:00
parent b3e994c249
commit 8b93b6967d
7 changed files with 145 additions and 68 deletions

View file

@ -24,7 +24,7 @@ set -e
cat >exp <<EOF
parity 17;
0 1 0 7,8 "INIT";
0 1 0 7,8;
8 1 1 2;
2 3 0 11,12;
12 3 1 2,3;
@ -43,7 +43,7 @@ parity 17;
11 3 1 1,4;
7 1 1 1,2;
parity 13;
0 1 0 1,2 "INIT";
0 1 0 1,2;
2 1 1 3;
3 3 0 5,4;
4 2 1 12,3;
@ -58,7 +58,7 @@ parity 13;
13 1 1 6,10;
1 1 1 6,3;
parity 5;
0 1 0 2,3 "INIT";
0 1 0 2,3;
3 3 1 1;
1 1 0 4,5;
5 2 1 1,1;
@ -984,4 +984,4 @@ EOF
ltlsynt -f "G(o1|o2) & (GFi <-> GFo1)" --outs="o1,o2" --verbose\
--bypass=yes 2> out
sed 's/ [0-9.e-]* seconds/ X seconds/g' out > outx
diff outx exp
diff outx exp