-
Notifications
You must be signed in to change notification settings - Fork 52
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
Sweep: SetAdd #321
Sweep: SetAdd #321
Conversation
Rollback Files For Sweep
This is an automated message generated by Sweep AI. |
Fix the CI |
🚀 Wrote ChangesI wasn't able to make changes. This could be due to an unclear request or a bug in my code. This is an automated message generated by Sweep AI. |
Some errors: Run make build github.com/NethermindEth/cairo-vm-go/pkg/hintrunner/zeropkg/hintrunner/zero/hint_reference_resolver.go:44:10: cannot use createSetAddHinter(m) (value of type hinter.Hinter) as hinter.ResOperander value in return statement: hinter.Hinter does not implement hinter.ResOperander (missing method ApplyApTracking) Running [/home/runner/golangci-lint-1.53.3-linux-amd64/golangci-lint run --out-format=github-actions] in [] ... |
🚀 Wrote ChangesDone. This is an automated message generated by Sweep AI. |
More :( go: downloading github.com/urfave/cli/v2 v2.25.7 github.com/NethermindEth/cairo-vm-go/pkg/hintrunner/zeropkg/hintrunner/zero/hint_reference_resolver.go:44:10: cannot use createSetAddHinter(*m) (value of type hinter.Hinter) as hinter.ResOperander value in return statement: hinter.Hinter does not implement hinter.ResOperander (missing method ApplyApTracking) run golangci-lint |
🚀 Wrote ChangesI wasn't able to make changes. This could be due to an unclear request or a bug in my code. This is an automated message generated by Sweep AI. |
Please fix the following error: Error: pkg/hintrunner/zero/hint_reference_resolver.go:44:10: cannot use createSetAddHinter(*m) (value of type hinter.Hinter) as hinter.ResOperander value in return statement: hinter.Hinter does not implement hinter.ResOperander (missing method ApplyApTracking) |
🚀 Wrote ChangesDone. This is an automated message generated by Sweep AI. |
Failed :( |
PR Feedback (click)
Description
This pull request introduces the implementation of the
SetAdd
operation within the hint runner package. It extends the functionality of the hint reference resolver to recognize and handle theSetAdd
operation, facilitating the addition of elements to a set and tracking the operation's outcome.Summary
SetAdd
operation inhint_reference_resolver.go
to resolve and create a hinter for the operation when requested.createSetAddHinter
function inzerohint_math.go
which constructs a hinter for theSetAdd
operation. This function retrieves necessary operands likeset
,element
,indexOutput
, andpresenceStatusOutput
from the resolver and passes them to thenewSetAddHint
constructor.pkg/hintrunner/zero/hint_reference_resolver.go
pkg/hintrunner/zero/zerohint_math.go
Fixes #246.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.