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.

12 lines
388 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. model = stormpy.build_model(prism_program)
  8. print("Number of states: {}".format(model.nr_states))
  9. print("Number of transitions: {}".format(model.nr_transitions))
  10. print("Labels: {}".format(model.labels))