-
Notifications
You must be signed in to change notification settings - Fork 135
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
Interprocedural slicing failed #140
Comments
dg does not use exactly SDG -- it does not use the summary edges. That is also the reason why the |
You can find some more info here: #107 |
OK. Thanks a lot! |
As this question is superseded by #107, I'm closing it in the favor of the later one. |
I use
llvm-slicer
to slice the following example. The criterion isassert
function, and statements aboutsum
should be sliced but failed.Firstly, compile it to LLVM IR using
clang -g -c -emit-llvm a.c
;Secondly, run slicer using
./llvm-slicer -c=__assert_fail a.bc
;Thirdly, get readable IR using
llvm-dis a.sliced
.The slice about two funtions is
The statements about variable
sum
should be deleted. It seems thatdg
use SDG(System Dependence Graph) to do interprocedural slicing.The text was updated successfully, but these errors were encountered: