[Soot-list] (no subject)

Eric Bodden eric.bodden at ec-spride.de
Fri Mar 8 03:26:03 EST 2013


Zeinab why not just add an AssignStmt to the beginning of the body's unit chain?

Eric

On 7 March 2013 09:25, Zeinab Lashkaripour <lashkaripour at yahoo.com> wrote:
> Hi every one,
>
> I have some questions that are related to transformation and I would be
> grateful if anyone could help me.
> I have used Soot to perform Data Flow Analysis and extract the UD chains
> from it.
> After getting the chains I process the source code and extract some
> information from it in order to instrument the original code and insert the
> instrumentation.
>
> The questions I have are:
> 1. Some of the information that I need to insert in the code (my
> instrumentation) are based on the source code line number and I don't know
> where the related Statement is, so that I could add my instrumentation after
> or before it. This is hard for those parts that use temp variables because
> one line of source code is turned into more that one line of Jimple, What
> can I do?
>
> 2. Can I insert a String variable with the value of what I have extracted
> from my processing?
>
> 3.  With the code below I can add a local to Jimple:
>     Local arg = Jimple.v().newLocal("str", RefType.v("java.lang.String"));
>      body.getLocals().add(arg);
> How can I give it a default value?
> Can I add something like: String s1="v1", s2="v2"; to my code or not?
>
> Thank you very much in advance.
>
> Regards,
> Zeinab
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering Group at EC SPRIDE
Tel: +49 6151 16-75422    Fax: +49 6151 16-72051
Room 3.2.14, Mornewegstr. 30, 64293 Darmstadt


More information about the Soot-list mailing list