[Soot-list] data flow problem

Quentin Sabah quentin.sabah at inria.fr
Tue Jul 16 05:46:50 EDT 2013


> I want to know how are you get def and use vars for a array if you get 
> these jimple code ? Maybe I used the wrong way with soot.
> Thanks.

When an array is accessed, it is always a Use. You can however test if
the array reference is appearing on the left-hand side (array store) or
on the right-hand side (array load) in the assignment statement. To do
so, use DefinitionStmt.getLeftOp() and DefinitionStmt.getRightOp(), and
compare the result with DefinitionStmt.getArrayRef().


-- 
Quentin Sabah, CIFRE Ph.D. student
Grenoble University
INRIA-SPADES                   | STMicroelectronics/AST
Montbonnot, France             | Grenoble, France
mailto:quentin.sabah at inria.fr  | mailto:quentin.sabah at st.com
phone: +33 476 61 54 57        | phone: +33 476 58 44 14


More information about the Soot-list mailing list