apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

Avoid creating duplicate states in state.cc when input and alternate symbols are the same #72

Closed mr-martian closed 5 years ago

mr-martian commented 5 years ago

This fix is relates to https://github.com/apertium/apertium-lex-tools/issues/29 https://github.com/apertium/apertium-lex-tools/pull/30 where if state.cc steps by (<ANY_TAG>, <ANY_TAG>) roughly 20 times it will run out of memory and crash.