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

Points-to analysis bug - accessing array elements #6

Open
xvitovs1 opened this issue Sep 17, 2015 · 1 comment
Open

Points-to analysis bug - accessing array elements #6

xvitovs1 opened this issue Sep 17, 2015 · 1 comment

Comments

@xvitovs1
Copy link

When accessing array elements, points-to analysis doesn't work correctly if the elements are accessed by index that changes, e.g. in a cycle:

for (i = 0; i < 10; i++) {
    A[i] = i;
}

There is a problem with determining an offset within the array. Slicer can wrongly remove some statements because of this.

@Justme0
Copy link

Justme0 commented Oct 21, 2015

If the index is a variable, offset will be 0 in "points to" analysis. It's imprecise.

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

No branches or pull requests

2 participants