acc: improve diagnostics for algorithms that use too many colors

* spot/twa/acc.hh (acc_cond::mark_t): Diagnose mark_t with set numbers
that are too larges.
* tests/python/except.py: Adjust.
* tests/core/acc.cc: Remove most of asserts, as those can be disabled,
and adjust expected exception.
This commit is contained in:
Alexandre Duret-Lutz 2019-10-18 11:25:43 +02:00
parent 896925ae1c
commit cc9659bca0
3 changed files with 21 additions and 7 deletions

View file

@ -102,7 +102,10 @@ namespace spot
: mark_t(_value_t::zero())
{
for (iterator i = begin; i != end; ++i)
set(*i);
if (SPOT_LIKELY(*i < SPOT_MAX_ACCSETS))
set(*i);
else
report_too_many_sets();
}
/// Create a mark_t from a list of set numbers.