cryptol/tests/issues/issue066.icry.stdout
Adam C. Foltzer 3ae0dda7ac switch to Z3 for typechecking and proving
Note: the hardcoding in this patch is only for the 2.2 hotfix branch; in
the 2.3 branch we will only have to change the default setting for the
typechecker.
2015-12-23 14:59:10 -08:00

33 lines
889 B
Plaintext

Loading module Cryptol
Q.E.D.
it : {result : Bit, arg1 : [4]}
Run-time error: no counterexample available
True
f 0xc = False
it : {result : Bit, arg1 : [4]}
{result = False, arg1 = 0xc}
False
f 0x3 = True
it : {result : Bit, arg1 : [4]}
{result = True, arg1 = 0x3}
True
Unsatisfiable
it : {result : Bit, arg1 : [4]}
Run-time error: no satisfying assignment available
g {x = 0xffffffff, y = 0x00000000} = False
it : {result : Bit, arg1 : {x : [32], y : [32]}}
{result = False, arg1 = {x = 0xffffffff, y = 0x00000000}}
g {x = 0x00000000, y = 0x00000000} = True
it : {result : Bit, arg1 : {x : [32], y : [32]}}
{result = True, arg1 = {x = 0x00000000, y = 0x00000000}}
h 0x00 0x00 = False
it : {result : Bit, arg1 : [8], arg2 : [8]}
{result = False, arg1 = 0x00, arg2 = 0x00}
0x00
0x00
h 0x00 0x01 = True
it : {result : Bit, arg1 : [8], arg2 : [8]}
{result = True, arg1 = 0x00, arg2 = 0x01}