mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-04-20 03:03:25 -04:00
This implements issue #1251. Basically `machine Foo(a,b) { ... }` is now `machine Foo with latch: a, operation_id: b { ... }`
13 lines
260 B
Rust
13 lines
260 B
Rust
machine Intermediate with
|
|
latch: latch,
|
|
operation_id: operation_id,
|
|
{
|
|
col fixed latch = [1]*;
|
|
col fixed operation_id = [0]*;
|
|
col witness x;
|
|
col intermediate = x;
|
|
col int2 = intermediate * x;
|
|
col int3 = int2 + intermediate;
|
|
int3 = (3 * x) + x;
|
|
}
|