Files
powdr/std/debug.asm
chriseth 3e43e33796 Constr as user-defined enum (#1252)
Turns some of the built-in types into user types in the prelude.
2024-05-01 10:29:19 +00:00

8 lines
383 B
NASM

/// This is a built-in function taking a string argument and printing it on stdout
/// when evaluated.
/// It returns an empty array so that it can be used at constraint level.
/// This symbol is not an empty array, the actual semantics are overridden.
let<T: ToString> print: T -> Constr[] = [];
let<T: ToString> println: T -> Constr[] = |msg| { let _ = print(msg); print("\n") };