summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-03-06 14:42:25 -0800
committerGravatar qunyanm <unknown>2015-03-06 14:42:25 -0800
commit13b3fc763b1d5ab070eb4583bbca342ec0582ac4 (patch)
treed91568f1b098499138c57848b75e42d36ce36a1d /Binaries
parentdb30cafd94527e73e969457c9c00e8c67300d7d4 (diff)
Fix issue #60
Diffstat (limited to 'Binaries')
-rw-r--r--Binaries/DafnyRuntime.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Binaries/DafnyRuntime.cs b/Binaries/DafnyRuntime.cs
index dbeb6d0f..726731e3 100644
--- a/Binaries/DafnyRuntime.cs
+++ b/Binaries/DafnyRuntime.cs
@@ -28,7 +28,9 @@ namespace Dafny
d[t] = true;
return new Set<T>(d);
}
-
+ public int Length {
+ get { return dict.Count; }
+ }
public IEnumerable<T> Elements {
get {
return dict.Keys;
@@ -357,6 +359,9 @@ namespace Dafny
}
return new Map<U, V>(d);
}
+ public int Length {
+ get { return dict.Count; }
+ }
public bool Equals(Map<U, V> other) {
foreach (U u in dict.Keys) {
V v1, v2;