Browse Source

Add possibility to build from prism without formula

refactoring
Matthias Volk 8 years ago
parent
commit
4e20a21fd0
  1. 4
      lib/stormpy/__init__.py

4
lib/stormpy/__init__.py

@ -17,9 +17,9 @@ def build_model(program, properties=None):
"""
if properties:
formulae = [prop.raw_formula for prop in properties]
else:
formulae = []
intermediate = core._build_sparse_model_from_prism_program(program, formulae)
else:
intermediate = core._build_sparse_model_from_prism_program(program)
assert not intermediate.supports_parameters
if intermediate.model_type == ModelType.DTMC:
return intermediate._as_dtmc()

Loading…
Cancel
Save