cryptol/tests/regression/check24.cry

5 lines
157 B
Plaintext
Raw Normal View History

2014-04-18 02:34:25 +04:00
xor : {a} ([a], [a]) -> [a]
xor (xs, ys) = [ x != y | x <- xs | y <- ys ]
check24 = [ xor (x, y) == (x ^ y) | x <- [ 0 .. 15 ], y <- [ 0 .. 15 ] ] == ~zero