Hi Edward,
I don't think you can recover such source-level information from the WALA SSA IR, unfortunately. We do have source locations available:
http://wala.sourceforge.net/wiki/index.php/UserGuide:MappingToSourceCode
You might be able to rig something up based on that.
--Manu
-------------------------------------------
Manu Sridharan
IBM T.J. Watson Research Center
http://researcher.ibm.com/view.php?person=us-msridhar
"Edward X. Wu" ---03/06/2013 03:40:33 PM---Hi, I am wondering if there's a way to recover assignment instructions from the
Edward Wu------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
Wala-wala mailing list
Wala...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wala-wala
Edward,
Are you working with the bytecode version of WALA, or are you using the CAst source front end?
If you are using the source front end, there is a mechanism to undo copy propagation. It is in the SSA info of the IR, and you can call undoCopyPropagation(instructionIndex, useNumber) to recover assignment statements.
Note that this mechanism is used for rewriting IRs in case of lexically-scoped writes to state, and it leaves the IR in a state that WALA analysis will not deal with. However, you could probably use it to recover the information you want.
-- Julian
"Edward X. Wu" ---03/06/2013 08:56:46 PM---Hi Manu, Sorry about not being very clear in my first post. I was talking about the
| "Edward X. Wu" <edwa...@cs.washington.edu> |
| "WALA discussion and Q&A" <wala...@lists.sourceforge.net>, |
| 03/06/2013 08:56 PM |
| Re: [Wala-wala] Recovery static assignment instructions from the SSA IR |
That functionality only works for the source front end. For bytecode, it is not clear that the information still exists anyway, since the Java compiler can move stuff like constant assignments around. You could try looking at the Shrike IR rather than the WALA one, and mapping those bytecode instructions back to source code.
-- Julian
"Edward X. Wu" ---03/07/2013 12:55:14 AM---Hi Julian, Thanks for the pointers! I am actually using wala to analyze java bytecode,
| "Edward X. Wu" <edwa...@cs.washington.edu> |
| "WALA discussion and Q&A" <wala...@lists.sourceforge.net>, |
| 03/07/2013 12:55 AM |