-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
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
Cross-block deduplication in constant folding has correctness bugs. #6588
Comments
So far what I found is that the value of changes from:
to
after the entire If I comment out the Then what I found is that if I change the value we compare here: to something else, for example: assert_eq(
value_change_hint,
ScheduledValueChange::deserialize([2, 4, 8]),
"Non-zero value change for zero hash",
); then after the
So it's clear that that I'll try to reproduce the above scenario with smaller code and without oracles. |
I forgot to mention that the |
That's interesting, I remember we had a issue with with if else blocks behaving in a similar fashion in the value merger PR it might be worth having a look at that |
|
I was misremembering, it was this PR which removes negations from jmpif conditions: #5891 |
We have a couple of PRs that fix this: #6627 and #6628 (they are similar but we'll probably go with #6627 because the code is more readable). That said, I tried those fixes in the Aztec-Packages PRs AztecProtocol/aztec-packages#9972 and AztecProtocol/aztec-packages#10152 and they still fail CI... but maybe more fixes have been pushed to Noir master that, together with the fixes here, might make things work? |
One of the components which has been causing issues on Noir syncs has been the changes made in #6499 so it's had to be pulled out of the syncs.
I opened this PR to test adding it in isolation and there's a number of test failures.
Sadly all of these tests rely on foreign calls so it's going to be a bit messy to get a nice reproduction case but we should find it and bring it back into this repo to fix the underlying issue.
The text was updated successfully, but these errors were encountered: