Giter Club home page Giter Club logo

CertiGraph

A library for verifying graph-manipulating programs.

Powered by Coq and VST. Compatible with CompCert.

The OVERVIEW describes what it's for, and the demo gives a brief tutorial introduction.

This version of CertiGraph is compatible with Coq 8.13 (and probably 8.14), CompCert 3.9, and VST 2.8.

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.

  1. This can be done via opam:
$ opam install --deps-only ./coq-certigraph.opam
  1. 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.

  2. Or, if your Coq Platform install includes CompCert and VST, then you may already have all the needed libraries.

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.

  1. This can be done via opam:
$ opam install --deps-only ./coq-certigraph-32.opam
  1. 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.

  2. Or, if your Coq Platform install includes CompCert and VST, then you may already have all the needed libraries.

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.

certigraph's Projects

certigc icon certigc

A formally verified generational garbage collector.

certigraph icon certigraph

A library for verifying graph-manipulating programs. Powered by Coq and VST. Compatible with CompCert.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.