[Soot-list] Jimple: distinguish if and if else

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Thu Mar 31 03:20:22 EDT 2011


Hi Pedro.

I think that's something you can just figure out by looking at the
code following the if statement. If after the if statement you have a
jump directly to the end of the "if block" then it's a "normal if". If
there's other code in front of that goto then you have an
if-then-else.

Eric

On 31 March 2011 02:25, Pedro Louro <pedrolour at gmail.com> wrote:
> Hello,
>
> When I´m analysing a JIfStmt, is there any practical way of
> distinguish if it is just an if or an if+else?
> In any case the JIfStmt has a bifurcation and I´m not seeing a
> straight forward way to test this.
>
> Best Regards
> Pedro Louro
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Dr. Eric Bodden, http://bodden.de/
Principal Investigator in Secure Services at CASED
Coordinator of the CASED Advisory Board of Study Affairs
PostDoc at Software Technology Group, Technische Universität Darmstadt
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt


More information about the Soot-list mailing list