-
Notifications
You must be signed in to change notification settings - Fork 200
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
Audit preparedness: test binary operations #5426
Labels
enhancement
New feature or request
Comments
This was referenced Jul 5, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Jul 30, 2024
# Description TODO: - [x] Split out control flow tests into a separate PR #5558 - [x] Split out `BigInt` tests into a separate PR #5559 - [x] Refactor `any::<T>()` - [x] Make issues for failing tests ## Problem\* Resolves #5426 ## Summary\* ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 26, 2024
# Description ## Problem\* Part of #5426 ## Summary\* Tests - Conversion to/from LE arrays of bytes - Add/Mul associative/commutative/identity - Mul has L/R zero - Distributive property - Invertibility of Add/Mul - Injectivity of Add ## Additional Context Without updating `overflow-checks` defaults, the invalid-modulus only panics locally while passing in CI. It results in a 22% increase in user time and 27% increase in wall-clock time running `cargo test` (in release mode): - With overflow checks: `708.25s user 38.29s system 842% cpu 1:28.65 total` - Without overflow checks: `577.09s user 32.65s system 875% cpu 1:09.68 total` ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Part of #5362
0..8
(or are None):get_field_function, get_u128_function, get_i128_function
Magmas:
add_sub
andsub_add
tests implicitly do so)Add
Sub
Mul
Div
Mod
And
Or
Xor
Shl
Shr
Comparisons:
Eq
Lt
AND
XOR
EmbeddedCurveAdd
BigIntAdd
BigIntSub
BigIntMul
BigIntDiv
Happy Case
Test all listed binary operations
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: