Files
powdr/test_data/asm/challenges.asm
Georg Wiese dc7bc5d5f6 Add simple challenges test (#1451)
Adds a simple test for challenges, should be a good starting point to
test challenges with additional backends.
2024-06-13 07:31:16 +00:00

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;
}