Skip to content

Commit 5c3820f

Browse files
committed
spmm: improve assertions
1 parent 4ce7d94 commit 5c3820f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • algorithms/active/procedural/src/main/java/de/learnlib/algorithm/procedural/spmm

algorithms/active/procedural/src/main/java/de/learnlib/algorithm/procedural/spmm/SPMMLearner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public void startLearning() {
118118
@Override
119119
public boolean refineHypothesis(DefaultQuery<I, Word<O>> defaultQuery) {
120120

121-
assert this.alphabet.isReturnMatched(defaultQuery.getInput());
121+
assert defaultQuery.getPrefix().isEmpty() : "Counterexamples need to provide full trace information";
122+
assert this.alphabet.isReturnMatched(defaultQuery.getInput()) : "Counterexample has unmatched return symbols";
122123

123124
boolean changed = this.extractUsefulInformationFromCounterExample(defaultQuery);
124125

0 commit comments

Comments
 (0)