summaryrefslogtreecommitdiff
path: root/Source/Core/DeadVarElim.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-09-23 14:30:50 +0200
committerGravatar wuestholz <unknown>2014-09-23 14:30:50 +0200
commitadfed676d8b9fddcc85fabf98b8f602ab76f5dc7 (patch)
tree35435fadd1c2aa7cf6f0b0b46914844f4a600556 /Source/Core/DeadVarElim.cs
parent8bb1e486770ccc399c86c713b7808b0dee5971d5 (diff)
Did more refactoring and addressed several todos.
Diffstat (limited to 'Source/Core/DeadVarElim.cs')
-rw-r--r--Source/Core/DeadVarElim.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DeadVarElim.cs b/Source/Core/DeadVarElim.cs
index e6cf3e9d..e9975fe5 100644
--- a/Source/Core/DeadVarElim.cs
+++ b/Source/Core/DeadVarElim.cs
@@ -987,7 +987,7 @@ namespace Microsoft.Boogie {
}
// Return default: all globals and out params
HashSet<Variable/*!*/>/*!*/ lv = new HashSet<Variable/*!*/>();
- foreach (Variable/*!*/ v in prog.GlobalVariables()) {
+ foreach (Variable/*!*/ v in prog.GlobalVariables) {
Contract.Assert(v != null);
lv.Add(v);
}
@@ -1007,7 +1007,7 @@ namespace Microsoft.Boogie {
}
// Return default: all globals and in params
HashSet<Variable/*!*/>/*!*/ lv = new HashSet<Variable/*!*/>();
- foreach (Variable/*!*/ v in prog.GlobalVariables()) {
+ foreach (Variable/*!*/ v in prog.GlobalVariables) {
Contract.Assert(v != null);
lv.Add(v);
}
@@ -1275,7 +1275,7 @@ Contract.Assert(b != null);
//Set<Variable!> lv = cfg.weightBefore[b].getLiveVars();
b.liveVarsBefore = procICFG[mainImpl.Name].liveVarsAfter[b];
//foreach(GlobalVariable/*!*/
- /* v in program.GlobalVariables()){Contract.Assert(v != null);
+ /* v in program.GlobalVariables){Contract.Assert(v != null);
// b.liveVarsBefore.Add(v);
//}
}
@@ -1482,7 +1482,7 @@ b.liveVarsBefore = procICFG[mainImpl.Name].liveVarsAfter[b];
if (predicateCmd.Expr is LiteralExpr && prog != null && impl != null) {
LiteralExpr le = (LiteralExpr)predicateCmd.Expr;
if (le.IsFalse) {
- var globals = prog.GlobalVariables();
+ var globals = prog.GlobalVariables;
Contract.Assert(cce.NonNullElements(globals));
foreach (Variable/*!*/ v in globals) {
Contract.Assert(v != null);