Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Latest commit c5bd3bb LeePike Eq is not implied by Num in GHC 7.4.
Failed to load latest commit information.
AddMult.hs Clean up imports.
Array.hs New examples...
BadExtVars.hs Updated examples to use 'arg' rather than 'funArg'.
CRC.hs More examples.
Cast.hs Major update of examples, fixing them up. Not done!
ClockExamples.hs Major update of examples, fixing them up. Not done!
EngineExample.hs Major update of examples, fixing them up. Not done!
Examples.hs Eq is not implied by Num in GHC 7.4.
Examples2.hs move unused function to comments to prevent warnings.
ExtFuns.hs More examples.
LTLExamples.hs Clean up imports.
Languages.hs Updated examples.
Local.hs Clean up imports.
PTLTLExamples.hs Clean up imports.
README Updated README and syntax tweak in Examples.hs.
Random.hs Major update of examples, fixing them up. Not done!
RegExpExamples.hs Clean up imports.
Sat.hs Updated examples.
StackExamples.hs Clean up imports.
StatExamples.hs Clean up imports.
Test.hs Updated examples.


This directory contains a number of examples.  They show off various aspects of
the language and various backends, including compiling through the Atom (C99)
backend, SBV backend, interpreting, and generating driver to model-check the two
back-ends against each other (in Examples).  The libraries are in the
copilot-libraries package.

 * AddMult: demonstrates Haskell-level recursion

 * Array: external arrays

 * BadExtVars: demonstrates the analyzer catches badly-typed external variables

 * Cast: demonstrates type-safe casting

 * ClockExamples: demonstrates the use of clocks (to control sampling rates)

 * EngineExample: simple engine temperature monitor example

 * Examples: a large number of small examples

 * Examples2: more small examples

 * ExtFuns: sampling external functions

 * Local: using local variables (let expressions inside of Copilot)

 * LTLExamples: demonstrates the bounded LTL library

 * PTLTLExamples: demonstrates the past-time LTL library

 * Random: how to generate a random specification for QuickCheck-type testing
   (use the copilot-c99-qc executable to run QuickCheck tests against the Atom

 * RegExpExamples: demonstrates the regular expressions library

 * StackExamples: demonstrates the stack library

 * StatExamples: demonstrates the statistics library

 * VotingExamples: demonstrates the fault-tolerant voting library
Something went wrong with that request. Please try again.