cryptol/tests/issues/issue058.cry

11 lines
193 B
Plaintext
Raw Normal View History

2014-12-12 02:50:22 +03:00
// None of these should typecheck without fin constraints.
some : {n} [n] -> Bit
some x = x != 0
last : {n, a} (n >= 1) => [n]a -> a
last xs = xs ! 0
pad : {n} [n] -> [inf]
pad x = x # zero