summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2010-08-23 19:10:31 +0000
committerGravatar akashlal <unknown>2010-08-23 19:10:31 +0000
commit238465abbbc96e0548f35f2746f40c93ced0c513 (patch)
treeb9f473015f03077159f28743944f4868c9b2b0b7
parent30be884942230517f855b8a6a2d20ac9bc31f809 (diff)
Disabled an expensive contract check. Instead, only check things that are actually used.
-rw-r--r--Source/VCExpr/Boogie2VCExpr.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/VCExpr/Boogie2VCExpr.cs b/Source/VCExpr/Boogie2VCExpr.cs
index e20ebaed..a2b0c041 100644
--- a/Source/VCExpr/Boogie2VCExpr.cs
+++ b/Source/VCExpr/Boogie2VCExpr.cs
@@ -199,9 +199,11 @@ namespace Microsoft.Boogie.VCExprAST {
Contract.Requires(boogieVar != null);
VCExprVar res;
foreach (Dictionary<VarKind/*!*/, VCExprVar/*!*/>/*!*/ d in Mapping) {
- Contract.Assert(cce.NonNullElements(d));
- if (d.TryGetValue(boogieVar, out res))
- return res;
+ //Contract.Assert(cce.NonNullElements(d));
+ if (d.TryGetValue(boogieVar, out res)) {
+ Contract.Assert(res != null);
+ return res;
+ }
}
return null;
}