The copilot-cbmc package

[Tags: bsd3, library]

Depends on CBMC Generates a driver to prove the Atom and SBV backends generate equivalent code.

[Skip to ReadMe]


Versions0.1, 0.2, 0.11, 0.22, 0.23, 2.1.1, 2.1.2
Change logNone available
Dependenciesbase (>=4.3 && <5), bytestring, copilot-c99, copilot-core, copilot-sbv, directory (>=1.1), pretty, process (>=1.0) [details]
AuthorLee Pike , Sebastian Niller , Nis Nordby Wegmann
CategoryLanguage, Embedded
Source repositoryhead: git clone git://
UploadedThu Nov 10 06:21:25 UTC 2011 by LeePike
Downloads1277 total (55 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees

Readme for copilot-cbmc-0.11


copilot-cbmc A tool to generate a driver using CBMC, a third-party tool (see Dependencies below) that proves that the code generated by different C back-ends is equivalent. Currently, this includes the C99 back-end and the SBV back-end.

Copilot is a stream (i.e., infinite lists) domain-specific language (DSL) in Haskell that compiles into embedded C. Copilot is similar in spirit to languages like Lustre. Copilot contains an interpreter, multiple back-end compilers, and other verification tools.


Please see the files under the Examples directory in the Copilot for a number of examples showing the syntax, use of libraries, and use of the interpreter and back-ends. The examples is the best way to start.


The Copilot library is cabalized. Assuming you have cabal and the GHC compiler installed (the Haskell Platform is the easiest way to obtain these), it should merely be a matter of running

     cabal install copilot-cbmc

However, we strongly recommend you install Copilot, which installs copilot-c99 and other packages automatically. Execute

     cabal install copilot


copilot-cbmc depends on the C model-checker, CBMC. CBMC is a bounded model-checker for C code. We use CBMC to prove that two back-ends generating C generate semantically equivalent C, to help detect bugs in C back-ends.


copilot-cbmc is available on Hackage.

Sources for each package are available on Github as well. Just go to Github and search for the package of interest. Feel free to fork!

Copyright, License

Copilot is distributed with the BSD3 license. The license file contains the BSD3 verbiage.


We are grateful for NASA Contract NNL08AD13T to Galois, Inc and the National Institute of Aerospace, which partially supported this work.