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

Single step processor. #2272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Single step processor. #2272

wants to merge 2 commits into from

Conversation

chriseth
Copy link
Member

No description provided.

@chriseth chriseth requested a review from georgwiese December 20, 2024 11:36
let mut progress = false;

for id in &self.machine_parts.identities {
let row_offset = if id.contains_next_ref() { 0 } else { 1 };
Copy link
Collaborator

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?

Comment on lines +76 to +78
// TODO also check that we completed all machine calls?
if unknown_witnesses.is_empty() {
Ok(witgen.code())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// 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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// in the region wer are considering.
// in the region we are considering.

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.

2 participants