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

Does SVF change the module it analyses? #39

Closed
kren1 opened this issue Mar 19, 2018 · 3 comments
Closed

Does SVF change the module it analyses? #39

kren1 opened this issue Mar 19, 2018 · 3 comments

Comments

@kren1
Copy link
Contributor

kren1 commented Mar 19, 2018

Hi,

I observed that after running a pointer analysis (AnderesenWaveDiff), the number of instructions in an LLVM module increases. From what I gather the analsysis itself, never changes the module it analyses. Is that true or did I miss something? Another thing I was considering is that SVF registers itself as an LLVM alias analysis and then another transformation uses it's more precise results to emit different code. However I'm not running any other pass after the SVF analysis. Any other ideas?

@yuleisui
Copy link
Collaborator

Hello,

  1. On bc file changes
    SVF may break constantExpr into an instruction and create a dummy return by merging multiple return instructions.

Please see "Util/BreakConstantExpr.h"

The best way to see the changes is to diff the two bc files (before and after SVF's analyses).

  1. Alias analysis registration

The current version of SVF does not register itself as an LLVM alias analysis since LLVM moves very fast and its orignal registration interfaces have changed few times. If you possible, would you like to help us with this?

@kren1
Copy link
Contributor Author

kren1 commented Mar 20, 2018

Hi,

Thanks for clarifying why the changes happen, it has been bugging me for a while.

I don't have any experience with registering those passes especially not across llvm version and I usually work in llvm 3.4, so I don't think I would be of much help.

Thanks again for your quick response and I'm sorry I can't be of more use on this.

@kren1 kren1 closed this as completed Mar 20, 2018
@yuleisui
Copy link
Collaborator

No worries. Good luck!

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