safra: Ensure parity min even acceptance

* src/tests/safra.cc, src/tests/safra.test:  Use HOA format in tests.
* src/twaalgos/safra.cc:  Make sure the number of sets are always odd so
that cycles without any acceptance set are rejected.
This commit is contained in:
Alexandre Lewkowicz 2015-05-27 16:42:19 +02:00 committed by Alexandre Duret-Lutz
parent d0d42f86f9
commit 8362bf3a5f
3 changed files with 91 additions and 54 deletions

View file

@ -26,6 +26,7 @@
#include "hoaparse/public.hh"
#include "ltlparse/public.hh"
#include "twaalgos/dotty.hh"
#include "twaalgos/hoa.hh"
int main(int argc, char* argv[])
@ -57,5 +58,11 @@ int main(int argc, char* argv[])
}
res->merge_transitions();
spot::dotty_reachable(std::cout, res);
if (argc >= 4 && !strncmp(argv[3], "-H", 2))
{
spot::hoa_reachable(std::cout, res, "t");
std::cout << std::endl;
}
else
spot::dotty_reachable(std::cout, res);
}