Skip to content

Commit 7dd63d3

Browse files
author
Edi Muškardin
authored
Merge pull request #85 from lkruger27/ads-dfa-fix
Small adaptive query fix
2 parents 0065a4d + 647fced commit 7dd63d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

aalpy/base/SUL.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def adaptive_query(self, word, ads):
7575
if next_input is None:
7676
break
7777
if next_input is tuple(): # Relevant for DFA/Moore
78-
last_output = self.step(None)
78+
if outputs_received:
79+
last_output = outputs_received[-1]
80+
else:
81+
last_output = self.step(None)
7982
else:
8083
word.append(next_input)
8184
output = self.step(next_input)

0 commit comments

Comments
 (0)