-
Notifications
You must be signed in to change notification settings - Fork 47
Merge Parallel Trace Abstraction into Dev #729
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
base: dev
Are you sure you want to change the base?
Conversation
- Fixed bounds of signed c types in testexporter - enabled unproen testgeneration result for timeouts
…hem to the error automaton
New Statistics Reuse is tried on the CFG script Removed old statistics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for continuing the work on this 👍
I've gone through the changes again and left some comments. I very much appreciate the much more decoupled approach compared to the first implementation 👍
...Automata/src/de/uni_freiburg/informatik/ultimate/automata/nestedword/operations/IsEmpty.java
Show resolved
Hide resolved
...Automata/src/de/uni_freiburg/informatik/ultimate/automata/nestedword/operations/IsEmpty.java
Outdated
Show resolved
Hide resolved
...src/de/uni_freiburg/informatik/ultimate/automata/nestedword/operations/IsEmptyHeuristic.java
Outdated
Show resolved
Hide resolved
...src/de/uni_freiburg/informatik/ultimate/automata/nestedword/operations/IsEmptyHeuristic.java
Outdated
Show resolved
Hide resolved
.../src/de/uni_freiburg/informatik/ultimate/automata/nestedword/operations/IsEmptyParallel.java
Show resolved
Hide resolved
| mKnownPathPrograms = new HashMap<>(); | ||
| mTraceHashes = new ArrayList<>(); | ||
| mKnownPathPrograms = new ConcurrentHashMap<>(); | ||
| mTraceHashes = Collections.synchronizedList(new ArrayList<>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems intended to make this class thread-safe, which it wasn't intended to be by the original author.
I don't have a particular objection to this change (though it might have a bit of a performance impact, it should not be critical).
But it leads me to wonder which other classes are out there with similar problems, that will only be detected by hard-to-reproduce concurrency bugs. Do you have somewhere a documentation of which mutable objects are shared between threads, and how thread safety is ensured for them?
| } | ||
| } | ||
|
|
||
| private UnmodifiableTransFormula transferTransformula(final UnmodifiableTransFormula inTF, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have methods TransferrerWithVariableCache::transferTransFormula resp. TransFormulaBuilder::transferTransformula. Is your implementation doing something fundamentally different, or could you reuse those?
...urg/informatik/ultimate/plugins/generator/traceabstraction/TransferBetweenMainAndWorker.java
Show resolved
Hide resolved
...urg/informatik/ultimate/plugins/generator/traceabstraction/TransferBetweenMainAndWorker.java
Outdated
Show resolved
Hide resolved
.../uni_freiburg/informatik/ultimate/plugins/generator/traceabstraction/WorkerThreadResult.java
Show resolved
Hide resolved
…llelCegarLoop in case of a concurrent program.
… TV being triggered
Updated
I prepared this branch to merge my parallel trace abstraction approach into main.
Feel free to take a look already, make suggestions, and ideally tell me how you want it to be refactored.
Unfortunately my changes affects quite a few classes.
Before merging, I need to run a few more experiments to ensure there are no unwanted side effects.
The following changes have been made:
ParallelNwaCegarLoop.java
Contains the main CEGAR loop
CegarNwaWorkerThread.java
Is the corresponding class that does the trace check, interpolation, and generalization of the resulting automaton
Some changes are made to the refinement strategy stuff. In the CegarNwaWorkerThread.java I can for example
(se commented code) decide to do LoopAcceleration after seeing a PathProgram 7 times.
IsEmptyParallel
The search now searches for a Prefix of a counterexamples that is different from all counterexamples in a Set given as parameter. Then IsEmptyHeuristic is called with waypoints. Those waypoints are the Prefix and the IsEmptyHeuristic search follows those waypoints and after the last waypoints it searches for an accepting state.
It will not backtrack beyond the last waypoint.
TransferBetweenMainAndWorker
This is now the more elegant solution to our script problem. Each worker has one such transfer class and it manages all transfers in both direction. It transfers the CfgSmtToolkit, Automata, Counterexamples. To be precise, transformulas, IProgramVars everything that the CFGSmtToolkit touches
Wintesses
To create a violation witness i need the sort of a value in the TypeSortTranslator. This sorts come from worker smtcfgtoolkit scripts. Since the TypeSortTranslator is created at the very start when translating to Boogie. I need a way to tell the TypeSortTranslator what the script is, that created this sort. I do this by passing it through the programexecution