<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">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!</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Tong</p>
</div>
</body>
</html>