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

Slicing using JavaSourceAnalysisScope.SOURCE #1259

Open
dareenkf opened this issue Mar 27, 2023 · 1 comment
Open

Slicing using JavaSourceAnalysisScope.SOURCE #1259

dareenkf opened this issue Mar 27, 2023 · 1 comment

Comments

@dareenkf
Copy link

I know that WALA's slicer can't include constant values in the slice as WALA's IR is in SSA form and copy propagation is formed during SSA construction. Hence, the writing of constants to locals is not preserved in the IR. 
How about when we use source code analysis?
Can I use source analysis ( JavaSourceAnalysisScope.SOURCE ) to build program slices? If so, can I get constant values in the slice in this case since we use the source code?

@msridhar
Copy link
Member

Sorry for the slow response. You can slice source code using AstJavaSlicer. I am not personally sure if it will preserve constants. If you try it and could report back here, that would be helpful and we could document it. Thanks!

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