GithubHelp home page GithubHelp logo

owst / penrose Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 125 KB

Penrose: A reachability checker for Petri Nets with Boundaries

License: Other

Haskell 97.91% Vim Script 0.20% Logos 0.63% Yacc 1.26%

penrose's Introduction

Penrose, a Petri Net reachability checker

Authors

Installation

  • Requires recent GHC and cabal to be installed.
    • Developed with GHC 7.6.3 and cabal 1.18.1.12
    • Tested with GHC 7.8.4 and cabal 1.22.0.0
    • Tested with GHC 7.10.3 and cabal 1.22.4.0
  1. run cd PATH_TO_PENROSE_REPOSITORY
  2. run cabal sandbox init
  3. run cabal sandbox add-source mtbdd
  4. run cabal install --only-dependencies --enable-tests --enable-benchmarks
  5. run cabal configure && cabal build

Penrose then exists as ./dist/build/Penrose/Penrose

Usage

Penrose accepts net decompositions in the .netdecomp format. Several examples are provided in the examples folder.

Usage:

./dist/build/Penrose/Penrose OUTPUT_TYPE PATH_TO_EXAMPLE

where the accepted values of OUTPUT_TYPE are shown by passing --help to Penrose

Benchmarking

In-built benchmarking against punf/clp1, cunf/cna3, LOLA4, MARCIE5 and TAPAAL6 are enabled by passing the --enable-benchmarks flag to cabal configure in step 6. above.

A yet-to-be-diagnosed stack overflow occurs when running the benchmarks, so the Haskell run time system must be instructed to allow larger stacks. This is done when running the benchmarks as follows:

./dist/build/Benchmark/Benchmark TYPE [Benchmark] +RTS -K200M

which instructs the Haskell RTS to use 200M of stack, which is sufficient. Pass --help to Benchmark to see the flags for TYPE. An optional sequence of benchmark names can be passed, to restrict which benchmarks are run. E.g. to run LOLA on the buffer and philo examples, run:

./dist/build/Benchmark/Benchmark LOLA buffer philo +RTS -K200M

Or to run Penrose (available without installing other tools):

./dist/build/Benchmark/Benchmark PENROSE buffer philo 

penrose's People

Contributors

owst avatar

Stargazers

 avatar  avatar

Watchers

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