[Soot-list] Get reads and writes of a SootField

Andreas Grimmer Andreas.Grimmer at jku.at
Wed Oct 8 03:36:19 EDT 2014


Hello!

 

Is there a possibility in Soot to get all accesses (reads and writes) of a
SootField using an instance?

 

For the instance bInst and the SootField var, I would like to get the write
and read in method bar.

 

public class A {

 

    B bInst = new B();

    

    public void bar() {

        

        bInst.var = 5;

        

        if(bInst.var > 2) {

            

        }

    }

}

 

public class B {

    public int var;

}

 

Thanks in advance!

 

 

Best regards

 

Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20141008/61c6fe12/attachment-0001.html 


More information about the Soot-list mailing list