You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initialization of the List called "mark" in MinimizationOperations.MinimizeHuffman is incomplete, and consequently an Index Out of Bounds error is produced for "mark[n1][n2] = true;" (This is of course only when Automaton.Minimization is set to Automaton.MinimizeHuffman).
The text was updated successfully, but these errors were encountered:
Near as I can tell, the MinimizationOperations.MinimizeHuffman method will fail with any input whatsoever for the reason I described... it's just a matter of switching the hard-coded Automaton.Minimization to Automaton.Huffman.
My need for this fix has passed however... I was experiencing the documented .* issue with the default minimization (where the program would never return while running Xeger against a regex like ._G._V.X.), and just wanted to see if the other minimization algorithms handled it better. I've since addressed the issue by stripping off any leading or trailing .* (which I made work for my purposes), and now the default minimization runs just fine.
Otherwise, while I have some experience writing unit tests, it is limited and not very recent. So I fear I would only embarrass myself trying to assist in this area.
The initialization of the List called "mark" in MinimizationOperations.MinimizeHuffman is incomplete, and consequently an Index Out of Bounds error is produced for "mark[n1][n2] = true;" (This is of course only when Automaton.Minimization is set to Automaton.MinimizeHuffman).
The text was updated successfully, but these errors were encountered: