-
Notifications
You must be signed in to change notification settings - Fork 92
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
Single step processor. #2272
base: main
Are you sure you want to change the base?
Single step processor. #2272
Conversation
ad752f2
to
cce4375
Compare
let mut progress = false; | ||
|
||
for id in &self.machine_parts.identities { | ||
let row_offset = if id.contains_next_ref() { 0 } else { 1 }; |
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.
Hmm, this function does not look into intermediate definitions :/ So this would lead to a wrong result:
col foo = a + b';
foo = 2;
I think this should be fixed in a different PR, but maybe you could add a TODO?
// TODO also check that we completed all machine calls? | ||
if unknown_witnesses.is_empty() { | ||
Ok(witgen.code()) |
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.
// TODO also check that we completed all machine calls? | |
if unknown_witnesses.is_empty() { | |
Ok(witgen.code()) | |
if unknown_witnesses.is_empty() { | |
assert_eq!(complete, self.machine_parts.identities.len()); | |
Ok(witgen.code()) |
In this case, we'd expect all identities to complete, right? Because all cells are known?
BTW, we don't really need complete
to store the row offset, as it is determined by id.contains_next_ref()
.
impl<T: FieldElement> FixedEvaluator<T> for &SingleStepProcessor<'_, T> { | ||
fn evaluate(&self, _var: &AlgebraicReference, _row_offset: i32) -> Option<T> { | ||
// We can only return something here if the fixed column is constant | ||
// in the region wer are considering. |
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.
// in the region wer are considering. | |
// in the region we are considering. |
No description provided.