[Soot-list] rta callgraph

Toth.Gabriella.2 at stud.u-szeged.hu Toth.Gabriella.2 at stud.u-szeged.hu
Tue Mar 20 02:50:24 EDT 2007


Hi!

I tried but I got this message:
  No call graph present in Scene. Maybe you want Whole Program mode (-w).

I tried:
Options.v().set_whole_program(true);
but it didn't work.


What could I do?

Thanks
Gabi


Quoting "Richard L. Halpert" <richard.halpert at mail.mcgill.ca>:

> Try this:
> PhaseOptions.v().setPhaseOption( "cg.spark", "enabled" );
> PhaseOptions.v().setPhaseOption( "cg.spark", "rta" );
>
> -Rich
>
> On 3/19/07, Toth.Gabriella.2 at stud.u-szeged.hu <
> Toth.Gabriella.2 at stud.u-szeged.hu> wrote:
>>
>> Hi!
>>
>> Thanks, but I can't find Options.v().rta.
>> Isn't it soot.options.Options ?
>> In which package is Options.v().rta ?
>> I tried soot.options in version 2.1 , 2.2 , 2.2.3.
>>
>> Thanks
>>
>> Gabi
>>
>>
>>
>> Quoting Eric Bodden <eric.bodden at mail.mcgill.ca>:
>>
>>> Hi.
>>>
>>> I think the easiest way to get this right is to set the phase options
>>> and then trigger the "cg" phase. So you would do something along those
>>> lines...
>>>
>>> Options.v().rta=true;
>>> PackManager.v().getPack("cg").apply();
>>> //wait a while...
>>> CallGraph cg = Scene.v().getCallGraph();
>>>
>>> Eric
>>>
>>> On 19/03/07, Toth.Gabriella.2 at stud.u-szeged.hu
>>> <Toth.Gabriella.2 at stud.u-szeged.hu> wrote:
>>>> Hi!
>>>>
>>>> I would like to retrieve a rta callgraph.
>>>> I tried:
>>>> HashMap opt = new HashMap();
>>>> opt.put("rta","true");
>>>> SparkTransformer.v().transform("",opt);
>>>> CallGraphBuilder cgb = new CallGraphBuilder();
>>>> cgb.build();
>>>> cg = cgb.getCallGraph();
>>>>
>>>> But the callgraph was the same as if I use these rows:
>>>>
>>>> CallGraphBuilder cgb = new CallGraphBuilder();
>>>> cgb.build();
>>>> cg = cgb.getCallGraph();
>>>>
>>>>
>>>> How could I retrieve rta callgraph?
>>>>
>>>> Thanks
>>>> Gabi
>>>>
>>>> ----------------------------------------------------------------
>>>> This message was sent using IMP, the Internet Messaging Program.
>>>>
>>>> _______________________________________________
>>>> 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, Canada
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Soot-list mailing list