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

! incorrectly ACIR gen'd #1748

Closed
joss-aztec opened this issue Jun 19, 2023 · 1 comment · Fixed by #1749
Closed

! incorrectly ACIR gen'd #1748

joss-aztec opened this issue Jun 19, 2023 · 1 comment · Fixed by #1749
Labels
bug Something isn't working refactor ssa

Comments

@joss-aztec
Copy link
Contributor

Aim

! should flip integer bits

Expected Behavior

fn main() -> pub u32 {
    let x: u32 = 5;
    !x
}

Should evaluate to:

Circuit output: Field(4294967290)

Bug

Instead it gives:

Circuit output: Field(-4)

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@joss-aztec joss-aztec added bug Something isn't working refactor ssa labels Jun 19, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Jun 19, 2023
@joss-aztec
Copy link
Contributor Author

Affects test named 8_integration

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor ssa
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant