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

Add SSA logic for truncate #1487

Closed
Tracked by #1376
kevaundray opened this issue Jun 1, 2023 · 2 comments
Closed
Tracked by #1376

Add SSA logic for truncate #1487

kevaundray opened this issue Jun 1, 2023 · 2 comments
Labels
enhancement New feature or request refactor ssa

Comments

@kevaundray
Copy link
Contributor

Problem

The truncate operation allows us to do operations on integers lazilly and only reduce the integer modulo its bit-size when necessary.

The necessary reasons to reduce an integer, ie apply a modulo/truncate is:

  • When an operation will make it exceed the field modulus
  • When an operation or function requires the integer to be canonical.

Happy Case

.

Alternatives Considered

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@kevaundray kevaundray added enhancement New feature or request refactor ssa labels Jun 1, 2023
@kevaundray
Copy link
Contributor Author

Current plan is to truncate on every integer arithmetic and then optimize this out in later iterations

@joss-aztec
Copy link
Contributor

Truncation is now implemented in a minimal form. Closing as we can open further issues for refining it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor ssa
Projects
Archived in project
Development

No branches or pull requests

2 participants