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

Add bitwise operators #795

Open
rbouar opened this issue Mar 19, 2024 · 0 comments
Open

Add bitwise operators #795

rbouar opened this issue Mar 19, 2024 · 0 comments

Comments

@rbouar
Copy link

rbouar commented Mar 19, 2024

Hello,
The following bitwise operators are missing in MiniZinc:

  • bitwise and function int: '&'(int: x, int: y)
  • bitwise or function int: '|'(int: x, int: y)
  • bitwise not function int: '!'(int: x)
  • bitwise xor function int: '^'(int: x, int y)
  • Left shift function int: '<<'(int: x, int y)
  • Right shift function int: '>>'(int: x, int y)

We can perhaps extend these functions to array[$$E] of bool. I have no idea if we can handle var int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants