-
Notifications
You must be signed in to change notification settings - Fork 41
Large Block Encoding for Concurrent Programs
Examples in trunk/examples/concurrent/
Toolchain trunk/examples/toolchains/PetriAutomizerBplInline.xml
or trunk/examples/toolchains/PetriAutomizerCInline.xml
Write two new concurrent Boogie program (one safe/one unsafe) that are related to your thesis.
https://ultimate.informatik.uni-freiburg.de/?ui=int&tool=automata_library&task=automataScript&sample=151597609 Write two Petri nets that are related to your thesis. Demonstate somehow that large block encoding is speeding up automata operations
Get the pthread benchmarks from the SV-COMP https://sv-comp.sosy-lab.org/2019/ and verify one of these.
What are the inputs and outputs of the algorithm? Are the several outputs?
What subroutines provided by Ultimate are required? Ultimate provides e.g.,
- computation of sp and wp (for each the input is a predicate and a code block, the output is a predicate)
- equivalence check for predicates
- transformation from CFG to Petri net
- computation of finite prefix of the unfolding of a 1-safe Petri net
- after the preceding computation: the relations inCausalRelation, inCoRelation, inConflict
Most importantly, the Sequence rule, but also the Choice rule and optionally Fork/Join rules:
- How does it transform the Petri net?
- In which situations might it be applicable? Which arcs between involved places and transitions must exist, may exist, or may not exist? For the restrictions (some arcs may not exist), give a (possibly informal) reason why.
- What are the side conditions for the rules? Formulate them using the semantic relation. Which transitions are involved? Which mover conditions must be satisfied? Can some transitions be left- and others be right-movers, or do they all have to move in the same direction? (Last point: no. Give a short counterexample).
The side conditions for the rules as defined on the semantic relations can be checked automatically. However, the general case is expensive (we need to check a logical formula). What are cheaper criteria that imply the side conditions?
- Restrictions on modified and used variables
- Possibly restrictions on types of statements:
assume
,havoc
, assignment? - If mover information about
t1
andt2
is known and we fuse them (with the Sequence rule) tot1t2
, what mover properties does the fused transitiont1t2
have? What if we fuse them with the Choice rule, tot1 || t2
? - As consequence of the previous point: Show that fusing an entire sequence (as in the Lipton paper) can be split into repeatedly fusing just two transitions.
- If mover properties are known, and a rule is applied, how do they change? How does the co-relation of the Petri net change, can we compute it easily, without computing the unfolding prefix again? (Question for Matthias)
The algorithm will probably consist of repeated application of the rules. However, there are some details to work out:
- Is there a specific order, or frequence, in which rules should be applied?
- How to find the places (and transitions) in a Petri net where a rule can be applied?
- Write Petri net definition in automata script syntax (examples are in
trunk/examples/Automata/PetriNet/
andtrunk/examples/Automata/regression/pn/
) - Use command
finitePrefix
to compute finite prefix of an unfolding - Use
print(x)
command to see x - Unfortunately, the textual representation of a branching process does not seem to work at the moment
- The Jung graph visualization in Ultimate visualizes the argument of the last print command as a graph.
- The Jung graph visualization is only available in the (debug) GUI and not in the web interface.
- Use the toolchain
trunk/examples/toolchains/AutomataScriptInterpreterWithJung.xml
- Click on conditions to see the list of co-related conditions in the "node view"
- Never close the node view, we cannot recover it. If you closed it you have to delete the .ultimate subfolder in your home directory.
1996TACAS - Esparza,Römer,Vogler - An Improvement of McMillan's Unfolding Algorithm
Textbook Unfoldings-Esparza-Heljanko
Semiar slides of Claus Schätzle
Software Model Checking for People Who Love Automata
Bachelorarbeit of Julian Jarecki
- Home
- Ultimate Development
- Ultimate Build System
- Documentation
- Project Topics