themaplelab / averroes

Java bytecode generator for sound and precise partial program analysis
Eclipse Public License 2.0
23 stars 7 forks source link

unclear inputs for tool.jar #1

Closed quizzo closed 8 years ago

quizzo commented 9 years ago

When using tool.jar java -jar tool.jar

It is unclear what are the needed outputs for wala. In addition, if one would like to include this jar in an eclipse project, it is unclear what methods should be called to generate a call graph from it.

The following averroes jars are available averroes-lib-class.jar organized-app.jar organized-lib.jar placeholder-lib.jar

it is clear that the tool_name is wala, and isAverroes is true, but it is not clear what should be the absolute path, base and benchmark.

karimhamdanali commented 9 years ago

Hi quizzo,

The classes in averroes-experiments are created specifically to run the DaCapo and SPECJVM benchmark suites and might not necessarily be useful for generic use.

In general, tool.jar needs the following parameters (more documentation can be found here https://github.com/karimhamdanali/averroes-experiments/blob/master/src/averroes/experiments/options/ExperimentsOptions.java):

If you like to build your own CallGraphFactory, you can find more information about this in the method CallGraphFactory.generateWalaCallGraph() here https://github.com/karimhamdanali/averroes-experiments/blob/master/src/averroes/experiments/CallGraphFactory.java#L101

But in general, WALA needs the following: