[Soot-list] Hot to get Block from Unit

Eric Bodden eric.bodden at uni-paderborn.de
Mon Nov 12 03:14:37 EST 2018


Hi.

You would have to create a global data structure that caches BlockGraphs. Soot does not support this otherwise, as we have found that having blocks is usually rather useless in practice.

Best wishes
Eric

> On 11. Nov 2018, at 23:32, Zhou, Tong <tz at gatech.edu> wrote:
> 
> Hi,
> 
> I was wondering what the standard way is in Soot to get a Unit's parent block (and same query always returns the same block)? In LLVM, Instruction class has a field to its parent block, but in Soot it seems that the BlockGraph and blocks is only dynamically created from a list of units upon request. So the units are unique and global, but the blocks are re-created each time. So I was wondering if there's a low-overhead way of doing this. Thanks!
> 
> Tong
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list



More information about the Soot-list mailing list