Remove redundant Fin and Inf with simplify_acceptance

* spot/twa/acc.hh: Add simplification like
Fin(0)|(Inf(0) & Fin(1)) to Fin(0)|Fin(1).
* spot/twaalgos/cleanacc.cc: Use this simplification.
This commit is contained in:
Florian Renkin 2020-04-02 18:50:09 +02:00 committed by Alexandre Duret-Lutz
parent 502778f83f
commit 37897e89e8
2 changed files with 87 additions and 0 deletions

View file

@ -619,6 +619,7 @@ namespace spot
simplify_complementary_marks_here(aut);
fuse_marks_here(aut);
}
aut->set_acceptance(aut->acc().propagate_fin_inf());
cleanup_acceptance_here(aut, true);
return aut;
}