forked from ArathaJS/aratha
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
500 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ solver_commands.smt2 | |
data.dzn | ||
model.fzn | ||
model.mzn | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
# Concolic analysis for Jalangi 2 | ||
# Aratha | ||
|
||
This is a prototype concolic analysis tool for Jalangi 2. To run it, you require | ||
a working copy of either the [CVC4](http://cvc4.cs.stanford.edu/) or the | ||
[Z3](https://github.com/Z3Prover/z3) SMT solver and Node.js v7 or up, as well as | ||
a working setup of Jalangi 2. | ||
Aratha is a prototype dynamic symbolic execution tool for JavaScript built on | ||
[Jalangi 2](https://github.com/Samsung/jalangi2). To run it, you require | ||
a working copy of the [G-Strings](https://bitbucket.org/robama/g-strings.git) CP | ||
solver, or one of the SMT solvers [CVC4](http://cvc4.cs.stanford.edu/) or | ||
[Z3](https://github.com/Z3Prover/z3), as well as Node v7 or higher. | ||
|
||
## How to run the analysis | ||
|
||
The default solver is CVC4, and the environment variable `CVC4_PATH` must be set | ||
to the path to CVC4, if it is not in your `PATH`. | ||
|
||
Alternatively, you can set `SMT_SOLVER=z3`to use Z3 instead. In this case, | ||
`Z3_PATH` must point to Z3 (or `z3` must be in your `PATH`). | ||
|
||
To analyze a script, run | ||
## Running the analysis | ||
|
||
First, install the dependencies by running | ||
``` | ||
node ../src/js/commands/jalangi.js --analysis ./ <path to script> | ||
$ npm install | ||
``` | ||
from this directory. To analyze a script, run | ||
``` | ||
$ npm run analyze -- <path to script> | ||
``` | ||
|
||
from this directory. | ||
|
||
## Running tests | ||
### Options | ||
|
||
The default solver is CVC4, and the environment variable `CVC4_PATH` must be set | ||
to the path to CVC4 if `cvc4` is not in your `PATH`. | ||
|
||
Alternatively, you can set `SOLVER=z3`to use Z3 instead. In this case, | ||
`Z3_PATH` must point to Z3 (or `z3` must be in your `PATH`). | ||
|
||
## Tests | ||
|
||
The tests are written with [Mocha](https://mochajs.org/). To run them, run | ||
`mocha` from this directory, or `../node_modules/.bin/mocha` if you've installed | ||
Jalangi 2's dependencies. | ||
`npm test` from this directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.