You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import stormpy import stormpy.dft import stormpy.logic from helpers.helper import get_example_path
import math
class TestBuild: def test_build_dft(self): model = stormpy.dft.build_sparse_model_from_json_dft(get_example_path("dft", "and.json")) formulas = stormpy.parse_properties("T=? [ F \"failed\" ]") assert model.nr_states == 4 assert model.nr_transitions == 5 assert len(model.initial_states) == 1 initial_state = model.initial_states[0] assert initial_state == 1 result = stormpy.model_checking(model, formulas[0]) assert math.isclose(result.at(initial_state), 3)
|