original.name="Function_Valid_8"
======
>>> main.whiley
type nat is (int x) where x >= 0
function g(nat[] xs) -> nat[]:
nat[] ys = [0; |xs|]
int i = 0
while i < |xs| where i >= 0 && |xs| == |ys|:
if xs[i] > 1:
ys[i] = xs[i]
i = i + 1
return ys
function f(int[] x) -> int[]:
return x
public export method test() :
nat[] ys = [1, 2, 3]
assume f(g(ys)) == [0, 2, 3]
---