diff options
author | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-21 19:24:31 -0700 |
---|---|---|
committer | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-21 19:24:31 -0700 |
commit | e33ab2dea7b3a367d2bb5c0d3926fa6fcc790ed4 (patch) | |
tree | 25c5aba0d4aef70b6334de449c5921f38561806f /Binaries | |
parent | ff05bb6936d433e7be5ded41233214c0517dc2d2 (diff) | |
parent | 2befeb58569d39056e3d0797c901293446a14d03 (diff) |
Merge
Diffstat (limited to 'Binaries')
-rw-r--r-- | Binaries/DafnyRuntime.cs | 5 |
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) {
|