This is a simple utility that uses WALA to generate and serialize callgraphs for Java programs. It is based on the WALA-start example project, and as such shares the requirements, installation instructions, and license listed below.
In order to generate an application-only callgraph, install and then run
./run.py Lcom/example/MainClass <jar> <output>
This will analyze the java program <jar>
from the entrypoint in com.example.MainClass
, build a callgraph,
and write to <output>
a text file containing those callgraph edges originating in application code.
This serialized callgraph can then be used by other analysis tools as needed.
Requirements are:
- Java 8
Installation instructions will vary by operating system.
Clone the repository, and then run:
./gradlew compileJava
This will pull in the WALA jars and build the sample code.
All code is available under the Eclipse Public License.