diff options
author | Jason Koenig <unknown> | 2012-07-11 18:02:13 -0700 |
---|---|---|
committer | Jason Koenig <unknown> | 2012-07-11 18:02:13 -0700 |
commit | bb65c2d04081851716ad20776a29b941e852f6b6 (patch) | |
tree | 39a4bab3f498d35a385459d61098661a3bbf39fa /Test | |
parent | 719bf67be5d917a8fe7889c8d131eb27533ca0ff (diff) |
Dafny: restored soundness for refinement by disallowing certain updates and method calls
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny2/StoreAndRetrieve.dfy | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Test/dafny2/StoreAndRetrieve.dfy b/Test/dafny2/StoreAndRetrieve.dfy index 9ea7a3ff..dce9795b 100644 --- a/Test/dafny2/StoreAndRetrieve.dfy +++ b/Test/dafny2/StoreAndRetrieve.dfy @@ -51,6 +51,9 @@ module B refines A { i := i + 1;
}
var k := arr[i];
+ ...;
+ var a :| Contents == set x | x in a;
+ arr := a;
}
}
}
@@ -60,7 +63,7 @@ module C refines B { method Retrieve...
{
...;
- arr := [thing] + arr[..i] + arr[i+1..]; // LRU behavior
+ var a := [thing] + arr[..i] + arr[i+1..]; // LRU behavior
}
}
}
|