summaryrefslogtreecommitdiff
path: root/Test/hofs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-06-25 18:10:42 -0700
committerGravatar leino <unknown>2015-06-25 18:10:42 -0700
commit3d6b2b77830f7f2bc4f3e61d4d3c8a163123dd31 (patch)
treeebb5f6b327343e7e120cd4dff434ed3131326696 /Test/hofs
parente1326254214bcd2546ab5ca992cf4c26e4aa99ed (diff)
Removed unneeded :heapQuantifier from test case (rendinging this attribute currently unused in the test suite)
Diffstat (limited to 'Test/hofs')
-rw-r--r--Test/hofs/WhileLoop.dfy10
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/hofs/WhileLoop.dfy b/Test/hofs/WhileLoop.dfy
index f79562e9..2c91a8cc 100644
--- a/Test/hofs/WhileLoop.dfy
+++ b/Test/hofs/WhileLoop.dfy
@@ -34,14 +34,14 @@ method OneShot(n: int) {
method HeapQuant(n: int) {
var f : int -> int := x => x;
- var i := new Ref<int>;
+ var i := new Ref;
ghost var r := 0;
i.val := 0;
- while (i.val < n)
- invariant forall u {:heapQuantifier} :: f.requires(u);
- invariant forall u {:heapQuantifier} :: f.reads(u) == {};
+ while i.val < n
+ invariant forall u :: f.requires(u);
+ invariant forall u :: f.reads(u) == {};
invariant r == i.val;
- invariant forall u {:heapQuantifier} :: f(u) == u + r;
+ invariant forall u :: f(u) == u + r;
{
i.val, r := i.val + 1, r + 1;
f := x => f(x) + 1;