Can sootup do a backwards analysis to construct a call graph? #1091
-
I am wanting to provide an entry method to find all ways this method is called rather than what it calls. Is there a way the entry method can be "destination" of all the calls rather than the source? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There is currently no way to do a backwards analysis. Compared to a forwards analysis you need to know all places in which a call is possible, for CHA it might be possible to develop such an approach, but a higher precision might be difficult. |
Beta Was this translation helpful? Give feedback.
There is currently no way to do a backwards analysis. Compared to a forwards analysis you need to know all places in which a call is possible, for CHA it might be possible to develop such an approach, but a higher precision might be difficult.
A current work around would be to add every method as entry point in the call graph algorithm. That way you would create a complete call graph and then you could extract the subgraph for your "entry method" or you can use the complete call graph for the queries.