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

ref/def info for StoreInst #4

Open
hongxuchen opened this issue Oct 9, 2013 · 1 comment
Open

ref/def info for StoreInst #4

hongxuchen opened this issue Oct 9, 2013 · 1 comment

Comments

@hongxuchen
Copy link

Dear Mr. @jirislaby , I find that I am a bit confused with the way you are dealing with StoreInst in InsInfo, https://github.com/jirislaby/LLVMSlicer/blob/master/src/Slicing/FunctionStaticSlicer.cpp#L122

If I understand correctly, l is actually the location of the value stored and it is the 2nd argument of StoreInst. Right? Then in my opinion l's type is always PointerTy; also, since it's possible l is a GlobalVariable, more points-to info need to be taken into consideration, but you seem to check whether l hasExtraReference(which actually checks whether it is a GlobalVariable/Function/AllocaInst), however an additional getPointsToSet function is invoked otherwise(It's rational since l might be a pointer in source code; however it there a need to take GlobalVariable into consideration?). Is there any inconsistency? Thanks.

@Justme0
Copy link

Justme0 commented Oct 22, 2015

I think l means left value (a pointer), r means right value.

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