Closed DavePearce closed 7 years ago
UPDATE. Yes, this is to do with the postcondition macro permute_ensures_0
which is presumably failing.
Here is a smaller example:
function f(int x) -> (int r1, int r2)
ensures r1 >= r2:
//
return x, (x+1)
function g(int x) -> (int r):
int a
int b
a,b = f(x)
return a+b
The problem here is that we need syntax for extracting the result of a function which has multiple returns.
The following Whiley generates a
NullPointerException
inWyalFilePrinter
:This looks like it has something to do with multiple returns.