lh-l4v/spec/cspec
Thomas Sewell ca4391881c WIP on WCET annotations. 2015-07-14 14:23:29 +10:00
..
c cspec: Check CPP exists and fallback on native CPP if possible. 2015-01-22 13:36:53 +11:00
KernelInc_C.thy Import release snapshot. 2014-07-14 21:32:44 +02:00
KernelState_C.thy Import release snapshot. 2014-07-14 21:32:44 +02:00
Kernel_C.thy WIP on WCET annotations. 2015-07-14 14:23:29 +10:00
README.md Fix: Description of `SORRY_BITFIELD_PROOFS` in cspec README. 2015-05-19 12:27:37 +10:00
SetSorryModifiesProofs.thy Import release snapshot. 2014-07-14 21:32:44 +02:00
Substitute.thy 2015 update for CBaseRefine 2015-05-17 10:42:15 +10:00
TypHeapLimits.thy Import release snapshot. 2014-07-14 21:32:44 +02:00

README.md

The C Semantics of seL4

l4v/spec/cspec/

This directory contains the entry point for the automatic translation of the seL4 source code into Isabelle/HOL.

The C semantics of the kernel is produced by first configuring and preprocessing the C sources for a specific platform and then parsing it into Isabelle using the C parser in l4v/tools/c-parser.

To inspect the output of this translation, build the image CSpec and interactively inspect the constants the parser has defined.

Top-Level Theory

The top-level theory file for this module is Kernel_C for the bare translation of seL4 into Isabelle, and KernelInc_C for additional automatic proofs about generated bitfield functions.

Building

The corresponding Isabelle sessions for this module are CKernel and CSpec. CSpec contains CKernel plus automated bitfield proofs.

To build the image, run the corresponding session in directory l4v/spec, e.g.:

make CSpec

This will also configure and preprocess the kernel sources.

Expect this build to take about 30 min on a modern machine and to require close to 4GB of memory. For further sessions building on top of CSpec, usually at least 16GB of main memory are required together with a 64-bit setup of Isabelle.

Remarks

To speed up interactive development, the bitfield code generator can be configured to skip the corresponding proofs and produce sorried (unproven) property statements only. To achieve this, set the environment variable SORRY_BITFIELD_PROOFS to 1.