Files
powdr/test_data/asm/different_signatures.asm
2023-12-19 14:07:21 +01:00

39 lines
576 B
NASM

machine Main {
degree 16;
DifferentSignatures sub;
reg pc[@pc];
reg X[<=];
reg Y[<=];
reg A;
instr identity X -> Y = sub.identity
instr one -> Y = sub.one
instr nothing = sub.nothing
function main {
start:
A <== one();
return;
}
}
// A machine exposing functions of different signatures
machine DifferentSignatures {
reg pc[@pc];
function identity x: field -> field {
return x;
}
function one -> field {
return 1;
}
function nothing {
return;
}
}