Skip to content

Commit

Permalink
add PAPNI to top level imports and one vpa benchmark model
Browse files Browse the repository at this point in the history
  • Loading branch information
emuskardin committed Sep 30, 2024
1 parent f97b06f commit a058dd2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions DotModels/arithmetics.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
digraph learnedModel {
s0 [label="s0", shape=circle];
s1 [label="s1", shape=doublecircle];
s0 -> s1 [label="1"];
s0 -> s0 [label="push(()"];
s1 -> s0 [label="+"];
s1 -> s1 [label=") / pop(()"];
__start0 [label="", shape=none];
__start0 -> s0 [label=""];
}
1 change: 1 addition & 0 deletions aalpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
run_non_det_Lstar,
run_RPNI,
run_stochastic_Lstar,
run_PAPNI
)
from .oracles import (
BreadthFirstExplorationEqOracle,
Expand Down
2 changes: 1 addition & 1 deletion aalpy/utils/BenchmarkVpaModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def step(self, letter):

sul = ArithmeticSUL()

alphabet = VpaAlphabet(internal_alphabet=['1', '+', '-', '/', '0'], call_alphabet=['(', ], return_alphabet=[')', ])
alphabet = VpaAlphabet(internal_alphabet=['1', '+',], call_alphabet=['(', ], return_alphabet=[')', ])
merged_alphabet = alphabet.get_merged_alphabet()
data = []
while len(data) < num_sequances:
Expand Down

0 comments on commit a058dd2

Please sign in to comment.