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

Some builtin functions are actually foreign #6594

Open
aakoshh opened this issue Nov 22, 2024 · 0 comments
Open

Some builtin functions are actually foreign #6594

aakoshh opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aakoshh
Copy link
Contributor

aakoshh commented Nov 22, 2024

Aim

Tried to implement the bigint functions (part of the BlackBoxFunc family) as foreign in ##6551 , but they are marked as #[builtin] in Noir.

Expected Behavior

Dispatching a builtin function to Interpreter::call_builtin should handle it, while foreign functions should go to Interpreter::call_foreign.

Bug

There is no actual bug at the moment because there are redirects in the interpreter [1, 2], but it's a bit confusing.

To Reproduce

Workaround

None

Workaround Description

The redirect in the code from builtin to foreign handles the mislabeling.

Additional Context

No response

Project Impact

None

Blocker Context

No response

Nargo Version

No response

NoirJS Version

No response

Proving Backend Tooling & Version

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant