Skip to content
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

Witgen: Match machine calls by Bus ID #2447

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

georgwiese
Copy link
Collaborator

No description provided.

@@ -62,7 +62,7 @@ pub struct OuterQuery<'a, 'b, T: FieldElement> {
impl<'a, 'b, T: FieldElement> OuterQuery<'a, 'b, T> {
pub fn try_new(
caller_rows: &'b RowPair<'b, 'a, T>,
connection: Connection<'a, T>,
bus_receive: &'a BusReceive<T>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stuck here. This needs the LHS to evaluate it. Why doesn't the caller do this again?

github-merge-queue bot pushed a commit that referenced this pull request Feb 6, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant