-
Notifications
You must be signed in to change notification settings - Fork 160
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
Signed functions for felts and sqrt #1150
Merged
Merged
Conversation
This file contains 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
That feature is for compatibility with another `Arbitrary` trait
…-felts-sqrt-and-proptests
fmoletta
requested review from
igaray,
Oppen,
fmoletta,
entropidelic,
juanbono,
pefontana and
Juan-M-V
as code owners
May 12, 2023 19:38
Benchmark Results for unmodified programs 🚀
|
Oppen
reviewed
May 13, 2023
…aclass/cairo-rs into arbitrary-felts-sqrt-and-proptests
Oppen
approved these changes
May 15, 2023
Oppen
approved these changes
May 15, 2023
…aclass/cairo-rs into arbitrary-felts-sqrt-and-proptests
pefontana
approved these changes
May 15, 2023
Codecov Report
@@ Coverage Diff @@
## main #1150 +/- ##
==========================================
+ Coverage 97.57% 97.72% +0.15%
==========================================
Files 89 89
Lines 35739 35651 -88
==========================================
- Hits 34872 34840 -32
+ Misses 867 811 -56
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
kariy
pushed a commit
to dojoengine/cairo-rs
that referenced
this pull request
Jun 23, 2023
* Add arbitrary function * Update tests * Fix: remove arbitrary feature for BigInt That feature is for compatibility with another `Arbitrary` trait * Fix: construction tests shouldn't receive felt * Fix: lower part was capped by PH instead of PL * Impl `Arbitrary` for `FeltBigInt` and `Felt252` * WIP abs * WIP abs proptests * WIP: signed tests don't contradict implementation * signed functions and sqrt * Uncomment + fix sqrt impl * Fix sqrt_is_inv_square test * Remove sqrt implementation from FeltBigInt * Remove sqrt fn from src/math_utils.rs * Restore proptest after merge * Restore merge changes * Remove now useless line from find_element hint * Remove now useless lines from search_sorted_lower hint * Restore line, remove test * Update to_signed_felt * Fix is_positive hint implementation * Clippy * Add changelog entry * Remove pub * Remove redundant check * Restore fmt * Fix sqrt proptest * Fix SquareRoot hint --------- Co-authored-by: Tomás <[email protected]> Co-authored-by: Tomás <[email protected]> Co-authored-by: Federica <[email protected]> Co-authored-by: fmoletta <[email protected]> Co-authored-by: Pedro Fontana <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TITLE
Description
Description of the pull request changes and motivation.
Checklist