Fix bugs in minimize(), caught by spotlbtt.test.
* src/tgbaalgos/minimize.cc (minimize): Don't add acceptance conditions if the final set is empty. * src/tgbaalgos/powerset.cc (tgba_powerset): Add the initial state to acc_list if it is accepting. Also do not compute an SCC build map if we don't have to build acc_list.
This commit is contained in:
parent
54e10c2501
commit
72139fd760
4 changed files with 27 additions and 8 deletions
|
|
@ -93,7 +93,8 @@ namespace spot
|
|||
tgba_explicit_number* res = new tgba_explicit_number(a->get_dict());
|
||||
// For each transition in the initial automaton, add the corresponding
|
||||
// transition in res.
|
||||
res->declare_acceptance_condition(ltl::constant::true_instance());
|
||||
if (!final->empty())
|
||||
res->declare_acceptance_condition(ltl::constant::true_instance());
|
||||
for (sit = sets.begin(); sit != sets.end(); ++sit)
|
||||
{
|
||||
hash_set::iterator hit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue