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

feat: constrain nonzero divisor #92

Merged
merged 4 commits into from
Jun 29, 2024
Merged

Conversation

cocohearts
Copy link
Contributor

Added additional quotient inverse column to constrain nonzero divisor when operation is division.

@cocohearts cocohearts requested a review from TlatoaniHJ June 25, 2024 20:26
@cocohearts cocohearts requested a review from jonathanpwang June 25, 2024 20:28
@TlatoaniHJ
Copy link
Contributor

It would be good to add some kind of negative test checking that OpCode = DIV and x, y = 0 fails.

@jonathanpwang
Copy link
Contributor

Noting this is waiting on tests

@jonathanpwang
Copy link
Contributor

@cocohearts this still needs tests

@cocohearts
Copy link
Contributor Author

sorry was going to try to wait and fix the (small) issue where stdout would print long backtrace even when expecting panic, but ignored, negative tests pass as intended

@jonathanpwang jonathanpwang merged commit 5c41655 into main Jun 29, 2024
3 checks passed
@jonathanpwang jonathanpwang deleted the feat/constrain-nonzero-divisor branch June 29, 2024 01:00
luffykai pushed a commit that referenced this pull request Dec 13, 2024
* feat: quotient inverse olumn to constain nonzero divisor when operation is division

* chore: clean unused code

* feat: negative tests that panic/confirm constraints fail

---------

Co-authored-by: Alex Zhao <alexzhao@intrinsictech.com>
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