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/TypeErasureArguments.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/TypeErasureArguments.cs')
-rw-r--r-- | Source/VCExpr/TypeErasureArguments.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/VCExpr/TypeErasureArguments.cs b/Source/VCExpr/TypeErasureArguments.cs index 00259ecd..8885cbc7 100644 --- a/Source/VCExpr/TypeErasureArguments.cs +++ b/Source/VCExpr/TypeErasureArguments.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;
@@ -108,7 +109,7 @@ namespace Microsoft.Boogie.TypeErasure { // if all of the parameters are int or bool, the function does
// not have to be changed
- if (Contract.ForAll(0, fun.InParams.Count, f => UnchangedType(cce.NonNull(fun.InParams[f]).TypedIdent.Type)) &&
+ if (fun.InParams.All(param => UnchangedType(cce.NonNull(param).TypedIdent.Type)) &&
UnchangedType(cce.NonNull(fun.OutParams[0]).TypedIdent.Type)) {
res = fun;
} else {
|