Coder Social home page Coder Social logo

stalagmite's Introduction

Reproducibility package for Look Ma, No Input Samples! Mining Input Grammars from Code with Symbolic Parsing

Overview

This repository contains our prototype of the proposed approach, including a Dockerfile to reproduce results.

Prerequisites

  • x86 CPU (we used AMD Ryzen Threadripper 3960X 24-Core Processor)
  • at least 64 GB RAM (we used 256 GB RAM)

Grammar Format

We use the grammar format of https://www.fuzzingbook.org.

Important Files

File Description
./eval/eval.py Main evaluation script
./config.py Central definition of parameters
./generalize/generalize.py Builds grammar from execution traces
./generalize/generalize_tokens.py Generalizes token instances to sets
./generalize/mine.py Invokes KLEE on parse functions
./generalize/mine_tokens.py Invokes KLEE on tokenization function
./generalize/reduce_overapproximation.py Reduces overapprox. in initial grammar

Grammar artifacts

For a quick peek at the grammars produced by our prototype and the corresponding evaluation data, please refer to ./paper_evaluation_data/.

Running the Experiments

We provide a Dockerfile which

  • installs all dependencies
  • applies our changes and builds KLEE
  • builds the evaluation subjects (calc, json, lisp, tinyc)
  • runs our tool on each evaluation subject to produce the input grammars
  • outputs evaluation results for each subject as .csv files
  • accumulates evaluation results to a .tex table

Allow up to 24 hours for the experiments to finish.

The experiments can be run as follows:

sudo chmod -R 777 .
docker build . -t symbolic-grammar-mining
mkdir output
docker run -it -v $(pwd)/output:/staminag/data symbolic-grammar-mining

Results will be synced to ./output.

stalagmite's People

Contributors

leonbett avatar

Watchers

 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.