Accurately resolve constants in functions marked with #[no_predicates]
#5672
Labels
bug
Something isn't working
#[no_predicates]
#5672
Aim
I want to apply no_predicates to
pedersen_commitment
for example as in this issue e.g #5633.Expected Behavior
assert_constant
should be valid if we pass a constant as inputs to ano_predicates
function.Bug
After the addition of the no_predicates attribute we delay inlining of some functions. However, some passes are reliant on inlining having occurred. Such as a
evaluate_static_assert_and_assert_constant
, which in the case of an non-inlined function will assert on a parameter that a constant is expected. This errors as expected as we are unable to tell what is constant until we have inlined all the function calls.To Reproduce
assert_constant
as was removed here fix: workaround from_slice with nested slices #5648 inside ofderive_generators
in the stdlib.noirup -p .
Workaround
Yes
Workaround Description
The workaround is in #5648 but it is not addressing the true solution.
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
No response
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: