Skip to content

Latest commit

 

History

History
78 lines (58 loc) · 3.61 KB

INSTALL.md

File metadata and controls

78 lines (58 loc) · 3.61 KB

Using the Vale binary release (recommended)

The Vale binary release relies on the following tools:

  • .NET (included in Windows) or mono (Unix)
    • On an Ubuntu system, including Windows Subsystem for Linux, you can install mono with: sudo apt install mono-devel
    • On Mac OS X (tested with El Capitan, 10.11.6), you can install mono with: brew install mono
  • Z3, used by F* and Dafny

To install the binary release, unzip the latest vale-release-*.zip file from here. Then either add the z3 binary to your path or to the unzipped Vale bin directory.

Testing the Vale binary release

To test the binary release, download this test file, then run:

  • On Windows:
    • bin/vale.exe -in refined3.vad -out refined3.dfy
    • bin/Dafny.exe /trace refined3.dfy
  • On Unix:
    • mono bin/vale.exe -in refined3.vad -out refined3.dfy
    • mono bin/Dafny.exe /trace refined3.dfy

If you have F* installed, you can also download this test file, then run:

  • On Windows:
    • bin/vale.exe -fstarText -in common.vaf -out common.fst -outi common.fsti
    • fstar.exe --query_stats common.fst
  • On Unix:
    • mono bin/vale.exe -fstarText -in common.vaf -out common.fst -outi common.fsti
    • fstar.exe --query_stats common.fst

Building Vale from source

Vale sources rely on the following tools, which must be installed before building Vale:

On an Ubuntu system, including Windows Subsystem for Linux, you can install the dependencies with: sudo apt install scons fsharp nuget mono-devel.

On Mac OS X (tested with El Capitan, 10.11.6), you can install the dependencies with: brew install scons nuget mono. Note that the mono package includes F#.

Once these tools are installed, running SCons in the top-level directory will build the Vale tool:

python.exe scons.py

To verify all Dafny sources in the src directory, run:

python.exe scons.py --DAFNY

To verify all F* sources in the src directory (this requires an installation of F*), run:

python.exe scons.py --FSTAR

NOTE: You can override tools/Kremlin by setting the KREMLIN_HOME environment variable to point to the directory where KreMLin is installed.