We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To see that the prover throws an error when trying to prove over unmet constraints.
This program should fail to prove, but it in fact succeeds (though the result is invalid):
fn main(xs : [u32; 4], y : pub u32) { let mut x_total: u32 = 0; for i in 0..4 { let x = xs[i]; x_total = x_total + x; }; constrain x_total <= y; } // Prover.toml xs = ["10","0","0","0"] y = "1"
However, if I then decrease the array length from 4 to 3 to correctly fails
fn main(xs : [u32; 3], y : pub u32) { let mut x_total: u32 = 0; for i in 0..3 { let x = xs[i]; x_total = x_total + x; }; constrain x_total <= y; } // Prover.toml xs = ["10","0","0"] y = "1"
Follow above example
(Specify your setup and versions of dependencies.)
For nargo users
nargo
Whichever nargo build was available at https://github.com/kobyhallx/build-noir/suites/9553357751/artifacts/454490397
The text was updated successfully, but these errors were encountered:
I fixed it in PR #535, but I would like to refactor a bit after #520 is merged, so let's keep this one open until then.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Aim
To see that the prover throws an error when trying to prove over unmet constraints.
Expected behavior
This program should fail to prove, but it in fact succeeds (though the result is invalid):
However, if I then decrease the array length from 4 to 3 to correctly fails
Bug
Screen.Recording.2022-11-29.at.11.03.13.mov
To reproduce
Follow above example
Environment
(Specify your setup and versions of dependencies.)
For
nargo
usersWhichever nargo build was available at https://github.com/kobyhallx/build-noir/suites/9553357751/artifacts/454490397
The text was updated successfully, but these errors were encountered: