diff --git a/lib/stormpy/__init__.py b/lib/stormpy/__init__.py index 5c66ad8..8445b17 100644 --- a/lib/stormpy/__init__.py +++ b/lib/stormpy/__init__.py @@ -262,8 +262,15 @@ def model_checking(model, property, only_initial_states=False, extract_scheduler :return: Model checking result. :rtype: CheckResult """ - return check_model_sparse(model, property, only_initial_states=only_initial_states, + if model.is_sparse_model: + return check_model_sparse(model, property, only_initial_states=only_initial_states, 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()):