whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="ConstrainedInt_Valid_6"
======
>>> main.whiley


type num is (int x) where 1 <= x && x <= 4

function f(num x) -> int:
    int y = x
    return y

function g(int x, int z) -> int
requires (x == 1 || x == 2) && (z == 1 || z == 2 || z == 3 || z == x):
    return f((num) z)

public export method test() :
    assume g(1, 2) == 2

---