Browse Source

model checking and bisim adapted to properties

refactoring
Sebastian Junges 8 years ago
parent
commit
f06bd48dfb
  1. 12
      lib/stormpy/__init__.py

12
lib/stormpy/__init__.py

@ -35,14 +35,14 @@ def build_parametric_model(program, properties = None):
else: else:
raise RuntimeError("Not supported parametric model constructed") raise RuntimeError("Not supported parametric model constructed")
def perform_bisimulation(model, formula, bisimulation_type):
def perform_bisimulation(model, property, bisimulation_type):
if model.supports_parameters: if model.supports_parameters:
return core._perform_parametric_bisimulation(model, formula, bisimulation_type)
return core._perform_parametric_bisimulation(model, property.raw_formula, bisimulation_type)
else: else:
return core._perform_bisimulation(model, formula, bisimulation_type)
return core._perform_bisimulation(model, property.raw_formula, bisimulation_type)
def model_checking(model, formula):
def model_checking(model, property):
if model.supports_parameters: if model.supports_parameters:
return core._parametric_model_checking(model, formula)
return core._parametric_model_checking(model, property.raw_formula)
else: else:
return core._model_checking(model, formula)
return core._model_checking(model, property.raw_formula)
Loading…
Cancel
Save