mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-04-20 03:03:25 -04:00
Adds a simple test for challenges, should be a good starting point to test challenges with additional backends.
15 lines
368 B
Rust
15 lines
368 B
Rust
use std::prover::challenge;
|
|
|
|
machine Main with degree: 4 {
|
|
|
|
col fixed foo = [1, 2, 3, 4]*;
|
|
|
|
// Stage-0 witness column, does not depend on any challenges:
|
|
col witness bar;
|
|
bar = foo + 3;
|
|
|
|
// Stage-1 witness column, depends on after-stage-0 challenge #1:
|
|
col witness stage(1) bar2;
|
|
let alpha: expr = challenge(0, 1);
|
|
bar2 = bar + alpha;
|
|
} |