-
Notifications
You must be signed in to change notification settings - Fork 219
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
SSA Refactor: Calling Brillig in ACIR with black box funcs will panic #1978
Comments
There are two issues here:
|
Regarding 2, the branch analysis seems to have a bad time handling this function when is left in the SSA by the inlining step:
Probably because it's not unrolled since it's no longer called by main |
Fixing just the issue 1 won't fix this for all cases because a function might be reachable from both ACIR and brillig. In that case the inliner step will leave the compute_merkle_root in the SSA because even if it detects it's no longer reachable from main, it's still reachable from the brillig functions called from main.
|
Aim
Trying to call a Brillig function inside of
merkle_insert
will cause a panic inside SSA.Expected Behavior
I should be able to call Brillig functions as expected when stdlib black box funcs are being used.
Bug
will return this:
To Reproduce
nargo execute --experimental-ssa
Installation Method
Compiled from source
Nargo Version
master
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: