remfin: implement the BA-type check

* src/twaalgos/remfin.cc: Here.
* src/tests/remfin.test: Add a single test.
* src/twa/acc.hh (mark_t::lowest): New function.
This commit is contained in:
Alexandre Duret-Lutz 2015-08-19 18:23:31 +02:00
parent 8a3a07d8a4
commit 4bef219d8f
3 changed files with 345 additions and 4 deletions

View file

@ -244,6 +244,12 @@ namespace spot
return res;
}
// Return the lowest acceptance mark
mark_t lowest() const
{
return id & -id;
}
// Remove n bits that where set
mark_t& remove_some(unsigned n)
{