Adding SMG model checker to payntbind #43
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding a taken implementation of SMG model checker from TEMPEST (https://github.com/PrangerStefan/TempestSynthesis) to payntbind.
This model checker works on the Smg class from Storm, which holds general turn-based SMGs. Therefore, this model checker should be future-proof if we would like to play around with more than two players and so on. I only tested reachability properties! See how to specify the rPATL properties here: https://prismmodelchecker.org/games/properties.php. Note the player indexing starts from 0 for the players i.e. Player1's index is 0. The results are the same as those of PRISM-Games.
I added a binding "smg_model_checking" which expects the SMG and formula to be checked, and returns a model checking result with values for each state and a scheduler.
I also changed the models in models/posg to the new DRN format that we can export from PRISM-Games thanks to Dave. For now I kept the old POMDP models there as well, but we can remove it once we verify the parser.
Depends on moves-rwth/stormpy#173