-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Witgen: Pass range constraints separately (#2451)
this PR changes the signature of `Machine::process_plookup` from ```rust fn process_plookup<'b, Q: QueryCallback<T>>( &mut self, mutable_state: &'b MutableState<'a, T, Q>, identity_id: u64, caller_rows: &'b RowPair<'b, 'a, T>, ) -> EvalResult<'a, T>; ``` To ```rust fn process_plookup<'b, Q: QueryCallback<T>>( &mut self, mutable_state: &'b MutableState<'a, T, Q>, identity_id: u64, parameters: &[AffineExpression<AlgebraicVariable<'a>, T>], range_constraints: &dyn RangeConstraintSet<AlgebraicVariable<'a>, T>, ) -> EvalResult<'a, T>; ``` Previously, each machine evaluated the parameters themselves, using the `caller_rows` and the calling bus send, stored in the connection. But in the future, the calling bus send will not be static, so I moved this to the caller. This will enable #2447 and eventually the dynamic bus. --------- Co-authored-by: chriseth <[email protected]>
- Loading branch information
1 parent
6fdab23
commit 53ad9c4
Showing
15 changed files
with
172 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.