From 9447617aefbe9706b0d74a827181976e4b9e9d26 Mon Sep 17 00:00:00 2001 From: MichalMoskal Date: Thu, 17 Dec 2009 01:17:59 +0000 Subject: Allow ":" in addition to "returns" in function definitions. Make the pretty-printer use ":" not "returns". Allow foo(x,y,z:int,p,q:ptr) kind of syntax in function definitions. Consequently foo(int,y:bool) is no longer allowed. Update the testsuite to match that. --- Test/test20/Answer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Test/test20') diff --git a/Test/test20/Answer b/Test/test20/Answer index a4b991f7..efa5bced 100644 --- a/Test/test20/Answer +++ b/Test/test20/Answer @@ -87,7 +87,7 @@ type C _ _; type C2 b a = C a b; -function f(C int bool) returns (int); +function f(C int bool) : int; const x: C2 bool int; @@ -108,7 +108,7 @@ type ref; type Set a = [a]bool; -function union(x: Set a, y: Set a) returns (Set a); +function union(x: Set a, y: Set a) : Set a; axiom (forall x: Set a, y: Set a, z: a :: (x[z] || y[z]) == union(x, y)[z]); @@ -133,7 +133,7 @@ implementation P() type Set a = [a]bool; -function union(x: Set a, y: Set a) returns (Set a); +function union(x: Set a, y: Set a) : Set a; axiom (forall x: Set a, y: Set a, z: a :: x[z] || y[z] <==> union(x, y)[z]); -- cgit v1.2.3