rename SPOT_NB_ACC to SPOT_MAX_ACCSETS

* NEWS, bin/autcross.cc, bin/autfilt.cc, bin/ltlcross.cc,
configure.ac, spot/parseaut/parseaut.yy, spot/twa/acc.cc,
spot/twa/acc.hh, tests/core/acc.cc, .gitlab-ci.yml: Here.
This commit is contained in:
Alexandre Duret-Lutz 2018-05-24 17:52:42 +02:00
parent cc2c4615d0
commit 2e165f188d
10 changed files with 33 additions and 30 deletions

View file

@ -509,7 +509,7 @@ namespace
const spot::const_twa_graph_ptr& aut_j,
size_t i, size_t j)
{
if (aut_i->num_sets() + aut_j->num_sets() > SPOT_NB_ACC)
if (aut_i->num_sets() + aut_j->num_sets() > SPOT_MAX_ACCSETS)
{
std::cerr << "info: building " << autname(i)
<< '*' << autname(j, true)

View file

@ -649,7 +649,7 @@ static spot::twa_graph_ptr
product(spot::twa_graph_ptr left, spot::twa_graph_ptr right)
{
if ((type == spot::postprocessor::BA)
&& (left->num_sets() + right->num_sets() > SPOT_NB_ACC))
&& (left->num_sets() + right->num_sets() > SPOT_MAX_ACCSETS))
{
left = ensure_tba(left);
right = ensure_tba(right);
@ -661,7 +661,7 @@ static spot::twa_graph_ptr
product_or(spot::twa_graph_ptr left, spot::twa_graph_ptr right)
{
if ((type == spot::postprocessor::BA)
&& (left->num_sets() + right->num_sets() > SPOT_NB_ACC))
&& (left->num_sets() + right->num_sets() > SPOT_MAX_ACCSETS))
{
left = ensure_tba(left);
right = ensure_tba(right);
@ -965,7 +965,7 @@ parse_opt(int key, char* arg, struct argp_state*)
if (res < 0)
error(2, 0, "acceptance sets should be non-negative:"
" --mask-acc=%ld", res);
if (static_cast<unsigned long>(res) > SPOT_NB_ACC)
if (static_cast<unsigned long>(res) > SPOT_MAX_ACCSETS)
error(2, 0, "this implementation does not support that many"
" acceptance sets: --mask-acc=%ld", res);
opt_mask_acc.set(res);

View file

@ -691,7 +691,7 @@ namespace
const spot::const_twa_graph_ptr& aut_j,
size_t i, size_t j, bool icomp, bool jcomp)
{
if (aut_i->num_sets() + aut_j->num_sets() > SPOT_NB_ACC)
if (aut_i->num_sets() + aut_j->num_sets() > SPOT_MAX_ACCSETS)
{
// Report the skipped test if both automata are not
// complemented, or the --verbose option is used,