[Soot-list] How to understand edgesInto()'s results

Fang Zhou timchou.hit at gmail.com
Wed May 8 13:39:08 EDT 2019


Hi Jan,

Sorry for misunderstanding. I want to find the callers, which
functions calls the specific function.

I misused Targets to generate the iterator of sources.. I change it to
Sources, then it works.

Thank you so much.

Best,
Fang

On Wed, May 8, 2019 at 1:14 PM Jan Peter Stotz
<jan-peter.stotz at sit.fraunhofer.de> wrote:
>
> Hi Fang.
>
> You are looking "at the wrong end" of the edge. An edge is directed from
> the caller (source) to the callee (target).
>
> Therefore all edgesInto of a method have by definition this method as
> target. You are looking for the source of each edge - the method that is
> calling your method.
>
> Jan
>
> Am 08.05.2019 um 18:35 schrieb Fang Zhou:
> > Currently, I'm trying to know all possible calling functions for one
> > specific function.
> > I use CHATransformer() to generate the interprocedural callgraph. Then
> > use edgesInto to get the calling functions. However, I found the
> > specific function is called by itself.


More information about the Soot-list mailing list