-
Notifications
You must be signed in to change notification settings - Fork 387
feat: push overflow checks inside of signed binary ops #9074
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
c450f37
feat: push overflow checks into signed binary ops
TomAFrench dd3dcea
complete switch
TomAFrench c3fd59c
chore: add regression test
TomAFrench 7d18275
chore: replace snapshot tests
TomAFrench 4bfc92f
chore: pull callstack from context
TomAFrench 035adf0
chore: push some simple logic onto `SimpleOptimizationContext`
TomAFrench deefd69
.
TomAFrench 9a72ad5
.
TomAFrench 44e5438
.
TomAFrench 2cd0a74
chore: remove redundant tests
TomAFrench 869a66a
fix: handle checked signed ops in interpreter
TomAFrench a255329
chore: quick and dirty linking of interpreter errors
TomAFrench 0211d3d
chore: update tests with new checked behaviour
TomAFrench f60b7c7
.
TomAFrench a67699c
Merge branch 'master' into tf/checked-signed-ops
TomAFrench 3401758
.
TomAFrench 5344ab7
chore: add tests for unchecked operations
TomAFrench 129c1ed
Update compiler/noirc_evaluator/src/ssa/interpreter/errors.rs
TomAFrench bc6cc16
Merge branch 'master' into tf/checked-signed-ops
TomAFrench 3bdb55a
.
TomAFrench f7dace2
chore: panic if checked signed ops get through to brillig/acirgen
TomAFrench 82ae2d9
.
TomAFrench 0b67757
Update compiler/noirc_evaluator/src/ssa/interpreter/errors.rs
TomAFrench 6af34d3
Merge branch 'master' into tf/checked-signed-ops
TomAFrench 5f5f47f
Update compiler/noirc_evaluator/src/ssa/opt/expand_signed_checks.rs
TomAFrench 8302641
Update compiler/noirc_evaluator/src/ssa/opt/expand_signed_checks.rs
TomAFrench 53b92fc
chore: add tests for signed integer operations
TomAFrench a76907a
.
TomAFrench cddacd5
chore: remove stale comment
TomAFrench aad9b03
.
TomAFrench 1ab7a0a
chore: simplify postcheck
TomAFrench 0b05f8f
.
TomAFrench 4063332
Update benchmark_projects.yml
TomAFrench 65ad060
Merge branch 'master' into tf/checked-signed-ops
TomAFrench afad5ee
Merge branch 'master' into tf/checked-signed-ops
aakoshh 332f88c
Apply the modulo trick to prevent signed sub overflow
aakoshh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.