mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 13:01:31 +03:00
0b9c186132
This patch does not add a warning when using 'random' in symbolic expressions. We currently don't have any organized mechanism for generating warnings during evaluation, and the value of emitting such a warning is debatable. Fixes #364
12 lines
216 B
Plaintext
12 lines
216 B
Plaintext
x : [64]
|
|
x = random 123
|
|
|
|
x_val : [64]
|
|
x_val = 0x80b483887be1a6e5
|
|
|
|
property x_eval = x == x_val
|
|
property x_distinct = ~ (x == zero)
|
|
|
|
property moderately_bogus_property (seed:[8]) =
|
|
~(random (zero#seed) == (0:[64]))
|