[Soot-list] Hot to get Block from Unit

Zhou, Tong tz at gatech.edu
Sun Nov 11 17:32:21 EST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20181111/ad250978/attachment.html>


More information about the Soot-list mailing list