original.name="Array_Valid_3" ====== >>> main.whiley function f(int[] xs) -> (int r) requires |xs| > 0 ensures r >= 0 && r < |xs|: // return 0 function g(int[] xs) -> (int r) requires |xs| > 0: // int[] indices = [f(xs)] return xs[indices[0]] public export method test(): // assume g([0]) == 0 // assume g([1,0]) == 1 ---