diff options
author | wuestholz <unknown> | 2013-07-22 21:33:35 -0700 |
---|---|---|
committer | wuestholz <unknown> | 2013-07-22 21:33:35 -0700 |
commit | 4be2ab852c127558c04119958fd0b462ff2e6493 (patch) | |
tree | c905c1ed93b4533116ea5d39ba13084287fc5f82 /Source/VCExpr/Boogie2VCExpr.cs | |
parent | 661efb919ce720f66773c1707e8aca4ecfbbe903 (diff) |
Use 'All' and 'Any' instead of 'Contract.ForAll' and 'Contract.Exists' in code (as opposed to contracts).
Diffstat (limited to 'Source/VCExpr/Boogie2VCExpr.cs')
-rw-r--r-- | Source/VCExpr/Boogie2VCExpr.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/VCExpr/Boogie2VCExpr.cs b/Source/VCExpr/Boogie2VCExpr.cs index 22ba09be..0b92b1c3 100644 --- a/Source/VCExpr/Boogie2VCExpr.cs +++ b/Source/VCExpr/Boogie2VCExpr.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;
@@ -36,7 +37,7 @@ namespace Microsoft.Boogie.VCExprAST { if (kinds.IndexOf(',') < 0) {
return IsProverCommandSupported(kinds);
} else {
- return Contract.Exists(kinds.Split(',', ' '), k => IsProverCommandSupported(k));
+ return kinds.Split(',', ' ').Any(k => IsProverCommandSupported(k));
}
}
|