Commit a962bb6d authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

"ltl2tgba -Rm -X foo.tgba" would fail.

* src/tgbatest/ltl2tgba.cc (main): Warn if -Rm is used without
knowing the formula whose automaton is minimized.
parent 7d8a5310
2010-11-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
"ltl2tgba -Rm -X foo.tgba" would fail.
* src/tgbatest/ltl2tgba.cc (main): Warn if -Rm is used without
knowing the formula whose automaton is minimized.
2010-11-25 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix bugs in minimize().
......
......@@ -921,8 +921,15 @@ main(int argc, char** argv)
}
else // We don't know if A is a safety automaton.
{
// Let's make sure that a recognize the same language
// as minimized.
if (!f)
{
std::cerr << "Error: Without a formula I cannot make "
<< "sure that the automaton built with -Rm\n"
<< " is correct." << std::endl;
exit(2);
}
// Let's make sure that A recognizes the same language
// as MINIMIZED.
spot::ltl::formula* neg =
spot::ltl::unop::instance(spot::ltl::unop::Not, f->clone());
spot::tgba* n = spot::ltl_to_tgba_fm(neg, dict, fm_exprop_opt,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment