summaryrefslogtreecommitdiff
path: root/Chalice/examples/producer-consumer.chalice
diff options
context:
space:
mode:
authorGravatar kyessenov <unknown>2010-07-19 19:45:36 +0000
committerGravatar kyessenov <unknown>2010-07-19 19:45:36 +0000
commit82a6e8833d62c342491203d8b491e77f6521b0ec (patch)
treedb892c01927736e2bf993d2ccda600644ff2ccdf /Chalice/examples/producer-consumer.chalice
parent6ff0ab85e8a9a5516cc175544b0760a9780c01b2 (diff)
Chalice: added "exists" quantifier; changed surface syntax for quantifier expressions
Diffstat (limited to 'Chalice/examples/producer-consumer.chalice')
-rw-r--r--Chalice/examples/producer-consumer.chalice6
1 files changed, 3 insertions, 3 deletions
diff --git a/Chalice/examples/producer-consumer.chalice b/Chalice/examples/producer-consumer.chalice
index 99756d65..11687e80 100644
--- a/Chalice/examples/producer-consumer.chalice
+++ b/Chalice/examples/producer-consumer.chalice
@@ -164,7 +164,7 @@ class List module Collections {
method add(x: int)
requires valid;
ensures valid && size() == old(size()+1) && get(size()-1) == x;
- ensures forall { i in [0:size()-1]; get(i) == old(get(i)) };
+ ensures forall i in [0:size()-1] :: get(i) == old(get(i));
{
unfold valid;
contents := contents ++ [x];
@@ -174,7 +174,7 @@ class List module Collections {
method removeFirst() returns (rt: int)
requires valid && 0<size();
ensures valid && size() == old(size()-1);
- ensures forall { i in [0:size()]; get(i) == old(get(i+1)) };
+ ensures forall i in [0:size()] :: get(i) == old(get(i+1));
{
unfold valid;
rt := contents[0];
@@ -199,4 +199,4 @@ class List module Collections {
predicate valid {
acc(contents)
}
-} \ No newline at end of file
+}