summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-21 19:24:31 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-21 19:24:31 -0700
commite33ab2dea7b3a367d2bb5c0d3926fa6fcc790ed4 (patch)
tree25c5aba0d4aef70b6334de449c5921f38561806f /Binaries
parentff05bb6936d433e7be5ded41233214c0517dc2d2 (diff)
parent2befeb58569d39056e3d0797c901293446a14d03 (diff)
Merge
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) {