Browse Source

stormpy.model_checking(...) now supports both sparse and dd based models.

refactoring
Sebastian Junges 5 years ago
parent
commit
64ec557309
  1. 7
      lib/stormpy/__init__.py

7
lib/stormpy/__init__.py

@ -262,8 +262,15 @@ def model_checking(model, property, only_initial_states=False, extract_scheduler
:return: Model checking result. :return: Model checking result.
:rtype: CheckResult :rtype: CheckResult
""" """
if model.is_sparse_model:
return check_model_sparse(model, property, only_initial_states=only_initial_states, return check_model_sparse(model, property, only_initial_states=only_initial_states,
extract_scheduler=extract_scheduler, environment=environment) extract_scheduler=extract_scheduler, environment=environment)
else:
assert(model.is_symbolic_model)
if extract_scheduler:
raise StormError("Model checking based on dd engine does not support extracting schedulers right now.")
return check_model_dd(model, property, only_initial_states=only_initial_states,
environment=environment)
def check_model_sparse(model, property, only_initial_states=False, extract_scheduler=False, environment=Environment()): def check_model_sparse(model, property, only_initial_states=False, extract_scheduler=False, environment=Environment()):

Loading…
Cancel
Save