The Vellvm (Verified LLVM) coq development.
// readme
Vellvm - verified LLVM IR
Vellvm is an ongoing project aiming at the formal verification in the Rocq proof assistant of a compilation infrastructure inspired by the LLVM compiler.
Check out the Vellvm home page for more information.
Installing / Compiling Vellvm
Assumes:
- OCaml 4.14.1 (typically installed via
opam, see below) - Rocq 9.1.1
- opam 2.0.0+
- Clang 14.0.1+ (available for Mac OSX in XCode 4.2+, or installed via, e.g.
sudo apt-get install clang) gnu-sedseddefaults tognu-sedon linux.- for Mac OS X with homebrew, do
brew install gnu-sedand then create a symlink fromsedto thegsedexecutable in your path.)
Compilation:
- Clone the vellvm git repo
- Install all external dependencies
- Note: you should be able to install all of the opam libraries by running
make opamin thesrc/directory.
- Note: you should be able to install all of the opam libraries by running
- Run
make vellvmin thesrc/directory: it will produce the OCaml executable calledvellvm- Note: running just
makewill also build all of Vellvm’s metatheory, which is necessary for proving things, but takes much longer
- Note: running just