<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="ltr">Hi all.</p>
<p dir="ltr">Since a few months there are convenience methods on every stmt that choose the right tags automatically. Should be quite easy.</p>
<p dir="ltr">Cheers,<br>
Eric</p>
<div class="gmail_quote">On Feb 17, 2015 1:48 PM, Steven Arzt <Steven.Arzt@cased.de> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:10pt"></span></font>
<div>Hi,<br>
<br>
the line numbers are available through the tags associated with the<br>
respective units. There are multiple types of tags, some only have the<br>
source line number, others also the column in the source file. From<br>
bytecode, you will only get line numbers, from source code, you can also get<br>
columns. Try Unit.getTags() (inherited from the Host class).<br>
<br>
However, there are some things to keep in mind: Soot's front-end for Java<br>
source code is not up to date. This means that you are unlikely to be able<br>
to parse Java 7-style source code. Java 6 should be fine, though. Developing<br>
a new source front-end is a major undertaking we need to do at some point.<br>
If you use the bytecode front-end, you should be on the safe side.<br>
<br>
Best regards,<br>
Steven<br>
<br>
<br>
-----Original Message-----<br>
From: soot-list-bounces@CS.McGill.CA [<a href="mailto:soot-list-bounces@CS.McGill.CA">mailto:soot-list-bounces@CS.McGill.CA</a>]<br>
On Behalf Of Nishant Shyamal Budhdev<br>
Sent: Dienstag, 17. Februar 2015 12:07<br>
To: soot-list@CS.McGill.CA<br>
Subject: [Soot-list] How to map line number to units<br>
<br>
Hi,<br>
<br>
I'm trying to produce a Data Flow Analysis (intra-procedural) for Android<br>
applications. The aim of the analysis is to help generate constraints for<br>
the application using line numbers in the original source code as variables.<br>
I've been able to generate the Data Flow Analysis for Java programs. I've<br>
the following questions:<br>
<br>
1. Is it possible to map the units in the graphs to the source code line<br>
numbers ?<br>
<br>
2. Does Soot produce a list of Dominant nodes ?<br>
<br>
Thank you.<br>
Nishant Budhdev<br>
_______________________________________________<br>
Soot-list mailing list<br>
Soot-list@CS.McGill.CA<br>
<a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><br>
<br>
_______________________________________________<br>
Soot-list mailing list<br>
Soot-list@CS.McGill.CA<br>
<a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><br>
</div>
</div>
</blockquote>
</div>
</body>
</html>