Browse Source

example

refactoring
sjunges 7 years ago
parent
commit
cb9145ca6a
  1. 17
      examples/highlevel_models/01-highlevel-models.py

17
examples/highlevel_models/01-highlevel-models.py

@ -0,0 +1,17 @@
import stormpy
import stormpy.core
import stormpy.examples
import stormpy.examples.files
def example_highlevel_models():
path = stormpy.examples.files.prism_pdtmc_die
prism_program = stormpy.parse_prism_program(path)
for c in prism_program.constants:
print("constant {} with type {} is {} defined".format(c.name, c.type, "" if c.defined else "not"))
if __name__ == '__main__':
example_highlevel_models()
Loading…
Cancel
Save