Browse Source

extend example

refactoring
Sebastian Junges 4 years ago
parent
commit
f22bab577b
  1. 7
      examples/highlevel_models/01-highlevel-models.py

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

@ -11,6 +11,13 @@ def example_highlevel_models():
for c in prism_program.constants:
print("constant {} with type {} is {} defined".format(c.name, c.type, "" if c.defined else "not"))
path = stormpy.examples.files.prism_dtmc_brp
prism_program = stormpy.parse_prism_program(path)
for module in prism_program.modules:
for v in module.integer_variables:
print(f"Variable {v.name} has bounds {v.lower_bound_expression} and {v.upper_bound_expression}")
for v in module.boolean_variables:
print(f"Variable {v.name} is Boolean")
if __name__ == '__main__':
Loading…
Cancel
Save