acc_cond::mark_t now relies on bitset
This allows to represent more than 32 acceptance marks. * configure.ac: add an option to specify the number of marks * spot/twa/acc.hh: implement it * tests/python/acc_cond.ipynb, tests/core/acc.cc, tests/core/ltlcross3.test: update tests * NEWS: document it * bin/randltl.cc: fix an include
This commit is contained in:
parent
d77d046d26
commit
d7ee23ed2f
7 changed files with 51 additions and 172 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <vector>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <spot/twa/acc.hh>
|
||||
|
||||
static void check(spot::acc_cond& ac, spot::acc_cond::mark_t m)
|
||||
|
|
@ -178,4 +179,14 @@ int main()
|
|||
std::cout << c1 << '\n';
|
||||
std::cout << c2 << '\n';
|
||||
assert(c1 == c2);
|
||||
|
||||
try
|
||||
{
|
||||
spot::acc_cond a{SPOT_NB_ACC+1};
|
||||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
return std::strcmp(e.what(), "Too many acceptance sets used.");
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue