Giter Site home page Giter Site logo

alloyflcore's Introduction

AlloyParser

AlloyParser is an Java API built on top of Alloy. It implements a easy to use Visitor Pattern to manipulate Alloy AST nodes. The following tools are built using AlloyParser API:

AlloyFLCore

AlloyFLCore is a tool that helps localize faults in Alloy models given tests. The tool is built on top of AlloyParser and under alloyfl package.

Requirements:

  • Supported Operating Systems

    • Linux (64 bit)
    • Mac OS X (64 bit)
  • Tools

    • Bash 4: Must be installed and accessible from PATH.
    • Alloy 4.2: Must be in the classpath.
    • Java 8: Must be installed and accessible from PATH. JVM should support 32 bit native library if you use minisat solver.
    • libstdc++.so.5: sudo apt-get install libstdc++5 libstdc++5:i386. Must be installed if you use minisat solver.

Reproduce Experiment:

  • Run ./aparser.sh --build to build the library
  • Run ./aparser.sh --prepare-all to store real fault locations and copy faulty models into working directory.
  • Run ./aparser.sh --hybridfl-average-all experiments/test-suite/mutation-based/100 ochiai 0.4 to run AlloyFLHy with all (100%) tests using Ochiai formula and (0.4 * AlloyFLMu + 0.6 * AlloyFLCo)
  • Run ./aparser.sh --report-hybridfl-average-all 100 ochiai 0.4 to collect distance-based and top-k metrics for AlloyFLHy given the above setting

The script also allows users to run AlloyFLUn, AlloyFLCo, AlloyFLMu independently.

The results are stored as eff.info in the experiments/ directory.

Publications

  • "Fault Localization for Declarative Models in Alloy." Kaiyuan Wang, Allison Sullivan, Darko Marinov, and Sarfraz Khurshid, ISSRE 2020

License

MIT License, see LICENSE for more information.

alloyflcore's People

Contributors

kaiyuanw 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.