[Soot-list] Transformation capablilities of Soot
Zeinab Lashkaripour
lashkaripour at yahoo.com
Sat May 11 16:21:13 EDT 2013
Hi every one,
I'm trying to perform some transformations that I'm not sure I can use Soot for them therefore I would be grateful if any one could guide me.
1. I have some strings that their value a concatenation of string variables and values. For example after processing I get:
v1 = "...." + v + "..";
In this example I don't know the value of v till runtime and what I have from my processing is the RHS of the assignment. I have the RHS as a value and I am not aware of the variables until I traverse it.
Can I use Soot for this and give the RHS at once to v1?
Ordo I have to separate values and variables in order to use Soot?
2. I also want to add some code in the form of:
list.add(value);
Can I do that too?
3. If I have the following form in code:
if (condition) v2 = ".." + y;
If I want to add a statement before or after "v2 = ".." + y"
if (condition) { v2 = ".." + y; new statement; }
does soot support this or do I have to do it by myself?
I think the answer to the first two is yes but, I'm not sure how to do it.
And for the last question I have no clue.
Thanks in advance,
Zeinab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130511/c98f7286/attachment.html
More information about the Soot-list
mailing list