-
Notifications
You must be signed in to change notification settings - Fork 101
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
Prover functions in queue #2461
base: main
Are you sure you want to change the base?
Conversation
1fd3ba3
to
8cce9c8
Compare
references_per_identity: HashMap::new(), | ||
} | ||
} | ||
pub fn references(&mut self, item: &QueueItem<'a, T>) -> Vec<Variable> { |
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.
maybe this can return an iterator, usage seems to immediately call iter()
.
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.
I tried to make this return an iterator, but I got some errors wrt either references to &mut self
or temporaries in lambda functions.
This change also adds prover functions as a third kind of "queue item". The biggest change, though, is a refactoring concerning the code that computes which variables are contained in an identity. The whole mechanism is changed to handle queue items uniformly.