whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="Function_Valid_7"
======
>>> main.whiley
type fr5nat is int

function g(fr5nat[] xs) -> fr5nat[]:
    fr5nat[] ys = [0; |xs|]
    int i = 0
    while i < |xs|
        where i >= 0
        where |xs| == |ys|:
        //
        if xs[i] > 1:
            ys[i] = xs[i]
        i = i + 1
    return ys

function f(fr5nat[] x) -> int[]:
    return x

public export method test() :
    int[] ys = [1, 2, 3]
    assume f(g(ys)) == [0, 2, 3]

---