diff options
author | akashlal <unknown> | 2010-08-23 19:10:31 +0000 |
---|---|---|
committer | akashlal <unknown> | 2010-08-23 19:10:31 +0000 |
commit | 238465abbbc96e0548f35f2746f40c93ced0c513 (patch) | |
tree | b9f473015f03077159f28743944f4868c9b2b0b7 | |
parent | 30be884942230517f855b8a6a2d20ac9bc31f809 (diff) |
Disabled an expensive contract check. Instead, only check things that are actually used.
-rw-r--r-- | Source/VCExpr/Boogie2VCExpr.cs | 8 |
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;
}
|