Giter Site home page Giter Site logo

lf-verifier-benchmarks's Introduction

LF Verifier Benchmarks

This repository contains benchmarks for Lingua Franca (LF) verifiers that can process @property annotations.

The implementation of the LF Verifier is in the lingua-franca repo.

Prerequisites

Docker (experimental)

To quickly set up a working environment, we recommend building a docker image using the Dockerfile provided.

docker build -t <tag> -f docker/Dockerfile .
docker run -it <tag>

Manuel Setup

One can manually install the prerequisites by following these steps.

  1. Install Lingua Franca;
git clone https://github.com/lf-lang/lingua-franca.git
cd lingua-franca
./gradlew assemble
  1. Install Z3 and Uclid5;

    a. Clone the Uclid5 repo:

    git clone https://github.com/uclid-org/uclid.git
    cd uclid
    git checkout 4fd5e566c5f87b052f92e9b23723a85e1c4d8c1c
    

    b. Make sure prerequisites are met. Please find the instructions for Linux here, and the instructions for macOS here.

    c. Install Z3 using a utility script in the Uclid5 repo.

    ./get-z3-linux.sh
    

    There is a corresponding utility script for macOS.

    ./get-z3-macos.sh
    

    d. Run the setup scripts.

    ./setup-z3-linux.sh
    

    There is a corresponding version for macOS.

    ./setup-z3-macos.sh
    

    e. Build Uclid5.

    sbt update clean compile
    sbt universal:packageBin
    cd target/universal/
    unzip uclid-0.9.5.zip
    

    f. Then add <path-to-uclid>/target/universal/uclid-0.9.5/bin/ to PATH.

Getting Started

Checking a single program

All the benchmark programs are under the benchmarks/src/ directory.

cd lf-verifier-benchmarks/benchmarks/src

To verify the properties of a program, simply run lfc.

lfc --verify <file.lf>

Checking a set of programs

To check all programs under a specific directory (e.g. benchmark/), use the run-benchmark script.

cd lf-verifier-benchmarks/
./scripts/run-benchmarks benchmarks

The timing results will be located under a results/ directory.

Ploting

To generate a stem plot for the timing results.

  1. cd lf-verifier-benchmarks/plotting
  2. Open 3d_stem_plot.py and update the timing data (x = LF LOC, y = CT, z = Time (seconds)).
  3. python3 3d_stem_plot.py

lf-verifier-benchmarks's People

Contributors

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