Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test PRISM input models #87

Open
xhajnal opened this issue Dec 4, 2020 · 3 comments
Open

test PRISM input models #87

xhajnal opened this issue Dec 4, 2020 · 3 comments
Labels
enhancement New feature or request hard to fix Requires nontrivial amounts of knwoledge

Comments

@xhajnal
Copy link
Owner

xhajnal commented Dec 4, 2020

Only a few models were tested, and parser may fail with even correct models since PRISM does not have a grammar of model structure

@xhajnal xhajnal added enhancement New feature or request hard to fix Requires nontrivial amounts of knwoledge labels Dec 4, 2020
@xhajnal xhajnal changed the title test PRSIM input models test PRISM input models Jan 5, 2021
@xhajnal xhajnal added the help wanted Extra attention is needed label Apr 10, 2021
@huypn12
Copy link
Collaborator

huypn12 commented Apr 11, 2021

@xhajnal
You can use stormpy for this purpose. For example

import stormpy
try:
    prism_program = stormpy.parse_prism_program(prism_model_file)
except Exception as ex:
    print(f"Error parsing prism program {ex}")

change too broad Exception to the proper one

@xhajnal
Copy link
Owner Author

xhajnal commented Apr 11, 2021

@huypn12
Thanks.
Do you mean for testing or for the feature?
Because to use it as a feature I need some additional dependencies over Storm, which I have failed to install on the VM for Artefact Evaluation.

TBD trace report of the Stormpy build error (currently unavailable)

@huypn12
Copy link
Collaborator

huypn12 commented Apr 11, 2021

i meant for testing if PRISM input models is syntactically valid.

Because to use it as a feature I need some additional dependencies over Storm, which I have failed to install on the VM for Artefact Evaluation.

If you need to use Stormpy, you need Storm in the first place. Once Storm is installed and registered in the system library path, you can use Pipenv and add the following line
stormpy = {editable = true, git = "https://github.com/moves-rwth/[email protected]"}
Installing Storm is afaik just follow the document, the trick is to use a manually installed boost 1.64. Otherwise, storm wont compile

@xhajnal xhajnal removed the help wanted Extra attention is needed label Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard to fix Requires nontrivial amounts of knwoledge
Projects
None yet
Development

No branches or pull requests

2 participants