Commit Graph

609 Commits

Author SHA1 Message Date
Japheth Lim dc626e99d3 autocorres, crefine: remove early AutoCorres–CRefine experiment
This has been superseded by actual AutoCorres integration with CRefine.
2018-09-27 15:03:25 +10:00
Japheth Lim 1b4c3d06cf autocorres: fix external_file declaration 2018-09-26 17:08:34 +10:00
Mitchell Buckley 8173a37c2d Updated specs and proofs for SELFOUR-1491: control IRQ triggering on ARM. 2018-09-19 16:18:09 +10:00
Japheth Lim 38d30a895a autocorres: record date of 1.5 release 2018-09-10 14:18:25 +10:00
Japheth Lim 1af23137f0 autocorres: update release tool for Isabelle2018
Note that we have removed the LIB_FILES manifest and no longer intend
to maintain it manually. Instead, we just extract the entire Lib and
CLib sessions from the L4.verified repository. This means that the
next AutoCorres release will have some unneeded theories and a couple
of files with GPL licenses.
2018-09-06 20:34:59 +10:00
Japheth Lim 703c43fa2b c-parser: update release script and README 2018-09-06 20:34:59 +10:00
Japheth Lim fc94ed7539 c-parser/doc: describe reality of evaluation order semantics (see VER-503) 2018-09-06 20:34:59 +10:00
Japheth Lim 0847265be3 c-parser/doc: better example for target arch files 2018-09-06 20:34:59 +10:00
Japheth Lim cb9492c4fb c-parser/doc: update with x64 array sizes; other minor fixes 2018-09-06 20:34:59 +10:00
Michael Norrish 423606ae60 c-parser: always attach GCC attributes to vars.
Some attributes attached to global variables weren't kept in
the AST if they appeared at the front of the declaration rather
than the back.

For instance, the aligned attribute was lost in this declaration:
   int __attribute__((aligned(16))) x;
but kept if it appeared last:
   int y __attribute__((aligned(16)));

Now fixed.
2018-08-23 18:57:09 +10:00
Gerwin Klein 3101eba8e7 remove trailing whitespace from ulem.sty 2018-08-21 15:15:08 +10:00
Gerwin Klein af056bc00d Isabelle2018 riscv: theory import for c-parser 2018-08-20 09:06:37 +10:00
Gerwin Klein 8af6b2ec1a Isabelle2018: add ulem.sty which is now required by isabelle.sty
(available by default in newer tetex installs, but not older ones)
2018-08-20 09:06:37 +10:00
Gerwin Klein 1383f4ceee Isabelle2018 autocorres: declare external files 2018-08-20 09:06:37 +10:00
Gerwin Klein d4738b079f Isabelle2018: AutoCorresTest 2018-08-20 09:06:36 +10:00
Gerwin Klein 7e29504194 Isabelle2018: AutoCorresDoc 2018-08-20 09:06:36 +10:00
Gerwin Klein 1c82254a3c Isabelle2018: AutoCorres 2018-08-20 09:06:36 +10:00
Gerwin Klein eea38b25c4 Isabelle2018: READMEs and docs 2018-08-20 09:06:36 +10:00
Gerwin Klein 75b38be012 Isabelle2018: new AsmRefine session + test 2018-08-20 09:06:36 +10:00
Gerwin Klein 1ae3a8d65b Isabelle2018: Lib update 2018-08-20 09:06:36 +10:00
Gerwin Klein 4dc3ffb1ba Isabelle2018 c-parser: declare external files 2018-08-20 09:06:36 +10:00
Gerwin Klein 86bad831e2 Isabelle2018: C parser tests 2018-08-20 09:06:36 +10:00
Gerwin Klein b213aa9ba0 Isabelle2018: CParser 2018-08-20 09:06:36 +10:00
Gerwin Klein 49eceeaf41 Isabelle2018: re-import Simpl from the AFP 2018-08-20 09:06:36 +10:00
Gerwin Klein 6b9d9d24dd Isabelle2018: new "op x" syntax; now is "(x)"
(result of "isabelle update_op -m <dir>")
2018-08-20 09:06:35 +10:00
Gerwin Klein 011e08458e Isabelle2018: new comment syntax
(result of "isabelle update_comments <dirs>")
2018-08-20 09:06:35 +10:00
Gerwin Klein b5cdf4703f globally use session-qualified imports; add Lib session
Session-qualified imports will be required for Isabelle2018 and help clarify
the structure of sessions in the build tree.

This commit mainly adds a new set of sessions for lib/, including a Lib
session that includes most theories in lib/ and a few separate sessions for
parts that have dependencies beyond CParser or are separate AFP sessions.
The group "lib" collects all lib/ sessions.

