Skip to content

The engine accepts Petri nets in XML format and verifies a reachability query and aims to provide a fast untimed engine for TAPAAL.

License

Notifications You must be signed in to change notification settings

MathiasMehl/verifypn

 
 

Repository files navigation

VerifyPN

VerifyPN is based on PeTe and aims to provide a fast untimed engine for TAPAAL.

License

VerifyPN is available under the terms of the GNU GPL version 3 or (at your option) any later version. If this license doesn't suit you're welcome to contact us, and purpose an alternative license.

Compilation

Requirements for compilation

cmake >= 3.9
flex >= 2.6.4
bison >= 3.0.5
gmp-static (required only for model checking competition)

sudo apt update
sudo apt install build-essential cmake flex bison git brz

The four distributions of VerifyPN can be compiled as follows

Linux64 and OSX64

bzr branch lp:verifypn
mkdir build && cd  build
cmake .. -DVERIFYPN_Static=ON -DVERIFYPN_MC_Simplification=OFF 

#For mac, one need to enforce that we use the GCC compiler using:
export CC=gcc-11
export CXX=g++-11
#and point to the correct version of flex and bison by adding
#-DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex 
#to cmake call, e.g. like
cmake -DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison -DFLEX_EXECUTABLE=/opt/homebrew/opt/flex/bin/flex   ..

Windows 64 cross-compilation with minGW

Install cross-compiler and libs

sudo apt install mingw-w64-x86-64-dev mingw-w64-tools g++-mingw-w64-x86-64
sudo apt install wine wine-binfmt #Needed to run tests compile

To build

mkdir build-win && cd  build-win
cmake .. -DVERIFYPN_Static=ON -DVERIFYPN_MC_Simplification=OFF -DCMAKE_TOOLCHAIN_FILE=../toolchain-x86_64-w64-mingw32.cmake
make

Linux64 - Model Checking Competition

mkdir build
cd  build
cmake .. -DVERIFYPN_Static=OFF -DVERIFYPN_MC_Simplification=ON 
make

Mac 64 compilation

mkdir build
cd build
cmake -DVERIFYPN_MC_Simplification=OFF  -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex -DCMAKE_C_COMPILER=/usr/local/bin/gcc-9 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-9 ..
make

About

The engine accepts Petri nets in XML format and verifies a reachability query and aims to provide a fast untimed engine for TAPAAL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 62.7%
  • Perl 27.1%
  • Shell 9.2%
  • CMake 0.6%
  • Yacc 0.2%
  • C 0.1%
  • Other 0.1%