summaryrefslogtreecommitdiff
path: root/Source/VCGeneration/OrderingAxioms.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-07-22 21:33:35 -0700
committerGravatar wuestholz <unknown>2013-07-22 21:33:35 -0700
commit4be2ab852c127558c04119958fd0b462ff2e6493 (patch)
treec905c1ed93b4533116ea5d39ba13084287fc5f82 /Source/VCGeneration/OrderingAxioms.cs
parent661efb919ce720f66773c1707e8aca4ecfbbe903 (diff)
Use 'All' and 'Any' instead of 'Contract.ForAll' and 'Contract.Exists' in code (as opposed to contracts).
Diffstat (limited to 'Source/VCGeneration/OrderingAxioms.cs')
-rw-r--r--Source/VCGeneration/OrderingAxioms.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/VCGeneration/OrderingAxioms.cs b/Source/VCGeneration/OrderingAxioms.cs
index b8a98def..dbb97764 100644
--- a/Source/VCGeneration/OrderingAxioms.cs
+++ b/Source/VCGeneration/OrderingAxioms.cs
@@ -7,6 +7,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
+using System.Linq;
using System.Diagnostics.Contracts;
using Microsoft.Boogie.VCExprAST;
@@ -286,7 +287,7 @@ namespace Microsoft.Boogie {
VCExpr maxDescendants = Gen.Eq(cAsVar, w);
foreach (Constant d in Constants) {
Contract.Assert(d != null);
- if (d.Parents != null && Contract.Exists(d.Parents, p => c.Equals(p.Parent.Decl)))
+ if (d.Parents != null && d.Parents.Any(p => c.Equals(p.Parent.Decl)))
maxDescendants = Gen.Or(maxDescendants,
Gen.AtMost(w, Translator.LookupVariable(d)));
}