As a consequence, other theories should use lib/ theories by session name,
not by path, which in turns means spec and proof sessions should also refer
to each other by session name, not path, to avoid duplicate theory errors in
theory merges later.
2018-08-20 09:06:34 +10:00
Gerwin Klein 382b07dc20 c-parser: remove unused dependency on Lib 2018-08-20 09:05:52 +10:00
Gerwin Klein f2a8c3e07e c-parser: session qualified imports for parser tests 2018-08-20 09:05:52 +10:00
Gerwin Klein 5ae795c586 c-parser: qualified session imports; Word_Lib base image
Previously, everything was counted under session CParser, incl most of
Word_Lib. The dependency on Word_Lib thus revealed means Word_lib is the
better base image for session Simpl-VCG.
2018-08-20 09:05:52 +10:00
Gerwin Klein 20d0db1e7e autocorres: mark Auto_Separation_Algebra as unfinished
(uses cheat_tac for a few tactics that are not filled in yet)
2018-08-06 14:28:44 +10:00
Gerwin Klein 377caf0a86 c-parser: allow skipping modifies-proof in quick_and_dirty only 2018-08-06 14:28:44 +10:00
Gerwin Klein 2d8233bb76 cparser: set sorry_modifies_proofs conditionally on env var
This includes replacing the non-thread-safe ref sorry_modifies_proofs with a
proper Config option.
2018-08-06 14:28:44 +10:00
Matthew Brecknell c390013909 x64 crefine: prove several lemmas in Retype_C
To prove that retyping a TCB establishes the state relation for TCBs,
it is necessary to prove that the C FPU null state is always equal to
the Haskell FPU null state. This commit therefore includes some
machinery for maintaining the state relation for the FPU null state,
and repairs many proofs.
2018-07-05 16:23:15 +10:00
Gerwin Klein 05281b90fe c-parser: consolidate IsaMakefile into Makefile
resolves remaining part of github issue #22
2018-07-02 08:52:01 +02:00
Gerwin Klein 7741eaccab riscv c-parser: ignore generated standalone parser files 2018-07-02 08:52:01 +02:00
Gerwin Klein 47a7511941 c-parser: tweaks for mlton 20180207 in standalone C parser 2018-07-02 08:51:40 +02:00
Rafal Kolanski edd02390e1 c-parser: reinstate X64 target accidentally clobbered by RISCV64 2018-06-28 18:42:43 +10:00
Gerwin Klein 23a1bae103 riscv c-parser: RISCV64 test setup 2018-06-27 10:06:49 +02:00
Gerwin Klein 48531d2d67 riscv haskell-translator: caseconvs update 2018-06-27 10:06:48 +02:00
Gerwin Klein b3e1be7783 haskell-translator: enable RISCV64 target 2018-06-27 10:06:47 +02:00
Gerwin Klein 52b9f958aa haskell-translator: add parsing of .hs files
In addition to .lhs only.
2018-06-27 10:06:47 +02:00
Rafal Kolanski 31b635401d riscv: setup cspec build for L4V_ARCH=RISCV64
C parser and word setup copied from X64
2018-06-27 10:05:44 +02:00
Joel Beeren 25125763bd arm-hyp: ioportcontrol: fixes after adding IOPortControlCaps to x64 2018-04-19 05:27:06 +10:00
Joel Beeren f728dd25e8 x64: Add IOPortControlCaps to control IO port allocation
The previous implementation of IOPortCaps has problems with revocability
and determining parency etc. This commit adds IOPortControlCaps which
behave identically to IRQControlCaps -- invoking the IOPortControlCap
allows one to create IOPortCaps with the supplied range.

There now exist invariants to show that there is only one
IOPortControlCap and that all IOPortCaps in the system do not overlap.
Furthermore there is a global record of which IO ports have been
allocated to prevent reissuing the same ports.
2018-04-19 05:27:06 +10:00
Thomas Sewell d4d89922af lib/wp: Adjust some problematic attributes.
In particular, some intro! attributes for some wp rules are removed.
These previously caused auto/fastforce to play a really strange role
in some proofs.
2018-03-16 14:57:09 +11:00
Thomas Sewell b0f2217af4 lib/wp: Remove old wp combinator rules.
These combinator rules do something like what wp_pre does now.

They were helpful in the ancient past, but now that wp_pre exists it is
much better to just use automation.
2018-03-16 14:51:31 +11:00
Japheth Lim 26b45dc466 c-parser: automated testing for JIRA VER-881 2018-03-14 17:56:53 +11:00
Thomas Sewell 97a4e3753e Revert designs, fix with more processing.
Abandon post-processing. There's some fragility somewhere that requires
process_stmt to see exactly the statements that go out, so it needs to run
last.

To handle initialiser elements, re-run process_stmt over the initialiser
statements that are created by process_decl. That's repeating some steps,
but it seems to work.

Waiting on input from Michael N about how crazy this is, but for now we're
pushing it to testing.
2018-03-14 17:56:53 +11:00
Thomas Sewell 4b2c812323 c-parser: VER-881: process more function calls.
Two kinds of function calls were escaping the analysis. The first is simple,
the ReturnFnCall statement type, which was a silly omission from before.

Function calls inside initialiser statements are a more difficult problem.
The simplest solution was to move the VER-881 calculation into a
post-processing phase once those function calls have been moved to statement
positions.
2018-03-14 17:56:53 +11:00