summaryrefslogtreecommitdiff
path: root/Test/vstte2012
diff options
context:
space:
mode:
Diffstat (limited to 'Test/vstte2012')
-rw-r--r--Test/vstte2012/RingBuffer.dfy2
-rw-r--r--Test/vstte2012/RingBufferAuto.dfy2
2 files changed, 2 insertions, 2 deletions
diff --git a/Test/vstte2012/RingBuffer.dfy b/Test/vstte2012/RingBuffer.dfy
index 35e95165..e943b68d 100644
--- a/Test/vstte2012/RingBuffer.dfy
+++ b/Test/vstte2012/RingBuffer.dfy
@@ -74,7 +74,7 @@ class RingBuffer<T>
ensures Valid() && fresh(Repr - old(Repr));
ensures x == old(Contents)[0] && Contents == old(Contents)[1..] && N == old(N);
{
- x := data[start];
+ x := data[start]; assert x == Contents[0];
start, len := if start + 1 == data.Length then 0 else start + 1, len - 1;
Contents := Contents[1..];
}
diff --git a/Test/vstte2012/RingBufferAuto.dfy b/Test/vstte2012/RingBufferAuto.dfy
index 7ce48fcc..aa7f171a 100644
--- a/Test/vstte2012/RingBufferAuto.dfy
+++ b/Test/vstte2012/RingBufferAuto.dfy
@@ -59,7 +59,7 @@ class {:autocontracts} RingBuffer<T>
ensures Valid() && fresh(Repr - old(Repr));
ensures x == old(Contents)[0] && Contents == old(Contents)[1..] && N == old(N);
{
- x := data[start];
+ x := data[start]; assert x == Contents[0];
start, len := if start + 1 == data.Length then 0 else start + 1, len - 1;
Contents := Contents[1..];
}