diff options
author | MichalMoskal <unknown> | 2009-12-17 01:17:59 +0000 |
---|---|---|
committer | MichalMoskal <unknown> | 2009-12-17 01:17:59 +0000 |
commit | 9447617aefbe9706b0d74a827181976e4b9e9d26 (patch) | |
tree | 471ea6938e90be46af5e6ce8e7ca88de1081c977 /Test/inline | |
parent | fa8cb4c335668f180fa2c181ca6bb1ad87b54c4a (diff) |
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.
Diffstat (limited to 'Test/inline')
-rw-r--r-- | Test/inline/Answer | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/inline/Answer b/Test/inline/Answer index 854ac558..c59772cd 100644 --- a/Test/inline/Answer +++ b/Test/inline/Answer @@ -953,17 +953,17 @@ Boogie program verifier finished with 1 verified, 0 errors Boogie program verifier finished with 3 verified, 0 errors
-------------------- fundef.bpl --------------------
-function {:inline true} foo(x: int) returns (bool)
+function {:inline true} foo(x: int) : bool
{
x > 0
}
-function {:inline false} foo2(x: int) returns (bool);
+function {:inline false} foo2(x: int) : bool;
// autogenerated definition axiom
axiom (forall x: int :: {:inline false} { foo2(x): bool } foo2(x): bool == (x > 0));
-function foo3(x: int) returns (bool);
+function foo3(x: int) : bool;
// autogenerated definition axiom
axiom (forall x: int :: { foo3(x): bool } foo3(x): bool == (x > 0));
|