Skip to content

Commit

Permalink
Fixed wrong explored% for SAYNT; fixed error after function rename
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatfpmK committed Feb 6, 2024
1 parent 54507af commit ccb4e81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion paynt/synthesizer/synthesizer_ar_storm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SynthesizerARStorm(Synthesizer):
# buffer containing subfamilies to be checked after the main restricted family
subfamilies_buffer = None

unresticted_family = None
main_family = None

# if True, Storm over-approximation will be run to help with family pruning
storm_pruning = False
Expand Down Expand Up @@ -115,6 +115,10 @@ def synthesize_one(self, family):
self.quotient.discarded = 0

satisfying_assignment = None

if self.main_family is not None:
family = self.main_family

families = [family]

while families:
Expand Down
10 changes: 5 additions & 5 deletions paynt/synthesizer/synthesizer_pomdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ def strategy_iterative_storm(self, unfold_imperfect_only, unfold_storm=True):
subfamilies = []

self.synthesizer.subfamilies_buffer = subfamilies
self.synthesizer.unresticted_family = family
self.synthesizer.main_family = main_family

assignment = self.synthesize(main_family)
assignment = self.synthesize(family)

if assignment is not None:
self.storm_control.latest_paynt_result = assignment
Expand Down Expand Up @@ -287,7 +287,7 @@ def strategy_storm(self, unfold_imperfect_only, unfold_storm=True):
# for x in range(2):

if self.storm_control.is_storm_better == False:
self.storm_control.parse_result(self.quotient)
self.storm_control.parse_results(self.quotient)

paynt.quotient.pomdp.PomdpQuotient.current_family_index = mem_size

Expand Down Expand Up @@ -356,9 +356,9 @@ def strategy_storm(self, unfold_imperfect_only, unfold_storm=True):
subfamilies = []

self.synthesizer.subfamilies_buffer = subfamilies
self.synthesizer.unresticted_family = family
self.synthesizer.main_family = main_family

assignment = self.synthesize(main_family)
assignment = self.synthesize(family)

if assignment is not None:
self.storm_control.latest_paynt_result = assignment
Expand Down

0 comments on commit ccb4e81

Please sign in to comment.