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

fix codegen for auxiliary constraint degrees #91

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

grjte
Copy link
Contributor

@grjte grjte commented Dec 2, 2022

This PR fixes the declaration of the constraint degrees for constraints in the auxiliary trace, which was previously declaring empty vector in all cases.

Copy link
Contributor

@tohrnii tohrnii left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for fixing this. I think there's another bug just below in line:

// define the number of aux trace boundary constraints `num_aux_assertions`.
new.line("let num_aux_assertions = 0;");

This should probably be:

// define the number of aux trace boundary constraints `num_aux_assertions`.
new.line(format!(
    "let num_aux_assertions = {};",
    ir.num_aux_assertions()
));

@grjte
Copy link
Contributor Author

grjte commented Dec 3, 2022

Looks good! Thanks for fixing this. I think there's another bug just below in line:

// define the number of aux trace boundary constraints `num_aux_assertions`.
new.line("let num_aux_assertions = 0;");

This should probably be:

// define the number of aux trace boundary constraints `num_aux_assertions`.
new.line(format!(
    "let num_aux_assertions = {};",
    ir.num_aux_assertions()
));

Oh good point! Can't believe I missed that. Thanks!

@grjte grjte force-pushed the grjte-fix-aux-codegen branch from 0e8d661 to 57ae403 Compare December 3, 2022 12:03
@grjte grjte requested a review from tohrnii December 3, 2022 12:06
Copy link
Contributor

@tohrnii tohrnii left a comment

Choose a reason for hiding this comment

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

Thank you. Looks good to me.

Copy link
Collaborator

@Al-Kindi-0 Al-Kindi-0 left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you!

@tohrnii tohrnii merged commit 3e77d31 into next Dec 5, 2022
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.

4 participants