Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aalpy/oracles/StatePrefixEqOracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def __init__(self, alphabet: list, sul: SUL, walks_per_state=10, walk_len=12, ma
self.freq_dict = dict()

def find_cex(self, hypothesis):
if self.max_tests and self.num_queries == self.max_tests:
return None

states_to_cover = []
for state in hypothesis.states:
if state.prefix is None:
Expand All @@ -62,6 +59,9 @@ def find_cex(self, hypothesis):

self.reset_hyp_and_sul(hypothesis)

if self.max_tests and self.num_queries == self.max_tests:
return None

prefix = state.prefix
for p in prefix:
hypothesis.step(p)
Expand Down
Loading