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.
With this PR, PRISM learns a new mechanism for specifying path formulas: Directly via a deterministic automaton in HOA format.
PRISM already supports HOA automata, when they are constructed by an external tool from an LTL path formula. Now, one can write properties like
P=?[ HOA: {"filename.hoa"} ]which computes the probability of the paths that are accepted by the given HOA automaton. In this short form, the atomic propositions (APs) from the automaton are matched with the corresponding labels in the model. Alternatively, one can specify state expressions for labels, e.g.,
P=?[ HOA: {"filename.hoa", "a" <- s=3, "b" <- (s=1|s=2) }Here, the automaton has two APs,
aandb, which are mapped to the set of states satisfyings=3and(s=1|s=2), respectively.This has a few advantages:
This is the first time that properties can refer to external filenames, which raises the issue how to deal with relative filenames (similar to things like
#includein C++, etc). Here, we propose to do resolution as follows:We also propose a mechanism to explicitly specify the directory for resolution by 3 macros, i.e., for following would be valid filenames for a HOA path expression:
$PROPERTY_DIR/filename.hoa$MODEL_DIR/filename.hoa$WORKING_DIR/filename.hoaNote that these macros are only considered if they are at the beginning of the location string.
This extension was published in "Advances in Symbolic Probabilistic Model Checking with PRISM" (TACAS'16) and has been in use at TU Dresden for quite some time.
TODOs: