summaryrefslogtreecommitdiff
path: root/Source/VCExpr/TypeErasure.cs
diff options
context:
space:
mode:
authorGravatar Ally Donaldson <unknown>2013-07-22 19:12:40 +0100
committerGravatar Ally Donaldson <unknown>2013-07-22 19:12:40 +0100
commiteea0a9e74d6782d08f8dd01c0e1dbec15f1a02cb (patch)
tree26b5693006a283d80fb47507263e404c282ae2ef /Source/VCExpr/TypeErasure.cs
parent62d2fa72d5e1816d6cb1239063302808424c6d13 (diff)
More refactoring
Diffstat (limited to 'Source/VCExpr/TypeErasure.cs')
-rw-r--r--Source/VCExpr/TypeErasure.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/VCExpr/TypeErasure.cs b/Source/VCExpr/TypeErasure.cs
index 48bb3354..e6384e67 100644
--- a/Source/VCExpr/TypeErasure.cs
+++ b/Source/VCExpr/TypeErasure.cs
@@ -65,7 +65,7 @@ namespace Microsoft.Boogie.TypeErasure {
Contract.Requires(gen != null);
Contract.Requires(fun != null);
Contract.Ensures(cce.NonNullElements(Contract.Result<List<VCExprVar>>()));
- List<VCExprVar/*!*/>/*!*/ arguments = new List<VCExprVar/*!*/>(fun.InParams.Length);
+ List<VCExprVar/*!*/>/*!*/ arguments = new List<VCExprVar/*!*/>(fun.InParams.Count);
foreach (Formal/*!*/ f in fun.InParams) {
Contract.Assert(f != null);
VCExprVar/*!*/ var = gen.Variable(f.Name, f.TypedIdent.Type);
@@ -192,7 +192,7 @@ namespace Microsoft.Boogie.TypeErasure {
public TypeCtorRepr(Function ctor, List<Function/*!*/>/*!*/ dtors) {
Contract.Requires(ctor != null);
Contract.Requires(cce.NonNullElements(dtors));
- Contract.Requires(ctor.InParams.Length == dtors.Count);
+ Contract.Requires(ctor.InParams.Count == dtors.Count);
this.Ctor = ctor;
this.Dtors = dtors;
}
@@ -283,7 +283,7 @@ namespace Microsoft.Boogie.TypeErasure {
GenCtorAssignment(Gen.Function(typeRepr,
HelperFuns.ToVCExprList(quantifiedVars)));
- if (typeRepr.InParams.Length == 0)
+ if (typeRepr.InParams.Count == 0)
return eq;
return Gen.Forall(quantifiedVars, new List<VCTrigger/*!*/>(),
@@ -711,7 +711,7 @@ namespace Microsoft.Boogie.TypeErasure {
public bool IsCast(Function fun) {
Contract.Requires(fun != null);
- if (fun.InParams.Length != 1)
+ if (fun.InParams.Count != 1)
return false;
Type/*!*/ inType = cce.NonNull(fun.InParams[0]).TypedIdent.Type;
if (inType.Equals(U)) {