ltlsynt: fix a bug in split_2step_fast_here

* spot/twaalgos/synthesis.cc (split_2step_fast_here::get_ps): Fix the
state number recorded in the map.
* tests/core/ltlsynt.test: Add test case.
This commit is contained in:
Alexandre Duret-Lutz 2021-10-24 22:34:06 +02:00
parent 1df5f0e2c7
commit 6464324a2c
2 changed files with 7 additions and 1 deletions

View file

@ -421,6 +421,12 @@ ltlsynt --outs=p1 -f "$f" -x"dpa-simul=1" --simpl=sat | grep 'States: 2'
ltlsynt --outs=p1 -f "$f" -x"dpa-simul=1" --simpl=bisim-sat | grep 'States: 2'
ltlsynt --outs=p1 -f "$f" -x"dpa-simul=1" --simpl=bwoa-sat | grep 'States: 4'
# The following used to raise an exception because of a bug in
# split_2step_fast_here().
for i in 0 1 2 3 4 5; do
ltlsynt --ins=a -f 'GFa <-> GFb' --simplify=$i | grep 'States: 1'
done
cat >exp <<EOF
REALIZABLE
aag 34 4 3 2 27