diff options
author | Rustan Leino <unknown> | 2014-07-15 18:06:46 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2014-07-15 18:06:46 -0700 |
commit | 90e67ff546955e25f019f2d3d7aef5f832f0daf5 (patch) | |
tree | 03b912224f8bf22110f7fe064277c1acc1b052d4 /Test/dafny4/NumberRepresentations.dfy | |
parent | 17bd465d7950927d76080106db7ade928e5a8b4a (diff) |
An attempt at making dafny4/NumberRepresentations.dfy run faster and more predictably
Diffstat (limited to 'Test/dafny4/NumberRepresentations.dfy')
-rw-r--r-- | Test/dafny4/NumberRepresentations.dfy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Test/dafny4/NumberRepresentations.dfy b/Test/dafny4/NumberRepresentations.dfy index 440a4de9..3096616f 100644 --- a/Test/dafny4/NumberRepresentations.dfy +++ b/Test/dafny4/NumberRepresentations.dfy @@ -1,4 +1,4 @@ -// RUN: %dafny /compile:0 /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %dafny /compile:0 /dprint:"%t.dprint" /doNotUseParallelism "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
// We consider a number representation that consists of a sequence of digits. The least
@@ -266,6 +266,8 @@ lemma LeastSignificantDigitIsAlmostMod(a: seq<int>, lowDigit: int, base: nat) assert base * nrest + a[0] == n;
var p := MulProperty(base, d, m, nrest, a[0]);
+ assert -base <= a[0] - m < base;
+ assert -base == -1 * base && base == 1 * base;
assert -1 * base <= a[0] - m < 1 * base;
if {
case p == -1 => assert a[0] == m - base;
|