Download and Installation
- Clone the Jalangi-Berkeley repository to your computer:
git clone https://github.com/Berkeley-Correctness-Group/Jalangi-Berkeley.git
- Install Jalangi and Jalangi-Berkeley by following the Jalangi-Berkeley installation instructions.
All commands listed below assume that
Jalangi-Berkeley is your current working directory. We tested TypeDevil on Ubuntu Linux with node.js v0.10.18. The analysis can be applied directly during the execution of a program (recommended for small examples) or be split into an online part and an offline part (recommended for larger programs). For the latter case, the online part writes intermediate results to the file system and the offline part summarizes the results.
For example, the following applies TypeDevil to the running example in our ICSE'15 paper:
Analyze our Test Suite of Small Example Programs
The following applies TypeDevil to a test suite of small example programs:
Analyze the Sunspider and Octane Benchmarks
The following assumes that TypeDevil is used as an online + offline analysis. Therefore, edit
src/js/analyses/inconsistentType/InconsistentTypeEngine.js and set the
online variable to
To apply TypeDevil to the Sunspider benchmarks:
Similar, to apply TypeDevil to the Octane benchmarks:
Analyze Web Applications
There are different ways to apply TypeDevil to web applications. We are using
instrumentFF on this page for instructions on installing it.