Skip to content

Commit 99f0549

Browse files
author
Edi Muskardin
committed
account for None output in RandomWalk and RandomWord oracles
1 parent 2877d2f commit 99f0549

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aalpy/oracles/RandomWalkEqOracle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def find_cex(self, hypothesis):
6868

6969
self.sul.post()
7070
return inputs
71-
elif out_hyp is None:
71+
elif out_hyp is None and self.automata_type != 'det':
7272
if self.reset_after_cex:
7373
self.random_steps_done = 0
7474
self.sul.post()

aalpy/oracles/RandomWordEqOracle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def find_cex(self, hypothesis):
7272
self.sul.post()
7373
return inputs
7474

75-
elif out_hyp is None:
75+
elif out_hyp is None and self.automata_type != 'det':
7676
self.sul.post()
7777

7878
if self.reset_after_cex:

0 commit comments

Comments
 (0)