summaryrefslogtreecommitdiff
path: root/Source/AbsInt
diff options
context:
space:
mode:
authorGravatar tabarbe <unknown>2010-08-20 00:52:36 +0000
committerGravatar tabarbe <unknown>2010-08-20 00:52:36 +0000
commitd1731a0d3d057402dfd2eae0a323ca0c77d6b8dc (patch)
tree37496b6d29192bb933b89086ed968fac678ccbba /Source/AbsInt
parent02d463afad48835d8143a179c574ce5b246b3e31 (diff)
Boogie: Fixed some doubly-inherited-contract occurrences.
Diffstat (limited to 'Source/AbsInt')
-rw-r--r--Source/AbsInt/LoopInvariantsOnDemand.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/AbsInt/LoopInvariantsOnDemand.cs b/Source/AbsInt/LoopInvariantsOnDemand.cs
index 5bb5916d..b61b1445 100644
--- a/Source/AbsInt/LoopInvariantsOnDemand.cs
+++ b/Source/AbsInt/LoopInvariantsOnDemand.cs
@@ -41,7 +41,7 @@ namespace Microsoft.Boogie.AbstractInterpretation {
}
override public object Default(AI.IExpr expr) {
- Contract.Requires(expr != null);
+
if (expr is AI.IVariable) {
if (!variables.Contains((AI.IVariable)expr)) {
this.variables.Add((AI.IVariable)expr);
@@ -64,7 +64,7 @@ namespace Microsoft.Boogie.AbstractInterpretation {
}
public override object VisitFunApp(AI.IFunApp funapp) {
- Contract.Requires(funapp != null);
+
foreach (AI.IExpr arg in funapp.Arguments) {
Contract.Assert(arg != null);
arg.DoVisit(this);
@@ -73,7 +73,7 @@ namespace Microsoft.Boogie.AbstractInterpretation {
}
public override object VisitFunction(AI.IFunction fun) {
- Contract.Requires(fun != null);
+ //Contract.Requires(fun != null);
fun.Body.DoVisit(this);
this.variables.Remove(fun.Param);
return true;