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

Speedup minimize_obligation() when f->is_syntactic_obligation().

* src/tgbaalgos/minimize.cc (minimize_obligation): Do not check
the output of minimize_wdba if the input formula is a syntactic
obligation.
parent c483053a
......@@ -625,12 +625,15 @@ namespace spot
{
tgba_explicit_number* min_aut_f = minimize_wdba(aut_f);
// if f is a syntactic obligation formula, the WDBA minimization
// must be correct.
if (f && f->is_syntactic_obligation())
return min_aut_f;
// If aut_f is a guarantee automaton, the WDBA minimization must be
// correct.
if (is_guarantee_automaton(aut_f))
{
return min_aut_f;
}
return min_aut_f;
if (!f && !aut_neg_f)
{
......
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