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

Adjust ltl2tgba.py to call scc_filter() with the "full" option as

appropriate.

* wrap/python/spot.i (spot::scc_filter): Make it available.
* wrap/python/cgi-bin/ltl2tgba.in (reduce_scc): Call scc_filter.
Use the "full" option unless the show_degen_png or
show_never_claim are set.  Also reduce_scc the default.
parent ef3c82e1
2010-04-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Adjust ltl2tgba.py to call scc_filter() with the "full" option as
appropriate.
* wrap/python/spot.i (spot::scc_filter): Make it available.
* wrap/python/cgi-bin/ltl2tgba.in (reduce_scc): Call scc_filter.
Use the "full" option unless the show_degen_png or
show_never_claim are set. Also reduce_scc the default.
2010-04-08 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/ltlvisit/basicreduce.cc: Typo in comment.
......
......@@ -258,7 +258,7 @@ options_reduce = [
('reduce_langcont', 'language containment' + new, 0),
]
options_aut_reduce = [
('reduce_scc', 'prune unaccepting SCCs' + new, 0),
('reduce_scc', 'prune unaccepting SCCs' + new, 1),
]
options_debug = [
('show_parse', 'show traces during parsing', 0),
......@@ -564,7 +564,11 @@ elif trans_taa:
automaton = spot.ltl_to_taa(f, dict, refined_rules)
if reduce_scc:
automaton = spot.reduc_tgba_sim(automaton, spot.Reduce_Scc)
# Do not suppress all useless acceptance conditions if
# degeneralization is requested: keeping those that lead to
# accepting states usually help.
automaton = spot.scc_filter(automaton, not (show_degen_png or
show_never_claim))
print 'done.</p>'
sys.stdout.flush()
......
......@@ -91,6 +91,7 @@
#include "tgbaalgos/reductgba_sim.hh"
#include "tgbaalgos/rundotdec.hh"
#include "tgbaalgos/save.hh"
#include "tgbaalgos/sccfilter.hh"
#include "tgbaalgos/stats.hh"
using namespace spot::ltl;
......@@ -151,6 +152,7 @@ using namespace spot;
%feature("new") spot::reduc_tgba_sim;
%feature("new") spot::emptiness_check_instantiator::construct;
%feature("new") spot::emptiness_check_instantiator::instanciate;
%feature("new") spot::scc_filter;
// Help SWIG with namespace lookups.
#define ltl spot::ltl
......@@ -182,6 +184,7 @@ using namespace spot;
%include "tgbaalgos/reductgba_sim.hh"
%include "tgbaalgos/rundotdec.hh"
%include "tgbaalgos/save.hh"
%include "tgbaalgos/sccfilter.hh"
%include "tgbaalgos/stats.hh"
#undef ltl
......
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