Open mimoo opened 4 months ago
the compiler should warn us that yy is not constrained to anything and that it's useless:
yy
fn main(private_input: Field, x2: Field, pub public_input: Field) { let xx = private_input + public_input; assert_eq(xx, 2); let yy = x2 + 1; }
to run:
cargo run test --backend kimchi-vesta --path examples/arithmetic.no --private-inputs '{"private_input": "1", "x2": "3"}' --public-inputs '{"public_input": "1"}' --debug
there's different ways to tackle that...
the compiler should warn us that
yy
is not constrained to anything and that it's useless:to run: