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

Fix Uop in collect_global_read #41

Merged
merged 3 commits into from
Oct 6, 2023
Merged

Conversation

Samuel-Oglegba
Copy link
Collaborator

This PR fixes issue #33 by removing case: CODE.Uop#(,rhs=) and enumerate all Uop (by adding CODE.Uop#(.. "-"|"+"|"~",rhs).

lib/analysis.pt Outdated
collect_global_read(rhs)
case CODE.PtrAccess#(rhs=_,_) | CODE.Bop#(".",rhs=_,_) | CODE.Uop#("*",rhs=_)
| CODE.ObjAccess#(rhs=_,_) | CODE.ArrayAccess#(_,rhs=_) | CODE.Uop#(_,rhs=_):
case CODE.PtrAccess#(rhs=_,_) | CODE.Bop#(".",rhs=_,_) | CODE.ObjAccess#(rhs=_,_) | CODE.ArrayAccess#(_,rhs=_):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're not supposed to modify this, and the modification is wrong.

@Samuel-Oglegba Samuel-Oglegba merged commit 062a797 into master Oct 6, 2023
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 this pull request may close these issues.

2 participants