-
Notifications
You must be signed in to change notification settings - Fork 16
feat(acir)!: Add predicate to MemoryOp #503
Conversation
I think we might need to update this file https://github.com/noir-lang/acvm/blob/master/acir/tests/test_program_serialization.rs to also test serialization of memory ops. I think this PR needs to update the test cases for JS as well, but since the test doesn't use memory ops, it doesn't alert the dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to encode the predicate in the circuit which could be done on the bb side. For now, its just a serialization change and no logic will be required in the cpp to be changed (ie it ignores the predicate) and we will open up an issue about predicate encoding -- It could also be done on the Noir side, so it requires a bit more discussion
I don't see MemoryOps being used anywhere in this test? |
Alvaro is saying that we should add a test which does use |
Will add a test |
|
Description
Problem*
Resolves noir-lang/noir#2133
Summary*
We are executing memory operations even under a zero predicate. This leads to situations where the VM will error with index out of bounds even if the memory operation is under a zero predicate.
Additional Context
PR Checklist*
cargo fmt
on default settings.