The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
525 B

2 months ago
  1. import stormpy
  2. import stormpy.core
  3. import stormpy.examples
  4. import stormpy.examples.files
  5. def example_getting_started_01():
  6. path = stormpy.examples.files.prism_dtmc_die
  7. prism_program = stormpy.parse_prism_program(path)
  8. model = stormpy.build_model(prism_program)
  9. print("Number of states: {}".format(model.nr_states))
  10. print("Number of transitions: {}".format(model.nr_transitions))
  11. print("Labels: {}".format(model.labeling.get_labels()))
  12. if __name__ == '__main__':
  13. example_getting_started_01()