summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2015-08-20 17:23:24 -0700
committerGravatar Rustan Leino <unknown>2015-08-20 17:23:24 -0700
commit566fdf1676e0d7d6060767febbfa7a0378300e99 (patch)
tree48b9ddec4a84dd3242ebd39641f70a5d5cbd22c2 /Binaries
parent270b34fc36dcfc781e8f49df5339cb2e10e69828 (diff)
Fixed compilation that involve enumeration over native-type newtype values.
Diffstat (limited to 'Binaries')
-rw-r--r--Binaries/DafnyRuntime.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Binaries/DafnyRuntime.cs b/Binaries/DafnyRuntime.cs
index 7d3799d8..dfb8cf38 100644
--- a/Binaries/DafnyRuntime.cs
+++ b/Binaries/DafnyRuntime.cs
@@ -1060,6 +1060,11 @@ namespace Dafny
}
}
}
+ public static IEnumerable<BigInteger> IntegerRange(BigInteger lo, BigInteger hi) {
+ for (var j = lo; j < hi; j++) {
+ yield return j;
+ }
+ }
// pre: b != 0
// post: result == a/b, as defined by Euclidean Division (http://en.wikipedia.org/wiki/Modulo_operation)
public static sbyte EuclideanDivision_sbyte(sbyte a, sbyte b) {