autfilt: better handling of chain of products with -B
Fixes #348, reported by Jeroen Meijer. * bin/autfilt.cc: If -B is used with many --product, degeneralize intermediate products as needed. * NEWS: Mention the change. * tests/core/prodchain.test: New file. * tests/Makefile.am: Add it. * spot/twa/acc.cc, spot/twa/acc.hh: Fix reporting of overflow. * tests/core/acc.cc: Adjust.
This commit is contained in:
parent
a738801edf
commit
c87c13db67
7 changed files with 149 additions and 19 deletions
|
|
@ -189,8 +189,7 @@ int main()
|
|||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (std::strcmp(e.what(), "Too many acceptance sets used."))
|
||||
return 1;
|
||||
assert(!std::strncmp(e.what(), "Too many acceptance sets used.", 30));
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -200,8 +199,7 @@ int main()
|
|||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (std::strcmp(e.what(), "bit shift overflow is undefined behavior"))
|
||||
return 1;
|
||||
assert(!std::strncmp(e.what(), "Too many acceptance sets used.", 30));
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -211,8 +209,7 @@ int main()
|
|||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (std::strcmp(e.what(), "bit shift overflow is undefined behavior"))
|
||||
return 1;
|
||||
assert(!std::strncmp(e.what(), "Too many acceptance sets used.", 30));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue