Hi everyone,
Recently I tried LearnLib 0.14.0 (TTTLearner) and found an interesting exception that is not supposed to be triggered.
What is weird about this exception is that is triggered by lines (55 and 56) in MealyUtil.java of LearnLib while accessing
an element that is beyond array's length. Interestingly there is an assertion 3 lines above to prevent such behaviour and
yet it is not triggered.
Any ideas?
P.S. IntelliJ, Maven, Java 8 (1.8.0_161).
Best,
Masoud Ebrahimi
Following is the stack trace:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at net.automatalib.words.SharedWord.getSymbol(SharedWord.java:100)
at de.learnlib.util.mealy.MealyUtil.findMismatch(MealyUtil.java:56)
at de.learnlib.algorithms.ttt.mealy.TTTLearnerMealy.findOutputInconsistency(TTTLearnerMealy.java:103)
at de.learnlib.algorithms.ttt.base.AbstractTTTLearner.refineHypothesisSingle(AbstractTTTLearner.java:218)
at de.learnlib.algorithms.ttt.mealy.TTTLearnerMealy.refineHypothesisSingle(TTTLearnerMealy.java:67)
at de.learnlib.algorithms.ttt.base.AbstractTTTLearner.refineHypothesis(AbstractTTTLearner.java:162)
at somepackage.ExperimentClass $ExperimentImpl.run(ExperimentClass.java:181)
at somepackage.ExperimentClass.run(ExperimentClass.java:60)
at somepackage.main(Simulation.java:82)