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

chore(ssa refactor): Add code to handle less than comparison #1433

Merged
merged 22 commits into from
May 30, 2023

Conversation

kevaundray
Copy link
Contributor

Description

This adds code to handle the less than operation, to handle more than, we just need to handle the NOT operation which we can put in another PR.

Problem*

Resolves

Summary*

This PR sets out to

Example

Before:


After:


Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@kevaundray
Copy link
Contributor Author

kevaundray commented May 28, 2023

This was failing before because the result was not being cached when we did a cast operation. I incorrectly assumed that the value_id of the input to cast will equal the value_id of the output to cast

@kevaundray kevaundray changed the base branch from master to kw/range-constraints May 28, 2023 18:26
@kevaundray
Copy link
Contributor Author

This is now blocked by #1435 since we are now producing circuits which have a width greater than three

Copy link
Contributor

@joss-aztec joss-aztec left a comment

Choose a reason for hiding this comment

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

Any particular reason for the merkle test changes in this PR?

@kevaundray
Copy link
Contributor Author

Any particular reason for the merkle test changes in this PR?

I think this might be because of a rebase, we just merged merkle changes into master

@jfecher
Copy link
Contributor

jfecher commented May 30, 2023

Can we merge master with this PR so the extraneous diffs get removed?

@kevaundray
Copy link
Contributor Author

Can we merge master with this PR so the extraneous diffs get removed?

We are merging into the range-constraints PR so I think we need to update it there

jfecher
jfecher previously approved these changes May 30, 2023
Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

I'm alright with merging this into another PR. We can fix up the other PR afterward so the diff is cleaner.

Base automatically changed from kw/range-constraints to master May 30, 2023 16:30
@kevaundray
Copy link
Contributor Author

Diff should be clean now!

@kevaundray kevaundray enabled auto-merge May 30, 2023 17:44
@kevaundray kevaundray added this pull request to the merge queue May 30, 2023
Merged via the queue into master with commit 92796aa May 30, 2023
@kevaundray kevaundray deleted the kw/add-comparison branch May 30, 2023 19:15
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.

3 participants