|
From: dongyu s. <sun...@ya...> - 2008-09-23 16:34:39
|
but referring to following statement from http://wala.sourceforge.net/wiki/index.php/UserGuide:IR If you care about the order in which you iterate over the instructions, you should loop over the basic blocks, and then iterate over the instructions in each basic block. What I could get from above is that IR.getControlFlowGraph().iterateNodes(): should give me ordered set of basic block is it?? --- On Mon, 9/22/08, Stephen Fink <sj...@us...> wrote: From: Stephen Fink <sj...@us...> Subject: Re: [Wala-wala] CFG / InterproceduralCFG To: "WALA discussion and Q&A" <wal...@li...> Date: Monday, September 22, 2008, 5:45 PM iterateNodes(IntSet) is a method on NumberedNodeManager. It takes an IntSet as a parameter, and returns an iterator restricted to those nodes whose numbers belong to the IntSet parameter. iterator(), on the other hand, returns all nodes, in no particular specified order. /** * @param s * @return iterator of nodes with the numbers in set s */ public abstract Iterator<T> iterateNodes(IntSet s); ------------------------------------------------------------------------ Stephen Fink IBM T.J. Watson Research Center sj...@us... (914)784-7776 dongyu sun <sun...@ya...> 09/22/2008 01:12 PM Please respond to WALA discussion and Q&A <wal...@li...> To wal...@li... cc Subject [Wala-wala] CFG / InterproceduralCFG Hi, In the CFG and InterproceduralCFG, both have two method "iterator", "iterateNodes". What's the difference between the two method. Are they both return the iterator of BasicBlock in the Order of the control flow graph? thx donny ------------------------------------------------------------------------- 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 |