Limex: don't not build accel schemes for impossible state sets

This commit is contained in:
Alex Coyte
2016-08-26 15:19:10 +10:00
committed by Matthew Barr
parent a08e1dd690
commit bcf40c5136
2 changed files with 192 additions and 23 deletions

View File

@@ -118,9 +118,11 @@ void findSquashStates(const NGHolder &g,
filterSquashers(g, squashMap);
/* We also filter out the cyclic states representing bounded repeats, as
* they are not really cyclic. */
* they are not really cyclic -- they may turn off unexpectedly. */
for (const auto &br : repeats) {
squashMap.erase(br.cyclic);
if (br.repeatMax.is_finite()) {
squashMap.erase(br.cyclic);
}
}
}