genem: fix removal of unsatisfied Fin(x) sets

Fixes #360.

* spot/twa/acc.cc, spot/twa/acc.hh (force_inf): New method.
* spot/twaalgos/genem.cc: Fix the emptiness check using force_inf.
* tests/python/genem.py: Add test case and adjust the python
version of the emptiness check.
This commit is contained in:
Alexandre Duret-Lutz 2018-07-26 15:14:28 +02:00
parent 9f81df2cd4
commit 469d2b4ef4
4 changed files with 88 additions and 3 deletions

View file

@ -175,7 +175,7 @@ namespace spot
<deal_with_disjunct>))
return false;
// Try to accept when Fin(fo) == false
tmp.set(acc.remove({(unsigned) fo}, false));
tmp.set(acc.force_inf({(unsigned) fo}));
return generic_emptiness_check_for_scc_nocopy
<deal_with_disjunct>(si, scc, tocut);
return true;