Coder Social home page Coder Social logo

shikhar8990 / test-depth-partitioning Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 MB

Source Repository for Test-Depth Partitioning Tool

License: Other

CMake 0.18% C++ 5.02% Makefile 8.36% C 8.63% Python 0.17% Shell 5.87% LLVM 66.01% SMT 0.01% Emacs Lisp 0.01% CSS 0.05% Awk 0.19% TeX 2.36% M4 1.63% Roff 0.49% HTML 0.80% Yacc 0.24%

test-depth-partitioning's Introduction

Test-Depth Partitioning (TDP)

A technique to enable distributed symbolic execution built using KLEE.

Requirements

  1. Everything that KLEE 3.4 requires http://klee.github.io/releases/docs/v1.4.0/build-llvm34/
  2. Open MPI

Building Instructions
Same as building KLEE 3.4. Clone the repo and follow the instructions for building KLEE 3.4.
Ofcourse, use this source in place of the original KLEE source.

Running TDP
Following is the list of TDP specific options

-timeOut : serch terminates after timeOut seconds
-output-dir : Name of the output directory prefix storing the tests. If there are four workers
the name of the directories would be output-dir1, output-dir2, outpit-dir3 and
output-dir4; output-dir0 belongs to the coordinator.
-lb : flag to enable load balancing (off by default)
-phase1Depth : number of tests to generate for initial distribution (best to have value same as the number of workers)
should be 0 if using only 1 worker
-phase2Depth : depth at which to terminate execution
-searchPolicy : search strategy (BFS, DFS or RAND; COVNEW (coverage search - experimental stage))

Sample Command
The following command launches TDP on program with a bit code file named prog.bc.
TDP is run using 4 worker so we generate 4 initial tests and run it to a timeout of
1 hour or a depth of 24 (which ever is first).
The search policy is depth first search.
Note that when we launch the MPI task using mpirun command, we need two additional cores.
One of the addtional cores acts as a coordinator while the other is used for monitoring and
is supposed to collect statistics (not yet implemented).

mpirun -n 6 /path/to/tdp_build/bin/klee --timeOut=3600 --lb --output-dir=out_prog --phase1Depth=4
--phase2Depth=24 --searchPolicy=DFS ./prog.bc

For questions, contact Shikhar - shikhar_singh at utexas dot edu

test-depth-partitioning's People

Contributors

shikhar8990 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.