[Soot-list] How to map line number to units

Steven Arzt Steven.Arzt at cased.de
Tue Feb 17 07:47:30 EST 2015


Hi,

the line numbers are available through the tags associated with the
respective units. There are multiple types of tags, some only have the
source line number, others also the column in the source file. From
bytecode, you will only get line numbers, from source code, you can also get
columns. Try Unit.getTags() (inherited from the Host class).

However, there are some things to keep in mind: Soot's front-end for Java
source code is not up to date. This means that you are unlikely to be able
to parse Java 7-style source code. Java 6 should be fine, though. Developing
a new source front-end is a major undertaking we need to do at some point.
If you use the bytecode front-end, you should be on the safe side.

Best regards,
  Steven


-----Original Message-----
From: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA]
On Behalf Of Nishant Shyamal Budhdev
Sent: Dienstag, 17. Februar 2015 12:07
To: soot-list at CS.McGill.CA
Subject: [Soot-list] How to map line number to units

Hi,

I'm trying to produce a Data Flow Analysis (intra-procedural) for Android
applications. The aim of the analysis is to help generate constraints for
the application using line numbers in the original source code as variables.
I've been able to generate the Data Flow Analysis for Java programs. I've
the following questions:

1. Is it possible to map the units in the graphs to the source code line
numbers ?

2. Does Soot produce a list of Dominant nodes ?

Thank you.
Nishant Budhdev
_______________________________________________
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