Skip to content

Commit

Permalink
various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Andriushchenko committed Nov 26, 2024
2 parents b77ff12 + ba97d1c commit d8a0adc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions paynt/parser/prism_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def load_sketch_prism(cls, sketch_path):
sketch_lines = f.readlines()

# replace hole definitions with constants
hole_re_brace = re.compile(r'^\s*hole\s+(.*?)\s+(.*?)\s+in\s+\{(.*?)\}\s*;\s*$')
# hole_re_bracket = re.compile(r'^\s*hole\s+(.*?)\s+(.*?)\s+in\s+[(.*?)]\s+;\s+$')
hole_re_brace = re.compile(r'^\s*hole\s+(.*?)\s+(.*?)\s+in\s+\{(.*?)\}\s*;')
# hole_re_bracket = re.compile(r'^\s*hole\s+(.*?)\s+(.*?)\s+in\s+[(.*?)]\s+;')
sketch_output = []
hole_definitions = []
for line in sketch_lines:
Expand Down
4 changes: 2 additions & 2 deletions paynt/verification/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def transform_until_to_eventually(self):
if not self.is_until:
return
logger.info("converting until formula to eventually...")
formula = payntbind.synthesis.transform_until_to_eventually(self.formula)
formula = payntbind.synthesis.transform_until_to_eventually(self.property.raw_formula)
prop = stormpy.core.Property("", formula)
self.__init__(prop)

Expand Down Expand Up @@ -306,7 +306,7 @@ def transform_until_to_eventually(self):
if not self.is_until:
return
logger.info("converting until formula to eventually...")
formula = payntbind.synthesis.transform_until_to_eventually(self.formula)
formula = payntbind.synthesis.transform_until_to_eventually(self.property.raw_formula)
prop = stormpy.core.Property("", formula)
self.__init__(prop, self.epsilon)

Expand Down
7 changes: 4 additions & 3 deletions payntbind/src/synthesis/synthesis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ void define_synthesis(py::module& m) {
bindings_decpomdp(m);
bindings_counterexamples(m);
bindings_pomdp_family(m);
bindings_posmg(m);

bindings_coloring(m);

#ifndef DISABLE_SMG
bindings_smg(m);
}

bindings_posmg(m);
#endif // DISABLE_SMG
}

0 comments on commit d8a0adc

Please sign in to comment.