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

Support ifrombool / itobool for arbitrary ints #409

Closed
Tracked by #391
aborgna-q opened this issue Aug 27, 2024 · 0 comments · Fixed by #459
Closed
Tracked by #391

Support ifrombool / itobool for arbitrary ints #409

aborgna-q opened this issue Aug 27, 2024 · 0 comments · Fixed by #459
Assignees

Comments

@aborgna-q
Copy link
Collaborator

aborgna-q commented Aug 27, 2024

Hugr's std.int.ifrombool / itobool ops only work with bits. Guppy should emit >0 and iwiden operations respectively when using bool / int with wider ints.

@aborgna-q aborgna-q changed the title Int ifrombool / itobool ops only work with bits. Guppy should emit >0 and iwiden respectively. Support ifrombool / itobool for arbitrary ints Aug 27, 2024
@aborgna-q aborgna-q self-assigned this Aug 27, 2024
@mark-koch mark-koch added this to the guppylang 0.10.0 milestone Sep 2, 2024
github-merge-queue bot pushed a commit that referenced this issue Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants