mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-14 11:16:33 +03:00
5d1e1948d8
The new evaluator allows us to have more direct control over evaluation order, and makes it straightforward to implement tracing primitives. There are two new primitives 'trace' and 'traceVal' in the Cryptol prelude that produce tracing output when evaluated. Fixes #68
8 lines
205 B
Plaintext
8 lines
205 B
Plaintext
f : [8] -> [8]
|
|
f x = 20 + x
|
|
|
|
// Note! This test case may be a bit fragile, as it
|
|
// tests the output of tracing, which depends on evaluation
|
|
// order.
|
|
traceTest = [ trace "Hi!" i (f i) | i <- [0 .. 10 ] ]
|