|
@ -11,6 +11,13 @@ def example_highlevel_models(): |
|
|
for c in prism_program.constants: |
|
|
for c in prism_program.constants: |
|
|
print("constant {} with type {} is {} defined".format(c.name, c.type, "" if c.defined else "not")) |
|
|
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__': |
|
|
if __name__ == '__main__': |