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 patterns to MapProxy #2

Open
delcypher opened this issue Oct 19, 2015 · 0 comments
Open

Add patterns to MapProxy #2

delcypher opened this issue Oct 19, 2015 · 0 comments

Comments

@delcypher
Copy link
Member

The MapProxy class only looks for non alias expressions that match the pattern <var> + <const> when handling non-aliasing expressions that are used as indices. We can generalise this to

  • <expr> + <const> and <expr> - <const> (these can co-exist and do not alias). We can also the same for bitvectors provided we check that we don't allow overflowing bitvector constants (I don't think we do).
  • <expr> * <const> (need to be careful when <const> == 0 as this aliases <expr>)
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

1 participant