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

Steven Arzt Steven.Arzt at cased.de
Fri Oct 10 03:44:35 EDT 2014


Hi Andreas,

 

Have a look at the "SideEffectAnalysis" class in Soot.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
Im Auftrag von Andreas Grimmer
Gesendet: Mittwoch, 8. Oktober 2014 09:36
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] Get reads and writes of a SootField

 

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/20141010/a03d422a/attachment.html 


More information about the Soot-list mailing list