safra: Fix nesting comparision

* src/tests/safra.cc:  Output error message for wrong ltl formula.
* src/twaalgos/safra.cc:  Default comparision of vector does not
correspond to the desired comparision.
This commit is contained in:
Alexandre Lewkowicz 2015-05-28 10:53:48 +02:00 committed by Alexandre Duret-Lutz
parent 8362bf3a5f
commit ebe03cf3d0
2 changed files with 25 additions and 5 deletions

View file

@ -27,6 +27,7 @@
#include "ltlparse/public.hh"
#include "twaalgos/dotty.hh"
#include "twaalgos/hoa.hh"
#include "twaalgos/degen.hh"
int main(int argc, char* argv[])
@ -42,6 +43,8 @@ int main(int argc, char* argv[])
const spot::ltl::formula* f =
spot::ltl::parse(input, pel, spot::ltl::default_environment::instance(),
false);
if (spot::ltl::format_parse_errors(std::cerr, input, pel))
return 2;
spot::translator trans(dict);
trans.set_pref(spot::postprocessor::Deterministic);
auto tmp = trans.run(f);