|
From: Stephen F. <sj...@us...> - 2008-10-03 14:03:50
|
See http://wala.sourceforge.net/wiki/index.php/UserGuide:MappingToSourceCode ------------------------------------------------------------------------ Stephen Fink IBM T.J. Watson Research Center sj...@us... (914)784-7776 dongyu sun <sun...@ya...> 10/02/2008 11:16 AM Please respond to WALA discussion and Q&A <wal...@li...> To WALA discussion and Q&A <wal...@li...> cc Subject Re: [Wala-wala] equery on IInstruction thx. one more question, from the instruction interface, any way to link it back to the original source code? --- On Thu, 10/2/08, Stephen Fink <sj...@us...> wrote: From: Stephen Fink <sj...@us...> Subject: Re: [Wala-wala] equery on IInstruction To: "WALA discussion and Q&A" <wal...@li...> Date: Thursday, October 2, 2008, 10:26 AM > Base on this interface, it seems has very limited method. For > example, if I want to check if the instruction is branch, > conditional branch, method call...etc, this interface does not give > the method to check. Is there anyway I can find such information for > the CFG instructions? There are many ways to do this. I would suggest either: a) writing a loop which tests each instructions type with instanceof e.g. (s instanceof SSAAbstractInvokeInstruction) b) use the Instruction Visitor pattern. Search for uses of SSAInstruction.Visitor for examples. SJF ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Wala-wala mailing list Wal...@li... https://lists.sourceforge.net/lists/listinfo/wala-wala ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Wala-wala mailing list Wal...@li... https://lists.sourceforge.net/lists/listinfo/wala-wala |