Vampire is an Automated Theorem Prover. It was apparently developed on Linux, but it can be run on Windows using Cygwin, which provides the build tools, software packages and operating system services that Vampire depends on. Here are some instructions for building and running Vampire in 64-bit Windows 10. A note on building Vampire with Cygwin can be found on Vampire's GitHub page,
here.
Install Cygwin:
- Install Cygwin and its default packages.
- Install these Cygwin packages:
- cygrunsrv
- gcc-core
- gcc-g++
- make
- zlib
- zlib-devel
- zlib-devel
- zlib0
- Move C:\cygwin64\bin to the front of the %PATH% environment variable.
Install Git Command-Line Tools
- Install the Git command-line tools. An installer can be downloaded from https://git-scm.com/download/win.
Install the Z3 Theorem Prover
- Download a Win64 release of Z3 from https://github.com/Z3Prover/z3/releases.
- Make z3.dll available from PATH, either by putting z3.dll from this release in some folder that is in PATH, or by adding the Z3 "bin" folder to PATH.
Build Vampire
- Pull Vampire's Git repository from GitHub (https://github.com/vprover/vampire).
- In Vampire's Makefile, add "-D_GNU_SOURCE" to CXXFLAGS and CCFLAGS.
- Change all instances of "exit(0);" in the source code to "_Exit(0);". This is needed to prevent the child processes forked by the main Vampire process from calling the main process' atexit handlers.
- Create a folder named "include" in the Vampire repository's main folder.
- Copy the contents of the Z3 "bin" folder to that "include" folder.
- Compile and link vampire by issuing the command "make vampire_z3_rel" from a command prompt.
Start the Cygwin Windows Service
- Start Cygwin's bash shell.
- From the bash command prompt, issue the command "cygserver-config" to configure the Cygwin Windows service.
- In Windows, right-click "This PC", select "Manage", then select "Services and Applications, then select "Services", then start the "CYGWIN cygserver" service.
Run Vampire
- Run Vampire from a command prompt. For example:
vampire_z3_rel_master_4055 --mode casc -t 300 "Problems\SET\SET159-6.p"
- Vampire may not succeed in deleting the semaphores that it creates in the Cygwin server. To delete them, issue the command "
ipcs -s | grep '^s\\s' | cut -d' ' -f3|xargs -n 1 ipcrm -s
" from a command prompt. Alternatively, add a call to system()
at the end of Vampire's main function that issues this command.
No comments:
Post a Comment