[Soot-list] end of a switch block

Cristina Basescu cristina.basescu at gmail.com
Sat Jun 20 06:55:51 EDT 2009


Indeed, I believe I need something closer to an AST on the source code,
unfortunately my analysis starts with some .class files, so I think Jimple
is the best I can get. I need to count how many times a certain statement
appears on each of the case branches in a switch, I don't see some other way
to workaround this..

Cristina

On Sat, Jun 20, 2009 at 3:34 AM, Eric Bodden <eric.bodden at mail.mcgill.ca>wrote:

> Hi Christina.
>
> Jimple is not really on the right level of abstraction for extracting
> switch blocks. As you probably know, such blocks can have a different
> representation on the Jimple level than they have in source code. Why
> are you trying to find switch blocks? Maybe we can help you somehow
> differently.
>
> Eric
>
> 2009/6/19 Cristina Basescu <cristina.basescu at gmail.com>:
> > Hello,
> >
> > I have a question regarding the possibility of finding where a switch
> block ends (the next statement after a switch block). I find this problem
> tricky when there is no break statement on any of the case blocks excepting
> the last case block, because otherwise one could compute the lists of all
> successors for all the targets and then find the first common statement of
> these lists. I'm using Jimple and I thought that maybe building the AST
> might be the solution, but I haven't found an example on how to do this
> either.
> >
> > Any help would be appreciated.
> >
> > Best regards,
> > Cristina
> >
> > _______________________________________________
> > Soot-list mailing list
> > Soot-list at sable.mcgill.ca
> > http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> >
> >
>
>
>
> --
> Eric Bodden
> Sable Research Group, McGill University
> Montréal, Québec, Canada
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20090620/4b36cd6e/attachment.html 


More information about the Soot-list mailing list