Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Assorted hints2#305

Open
mmsc2 wants to merge 10 commits into
mainfrom
AssortedHints2
Open

Assorted hints2#305
mmsc2 wants to merge 10 commits into
mainfrom
AssortedHints2

Conversation

@mmsc2
Copy link
Copy Markdown
Contributor

@mmsc2 mmsc2 commented Sep 28, 2023

No description provided.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 28, 2023

Codecov Report

Merging #305 (3e1cb06) into main (8c01a73) will decrease coverage by 0.01%.
The diff coverage is 56.28%.

@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
- Coverage   56.11%   56.10%   -0.01%     
==========================================
  Files          48       48              
  Lines        6239     6402     +163     
==========================================
+ Hits         3501     3592      +91     
- Misses       2390     2444      +54     
- Partials      348      366      +18     
Files Coverage Δ
pkg/hints/hint_processor.go 89.18% <100.00%> (+0.48%) ⬆️
pkg/hints/hint_utils/bigint_utils.go 0.00% <0.00%> (ø)
pkg/hints/hint_utils/secp_utils.go 0.00% <0.00%> (ø)
pkg/hints/math_hints.go 53.49% <35.00%> (-1.84%) ⬇️
pkg/hints/bigint_hint.go 58.57% <62.60%> (+12.14%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mmsc2 mmsc2 linked an issue Sep 29, 2023 that may be closed by this pull request
@mmsc2 mmsc2 marked this pull request as ready for review September 29, 2023 18:01
Comment thread pkg/hints/bigint_hint.go
execScopes.AssignOrUpdateVariable("value", value)

val := memory.NewMaybeRelocatableFelt(flag)
idsData.Insert("flag", val, vm)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handle this error

Comment thread pkg/hints/bigint_hint.go
}
y := yUnpacked.Pack86()

res, _ := math_utils.DivMod(&x1, &y, &p)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont ignore the error


// Generic methods for all types
func limbsFromVarName(nLimbs int, name string, ids IdsManager, vm *VirtualMachine) ([]Felt, error) {
func LimbsFromVarName(nLimbs int, name string, ids IdsManager, vm *VirtualMachine) ([]Felt, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't expose it, create a BigInt5 wrapper instead

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assorted Hints (2/4)

3 participants