diff options
author | Pantazis Deligiannis <pdeligia@me.com> | 2013-08-19 11:20:18 +0100 |
---|---|---|
committer | Pantazis Deligiannis <pdeligia@me.com> | 2013-08-19 11:20:18 +0100 |
commit | 133dac43b2d0daa022bfe26ab15bcdfaf75eae0e (patch) | |
tree | 82705cc27b6d5d0c06212d7a006a9a30bcfe9ff0 /Source/Core/DeadVarElim.cs | |
parent | 819c1f07fe1e0244e14306ad1dee213a9a034f1e (diff) |
new option for reversing the topological order - this could potentially help to speedup houdini refutation of candidates
Diffstat (limited to 'Source/Core/DeadVarElim.cs')
-rw-r--r-- | Source/Core/DeadVarElim.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DeadVarElim.cs b/Source/Core/DeadVarElim.cs index 9d20c15e..86a3e599 100644 --- a/Source/Core/DeadVarElim.cs +++ b/Source/Core/DeadVarElim.cs @@ -372,7 +372,12 @@ namespace Microsoft.Boogie { }
}
- IEnumerable<Block> sortedNodes = dag.TopologicalSort();
+ IEnumerable<Block> sortedNodes;
+ if (CommandLineOptions.Clo.ReverseTopologicalSorting) {
+ sortedNodes = dag.TopologicalSort(true);
+ } else {
+ sortedNodes = dag.TopologicalSort();
+ }
foreach (Block/*!*/ block in sortedNodes) {
Contract.Assert(block != null);
HashSet<Variable/*!*/>/*!*/ liveVarsAfter = new HashSet<Variable/*!*/>();
|