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.

16 lines
433 B

7 years ago
  1. import stormpy
  2. import stormpy.core
  3. import stormpy.examples
  4. import stormpy.examples.files
  5. def example_highlevel_models():
  6. path = stormpy.examples.files.prism_pdtmc_die
  7. prism_program = stormpy.parse_prism_program(path)
  8. for c in prism_program.constants:
  9. print("constant {} with type {} is {} defined".format(c.name, c.type, "" if c.defined else "not"))
  10. if __name__ == '__main__':
  11. example_highlevel_models()