diff options
author | Rustan Leino <leino@microsoft.com> | 2011-05-26 00:02:57 -0700 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2011-05-26 00:02:57 -0700 |
commit | d9f2a82a417703f3669ba8399dcc8bcf34c3d742 (patch) | |
tree | 08b309fd809639a62c453c33dac86845dd4b9815 /Test/VSComp2010/Problem3-FindZero.dfy | |
parent | e52270deab6d2fd5b885848211c2d9d1ab814b09 (diff) |
Dafny: retired the "call" keyword
Diffstat (limited to 'Test/VSComp2010/Problem3-FindZero.dfy')
-rw-r--r-- | Test/VSComp2010/Problem3-FindZero.dfy | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/VSComp2010/Problem3-FindZero.dfy b/Test/VSComp2010/Problem3-FindZero.dfy index 03e6bdfe..3d24255d 100644 --- a/Test/VSComp2010/Problem3-FindZero.dfy +++ b/Test/VSComp2010/Problem3-FindZero.dfy @@ -82,11 +82,11 @@ static method Search(ll: Node) returns (r: int) method Main()
{
var list: Node := null;
- call list := list.Cons(0, list);
- call list := list.Cons(5, list);
- call list := list.Cons(0, list);
- call list := list.Cons(8, list);
- call r := Search(list);
+ list := list.Cons(0, list);
+ list := list.Cons(5, list);
+ list := list.Cons(0, list);
+ list := list.Cons(8, list);
+ var r := Search(list);
print "Search returns ", r, "\n";
assert r == 1;
}
|