Skip to content

KatStark/CertiGraph

 
 

Repository files navigation

CertiGraph

A library for verifying graph-manipulating programs.

Powered by Coq and VST. Compatible with CompCert.

Contributors

  • Aquinas Hobor
  • Shengyi Wang
  • Anshuman Mohan

Papers

Installing

The library can be installed using opam. Different packages are offered for different target architectures. You can install multiple targets side-by-side.

x86_64-linux

$ opam install ./coq-certigraph.opam

x86_32-linux

$ opam install ./coq-certigraph-32.opam

Building without installing

It is possible to build CertiGraph without installing it as a library. This is useful if you simply want to check out the examples or if you want to hack on CertiGraph itself.

x86_64-linux

First, make sure you have all of the dependencies. This can be done via opam:

$ opam install --deps-only ./coq-certigraph.opam

Alternatively, you can fetch and compile the dependencies by hand. In that case, be sure to edit the CONFIGURE file to specify the path to CompCert and/or VST.

Once the dependencies are in place you can perform the build:

$ make clean
$ make depend
$ make -j4

x86_32-linux

First, make sure you have all of the dependencies. This can be done via opam:

$ opam install --deps-only ./coq-certigraph-32.opam

Alternatively, you can fetch and compile the dependencies by hand. In that case, be sure to edit the CONFIGURE file to specify the path to CompCert and/or VST.

Once the dependencies are in place you can perform the build:

$ make BITSIZE=32 clean
$ make BITSIZE=32 depend
$ make BITSIZE=32 -j4

Developing within CertiGraph

  1. Add your C source and clightgen output to the CertiGraph directory:
    1. Write your newfile.c inside CertiGraph.
    2. path_to_clightgen/clightgen -DCOMPCERT -normalize -isystem . newfile.c
    3. Add newfile.v to the list of sources in Makefile
    4. make depend (this is for every time you edit the makefile)
    5. make path_to_newfile/newfile.vo (note the .vo)
  2. Create the file verif_newfile.v. Now something like Require Import CertiGraph.path.to.newfile. will go through inside verif_newfile.v.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Coq 96.9%
  • C 2.9%
  • Other 0.2%