[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error on Intra -procedure analysis?




	

My computer memory is 256m.

I tried set

java -Xmx500m soot.Main -w -f jimple HelloWorld

and also
200m...

still ran into errors. 
D:\Java\soot\soot-2.0.1\soot\classes>java -Xmx500m soot.Main -w -f jimple HelloW
orld
Soot started on Thu Feb 12 09:57:08 GMT+08:00 2004
[Call Graph] For information on where the call graph may be incomplete, use the
verbose option to the cg phase.
Exception in thread "main" java.lang.RuntimeException: Exception range does not
coincide with jimple instructions
        at soot.coffi.CFG.jimplify(CFG.java:1506)
        at soot.coffi.CFG.jimplify(CFG.java:1099)
        at soot.coffi.CoffiMethodSource.getBody(CoffiMethodSource.java:98)
        at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:79)
        at soot.SootMethod.retrieveActiveBody(SootMethod.java:274)
        at soot.jimple.toolkits.callgraph.CallGraphBuilder.processNewMethod(Call
GraphBuilder.java:114)
        at soot.jimple.toolkits.callgraph.CallGraphBuilder.processWorklist(CallG
raphBuilder.java:93)
        at soot.jimple.toolkits.callgraph.CallGraphBuilder.build(CallGraphBuilde
r.java:81)
        at soot.jimple.toolkits.callgraph.CHATransformer.internalTransform(CHATr
ansformer.java:43)
        at soot.SceneTransformer.transform(SceneTransformer.java:39)
        at soot.Transform.apply(Transform.java:79)
        at soot.RadioScenePack.internalApply(RadioScenePack.java:60)
        at soot.jimple.toolkits.callgraph.CallGraphPack.internalApply(CallGraphP
ack.java:36)
        at soot.Pack.apply(Pack.java:104)
        at soot.PackManager.runWholeProgramPacks(PackManager.java:255)
        at soot.PackManager.runPacks(PackManager.java:238)
        at soot.Main.run(Main.java:172)
        at soot.Main.main(Main.java:152)




Can give me a hand? 

Regards.
Huang Yue

-----Original Message-----
From: lli31@cs.mcgill.ca [mailto:lli31@cs.mcgill.ca]
Sent: Wednesday, February 11, 2004 11:14 PM
To: #HUANG YUE#
Subject: RE: Inter or Intra -procedure analysis?


Hi,
You may need to rise the memory size by using -X option for java. For
example:
java -Xmx500m soot.Main -w -f jimple HelloWorld

You may change 500m to whatever size you want.

cheers

lin


> Thank you for reply.
>
> I tried as you told.
> In command line:
> java soot.Main -w -f jimple HelloWorld
>
> It tooks seveal minutes and finally said that "Exception in thread 'main'
> java.lang.OutOfMemoryError".
>
> How to deal with such case?
>
> class HelloWorld {
>      public static void main(String[] args)
>      {
>          int i=0;
>          int j=0;
>          int z=0;
>          printDate();
>          if (i==0)
>          j=1;
>          else
>          j=2;
>
>          for(z=1;z<=5;z++)
>          {
> 	 j++;
>          }
>
>
>                 }
>      static public void printDate()
>      {
> 	 System.out.println("Today is Sunday!");
>
>      }
> }
>
>
>
> Best Regards.
> Huang Yue
>
> -----Original Message-----
> From: lli31@cs.mcgill.ca [mailto:lli31@cs.mcgill.ca]
> Sent: Tuesday, February 10, 2004 11:34 PM
> To: #HUANG YUE#
> Cc: soot-list@sable.mcgill.ca
> Subject: Re: Inter or Intra -procedure analysis?
>
>
> Hi,
>
> Soot works on both intra-procedure and inter-procedure analysis. To enable
> the inter-procedural (or whole-program), you need use -W option. Please
> have a look of the soot documentation, find "Soot Commandline Options".
>
> http://www.sable.mcgill.ca/soot/tutorial/index.html
>
> Hope this will help.
>
> cheers
>
> lin
>
>> hi,
>>
>> It seems that soot only work on intraprocedure analysis?  Coz I saw
>> whenever there is a precedure call, then stop at a point in Jimple.
>>
>> warm regards.
>> Helen
>>
>>
>>
>
>
>
>
>