|
@ -9,7 +9,13 @@ class TestParse: |
|
|
assert program.nr_modules == 1 |
|
|
assert program.nr_modules == 1 |
|
|
assert program.model_type == stormpy.PrismModelType.DTMC |
|
|
assert program.model_type == stormpy.PrismModelType.DTMC |
|
|
assert not program.has_undefined_constants |
|
|
assert not program.has_undefined_constants |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_parse_parametric_prism_program(self): |
|
|
|
|
|
program = stormpy.parse_prism_program(get_example_path("pdtmc", "brp16_2.pm")) |
|
|
|
|
|
assert program.nr_modules == 5 |
|
|
|
|
|
assert program.model_type == stormpy.PrismModelType.DTMC |
|
|
|
|
|
assert program.has_undefined_constants |
|
|
|
|
|
|
|
|
def test_parse_formula(self): |
|
|
def test_parse_formula(self): |
|
|
formula = "P=? [F \"one\"]" |
|
|
formula = "P=? [F \"one\"]" |
|
|
properties = stormpy.parse_properties(formula) |
|
|
properties = stormpy.parse_properties(formula) |
|
|