diff options
author | Ally Donaldson <unknown> | 2013-07-22 10:54:53 +0100 |
---|---|---|
committer | Ally Donaldson <unknown> | 2013-07-22 10:54:53 +0100 |
commit | 5664c5e30f16b74eae4cdcb0b9ba65d5b030c815 (patch) | |
tree | fe40419b6ac67768a9274cc64d7277e350fe1561 /Source/VCExpr/TypeErasure.cs | |
parent | 8547ab2737f6bcb185398e4cbc3edde3847cb085 (diff) |
Refactoring of VariableSeq and TypeSeq
Diffstat (limited to 'Source/VCExpr/TypeErasure.cs')
-rw-r--r-- | Source/VCExpr/TypeErasure.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/VCExpr/TypeErasure.cs b/Source/VCExpr/TypeErasure.cs index 9d366c9f..c4a54300 100644 --- a/Source/VCExpr/TypeErasure.cs +++ b/Source/VCExpr/TypeErasure.cs @@ -469,7 +469,7 @@ namespace Microsoft.Boogie.TypeErasure { //
CtorType ctype = type.AsCtor;
Function/*!*/ repr = GetTypeCtorRepr(ctype.Decl);
- List<VCExpr/*!*/>/*!*/ args = new List<VCExpr/*!*/>(ctype.Arguments.Length);
+ List<VCExpr/*!*/>/*!*/ args = new List<VCExpr/*!*/>(ctype.Arguments.Count);
foreach (Type/*!*/ t in ctype.Arguments) {
Contract.Assert(t != null);
args.Add(Type2Term(t, varMapping));
@@ -970,7 +970,7 @@ namespace Microsoft.Boogie.TypeErasure { MapType/*!*/ abstraction = ThinOutMapType(rawType, instantiations);
MapTypeClassRepresentation repr = GetClassRepresentation(abstraction);
- Contract.Assume(repr.RepresentingType.Arity == instantiations.Length);
+ Contract.Assume(repr.RepresentingType.Arity == instantiations.Count);
return new CtorType(Token.NoToken, repr.RepresentingType, instantiations);
}
@@ -1004,7 +1004,7 @@ namespace Microsoft.Boogie.TypeErasure { // Bingo!
// if the type does not contain any bound variables, we can simply
// replace it with a type variable
- TypeVariable/*!*/ abstractionVar = AbstractionVariable(instantiations.Length);
+ TypeVariable/*!*/ abstractionVar = AbstractionVariable(instantiations.Count);
Contract.Assume(!boundTypeParams.Has(abstractionVar));
instantiations.Add(rawType);
return abstractionVar;
|