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.

18 lines
508 B

  1. import stormpy
  2. import stormpy.core
  3. import stormpy.examples
  4. import stormpy.examples.files
  5. path = stormpy.examples.files.prism_dtmc_die
  6. prism_program = stormpy.parse_prism_program(path)
  7. formula_str = "P=? [F s=7 & d=2]"
  8. properties = stormpy.parse_properties_for_prism_program(formula_str, prism_program)
  9. model = stormpy.build_model(prism_program, properties)
  10. result = stormpy.model_checking(model, properties[0])
  11. print(result)
  12. assert result.result_for_all_states
  13. for x in result.get_values():
  14. print(x)