summaryrefslogtreecommitdiff
path: root/Source/VCExpr/LetBindingSorter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/VCExpr/LetBindingSorter.cs')
-rw-r--r--Source/VCExpr/LetBindingSorter.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/VCExpr/LetBindingSorter.cs b/Source/VCExpr/LetBindingSorter.cs
index 97d71e27..474770d0 100644
--- a/Source/VCExpr/LetBindingSorter.cs
+++ b/Source/VCExpr/LetBindingSorter.cs
@@ -6,6 +6,7 @@
using System;
using System.Text;
using System.IO;
+using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
@@ -87,7 +88,7 @@ Contract.Ensures(Contract.Result<VCExpr>() != null);
}
}
- if (Contract.Exists(boundVars, pair=> pair.Value.InvOccurrencesNum > 0))
+ if (boundVars.Any(pair=> pair.Value.InvOccurrencesNum > 0))
System.Diagnostics.Debug.Fail("Cyclic let-bindings");
Contract.Assert(node.Length == sortedBindings.Count);