From 350d32403f7441df525f871f3853ca9b660211fe Mon Sep 17 00:00:00 2001 From: Ally Donaldson Date: Mon, 22 Jul 2013 23:03:55 +0100 Subject: All ...Seq classes now gone --- Source/VCExpr/TypeErasure.cs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'Source/VCExpr/TypeErasure.cs') diff --git a/Source/VCExpr/TypeErasure.cs b/Source/VCExpr/TypeErasure.cs index f7860169..a25781af 100644 --- a/Source/VCExpr/TypeErasure.cs +++ b/Source/VCExpr/TypeErasure.cs @@ -40,7 +40,7 @@ namespace Microsoft.Boogie.TypeErasure { new TypedIdent(Token.NoToken, "res", cce.NonNull(types)[types.Length - 1]), false); - return new Function(Token.NoToken, name, ToSeq(typeParams), args, result); + return new Function(Token.NoToken, name, new List(typeParams), args, result); } public static Function BoogieFunction(string name, params Type[] types) { @@ -80,7 +80,7 @@ namespace Microsoft.Boogie.TypeErasure { return new List(args); } - public static List/*!*/ ToList(TypeVariableSeq seq) { + public static List/*!*/ ToList(List seq) { Contract.Requires(seq != null); Contract.Ensures(cce.NonNullElements(Contract.Result>())); List/*!*/ res = new List(seq.Count); @@ -91,17 +91,6 @@ namespace Microsoft.Boogie.TypeErasure { return res; } - public static TypeVariableSeq ToSeq(List/*!*/ list) { - Contract.Requires(cce.NonNullElements(list)); - Contract.Ensures(Contract.Result() != null); - TypeVariableSeq/*!*/ res = new TypeVariableSeq(); - foreach (TypeVariable/*!*/ var in list) { - Contract.Assert(var != null); - res.Add(var); - } - return res; - } - public static List/*!*/ Intersect(List a, List b) { Contract.Requires(b != null); Contract.Requires(a != null); @@ -991,7 +980,7 @@ namespace Microsoft.Boogie.TypeErasure { } // the instantiations of inserted type variables, the order corresponds to the order in which "AbstractionVariable(int)" delivers variables - private Type/*!*/ ThinOutType(Type rawType, TypeVariableSeq boundTypeParams, List instantiations) { + private Type/*!*/ ThinOutType(Type rawType, List boundTypeParams, List instantiations) { Contract.Requires(instantiations != null); Contract.Requires(boundTypeParams != null); Contract.Requires(rawType != null); -- cgit v1.2.3