summaryrefslogtreecommitdiff
path: root/Test/VSI-Benchmarks/b2.dfy
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-03-11 07:08:51 +0000
committerGravatar rustanleino <unknown>2010-03-11 07:08:51 +0000
commit12c5cf9976f7c4993db5b930bf8bce0b64c428a1 (patch)
tree8098c41bc31b6eab1556737ea916b132c88201ae /Test/VSI-Benchmarks/b2.dfy
parent816e4934fa3acfefae2c44ccb2be931c4d65e037 (diff)
Dafny:
* Enforce ghost vs. non-ghost separation * Allow ghost parameters and ghost locals * Functions are ghost, but allow the non-ghost "function method"
Diffstat (limited to 'Test/VSI-Benchmarks/b2.dfy')
-rw-r--r--Test/VSI-Benchmarks/b2.dfy4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/VSI-Benchmarks/b2.dfy b/Test/VSI-Benchmarks/b2.dfy
index 53eb49a8..6c0cfe81 100644
--- a/Test/VSI-Benchmarks/b2.dfy
+++ b/Test/VSI-Benchmarks/b2.dfy
@@ -44,10 +44,10 @@ class Array {
requires 0 <= n;
modifies this;
ensures |contents| == n;
- function Length(): int
+ function method Length(): int
reads this;
{ |contents| }
- function Get(i: int): int
+ function method Get(i: int): int
requires 0 <= i && i < |contents|;
reads this;
{ contents[i] }