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

Improve support of operators and their properties #10

Open
pjljvandelaar opened this issue Jul 1, 2022 · 1 comment
Open

Improve support of operators and their properties #10

pjljvandelaar opened this issue Jul 1, 2022 · 1 comment
Labels

Comments

@pjljvandelaar
Copy link
Collaborator

pjljvandelaar commented Jul 1, 2022

Currently, we have to make almost identical patterns since we can't generalize over operators.
E.g. almost identical pattern distribution over if branches for + and & operators.

Furthermore, many operators have properties like idempotent, commutative, and associative.
So why do I have to specify both $S_X+0 and 0+$S_X for the + operator?

Note that since operators can be overloaded the properties that hold can change:
multiplication for number is commutative, and thus holds a * b = b * a
Yet, this is not true for matrices: matrix multiplication is not commutative!

@pjljvandelaar
Copy link
Collaborator Author

Generalization over operators is blocked since libadalang doesn't support it (yet).

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

No branches or pull requests

1 participant