Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaef5c31

Browse files
authored
Merge pull request#98 from andreastedile/master
Remove unused parameter from WMethodEqOracle
2 parentsc6790a7 +28eff39 commitaef5c31

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

‎aalpy/oracles/WMethodEqOracle.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ class WMethodEqOracle(Oracle):
1111
finite-state machines'.
1212
"""
1313

14-
def__init__(self,alphabet:list,sul:SUL,max_number_of_states,shuffle_test_set=True):
14+
def__init__(self,alphabet:list,sul:SUL,max_number_of_states):
1515
"""
1616
Args:
1717
1818
alphabet: input alphabet
1919
sul: system under learning
2020
max_number_of_states: maximum number of states in the automaton
21-
shuffle_test_set: if True, test cases will be shuffled
2221
"""
2322

2423
super().__init__(alphabet,sul)
2524
self.m=max_number_of_states
26-
self.shuffle=shuffle_test_set
2725
self.cache=set()
2826

2927
deftest_suite(self,cover,depth,char_set):

‎tests/test_wmethod_oracle.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ def test_wmethod_oracle(self):
8282
assertlen(real.states)==6
8383
assertlen(hyp.states)==2
8484
alphabet=real.get_input_alphabet()
85-
oracle=WMethodEqOracle(
86-
alphabet,AutomatonSUL(real),len(real.states)+1,shuffle_test_set=False
87-
)
85+
oracle=WMethodEqOracle(alphabet,AutomatonSUL(real),len(real.states)+1)
8886
cex=oracle.find_cex(hyp)
8987
assertcexisnotNone,"Expected a counterexample, but got None"
9088

@@ -98,9 +96,7 @@ def test_wmethod_oracle_with_lstar(self):
9896
assertlen(real.states)==6
9997
assertlen(hyp.states)==2
10098
alphabet=real.get_input_alphabet()
101-
oracle=WMethodEqOracle(
102-
alphabet,AutomatonSUL(real),len(real.states)+1,shuffle_test_set=False
103-
)
99+
oracle=WMethodEqOracle(alphabet,AutomatonSUL(real),len(real.states)+1)
104100
lstar_hyp=run_Lstar(alphabet,AutomatonSUL(real),oracle,"moore")
105101
# print(lstar_hyp)
106102
# visualize_automaton(lstar_hyp)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp