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

ltl2tgba: apply -R3 before -D or -DS.

* src/tgbatest/ltl2tgba.cc (main): Call scc_filter() before the
degeneralization, because it might remove useless acceptance
conditions.  I realized this while looking at experiments from
Rüdiger Ehlers.
parent 2598f794
2010-03-03 Alexandre Duret-Lutz <adl@lrde.epita.fr>
ltl2tgba: apply -R3 before -D or -DS.
* src/tgbatest/ltl2tgba.cc (main): Call scc_filter() before the
degeneralization, because it might remove useless acceptance
conditions. I realized this while looking at experiments from
Rdiger Ehlers.
2010-02-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/sanity/style.test: Better fix for the previous error.
......
......@@ -5,4 +5,5 @@ Heikki Tauriainen
Jean-Michel Couvreur
Jean-Michel Ili
Kristin Y. Rozier
Rdiger Ehlers
Yann Thierry-Mieg
......@@ -800,6 +800,16 @@ main(int argc, char** argv)
}
}
// Remove dead SCCs and useless acceptance conditions before
// degeneralization.
spot::tgba* aut_scc = 0;
if (reduc_aut & spot::Reduce_Scc)
{
tm.start("reducing A_f w/ SCC");
a = aut_scc = spot::scc_filter(a);
tm.stop("reducing A_f w/ SCC");
}
spot::tgba_tba_proxy* degeneralized = 0;
spot::tgba_sgba_proxy* state_labeled = 0;
......@@ -819,17 +829,8 @@ main(int argc, char** argv)
}
spot::tgba_reduc* aut_red = 0;
spot::tgba* aut_scc = 0;
if (reduc_aut != spot::Reduce_None)
{
if (reduc_aut & spot::Reduce_Scc)
{
tm.start("reducing A_f w/ SCC");
a = aut_scc = spot::scc_filter(a);
tm.stop("reducing A_f w/ SCC");
}
if (reduc_aut & ~spot::Reduce_Scc)
{
tm.start("reducing A_f w/ sim.");
......@@ -1132,8 +1133,8 @@ main(int argc, char** argv)
delete system;
delete expl;
delete aut_red;
delete aut_scc;
delete degeneralized;
delete aut_scc;
delete state_labeled;
delete to_free;
delete echeck_inst;
......
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